Replace sprintf with xsnprintf
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-18 Yao Qi <yao@codesourcery.com>
2
3 * linux-nat.c (linux_proc_xfer_partial): Call xsnprintf instead
4 of sprintf.
5 (linux_nat_detach, linux_child_pid_to_exec_file): Likewise.
6 (linux_proc_pending_signals): Likewise.
7
8 2013-12-18 Joel Brobecker <brobecker@adacore.com>
9
10 * value.c (value_entirely_unavailable): ARI fix: Move trailing
11 binary operator to the next line. No actual code change.
12
13 2013-12-17 Pedro Alves <palves@redhat.com>
14
15 * frame.h (enum frame_id_stack_status): New enum.
16 (struct frame_id) <stack_addr>: Adjust comment.
17 <stack_addr_p>: Delete field, replaced with ...
18 <stack_status>: ... this new field.
19 (frame_id_build_unavailable_stack): Declare.
20 * frame.c (frame_addr_hash, fprint_field, outer_frame_id)
21 (frame_id_build_special): Adjust.
22 (frame_id_build_unavailable_stack): New function.
23 (frame_id_build, frame_id_build_wild): Adjust.
24 (frame_id_p, frame_id_eq, frame_id_inner): Adjust to take into
25 account frames with unavailable stack.
26
27 * amd64-tdep.c (amd64_frame_this_id)
28 (amd64_sigtramp_frame_this_id, amd64_epilogue_frame_this_id): Use
29 frame_id_build_unavailable_stack.
30 * dwarf2-frame.c (dwarf2_frame_this_id): Likewise.
31 * i386-tdep.c (i386_frame_this_id, i386_epilogue_frame_this_id)
32 (i386_sigtramp_frame_this_id): Likewise.
33
34 2013-12-17 Andrew Burgess <aburgess@broadcom.com>
35
36 * dwarf2loc.c (read_pieced_value): Mark bits, not bytes
37 unavailable, use correct bit length.
38 * value.c (struct value): Extend comment on unavailable to
39 indicate that it is bit based.
40 (value_bits_available): New function.
41 (value_bytes_available): Call value_bits_available.
42 (value_entirely_available): Check against the bit length, not byte
43 length.
44 (mark_value_bits_unavailable): New function.
45 (mark_value_bytes_unavailable): Move contents to
46 mark_value_bits_unavailable, call to same.
47 (memcmp_with_bit_offsets): New function.
48 (value_available_contents_bits_eq): New function, takes the
49 functionality from value_available_contents_eq but uses
50 memcmp_with_bit_offsets now, and is bit not byte based.
51 (value_available_contents_eq): Move implementation into
52 value_available_contents_bits_eq, call to same.
53 (value_contents_copy_raw): Work on bits, not bytes.
54 (unpack_value_bits_as_long_1): Check availability in bits, not
55 bytes.
56 * value.h (value_bits_available): Declare new function.
57 (mark_value_bits_unavailable): Declare new function.
58
59 2013-12-16 Pierre Muller <muller@sourceware.org>
60
61 Fix compilation error for cygwin native build.
62 * windows-nat.c (windows_ensure_ntdll_loaded) [__USEWIDE]:
63 Call wcstombs.
64
65 2013-12-16 Pedro Alves <palves@redhat.com>
66
67 PR 16329
68 * sol-thread.c (check_for_thread_db): If the target can't run or
69 isn't a core, return without pushing.
70
71 2013-12-15 Joel Brobecker <brobecker@adacore.com>
72
73 Revert the following commit:
74 * solib.c (solib_map_sections): Remove code overwriting
75 SO->SO_NAME with the bfd's filename.
76
77 Make the following changes required after the revert above:
78 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
79 returned bfd to a copy of the synthetic pathname.
80 * solib-darwin.c (darwin_bfd_open): Set the filename of the
81 returned bfd to a copy of PATHNAME.
82
83 2013-12-13 Joel Brobecker <brobecker@adacore.com>
84
85 * ada-lang.c (ada_array_bound_from_type): Move the declaration
86 and assignment of variable "elt_type" inside the else block
87 where it is used. Add two missing check_typedef calls.
88 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
89 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
90
91 2013-12-13 Joel Brobecker <brobecker@adacore.com>
92
93 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
94 between 'struct type *' and 'arr_type'.
95
96 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
97
98 PR python/16113
99 * NEWS (Python Scripting): Add entry for the new feature and the
100 new attribute of gdb.Field objects.
101 * python/py-type.c (gdbpy_is_field): New function
102 (convert_field): Add 'parent_type' attribute to gdb.Field
103 objects.
104 * python/py-value.c (valpy_getitem): Allow subscript value to be
105 a gdb.Field object.
106 (value_has_field): New function
107 (get_field_flag): New function
108 * python/python-internal.h (gdbpy_is_field): Add declaration.
109
110 2013-12-12 Pedro Alves <palves@redhat.com>
111
112 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
113 const, and remove casts.
114
115 2013-12-12 Pedro Alves <palves@redhat.com>
116
117 * cli/cli-cmds.c (source_script_from_stream) Use have_python
118 instead of catching UNSUPPORTED_ERROR.
119 * exceptions.h (UNSUPPORTED_ERROR): Delete.
120 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
121 error if called.
122 * python/python.h (have_python): New static inline function.
123
124 2013-12-11 Doug Evans <dje@google.com>
125
126 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
127 "can't find DWO" warning.
128
129 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
130
131 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
132 to get_probe_argument_count and evaluate_probe_argument.
133 * probe.c (get_probe_argument_count): Adjust declaration to accept
134 frame. Pass frame to probe_ops's get_probe_argument_count.
135 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
136 (probe_safe_evaluate_at_pc): Pass frame to
137 get_probe_argument_count and evaluate_probe_argument.
138 * probe.h (struct probe_ops) <get_probe_argument_count,
139 evaluate_probe_argument>: Adjust declarations to accept frame.
140 (get_probe_argument_count, evaluate_probe_argument): Likewise.
141 * solib-svr4.c (solib_event_probe_action): Get current frame.
142 Pass it to get_probe_argument_count.
143 (svr4_handle_solib_event): Get current frame. Pass it to
144 get_probe_argument_count and evaluate_probe_argument.
145 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
146 accept gdbarch. Do not obtain it from the probe's objfile.
147 (stap_get_probe_argument_count): Adjust declaration to accept
148 frame. Obtain gdbarch from the frame. Call generic
149 can_evaluate_probe_arguments. Pass gdbarch to
150 stap_parse_probe_arguments.
151 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
152 stap_parse_probe_arguments.
153 (stap_evaluate_probe_argument): Adjust declaration to accept
154 frame. Obtain gdbarch from the frame. Pass gdbarch to
155 stap_get_arg.
156 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
157 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
158 get_probe_argument_count and evaluate_probe_argument.
159
160 2013-12-10 Doug Evans <dje@google.com>
161
162 PR 16286
163 * c-lang.c (c_get_string): Ignore the declared size of the object
164 if a specific length is requested.
165
166 2013-12-10 Doug Evans <dje@google.com>
167
168 * interps.h (interp_exec_p): Delete.
169 * interps.c (interp_exec_p): Delete.
170 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
171 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
172
173 2013-12-10 Yao Qi <yao@codesourcery.com>
174
175 * amd64-tdep.c (amd64_analyze_stack_align): Call
176 target_read_code instead of target_read_memory.
177 (amd64_analyze_prologue): Call read_code_unsigned_integer
178 instead of read_memory_unsigned_integer. Call read_code
179 instead of read_memory.
180 (amd64_skip_xmm_prologue): Likewise.
181
182 2013-12-10 Yao Qi <yao@codesourcery.com>
183
184 * corefile.c (read_code): New function.
185 (read_code_integer): New function.
186 (read_code_unsigned_integer): New function.
187 * gdbcore.h (read_code): Declare.
188 (read_code_integer): Declare.
189 (read_code_unsigned_integer): Declare.
190 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
191 of target_read_memory. Call read_code_unsigned_integer instead
192 of read_memory_unsigned_integer.
193 (i386_analyze_struct_return): Likewise.
194 (i386_skip_probe): Likewise.
195 (i386_analyze_stack_align): Likewise.
196 (i386_match_pattern): Likewise.
197 (i386_skip_noop): Likewise.
198 (i386_analyze_frame_setup): Likewise.
199 (i386_analyze_register_saves): Likewise.
200 (i386_skip_prologue): Likewise.
201 (i386_skip_main_prologue): Likewise.
202 (i386_frame_cache_1): Likewise.
203
204 2013-12-10 Yao Qi <yao@codesourcery.com>
205
206 * infrun.c: Include "target-dcache.h".
207 (prepare_for_detach): Call target_dcache_invalidate.
208 (wait_for_inferior): Likewise.
209 (fetch_inferior_event): Likewise.
210 (infrun_thread_stop_requested_callback): Likewise. Set
211 overlay_cache_invalid to 1.
212
213 2013-12-10 Joel Brobecker <brobecker@adacore.com>
214
215 * symtab.c (symbol_find_demangled_name): Add handling of
216 Ada symbols.
217
218 2013-12-10 Joel Brobecker <brobecker@adacore.com>
219
220 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
221 * NEWS: Expand the entry documenting the new -exec-run --start
222 option to mention the corresponding new entry in the output of
223 "-list-features".
224
225 2013-12-10 Joel Brobecker <brobecker@adacore.com>
226
227 * windows-nat.c (handle_load_dll): Add comments.
228 (windows_ensure_ntdll_loaded): New function.
229 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
230 Add FIXME comment.
231
232 2013-12-08 Joel Brobecker <brobecker@adacore.com>
233
234 GDB 7.6.2 released.
235
236 2013-12-08 Yao Qi <yao@codesourcery.com>
237
238 * stack.c (frame_info): Initialize variable caller_pc.
239
240 2013-12-06 Pedro Alves <palves@redhat.com>
241
242 * frame.c (enum cached_copy_status): New enum.
243 (struct frame_info) <prev_pc.p>: Change type to enum
244 cached_copy_status.
245 (fprint_frame): Handle not saved and unavailable prev_pc values.
246 (frame_unwind_pc_if_available): Delete and merge contents into ...
247 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
248 to use enum cached_copy_status.
249 (frame_unwind_caller_pc_if_available): Delete.
250 (create_new_frame): Adjust.
251 * frame.h (frame_unwind_caller_pc_if_available): Delete
252 declaration.
253 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
254 frame_unwind_caller_pc_if_available, and handle
255 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
256 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
257 (val_print_not_saved): New function.
258 * valprint.h (val_print_not_saved): Declare.
259
260 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
261 Pedro Alves <palves@redhat.com>
262
263 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
264 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
265 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
266 * spu-tdep.c (spu_software_single_step): Throw
267 OPTIMIZED_OUT_ERROR.
268 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
269
270 2013-12-06 Tom Tromey <tromey@redhat.com>
271
272 * objfiles.c (free_objfile): Update comment.
273
274 2013-12-06 Tom Tromey <tromey@redhat.com>
275
276 * objfiles.h (objfile_to_front): Remove.
277 * objfiles.c (objfile_to_front): Remove.
278
279 2013-12-06 Tom Tromey <tromey@redhat.com>
280
281 * minsyms.c (get_symbol_leading_char): Remove unnecessary
282 declaration.
283
284 2013-12-06 Tom Tromey <tromey@redhat.com>
285
286 * psympriv.h (struct partial_symtab) <user>: Move earlier.
287
288 2013-12-06 Tom Tromey <tromey@redhat.com>
289
290 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
291 (list_command): Likewise.
292
293 2013-12-06 Tom Tromey <tromey@redhat.com>
294
295 * psymtab.c (allocate_psymtab): Put the filename in the filename
296 bcache.
297
298 2013-12-06 Tom Tromey <tromey@redhat.com>
299
300 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
301 * symtab.h (struct symtab) <dirname>: Now const.
302
303 2013-12-06 Tom Tromey <tromey@redhat.com>
304
305 * symfile.c (allocate_symtab): Remove cast.
306 * symtab.h (struct symtab) <filename>: Now const.
307
308 2013-12-06 Tom Tromey <tromey@redhat.com>
309
310 * break-catch-throw.c (fetch_probe_arguments): Use
311 get_probe_argument_count and evaluate_probe_argument.
312 * elfread.c (elf_get_probe_argument_count)
313 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
314 (elf_compile_to_ax): Remove.
315 (elf_probe_fns): Update.
316 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
317 (evaluate_probe_argument): Call method on probe, not via sym
318 functions.
319 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
320 evaluate_probe_argument.
321 (compile_probe_arg): Use get_probe_argument_count. Call method on
322 probe, not via sym functions.
323 * symfile-debug.c (debug_sym_get_probe_argument_count)
324 (debug_can_evaluate_probe_arguments)
325 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
326 Remove.
327 (debug_sym_probe_fns): Remove.
328 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
329 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
330 sym_compile_to_ax>: Remove fields.
331
332 2013-12-06 Pierre Muller <muller@sourceware.org>
333
334 Fix completion for pascal language.
335 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
336 (exp : field_exp name COMPLETE): New rule.
337 (exp : SIZEOF): Set correct current_type.
338 (last_was_structop): Remove static variable.
339 (yylex): Remove saw_structop local variable.
340 Adapt code to removal of variables above.
341
342 2013-12-06 Joel Brobecker <brobecker@adacore.com>
343
344 * frame.c (get_prev_frame_1): Delete variable "this_id".
345 Replace its use by a call to get_frame_id.
346
347 2013-12-05 Anthony Green <green@moxielogic.com>
348
349 * moxie-tdep.c (moxie_software_single_step): New function.
350 (INST2OFFSET): New helper macro.
351 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
352 (moxie_process_readu): Move this up in the file.
353
354 2013-12-05 Doug Evans <xdje42@gmail.com>
355
356 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
357
358 2013-12-05 Joel Brobecker <brobecker@adacore.com>
359 Tristan Gingold <gingold@adacore.com>
360
361 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
362 Accept version 2. Ignore operations using opcode 6.
363
364 2013-12-05 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lex.l (find_dot_all): Fix coding style violations.
367
368 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
369
370 * NEWS: Add section for Intel(R) Architecture Instructions
371 Extesions mentioning MPX.
372
373 2013-12-03 Joel Brobecker <brobecker@adacore.com>
374
375 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
376
377 2013-12-03 Joel Brobecker <brobecker@adacore.com>
378
379 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
380 when parse_exp_1 threw an error. Add comment.
381
382 2013-12-03 Joel Brobecker <brobecker@adacore.com>
383
384 * NEWS: Mention "-list-features" in the entry documenting
385 the support for the "--language" option.
386
387 2013-12-03 Tom Tromey <tromey@redhat.com>
388 Jan Kratochvil <jan.kratochvil@redhat.com>
389 Doug Evans <dje@google.com>
390 Samuel Bronson <naesten@gmail.com>
391
392 Bring back gdb-add-index as a contrib script.
393 * contrib/gdb-add-index.sh: New file.
394 * NEWS: Note the addition.
395
396 2013-12-03 Samuel Bronson <naesten@gmail.com>
397
398 * MAINTAINERS (Write After Approval): Add myself to the list.
399
400 2013-12-03 Joel Brobecker <brobecker@adacore.com>
401
402 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
403
404 2013-12-03 Joel Brobecker <brobecker@adacore.com>
405
406 * mi/mi-main.c: Remove trailing spaces throughout.
407
408 2013-12-03 Pedro Alves <palves@redhat.com>
409 Joel Brobecker <brobecker@adacore.com>
410
411 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
412 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
413 of a regular error when the GDB/MI command does not exist.
414 * mi/mi-main.c (mi_cmd_list_features): Add
415 "undefined-command-error-code".
416 (mi_print_exception): Print an "undefined-command"
417 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
418 * NEWS: Add entry documenting the new "code" variable in
419 "^error" result records.
420
421 2013-12-03 Joel Brobecker <brobecker@adacore.com>
422
423 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
424 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
425 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
426 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
427 field to output of "-list-features".
428
429 * NEWS: Add entry for new -info-gdb-mi-command.
430
431 2013-12-02 Doug Evans <dje@google.com>
432 Jan Kratochvil <jan.kratochvil@redhat.com>
433
434 * objfiles.c (allocate_objfile): Save original_name as an absolute
435 path.
436 * objfiles.h (struct objfile): Expand comment on original_name.
437 * source.c (openp): Call gdb_abspath.
438 * utils.c (gdb_abspath): New function.
439 * utils.h (gdb_abspath): Declare.
440
441 2013-12-02 Pedro Alves <palves@redhat.com>
442
443 * dcache.c (dcache_read_line): Use target_read_raw_memory.
444 * target.c (target_read_raw_memory): New function.
445 (target_read_stack, target_write_memory, target_write_raw_memory):
446 Update comment.
447 (target_read_code): Add comment.
448 * target.h (target_read_raw_memory): Declare.
449
450 2013-12-02 Pedro Alves <palves@redhat.com>
451
452 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
453 unconditionally.
454
455 2013-12-02 Pedro Alves <pedro@codesourcery.com>
456 Maciej W. Rozycki <macro@codesourcery.com>
457
458 * remote.c (putpkt_for_catch_errors): Remove function.
459 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
460 gracefully.
461
462 2013-12-02 Pedro Alves <palves@redhat.com>
463
464 PR remote/15974
465 * remote-notif.c (handle_notification): Return early if no
466 notification is found.
467
468 2013-12-02 Joel Brobecker <brobecker@adacore.com>
469
470 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
471 preprocessor check.
472
473 2013-12-02 Joel Brobecker <brobecker@adacore.com>
474
475 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
476
477 2013-12-02 Joel Brobecker <brobecker@adacore.com>
478
479 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
480 * ctf.c (ctf_start): Remove obsolete comment.
481
482 2013-12-02 Joel Brobecker <brobecker@adacore.com>
483
484 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
485
486 2013-11-30 Doug Evans <xdje42@gmail.com>
487
488 * auto-load.h (script_language): New members name, auto_load_enabled.
489 Add missing comments on struct members.
490 (auto_load_objfile_script): Delete.
491 * auto-load.c: #include "cli/cli-cmds.h".
492 (auto_load_gdb_scripts_enabled): New function.
493 (script_language_gdb): Update, add new members.
494 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
495 and call to maybe_add_script moved to caller.
496 (auto_load_objfile_script_1): Auto-load safe-checking and
497 call to maybe_add_script moved here.
498 (auto_load_objfile_script): Make static. Early exit if support for
499 scripting language hasn't been compiled in, or auto-loading has been
500 disabled.
501 (source_section_scripts): Argument "source_name" renamed to
502 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
503 with section_name. Skip loading script if support for scripting
504 language hasn't been compiled in, or auto-loading has been disabled.
505 Call language->source_script_for_objfile instead of calling
506 source_python_script_for_objfile directly.
507 (load_auto_scripts_for_objfile): Update.
508 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
509 (gdbpy_load_auto_script_for_objfile): Delete.
510 (auto_load_python_scripts_enabled): New function.
511 (script_language_python): Update, add new members.
512 (gdbpy_script_language_defn): New function.
513 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
514 (gdbpy_script_language_defn): Declare.
515
516 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
517 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
518 (source_section_scripts): Moved here from py-auto-load.c.
519 (auto_load_section_scripts): Ditto.
520 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
521 auto-load.c, renamed AUTO_SECTION_NAME.
522 (source_section_scripts, auto_load_section_scripts): Moved to
523 auto-load.c.
524
525 2013-11-30 Yao Qi <yao@codesourcery.com>
526
527 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
528
529 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
530
531 * gdbarch.sh: Remove include of "gdb_string.h", replace by
532 <string.h>.
533
534 2013-11-29 Doug Evans <xdje42@gmail.com>
535
536 * python/py-auto-load.c (source_section_scripts): Move comment to
537 more relevant location.
538
539 Whitespace cleanup.
540 * python/py-breakpoint.c: Remove trailing whitespace.
541 * python/py-cmd.c: Ditto.
542 * python/py-evts.c: Ditto.
543 * python/py-finishbreakpoint.c: Ditto.
544 * python/py-frame.c: Ditto.
545 * python/py-function.c: Ditto.
546 * python/py-inferior.c: Ditto.
547 * python/py-infthread.c: Ditto.
548 * python/py-param.c: Ditto.
549 * python/py-prettyprint.c: Ditto.
550 * python/py-symbol.c: Ditto.
551 * python/py-type.c: Ditto.
552 * python/py-utils.c: Ditto.
553 * python/py-value.c: Ditto.
554 * python/python-internal.h: Ditto.
555 * python/python.c: Ditto.
556
557 2013-11-29 Pedro Alves <palves@redhat.com>
558
559 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
560
561 2013-11-29 Pedro Alves <palves@redhat.com>
562
563 * breakpoint.c (build_target_condition_list): Release previous
564 conditions.
565 (build_target_command_list): Release previous commands.
566 (bp_location_dtor): Release target conditions and commands.
567 * remote.c (remote_add_target_side_condition): Don't release
568 conditions.
569 (remote_add_target_side_commands): Don't release commands.
570
571 2013-11-29 Yao Qi <yao@codesourcery.com>
572 Pedro Alves <palves@redhat.com>
573
574 * dcache.c (dcache_read_line): Use current_target.beneath
575 instead of &current_target.
576 * target.c (memory_xfer_partial_1): Factor code out to ...
577 (raw_memory_xfer_partial): ... it. New function.
578 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
579 is TARGET_OBJECT_RAW_MEMORY.
580
581 2013-11-28 Doug Evans <xdje42@gmail.com>
582
583 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
584 breakpoint_object. All uses updated.
585 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
586 breakpoint_object. All uses updated.
587 * python.c (*): All uses of breakpoint_object updated.
588 * python.h (*): All uses of breakpoint_object updated.
589 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
590 * python/py-finishbreakpoint.c (*): Ditto.
591
592 2013-11-28 Doug Evans <xdje42@gmail.com>
593
594 * configure.ac: Add comments delineating libpython and libmcheck.
595 * configure: Regenerate.
596
597 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
598 Pedro Alves <palves@redhat.com>
599
600 * valprint.c (value_check_printable): If the value is entirely
601 unavailable, print a single "<unavailable>" instead of printing
602 all subfields.
603
604 2013-11-28 Pedro Alves <palves@redhat.com>
605
606 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
607 Add "set debug frame" output.
608 (frame_stop_reason_symbol_string): New function.
609
610 2013-11-28 Pedro Alves <palves@redhat.com>
611
612 * frame-unwind.c (default_frame_unwind_stop_reason): Return
613 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
614 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
615
616 2013-11-28 Pedro Alves <palves@redhat.com>
617
618 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
619 set the unwind stop reason to UNWIND_OUTERMOST, not
620 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
621
622 2013-11-28 Pedro Alves <palves@redhat.com>
623
624 * frame.c (frame_unwind_register): Say the register was "not
625 saved" instead of "optimized out".
626
627 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
628
629 PR 16152
630 * configure: Rebuild.
631 * configure.ac: Tighten cygwin detection check.
632
633 2013-11-27 Pedro Alves <palves@redhat.com>
634
635 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
636 register in the previous frame's arch.
637
638 2013-11-27 Pedro Alves <palves@redhat.com>
639
640 * frame-unwind.c (frame_unwind_got_optimized): Return
641 an lval_register value instead of a not_lval value.
642
643 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
644
645 * frame.c: Include "valprint.h".
646 (frame_unwind_register_value): Use value_optimized_out.
647 * value.c (value_fetch_lazy): Likewise.
648
649 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
650
651 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
652
653 2013-11-26 Tom Tromey <tromey@redhat.com>
654
655 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
656 2013-11-22.
657
658 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
659
660 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
661 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
662 (HAS_MPX): New macro.
663 (HAS_AVX): New macro.
664 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
665
666 2013-11-25 Keith Seitz <keiths@redhat.com>
667
668 PR c++/14819
669 * c-exp.y (classify_inner_name): If no matching symbol was
670 found, try looking up the token as a base class.
671 Likewise if a constructor was found.
672 * cp-namespace.c (find_type_baseclass_by_name): New function.
673 * cp-support.h (find_type_baseclass_by_name): Declare.
674 * valops.c (value_struct_elt_for_reference): If we get
675 a non-static field, try to get a value based on the
676 current instance, if any.
677
678 2013-11-24 Yao Qi <yao@codesourcery.com>
679
680 * disasm.c (dis_asm_read_memory): Call target_read_code
681 instead of target_read_memory.
682
683 2013-11-24 Yao Qi <yao@codesourcery.com>
684
685 * NEWS: Add note on new "set code-cache" option.
686 * target-dcache.c (code_cache_enabled_1): New variable.
687 (code_cache_enabled): New variable.
688 (show_code_cache, set_code_cache): New function.
689 (code_cache_enabled_p): New function.
690 (_initialize_target_dcache): Register command.
691 * target-dcache.h (code_cache_enabled_p): Declare.
692 * target.c (memory_xfer_partial_1):Handle
693 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
694 (target_read_code): New function.
695 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
696 New.
697 (target_read_code): Declare.
698
699 2013-11-24 Yao Qi <yao@codesourcery.com>
700
701 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
702 (stack_cache_enabled_1): ... this. New variable.
703 (stack_cache_enabled_p): Rename to ...
704 (stack_cache_enabled): ... this. New variable.
705 (set_stack_cache_enabled_p): Rename to ...
706 (set_stack_cache): ... this. Update caller.
707 (show_stack_cache_enabled_p): Rename to ...
708 (show_stack_cache): ... this. Update caller.
709 (stack_cache_enabled): Rename to ...
710 (stack_cache_enabled_p): ... this. Update caller.
711 (_initialize_target_dcache): Replace "data cache" with
712 "target memory cache".
713 * target-dcache.h (stack_cache_enabled): Remove declaration.
714 (stack_cache_enabled_p): Add declaration.
715
716 2013-11-23 Doug Evans <xdje42@gmail.com>
717
718 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
719 superfluous.
720
721 2013-11-23 Doug Evans <xdje42@gmail.com>
722
723 * python/py-frame.c (frapy_block): Fix error message text.
724
725 2013-11-23 Doug Evans <xdje42@gmail.com>
726
727 * cli/cli-script.c (multi_line_command_p): New function.
728 (recurse_read_control_structure, read_command_lines_1): Call it.
729 (execute_control_command): Consistently have a blank line between
730 each case.
731
732 2013-11-22 Sterling Augustine <saugustine@google.com>
733
734 PR gdb/16196:
735 * valprint.c (read_string): Set new variable fetchlen based on
736 fetchlimit and size. Use it in call to partial_memory_read.
737 Update comment.
738
739 2013-11-22 Tom Tromey <tromey@redhat.com>
740
741 PR backtrace/16155:
742 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
743 the return address column is unspecified.
744
745 2013-11-22 Tom Tromey <tromey@redhat.com>
746 Pedro Alves <palves@redhat.com>
747
748 PR backtrace/16155
749 * value.c (value_fetch_lazy): Internal error if
750 get_frame_register_value returns the same register.
751
752 2013-11-22 Pedro Alves <palves@redhat.com>
753 Tom Tromey <tromey@redhat.com>
754
755 * frame.c (frame_stash_add): Now returns whether a frame with the
756 same ID was already known.
757 (compute_frame_id): New function, factored out from get_frame_id.
758 (get_frame_id): No longer lazilly compute the frame id here.
759 (get_prev_frame_if_no_cycle): New function. Detects wider stack
760 cycles.
761 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
762 and checking for stack cycles here.
763
764 2013-11-22 Pedro Alves <palves@redhat.com>
765
766 PR 16155
767 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
768 this frame and the new previous frame, not between this frame and
769 the next frame.
770
771 2013-11-22 Pedro Alves <palves@redhat.com>
772
773 PR 16155
774 * dwarf2-frame.c (struct dwarf2_frame_cache)
775 <checked_tailcall_bottom, entry_cfa_sp_offset,
776 entry_cfa_sp_offset_p>: New fields.
777 (dwarf2_frame_cache): Adjust to use the new cache fields instead
778 of locals. Don't call dwarf2_tailcall_sniffer_first here.
779 (dwarf2_frame_prev_register): Call it here, but only once.
780
781 2013-11-21 Doug Evans <xdje42@gmail.com>
782
783 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
784 (type_equality_entry): Move here from python/py-type.c.
785 (type_equality_entry_d): Ditto.
786 (compare_maybe_null_strings, check_types_equal): Ditto.
787 (check_types_worklist, types_deeply_equal): Ditto.
788 * gdbtypes.h (types_deeply_equal): Declare.
789 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
790 (typy_richcompare): Update.
791
792 2013-11-20 Joel Brobecker <brobecker@adacore.com>
793
794 * python/py-value.c (is_intlike): Delete.
795 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
796 by use of is_integral_type.
797 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
798 by use of is_integral_type and check for TYPE_CODE_PTR.
799
800 2013-11-20 Tom Tromey <tromey@redhat.com>
801
802 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
803 strerror module.
804 * gnulib/aclocal.m4: Update.
805 * gnulib/config.in: Update.
806 * gnulib/configure: Update.
807 * gnulib/import/Makefile.am: Update.
808 * gnulib/import/Makefile.in: Update.
809 * gnulib/import/errno.in.h: Remove.
810 * gnulib/import/intprops.h: Remove.
811 * gnulib/import/m4/errno_h.m4: Remove.
812 * gnulib/import/m4/gnulib-cache.m4: Update.
813 * gnulib/import/m4/gnulib-comp.m4: Update.
814 * gnulib/import/m4/strerror.m4: Remove.
815 * gnulib/import/m4/sys_socket_h.m4: Remove.
816 * gnulib/import/strerror-override.c: Remove.
817 * gnulib/import/strerror-override.h: Remove.
818 * gnulib/import/strerror.c: Remove.
819 * gnulib/update-gnulib.sh: Update.
820
821 2013-11-20 Yao Qi <yao@codesourcery.com>
822
823 * target-dcache.c (target_dcache_get_or_init): Call
824 set_address_space_data if 'dcache' is NULL.
825
826 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
827
828 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
829
830 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
831
832 * python/lib/gdb/command/bound_register.py: New file.
833 * data-directory/Makefile.in: Copy bond_register.py to the right path
834 to be initialized at gdb startup.
835
836 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
837
838 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
839 Add MPX registers.
840 (amd64_linux_read_description): Add initialization for MPX and
841 AVX independently.
842 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
843 (amd64_linux_gregset_reg_offset): Add MPX registers.
844 (amd64_linux_core_read_description): Add initialization for MPX
845 registers.
846 (_initialize_amd64_linux_tdep): Initialize MPX targets.
847 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
848 register on the list.
849 (tdesc_amd64_mpx_linux) Add new target for MPX.
850 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
851 (amd64_mpx_names): MPX register names.
852 (amd64_init_abi): Add MPX register while initializing the ABI.
853 (_initialize_amd64_tdep): Initialize MPX targets.
854 * amd64-tdep.h (amd64_regnum): Add MPX registers.
855 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
856
857 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
858
859 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
860 registers on the range of registers to be read from
861 xsave buffer.
862 (i386_linux_read_description): Add case for MPX.
863 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
864 (i386_linux_gregset_reg_offset): Add MPX registers.
865 (i386_linux_core_read_description): Initialize also MPX.
866 (_initialize_i386_linux_tdep): Add mpx initialization.
867 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
868 mpx_register_names.
869 (i386_regnum): Add MPX registers.
870 (I386_MPX_NUM_REGS): New macro.
871 (i386_bnd_regnum_p): New function.
872 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
873 number of registers to be the number of BNDSTATUS.
874 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
875 * i386-tdep.c: Include features/i386/i386-mpx.c.
876 (i386_mpx_names): Add MPX register names array.
877 (i386_bnd_names): Add bnd pseudo register names array.
878 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
879 registers.
880 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
881 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
882 registers.
883 (i386_bnd_type): New function.
884 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
885 register types.
886 (i386_pseudo_register_read_into_value): Add bnd case.
887 (i386_pseudo_register_write): Add bnd pseudo registers.
888 (i386_register_reggroup_p): Add MPX register to the group all.
889 (i386_validate_tdesc_p): Add MPX to the target description
890 validation.
891 (i386_pseudo_register_name): Add bnd pseudo registers.
892 (i386_gdbarch_init): Add MPX for architecture initialization.
893 (_initia_initialize_i386_tdep): Add mpx initialization.
894 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
895 XSAVE buffer.
896 (XSAVE_MPX_ADDR): New macro.
897 (i387_supply_xsave): Add MPX case.
898 (i387_collect_xsave): Add MPX case.
899 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
900 (I387_BNDCFGU_REGNUM): New macro.
901 (I387_NUM_MPX_REGS): New macro.
902 (I387_NUM_BND_REGS): New macro.
903 (I387_NUM_MPX_CTRL_REGS): New macro.
904 (I387_MPXEND_REGNUM): New macro.
905 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
906 (I386_XSTATE_BNDCFG): Likewise.
907 (I386_XSTATE_MPX_MASK): Likewise.
908 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
909 (I386_XSTATE_BNDREGS_SIZE): New macro.
910 (I386_XSTATE_BNDCFG_SIZE): Likewise.
911 (I386_XSTATE_SIZE): Adapt for MPX.
912 (I386_XSTATE_MAX_SIZE): Likewise.
913
914 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
915
916 * features/i386/Makefile: Adapts for using MPX registers.
917 * features/i386/32bit-mpx.xml: New file.
918 * features/i386/64bit-mpx.xml: Likewise.
919 * features/i386/amd64-mpx-linux.c: Likewise.
920 * features/i386/amd64-mpx-linux.xml: Likewise.
921 * features/i386/amd64-mpx.c: Likewise.
922 * features/i386/amd64-mpx.xml: Likewise.
923 * features/i386/i386-mpx-linux.c: Likewise.
924 * features/i386/i386-mpx-linux.xml: Likewise.
925 * features/i386/i386-mpx.c: Likewise.
926 * features/i386/i386-mpx.xml: Likewise.
927 * regformats/i386/amd64-mpx-linux.dat: New file.
928 * regformats/i386/amd64-mpx.dat: Likewise.
929 * regformats/i386/i386-mpx-linux.dat: Likewise.
930 * regformats/i386/i386-mpx.dat: Likewise.
931
932 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
933
934 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
935 Modified logic of creating a bitfield to be in sync with
936 tdesc_gdb_type.
937
938 2013-11-20 Will Newton <will.newton@linaro.org>
939
940 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
941 error message.
942
943 2013-11-20 Yao Qi <yao@codesourcery.com>
944
945 * progspace.h (struct address_space_data): Declare.
946 * target-dcache.c: Include "progspace.h".
947 (target_dache): Remove.
948 (target_dcache_aspace_key): New.
949 (target_dcache_cleanup): New function.
950 (target_dcache_init_p): Get data through
951 target_dcache_aspace_key.
952 (target_dcache_invalidate): Likewise.
953 (target_dcache_get): Likewise.
954 (target_dcache_get_or_init): Likewise.
955 (_initialize_target_dcache): Initialize
956 target_dcache_aspace_key.
957
958 2013-11-20 Yao Qi <yao@codesourcery.com>
959
960 * progspace.c (struct address_space): Update comments.
961 <REGISTRY_FIELDS>: New fields.
962 DEFINE_REGISTRY for address_space.
963 (new_address_space): Call address_space_alloc_data.
964 (free_address_space): Call address_space_free_data.
965 * progspace.h: Use DECLARE_REGISTRY.
966
967 2013-11-20 Yao Qi <yao@codesourcery.com>
968
969 * Makefile.in (SFILES):Add target-dcache.c.
970 (HFILES_NO_SRCDIR): Add target-dcache.h.
971 (COMMON_OBS): Add target-dcache.o.
972 * dcache.c: Remove inclusion to "target.h". Include
973 "target-dcache.h".
974 * memattr.c: Include "target-dcache.h".
975 * top.c: Likewise.
976 * tracepoint.c: Likewise.
977 * target.c: (stack_cache_enabled_p_1): Move to
978 target-dcache.c.
979 (stack_cache_enabled_p): Likewise.
980 (set_stack_cache_enabled_p): Likewise.
981 (show_stack_cache_enabled_p): Likewise.
982 (target_dcache, target_dcache_init_p): Likewise.
983 (target_dcache_invalidate): Likewise.
984 (target_dcache_get, target_dcache_get_or_init): Likewise.
985 (memory_xfer_partial_1): Call function stack_cache_enabled.
986 (initialize_target): Move code to target-dcache.c.
987 * target.h (target_dcache_invalidate): Move to
988 target-dcache.h.
989 (target_dcache_get): Likewise.
990 * target-dcache.c: New.
991 * target-dcache.h: New.
992
993 2013-11-20 Yao Qi <yao@codesourcery.com>
994
995 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
996 it is initialized.
997
998 2013-11-20 Yao Qi <yao@codesourcery.com>
999
1000 * dcache.c (last_cache): Remove.
1001 (dcache_free, dcache_init): Update.
1002 (dcache_update):
1003 (dcache_print_line): Add parameter 'dcache'. Replace
1004 'target_dcache' with 'dcache'.
1005 (dcache_info): Move code to dcache_info_1. Call
1006 'dcache_info_1'.
1007 (dcache_info_1): New function.
1008 (set_dcache_size): Call target_dcache_invalidate.
1009 (set_dcache_line_size): Call target_dcache_invalidate.
1010 * target.c (target_dcache_init_p): New function.
1011 (target_dcache_invalidate): Check target_dcache_init_p first.
1012 (target_dcache_get, target_dcache_get_or_init): New function.
1013 (memory_xfer_partial_1): Adjust.
1014 (initialize_target): Don't initialize 'target_dcache'.
1015 * target.h (struct dcache_struct): Declare.
1016 (target_dcache_get): Declare.
1017
1018 2013-11-19 Yao Qi <yao@codesourcery.com>
1019
1020 * varobj.c (varobj_get_type): Fix typo.
1021
1022 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1023
1024 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
1025
1026 2013-11-19 Joel Brobecker <brobecker@adacore.com>
1027
1028 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
1029 "stat.h".
1030
1031 2013-11-18 Tom Tromey <tromey@redhat.com>
1032
1033 * common/gdb_stat.h: Remove.
1034 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
1035 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
1036 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
1037 * corefile.c: Use sys/stat.h, not gdb_stat.h.
1038 * ctf.c: Use sys/stat.h, not gdb_stat.h.
1039 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
1040 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
1041 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
1042 * exec.c: Use sys/stat.h, not gdb_stat.h.
1043 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
1044 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
1045 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
1046 * jit.c: Use sys/stat.h, not gdb_stat.h.
1047 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
1048 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
1049 * main.c: Use sys/stat.h, not gdb_stat.h.
1050 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
1051 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
1052 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
1053 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
1054 * procfs.c: Use sys/stat.h, not gdb_stat.h.
1055 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
1056 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
1057 * remote.c: Use sys/stat.h, not gdb_stat.h.
1058 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
1059 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
1060 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
1061 * source.c: Use sys/stat.h, not gdb_stat.h.
1062 * symfile.c: Use sys/stat.h, not gdb_stat.h.
1063 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
1064 * symtab.c: Use sys/stat.h, not gdb_stat.h.
1065 * top.c: Use sys/stat.h, not gdb_stat.h.
1066 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
1067
1068 2013-11-18 Tom Tromey <tromey@redhat.com>
1069
1070 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1071 sys_stat.
1072 * gnulib/aclocal.m4: Update.
1073 * gnulib/config.in: Update.
1074 * gnulib/configure: Update.
1075 * gnulib/import/Makefile.am: Update.
1076 * gnulib/import/Makefile.in: Update.
1077 * gnulib/import/m4/gnulib-cache.m4: Update.
1078 * gnulib/import/m4/gnulib-comp.m4: Update.
1079 * gnulib/import/m4/sys_stat_h.m4: New.
1080 * gnulib/import/m4/time_h.m4: New.
1081 * gnulib/import/sys_stat.in.h: New.
1082 * gnulib/import/time.in.h: New.
1083
1084 2013-11-18 Tom Tromey <tromey@redhat.com>
1085
1086 * configure: Rebuild.
1087 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1088
1089 2013-11-18 Tom Tromey <tromey@redhat.com>
1090
1091 * configure: Rebuild.
1092 * configure.ac: Don't check for unistd.h.
1093
1094 2013-11-18 Tom Tromey <tromey@redhat.com>
1095
1096 * configure: Rebuild.
1097 * configure.ac: Don't check for stdlib.h
1098 * defs.h: Include stdlib.h unconditionally.
1099
1100 2013-11-18 Tom Tromey <tromey@redhat.com>
1101
1102 * config.in: Rebuild.
1103 * configure: Rebuild.
1104 * configure.ac: Don't check for stddef.h.
1105 * defs.h: Unconditionally include stddef.h. Remove duplicate
1106 inclusion.
1107
1108 2013-11-18 Tom Tromey <tromey@redhat.com>
1109
1110 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1111 * common/gdb_dirent.h: Remove.
1112 * common/filestuff.c: Use dirent.h.
1113 * common/linux-osdata.c: Use dirent.h.
1114 (NAMELEN): Define.
1115 * config.in: Rebuild.
1116 * configure: Rebuild.
1117 * configure.ac: Don't use AC_HEADER_DIRENT.
1118 * linux-fork.c: Use dirent.h
1119 * linux-nat.c: Use dirent.h.
1120 * nto-procfs.c: Use dirent.h.
1121 * procfs.c: Use dirent.h.
1122
1123 2013-11-18 Tom Tromey <tromey@redhat.com>
1124
1125 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1126 * gnulib/aclocal.m4: Update.
1127 * gnulib/config.in: Update.
1128 * gnulib/configure: Update.
1129 * gnulib/import/Makefile.am: Update.
1130 * gnulib/import/Makefile.in: Update.
1131 * gnulib/import/dirent.in.h: New.
1132 * gnulib/import/m4/dirent_h.m4: New.
1133 * gnulib/import/m4/gnulib-cache.m4: Update.
1134 * gnulib/import/m4/gnulib-comp.m4: Update.
1135
1136 2013-11-18 Tom Tromey <tromey@redhat.com>
1137
1138 * configure: Rebuild.
1139 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1140 strings.h.
1141
1142 2013-11-18 Tom Tromey <tromey@redhat.com>
1143
1144 * common/gdb_string.h: Remove.
1145 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1146 * ada-exp.y: Use string.h, not gdb_string.h.
1147 * ada-lang.c: Use string.h, not gdb_string.h.
1148 * ada-lex.l: Use string.h, not gdb_string.h.
1149 * ada-typeprint.c: Use string.h, not gdb_string.h.
1150 * ada-valprint.c: Use string.h, not gdb_string.h.
1151 * aix-thread.c: Use string.h, not gdb_string.h.
1152 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1153 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1154 * alpha-nat.c: Use string.h, not gdb_string.h.
1155 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1156 * alpha-tdep.c: Use string.h, not gdb_string.h.
1157 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1158 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1159 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1160 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1161 * amd64-nat.c: Use string.h, not gdb_string.h.
1162 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1163 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1164 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1165 * arch-utils.c: Use string.h, not gdb_string.h.
1166 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1167 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1168 * arm-tdep.c: Use string.h, not gdb_string.h.
1169 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1170 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1171 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1172 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1173 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1174 * avr-tdep.c: Use string.h, not gdb_string.h.
1175 * ax-gdb.c: Use string.h, not gdb_string.h.
1176 * ax-general.c: Use string.h, not gdb_string.h.
1177 * bcache.c: Use string.h, not gdb_string.h.
1178 * bfin-tdep.c: Use string.h, not gdb_string.h.
1179 * breakpoint.c: Use string.h, not gdb_string.h.
1180 * build-id.c: Use string.h, not gdb_string.h.
1181 * buildsym.c: Use string.h, not gdb_string.h.
1182 * c-exp.y: Use string.h, not gdb_string.h.
1183 * c-lang.c: Use string.h, not gdb_string.h.
1184 * c-typeprint.c: Use string.h, not gdb_string.h.
1185 * c-valprint.c: Use string.h, not gdb_string.h.
1186 * charset.c: Use string.h, not gdb_string.h.
1187 * cli-out.c: Use string.h, not gdb_string.h.
1188 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1189 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1190 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1191 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1192 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1193 * cli/cli-script.c: Use string.h, not gdb_string.h.
1194 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1195 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1196 * coffread.c: Use string.h, not gdb_string.h.
1197 * common/common-utils.c: Use string.h, not gdb_string.h.
1198 * common/filestuff.c: Use string.h, not gdb_string.h.
1199 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1200 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1201 * common/signals.c: Use string.h, not gdb_string.h.
1202 * common/vec.h: Use string.h, not gdb_string.h.
1203 * core-regset.c: Use string.h, not gdb_string.h.
1204 * corefile.c: Use string.h, not gdb_string.h.
1205 * corelow.c: Use string.h, not gdb_string.h.
1206 * cp-abi.c: Use string.h, not gdb_string.h.
1207 * cp-support.c: Use string.h, not gdb_string.h.
1208 * cp-valprint.c: Use string.h, not gdb_string.h.
1209 * cris-tdep.c: Use string.h, not gdb_string.h.
1210 * d-lang.c: Use string.h, not gdb_string.h.
1211 * dbxread.c: Use string.h, not gdb_string.h.
1212 * dcache.c: Use string.h, not gdb_string.h.
1213 * demangle.c: Use string.h, not gdb_string.h.
1214 * dicos-tdep.c: Use string.h, not gdb_string.h.
1215 * disasm.c: Use string.h, not gdb_string.h.
1216 * doublest.c: Use string.h, not gdb_string.h.
1217 * dsrec.c: Use string.h, not gdb_string.h.
1218 * dummy-frame.c: Use string.h, not gdb_string.h.
1219 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1220 * dwarf2loc.c: Use string.h, not gdb_string.h.
1221 * dwarf2read.c: Use string.h, not gdb_string.h.
1222 * elfread.c: Use string.h, not gdb_string.h.
1223 * environ.c: Use string.h, not gdb_string.h.
1224 * eval.c: Use string.h, not gdb_string.h.
1225 * event-loop.c: Use string.h, not gdb_string.h.
1226 * exceptions.c: Use string.h, not gdb_string.h.
1227 * exec.c: Use string.h, not gdb_string.h.
1228 * expprint.c: Use string.h, not gdb_string.h.
1229 * f-exp.y: Use string.h, not gdb_string.h.
1230 * f-lang.c: Use string.h, not gdb_string.h.
1231 * f-typeprint.c: Use string.h, not gdb_string.h.
1232 * f-valprint.c: Use string.h, not gdb_string.h.
1233 * fbsd-nat.c: Use string.h, not gdb_string.h.
1234 * findcmd.c: Use string.h, not gdb_string.h.
1235 * findvar.c: Use string.h, not gdb_string.h.
1236 * fork-child.c: Use string.h, not gdb_string.h.
1237 * frame.c: Use string.h, not gdb_string.h.
1238 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1239 * frv-tdep.c: Use string.h, not gdb_string.h.
1240 * gdb.c: Use string.h, not gdb_string.h.
1241 * gdb_bfd.c: Use string.h, not gdb_string.h.
1242 * gdbarch.c: Use string.h, not gdb_string.h.
1243 * gdbtypes.c: Use string.h, not gdb_string.h.
1244 * gnu-nat.c: Use string.h, not gdb_string.h.
1245 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1246 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1247 * go-exp.y: Use string.h, not gdb_string.h.
1248 * go-lang.c: Use string.h, not gdb_string.h.
1249 * go32-nat.c: Use string.h, not gdb_string.h.
1250 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1251 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1252 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1253 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1254 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1255 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1256 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1257 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1258 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1259 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1260 * i386-tdep.c: Use string.h, not gdb_string.h.
1261 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1262 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1263 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1264 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1265 * i387-tdep.c: Use string.h, not gdb_string.h.
1266 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1267 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1268 * inf-child.c: Use string.h, not gdb_string.h.
1269 * inf-ptrace.c: Use string.h, not gdb_string.h.
1270 * inf-ttrace.c: Use string.h, not gdb_string.h.
1271 * infcall.c: Use string.h, not gdb_string.h.
1272 * infcmd.c: Use string.h, not gdb_string.h.
1273 * inflow.c: Use string.h, not gdb_string.h.
1274 * infrun.c: Use string.h, not gdb_string.h.
1275 * interps.c: Use string.h, not gdb_string.h.
1276 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1277 * irix5-nat.c: Use string.h, not gdb_string.h.
1278 * jv-exp.y: Use string.h, not gdb_string.h.
1279 * jv-lang.c: Use string.h, not gdb_string.h.
1280 * jv-typeprint.c: Use string.h, not gdb_string.h.
1281 * jv-valprint.c: Use string.h, not gdb_string.h.
1282 * language.c: Use string.h, not gdb_string.h.
1283 * linux-fork.c: Use string.h, not gdb_string.h.
1284 * linux-nat.c: Use string.h, not gdb_string.h.
1285 * lm32-tdep.c: Use string.h, not gdb_string.h.
1286 * m2-exp.y: Use string.h, not gdb_string.h.
1287 * m2-typeprint.c: Use string.h, not gdb_string.h.
1288 * m32c-tdep.c: Use string.h, not gdb_string.h.
1289 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1290 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1291 * m32r-rom.c: Use string.h, not gdb_string.h.
1292 * m32r-tdep.c: Use string.h, not gdb_string.h.
1293 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1294 * m68k-tdep.c: Use string.h, not gdb_string.h.
1295 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1296 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1297 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1298 * m88k-tdep.c: Use string.h, not gdb_string.h.
1299 * macrocmd.c: Use string.h, not gdb_string.h.
1300 * main.c: Use string.h, not gdb_string.h.
1301 * mdebugread.c: Use string.h, not gdb_string.h.
1302 * mem-break.c: Use string.h, not gdb_string.h.
1303 * memattr.c: Use string.h, not gdb_string.h.
1304 * memory-map.c: Use string.h, not gdb_string.h.
1305 * mep-tdep.c: Use string.h, not gdb_string.h.
1306 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1307 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1308 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1309 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1310 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1311 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1312 * mi/mi-console.c: Use string.h, not gdb_string.h.
1313 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1314 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1315 * mi/mi-main.c: Use string.h, not gdb_string.h.
1316 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1317 * microblaze-rom.c: Use string.h, not gdb_string.h.
1318 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1319 * mingw-hdep.c: Use string.h, not gdb_string.h.
1320 * minidebug.c: Use string.h, not gdb_string.h.
1321 * minsyms.c: Use string.h, not gdb_string.h.
1322 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1323 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1324 * mips-tdep.c: Use string.h, not gdb_string.h.
1325 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1326 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1327 * mipsread.c: Use string.h, not gdb_string.h.
1328 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1329 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1330 * monitor.c: Use string.h, not gdb_string.h.
1331 * moxie-tdep.c: Use string.h, not gdb_string.h.
1332 * mt-tdep.c: Use string.h, not gdb_string.h.
1333 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1334 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1335 * nto-procfs.c: Use string.h, not gdb_string.h.
1336 * nto-tdep.c: Use string.h, not gdb_string.h.
1337 * objc-lang.c: Use string.h, not gdb_string.h.
1338 * objfiles.c: Use string.h, not gdb_string.h.
1339 * opencl-lang.c: Use string.h, not gdb_string.h.
1340 * osabi.c: Use string.h, not gdb_string.h.
1341 * osdata.c: Use string.h, not gdb_string.h.
1342 * p-exp.y: Use string.h, not gdb_string.h.
1343 * p-lang.c: Use string.h, not gdb_string.h.
1344 * p-typeprint.c: Use string.h, not gdb_string.h.
1345 * parse.c: Use string.h, not gdb_string.h.
1346 * posix-hdep.c: Use string.h, not gdb_string.h.
1347 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1348 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1349 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1350 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1351 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1352 * printcmd.c: Use string.h, not gdb_string.h.
1353 * procfs.c: Use string.h, not gdb_string.h.
1354 * prologue-value.c: Use string.h, not gdb_string.h.
1355 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1356 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1357 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1358 * regcache.c: Use string.h, not gdb_string.h.
1359 * registry.c: Use string.h, not gdb_string.h.
1360 * remote-fileio.c: Use string.h, not gdb_string.h.
1361 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1362 * remote-mips.c: Use string.h, not gdb_string.h.
1363 * remote-sim.c: Use string.h, not gdb_string.h.
1364 * remote.c: Use string.h, not gdb_string.h.
1365 * reverse.c: Use string.h, not gdb_string.h.
1366 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1367 * ser-base.c: Use string.h, not gdb_string.h.
1368 * ser-go32.c: Use string.h, not gdb_string.h.
1369 * ser-mingw.c: Use string.h, not gdb_string.h.
1370 * ser-pipe.c: Use string.h, not gdb_string.h.
1371 * ser-tcp.c: Use string.h, not gdb_string.h.
1372 * ser-unix.c: Use string.h, not gdb_string.h.
1373 * serial.c: Use string.h, not gdb_string.h.
1374 * sh-tdep.c: Use string.h, not gdb_string.h.
1375 * sh64-tdep.c: Use string.h, not gdb_string.h.
1376 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1377 * skip.c: Use string.h, not gdb_string.h.
1378 * sol-thread.c: Use string.h, not gdb_string.h.
1379 * solib-dsbt.c: Use string.h, not gdb_string.h.
1380 * solib-frv.c: Use string.h, not gdb_string.h.
1381 * solib-osf.c: Use string.h, not gdb_string.h.
1382 * solib-spu.c: Use string.h, not gdb_string.h.
1383 * solib-target.c: Use string.h, not gdb_string.h.
1384 * solib.c: Use string.h, not gdb_string.h.
1385 * somread.c: Use string.h, not gdb_string.h.
1386 * source.c: Use string.h, not gdb_string.h.
1387 * sparc-nat.c: Use string.h, not gdb_string.h.
1388 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1389 * sparc-tdep.c: Use string.h, not gdb_string.h.
1390 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1391 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1392 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1393 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1394 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1395 * spu-multiarch.c: Use string.h, not gdb_string.h.
1396 * spu-tdep.c: Use string.h, not gdb_string.h.
1397 * stabsread.c: Use string.h, not gdb_string.h.
1398 * stack.c: Use string.h, not gdb_string.h.
1399 * std-regs.c: Use string.h, not gdb_string.h.
1400 * symfile.c: Use string.h, not gdb_string.h.
1401 * symmisc.c: Use string.h, not gdb_string.h.
1402 * symtab.c: Use string.h, not gdb_string.h.
1403 * target.c: Use string.h, not gdb_string.h.
1404 * thread.c: Use string.h, not gdb_string.h.
1405 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1406 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1407 * top.c: Use string.h, not gdb_string.h.
1408 * tracepoint.c: Use string.h, not gdb_string.h.
1409 * tui/tui-command.c: Use string.h, not gdb_string.h.
1410 * tui/tui-data.c: Use string.h, not gdb_string.h.
1411 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1412 * tui/tui-file.c: Use string.h, not gdb_string.h.
1413 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1414 * tui/tui-out.c: Use string.h, not gdb_string.h.
1415 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1416 * tui/tui-source.c: Use string.h, not gdb_string.h.
1417 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1418 * tui/tui-win.c: Use string.h, not gdb_string.h.
1419 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1420 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1421 * typeprint.c: Use string.h, not gdb_string.h.
1422 * ui-file.c: Use string.h, not gdb_string.h.
1423 * ui-out.c: Use string.h, not gdb_string.h.
1424 * user-regs.c: Use string.h, not gdb_string.h.
1425 * utils.c: Use string.h, not gdb_string.h.
1426 * v850-tdep.c: Use string.h, not gdb_string.h.
1427 * valarith.c: Use string.h, not gdb_string.h.
1428 * valops.c: Use string.h, not gdb_string.h.
1429 * valprint.c: Use string.h, not gdb_string.h.
1430 * value.c: Use string.h, not gdb_string.h.
1431 * varobj.c: Use string.h, not gdb_string.h.
1432 * vax-tdep.c: Use string.h, not gdb_string.h.
1433 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1434 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1435 * windows-nat.c: Use string.h, not gdb_string.h.
1436 * xcoffread.c: Use string.h, not gdb_string.h.
1437 * xml-support.c: Use string.h, not gdb_string.h.
1438 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1439 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1440
1441 2013-11-18 Tom Tromey <tromey@redhat.com>
1442
1443 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1444 and strstr.
1445 * gnulib/aclocal.m4: Update.
1446 * gnulib/config.in: Update.
1447 * gnulib/configure: Update.
1448 * gnulib/import/Makefile.am: Update.
1449 * gnulib/import/Makefile.in: Update.
1450 * gnulib/import/errno.in.h: New.
1451 * gnulib/import/intprops.h: New.
1452 * gnulib/import/m4/errno_h.m4: New.
1453 * gnulib/import/m4/gnulib-cache.m4: Update.
1454 * gnulib/import/m4/gnulib-comp.m4: Update.
1455 * gnulib/import/m4/strerror.m4: New.
1456 * gnulib/import/m4/strstr.m4: New.
1457 * gnulib/import/m4/sys_socket_h.m4: New.
1458 * gnulib/import/strerror-override.c: New.
1459 * gnulib/import/strerror-override.h: New.
1460 * gnulib/import/strerror.c: New.
1461 * gnulib/import/strstr.c: New.
1462
1463 2013-11-18 Tom Tromey <tromey@redhat.com>
1464
1465 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1466 multiple lines.
1467
1468 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1469
1470 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1471 * sparc-tdep.h: And its prototype.
1472
1473 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1474 function.
1475 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1476
1477 2013-11-18 Pedro Alves <palves@redhat.com>
1478
1479 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1480 use unpack_pointer.
1481
1482 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1483
1484 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1485 to -list-features output.
1486
1487 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1488
1489 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1490 <read_addr_from_reg>: Renames "read_reg".
1491 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1492 Adjust comment.
1493 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1494 Use read_addr_from_reg in place of read_reg.
1495 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1496 in place of read_reg.
1497 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1498 dwarf_expr_read_reg.
1499 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1500 with dwarf_expr_read_addr_from_reg.
1501 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1502 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1503 needs_frame_read_addr_from_reg.
1504
1505 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1506
1507 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1508
1509 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1510
1511 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1512 NULL.
1513
1514 2013-11-15 Tom Tromey <tromey@redhat.com>
1515
1516 PR c++/16117:
1517 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1518 (classify_name): Likewise. Prefer a field of "this" over a
1519 filename.
1520 (classify_inner_name, yylex): Update.
1521
1522 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1523
1524 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1525 Extend the documentation a bit.
1526 <get_reg_value>: New field.
1527 * dwarf2loc.c (dwarf_expr_get_reg_value)
1528 (needs_frame_get_reg_value): New functions.
1529 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1530 callback.
1531 * dwarf2-frame.c (get_reg_value): New function.
1532 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1533 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1534 Use new callback to compute result_val.
1535
1536 2013-11-15 Alan Modra <amodra@gmail.com>
1537
1538 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1539 (ppc64_desc_entry_point): ..this. Update comments here and at
1540 call points.
1541 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1542 ppc64_standard_linkage3): Update comments.
1543 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1544 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1545 patterns.
1546 (ppc64_standard_linkage4_target): New function.
1547 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1548 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1549 nop match. Fix comment wrap.
1550
1551 2013-11-14 Pedro Alves <palves@redhat.com>
1552
1553 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1554 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1555
1556 2013-11-14 Pedro Alves <palves@redhat.com>
1557
1558 * infrun.c (struct execution_control_state)
1559 <stepped_after_stopped_by_watchpoint>: New field.
1560 (get_inferior_stop_soon): New function.
1561 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1562 moved to struct execution_control_state -- adjust. Use
1563 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1564 new function.
1565 (handle_signal_stop): New function, factored out from
1566 handle_inferior_event.
1567
1568 2013-11-14 Pedro Alves <palves@redhat.com>
1569
1570 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1571 return a boolean.
1572 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1573 boolean.
1574 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1575 Adjust to return a boolean.
1576 * breakpoint.h (enum bpstat_signal_value): Delete.
1577 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1578 (bpstat_explains_signal): Likewise.
1579 * infrun.c (handle_inferior_event) <random signal checks>:
1580 bpstat_explains_signal now returns a boolean - adjust. No longer
1581 consider hiding signals.
1582
1583 2013-11-14 Pedro Alves <palves@redhat.com>
1584
1585 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1586 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1587 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1588 BPSTAT_SIGNAL_HIDE.
1589 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1590 instead of BPSTAT_SIGNAL_HIDE.
1591 * infrun.c (handle_inferior_event): Rework random signal checks.
1592
1593 2013-11-14 Pedro Alves <palves@redhat.com>
1594
1595 * infrun.c (struct execution_control_state): Remove
1596 'random_signal' field.
1597 (handle_syscall_event): Use bpstat_causes_stop instead of
1598 bpstat_explains_signal. Don't set ecs->random_signal.
1599 (handle_inferior_event): New 'random_signal' local.
1600 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1601 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1602 bpstat_explains_signal. Don't set ecs->random_signal.
1603 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1604 ecs->random_signal.
1605
1606 2013-11-14 Pedro Alves <palves@redhat.com>
1607
1608 * infrun.c (handle_inferior_event): Move comment from the
1609 function's body to the function's description, adjusted.
1610
1611 2013-11-14 Pedro Alves <palves@redhat.com>
1612
1613 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1614 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1615 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1616 case.
1617
1618 2013-11-14 Tom Tromey <tromey@redhat.com>
1619
1620 * python/py-linetable.c (ltpy_has_line)
1621 (ltpy_get_all_source_lines): Fix loop termination condition.
1622
1623 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1624
1625 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1626 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1627 PARSE->LANGUAGE during command execution, if set.
1628 * mi/mi-parse.c: Add "language.h" #include.
1629 (mi_parse): Add parsing of "--language" command option.
1630
1631 * NEWS: Add entry mentioning the new "--language" command option.
1632
1633 2013-11-14 Pedro Alves <palves@redhat.com>
1634 Joel Brobecker <brobecker@adacore.com>
1635
1636 * cli/cli-utils.h (extract_arg_const): Add declaration.
1637 * cli/cli-utils.c (extract_arg_const): New function.
1638 (extract_arg): Reimplement using extract_arg_const.
1639
1640 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1641
1642 * language.h: Add "symtab.h" #include.
1643
1644 2013-11-13 Doug Evans <xdje42@gmail.com>
1645
1646 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1647 specific breakpoints, don't evaluate breakpoint condition if
1648 different thread.
1649
1650 2013-11-13 Keith Seitz <keiths@redhat.com>
1651
1652 PR c++/7935
1653 PR c++/10541
1654 * cp-support.c (insepct_type): Add support for substituting
1655 namespace aliases, too.
1656 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1657 for DW_TAG_imported_declaration.
1658 (add_partial_symbol): Likewise.
1659 (process_die): Handle namespace aliases with
1660 read_namespace_alias.
1661 (die_needs_namespace): Add DW_TAG_imported_declaration.
1662 (read_namespace_alias): New function.
1663 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1664 (new_symbol_full): Handle DW_TAG_imported_declaration.
1665
1666 2013-11-13 Keith Seitz <keiths@redhat.com>
1667
1668 * p-exp.y (uptok): Make first parameter const.
1669 (yylex): Make `tokstart' and `tokptr' const.
1670 Don't copy the lexer input to a temporary buffer.
1671 Make `p' const.
1672 Remove const workaround for parse_escape.
1673 Create a temporary buffer for a convenience variable instead
1674 of doing in-place modification of the input.
1675 If a match is found with a different case from the input,
1676 do not change the input at all.
1677 Use `tmp' to construct the resultant stoken instead of
1678 `tokstart'.
1679
1680 2013-11-13 Doug Evans <xdje42@gmail.com>
1681
1682 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1683
1684 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1685
1686 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1687 entry with "ada-exceptions".
1688
1689 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1690
1691 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1692 after re-initialization of OBJFILE's obstack.
1693
1694 2013-11-12 Doug Evans <xdje42@gmail.com>
1695
1696 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1697 bs->stop != 0 on entry. Update function comment. Simplify early
1698 exit for frame mismatch. Reindent rest of function.
1699
1700 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1701
1702 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1703 NULL.
1704
1705 2013-11-12 Doug Evans <dje@google.com>
1706
1707 Work around gold/15646.
1708 * dwarf2read.c (read_index_from_section): Update comment.
1709 (struct dw2_symtab_iterator): New member global_seen.
1710 (dw2_symtab_iter_init): Initialize it.
1711 (dw2_symtab_iter_next): Skip duplicate global symbols.
1712 (dw2_expand_symtabs_matching): Ditto.
1713
1714 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1715
1716 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1717 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1718 command.
1719 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1720 (mi_cmd_info_ada_exceptions): New function.
1721 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1722
1723 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1724
1725 * ada-lang.h: #include "vec.h".
1726 (struct ada_exc_info): New.
1727 (ada_exc_info): New typedef.
1728 (DEF_VEC_O(ada_exc_info)): New vector.
1729 (ada_exceptions_list): Add declaration.
1730 * ada-lang.c (ada_is_exception_sym)
1731 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1732 (sort_remove_dups_ada_exceptions_list)
1733 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1734 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1735 (ada_exceptions_list_1, ada_exceptions_list)
1736 (info_exceptions_command): New function.
1737 (_initialize_ada_language): Add "info exception" command.
1738
1739 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1740
1741 PR python/15629
1742 * NEWS: Add linetable feature.
1743 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1744 * python/py-linetable.c: New file.
1745 * python/py-symtab.c (stpy_get_linetable): New function.
1746 * python/python-internal.h (symtab_to_linetable_object): Declare.
1747 (gdbpy_initialize_linetable): Ditto.
1748 * python/python.c (_initialize_python): Call
1749 gdbpy_initialize_linetable.
1750
1751 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1752
1753 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1754 the documentation of fields "except_string" and "condition".
1755 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1756 CONDITION on the heap before passing it to
1757 create_ada_exception_catchpoint.
1758 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1759 CONDITION.
1760
1761 2013-11-11 Tom Tromey <tromey@redhat.com>
1762
1763 * config.in, configure: Rebuild.
1764 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1765
1766 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1767
1768 * remote-sim.c (gdbsim_detach): Break declaration into
1769 shorter lines. No code change.
1770
1771 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1772
1773 * remote-sim.c (gdbsim_detach): Fix prototype.
1774
1775 2013-11-08 Doug Evans <dje@google.com>
1776
1777 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1778 (create_debug_types_hash_table): Only print debugging messages for
1779 each TU if dwarf2-read >= 2.
1780 (process_queue): Ditto.
1781 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1782 Update doc string.
1783
1784 2013-11-08 Tom Tromey <tromey@redhat.com>
1785
1786 * configure: Rebuild.
1787 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1788
1789 2013-11-08 Tom Tromey <tromey@redhat.com>
1790
1791 * configure, config.in: Rebuild.
1792 * configure.ac: Remove unused configury.
1793
1794 2013-11-08 Tom Tromey <tromey@redhat.com>
1795
1796 * m32c-tdep.c: Use gdb_string.h.
1797
1798 2013-11-08 Tom Tromey <tromey@redhat.com>
1799
1800 * configure, config.in: Rebuild.
1801 * configure.ac: Remove all link.h-related checks.
1802
1803 2013-11-08 Tom Tromey <tromey@redhat.com>
1804
1805 * acinclude.m4: Include common.m4.
1806 * common/common.m4: New file.
1807 * configure, config.in: Rebuild.
1808 * configure.ac: Use GDB_AC_COMMON.
1809
1810 2013-11-08 Doug Evans <dje@google.com>
1811
1812 * NEWS: Mention that "set debug symtab-create" now accepts a
1813 verbosity level.
1814 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1815 to set the symtab's primary flag.
1816 * jit.c (finalize_symtab): Ditto.
1817 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1818 * symfile.c (allocate_symtab): Only print debugging messages for
1819 symtab_create_debug levels 2 and higher.
1820 * symtab.c (symtab_create_debug): Change type to unsigned int.
1821 (set_symtab_primary): New function.
1822 (_initialize_symtab): Change "set debug symtab-create" to a
1823 zuinteger option.
1824 * symtab.h (set_symtab_primary): Declare.
1825 (symtab_create_debug): Update decl.
1826
1827 2013-11-08 Tom Tromey <tromey@redhat.com>
1828
1829 * aix-thread.c (aix_thread_detach): Update.
1830 * corelow.c (core_detach): Update.
1831 * darwin-nat.c (darwin_detach): Update.
1832 * dec-thread.c (dec_thread_detach): Update.
1833 * gnu-nat.c (gnu_detach): Update.
1834 * go32-nat.c (go32_detach): Update.
1835 * inf-ptrace.c (inf_ptrace_detach): Update.
1836 * inf-ttrace.c (inf_ttrace_detach): Update.
1837 * linux-fork.c (linux_fork_detach): Update.
1838 * linux-fork.h (linux_fork_detach): Update.
1839 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1840 local for const-correctness.
1841 * linux-thread-db.c (thread_db_detach): Update.
1842 * monitor.c (monitor_detach): Update.
1843 * nto-procfs.c (procfs_detach): Update.
1844 * procfs.c (procfs_detach): Update.
1845 * record.c (record_detach): Update.
1846 * record.h (record_detach): Update.
1847 * remote-m32r-sdi.c (m32r_detach): Update.
1848 * remote-mips.c (mips_detach): Update.
1849 * remote-sim.c (gdbsim_detach): Update.
1850 * remote.c (remote_detach_1, remote_detach)
1851 (extended_remote_detach): Update.
1852 * sol-thread.c (sol_thread_detach): Update.
1853 * target.c (target_detach): Make "args" const.
1854 (init_dummy_target): Update.
1855 * target.h (struct target_ops) <to_detach>: Make argument const.
1856 (target_detach): Likewise.
1857 * windows-nat.c (windows_detach): Update.
1858
1859 2013-11-07 Doug Evans <dje@google.com>
1860
1861 PR 11786
1862 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1863 and align fields for PT_GNU_RELRO segments.
1864
1865 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1866
1867 PR python/15747
1868 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1869
1870 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1871
1872 * NEWS: Document Python temporary breakpoint support.
1873 * python/py-breakpoint.c (bppy_get_temporary): New function.
1874 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1875 to temporary if True.
1876
1877 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1878
1879 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1880 removed to allow analyzing unconditional branch instructions
1881 with PC-relative offsets of zero.
1882
1883 2013-11-07 Yao Qi <yao@codesourcery.com>
1884
1885 * mi/mi-cmd-var.c: Include "language.h".
1886 (mi_cmd_var_info_expression): Get language name from
1887 language_defn.
1888 * varobj.c (varobj_language_string): Remove.
1889 (variable_language): Remove declaration.
1890 (languages): Remove.
1891 (varobj_get_language): Change the type of return value.
1892 (variable_language): Remove.
1893 * varobj.h (enum varobj_languages): Remove.
1894 (varobj_language_string): Remove declaration.
1895 (varobj_get_language): Update declaration.
1896
1897 2013-11-07 Yao Qi <yao@codesourcery.com>
1898
1899 * language.h (struct language_defn) <la_natural_name>: New
1900 field.
1901 * ada-lang.c (ada_language_defn): Initialize field
1902 'la_natural_name'.
1903 * c-lang.c (c_language_defn): Likewise.
1904 (cplus_language_defn, asm_language_defn): Likewise.
1905 * d-lang.c (d_language_defn): Likewise.
1906 * f-lang.c (f_language_defn): Likewise.
1907 * go-lang.c (go_language_defn): Likewise.
1908 * jv-lang.c (java_language_defn): Likewise.
1909 * language.c (unknown_language_defn ): Likewise.
1910 (auto_language_defn): Likewise.
1911 * m2-lang.c (m2_language_defn): Likewise.
1912 * objc-lang.c (objc_language_defn): Likewise.
1913 * opencl-lang.c (opencl_language_defn): Likewise.
1914 * p-lang.c (pascal_language_defn): Likewise.
1915
1916 2013-11-07 Yao Qi <yao@codesourcery.com>
1917
1918 * language.c (language_str): Return const char *.
1919 (add_language): Add const to 'language_names'
1920 * language.h (struct language_defn) <la_name>: Add const.
1921 (language_str: Update declaration.
1922
1923 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1924
1925 * s390-linux-nat.c (s390_read_description): Consider the TE field
1926 in the HWCAP for determining 'have_regset_tdb'.
1927
1928 2013-11-06 Will Newton <will.newton@linaro.org>
1929
1930 PR gdb/12866
1931 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1932 values. (read_partial_die): Likewise.
1933
1934 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1935
1936 PR cli/16122
1937 * top.c (command_line_input): Unify interactivity tests to use
1938 input_from_terminal_p.
1939 * event-top.c (command_line_handler): Likewise.
1940
1941 2013-11-06 Yao Qi <yao@codesourcery.com>
1942
1943 * Makefile.in (check-perf): New target.
1944
1945 2013-11-05 Will Newton <will.newton@linaro.org>
1946
1947 PR gdb/7670
1948 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1949 (arm_print_float_info): Likewise.
1950
1951 2013-11-04 Anton Blanchard <anton@samba.org>
1952
1953 * target.c (memory_xfer_partial): Cap write to 4KB.
1954
1955 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1956
1957 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1958 probe scan even when the arch provides no get_longjmp_target.
1959
1960 2013-10-31 Pedro Alves <palves@redhat.com>
1961
1962 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1963 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1964 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1965 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1966 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1967 <bpstat handling>: If the bpstat chain wants the signal to be
1968 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1969 GDB_SIGNAL_TRAP.
1970
1971 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1972
1973 * breakpoint.c (update_watchpoint): Update error message and add
1974 an additional error message.
1975
1976 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1977
1978 * s390-tdep.h: Rename to...
1979 * s390-linux-tdep.h: ...here.
1980 * s390-tdep.c: Rename to...
1981 * s390-linux-tdep.c: ...here. Adjust #include.
1982 * s390-nat.c: Rename to...
1983 * s390-linux-nat.c: ...here. Adjust #include.
1984 * config/s390/s390.mh: Rename to...
1985 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1986 s390-linux-nat.o.
1987 * configure.host: Reflect host rename "s390" -> "linux".
1988 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1989 * Makefile.in (ALL_TARGET_OBS): Likewise.
1990 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1991 s390-linux-tdep.h.
1992 (ALLDEPFILES): Reflect rename of .c files.
1993
1994 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995
1996 * s390-nat.c: Whitespace cleanup.
1997 * s390-tdep.c: Likewise.
1998 * s390-tdep.h: Remove empty line at end of file.
1999
2000 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
2001
2002 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
2003 siginfo_size.
2004
2005 2013-10-29 Tom Tromey <tromey@redhat.com>
2006
2007 * utils.c (reg): Move undefinition...
2008 * gdb_curses.h: ... here. Update comment to mention AIX.
2009
2010 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
2011
2012 * exec.h (add_target_sections_of_objfile): New declaration.
2013 * exec.c (add_target_sections_of_objfile): New function.
2014 * symfile.c (add_symbol_file_command): Update current target sections.
2015 (remove_symbol_file_command): New command.
2016 (symfile_free_objfile): New function.
2017 (_initialize_symfile): Register observer for free_objfile events.
2018 * NEWS: Add description of the remove-symbol-file command.
2019 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
2020 * objfiles.c (free_objfile): Notify free_objfile.
2021 (is_addr_in_objfile): New function.
2022 * objfiles.h (is_addr_in_objfile): New declaration.
2023 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
2024 events instead of solib_unloaded events.
2025 (_initialize_printcmd): Register observer for free_objfile instead
2026 of solib_unloaded notifications.
2027 * solib.c (remove_user_added_objfile): New function.
2028 (_initialize_symfile): Add remove-symbol-file.
2029
2030 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
2031
2032 * infcmd.c (default_print_one_register_info): Use val_print to
2033 print all values even optimized out or unavailable ones. Don't
2034 try to print a raw form of optimized out or unavailable values.
2035
2036 2013-10-29 Yao Qi <yao@codesourcery.com>
2037
2038 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
2039 parameter 'arg' instead of from program_space_data.
2040 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
2041 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
2042 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
2043 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
2044 * inflow.c (inflow_inferior_data_cleanup): Get data from
2045 parameter 'arg' instead of inferior_data.
2046 * registry.h: Add comments.
2047
2048 2013-10-28 Pedro Alves <palves@redhat.com>
2049
2050 * breakpoint.c (watchpoints_triggered)
2051 <!target_stopped_data_address>: Hardcode return 1.
2052
2053 2013-10-28 Pedro Alves <palves@redhat.com>
2054
2055 * infrun.c (process_event_stop_test): Remove unnecessary scoping
2056 level and reindent.
2057
2058 2013-10-28 Pedro Alves <palves@redhat.com>
2059
2060 * infrun.c (process_event_stop_test): New function, factored out
2061 from handle_inferior_event.
2062 (handle_inferior_event): 'process_event_stop_test' is now a
2063 function instead of a goto label -- adjust.
2064
2065 2013-10-28 Pedro Alves <palves@redhat.com>
2066
2067 * infrun.c (handle_inferior_event): Move process_event_stop_test
2068 goto label to the else branch of the ecs->random_signal check,
2069 along with FRAME and GDBARCH re-fetching.
2070
2071 2013-10-28 Pedro Alves <palves@redhat.com>
2072
2073 * infrun.c (switch_back_to_stepped_thread): New function, factored
2074 out from handle_inferior_event.
2075 (handle_inferior_event): Adjust to call
2076 switch_back_to_stepped_thread. Call it also at the tail of the
2077 random signal handling, and return, instead of also handling
2078 random signals just before the stepping tests.
2079
2080 2013-10-28 Pedro Alves <palves@redhat.com>
2081
2082 * infrun.c (clear_stop_func): Delete.
2083 (handle_inferior_event): Don't call clear_stop_func and don't
2084 clear 'ecs->random_signal'.
2085
2086 2013-10-27 Yao Qi <yao@codesourcery.com>
2087
2088 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2089 (varobj_create, varobj_get_path_expr): Update.
2090 (varobj_value_has_mutated, varobj_update): Likewise.
2091 (create_child_with_value, new_root_variable): Likewise.
2092 (number_of_children, name_of_variable): Likewise.
2093 (value_of_child, my_value_of_variable): Likewise.
2094 (varobj_value_is_changeable_p): Likewise.
2095
2096 2013-10-25 Yao Qi <yao@codesourcery.com>
2097
2098 * language.h (struct lang_varobj_ops): Declare.
2099 (struct language_defn) <la_varobj_ops>: New field.
2100 * ada-lang.c: Include "varobj.h"
2101 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2102 ada_varobj_ops.
2103 * c-lang.c: Include "varobj.h"
2104 (c_language_defn): Initialize field 'la_varobj_ops' with
2105 c_varobj_ops.
2106 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2107 cplus_varobj_ops.
2108 (asm_language_defn): Initialize field 'la_varobj_ops' with
2109 default_varobj_ops.
2110 (minimal_language_defn): Likewise.
2111 * d-lang.c (d_language_defn): Likewise.
2112 * f-lang.c (f_language_defn): Likewise.
2113 * go-lang.c (go_language_defn): Likewise.
2114 * m2-lang.c (m2_language_defn): Likewise.
2115 * objc-lang.c (objc_language_defn): Likewise.
2116 * opencl-lang.c (opencl_language_defn): Likewise.
2117 * p-lang.c (pascal_language_defn): Likewise.
2118 * language.c (unknown_language_defn): Likewise.
2119 (auto_language_defn): Likewise.
2120 (local_language_defn): Likewise.
2121 * jv-lang.c (java_language_defn): Initialize field
2122 'la_varobj_ops' with java_varobj_ops.
2123 * varobj.c (varobj_create): Update.
2124 * varobj.h (default_varobj_ops): Define macro.
2125
2126 2013-10-25 Pedro Alves <palves@redhat.com>
2127
2128 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2129 static field value.
2130 (cp_print_static_field): If the value is entirely optimized out,
2131 print <optimized out> here.
2132 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2133 static field value.
2134 * p-valprint.c (pascal_object_print_static_field): If the value is
2135 entirely optimized out, print <optimized out> here.
2136 * valops.c (do_search_struct_field)
2137 (value_struct_elt_for_reference): No longer handle a NULL static
2138 field value.
2139 * value.c (value_static_field): Return an optimized out value
2140 instead of NULL.
2141
2142 2013-10-25 Yao Qi <yao@codesourcery.com>
2143
2144 * remote.c (remote_traceframe_info): Return early if
2145 traceframe is not selected.
2146
2147 2013-10-25 Yao Qi <yao@codesourcery.com>
2148
2149 * tracepoint.c (traceframe_fun): Remove.
2150 (traceframe_sal): Remove.
2151 (set_traceframe_context): Add local variables.
2152
2153 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2154
2155 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2156 and parameter name.
2157
2158 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2159
2160 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2161 failure from register information collection.
2162
2163 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2164
2165 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2166 member.
2167 (linux_corefile_thread_callback): Update accordingly.
2168 (linux_make_corefile_notes): Likewise.
2169
2170 2013-10-24 Pedro Alves <palves@redhat.com>
2171
2172 * NEWS (New options): Mention set/show startup-with-shell.
2173 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2174 instead of 3.
2175 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2176 startup-with-shell'.
2177 (show_startup_with_shell): New function.
2178 (_initialize_fork_child): Register the set/show startup-with-shell
2179 commands.
2180 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2181 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2182 * procfs.c (procfs_init_inferior): Remove comment.
2183 * infcmd.c (startup_with_shell): New global.
2184 * inferior.h (startup_with_shell): Declare global.
2185 (STARTUP_WITH_SHELL): Delete.
2186 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2187
2188 2013-10-23 Pedro Alves <palves@redhat.com>
2189
2190 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2191 * common/signals.c: Include "gdb_assert.h".
2192 (signals): New field 'symbol'.
2193 (SET): Use the 'symbol' parameter.
2194 (gdb_signal_to_symbol_string): New function.
2195 * infrun.c (handle_inferior_event) <random signal>: In debug
2196 output, print the random signal enum as string in addition to its
2197 number.
2198 * target/waitstatus.c (target_waitstatus_to_string): Print the
2199 signal's enum value as string instead of the (POSIX) signal name.
2200
2201 2013-10-23 Gary Benson <gbenson@redhat.com>
2202
2203 PR 16013
2204 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2205 from 32 to 18. Adjusted fscanf format string accordingly.
2206 (Avoids leaving cmd unterminated.)
2207 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2208 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2209 that local_address and remote_address will not overflow.
2210 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2211 leaving dependencies unterminated. Parse size as "%u" to match
2212 definition.
2213
2214 2013-10-22 Pedro Alves <palves@redhat.com>
2215
2216 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2217 set ecs->random signal.
2218
2219 2013-10-22 Pedro Alves <palves@redhat.com>
2220
2221 * infrun.c (keep_going): Update comments.
2222
2223 2013-10-22 Pedro Alves <palves@redhat.com>
2224
2225 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2226 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2227
2228 2013-10-22 Pedro Alves <palves@redhat.com>
2229
2230 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2231 GDB_EXC_BAD_ACCESS.
2232 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2233 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2234 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2235 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2236 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2237 (GDB_SIGNAL_LAST): Change description string.
2238 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2239 Adjust to signal renaming.
2240 * darwin-nat.c (darwin_decode_message): Likewise.
2241
2242 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2243
2244 * MAINTAINERS (Write After Approval): Add myself to the list.
2245
2246 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2247
2248 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2249 forced off, downgrade them to software watchpoints if possible,
2250 and error out if not possible.
2251 (watch_command_1): Move watchpoint type selection closer to
2252 watchpoint creation, and extend the comments.
2253
2254 2013-10-18 Pedro Alves <palves@redhat.com>
2255
2256 PR gdb/16062
2257 * infrun.c (handle_inferior_event): Keep going if we got a random
2258 signal we should not stop for, instead of falling through to the
2259 step tests.
2260
2261 2013-10-18 Yao Qi <yao@codesourcery.com>
2262
2263 * c-varobj.c (cplus_number_of_children): Fix indentation.
2264
2265 2013-10-17 Tom Tromey <tromey@redhat.com>
2266
2267 PR gdb/15995:
2268 * printcmd.c (printcmd): Call gdb_flush.
2269
2270 2013-10-17 Tom Tromey <tromey@redhat.com>
2271
2272 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2273 (elf_locate_sections): Update.
2274
2275 2013-10-17 Yao Qi <yao@codesourcery.com>
2276
2277 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2278 * ada-varobj.c: Remove the include of ada-varobj.h.
2279 (ada_varobj_get_number_of_children): Declare.
2280 (ada_varobj_get_name_of_child): Make it static.
2281 (ada_varobj_get_path_expr_of_child): Likewise.
2282 (ada_varobj_get_value_of_child): Likewise.
2283 (ada_varobj_get_type_of_child): Likewise.
2284 (ada_varobj_get_value_of_array_variable): Likewise.
2285 * ada-varobj.h: Remove.
2286
2287 2013-10-17 Yao Qi <yao@codesourcery.com>
2288
2289 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2290 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2291 * ada-varobj.c: Include "varobj.h".
2292 (ada_number_of_children): New. Moved from varobj.c.
2293 (ada_name_of_variable, ada_name_of_child): Likewise.
2294 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2295 (ada_type_of_child, ada_value_of_variable): Likewise.
2296 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2297 (ada_varobj_ops): New.
2298 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2299 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2300 * gdbtypes.h (get_target_type): Declare.
2301 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2302 "ada-lang.h".
2303 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2304 (ANONYMOUS_UNION_NAME): Likewise.
2305 (get_type, get_value_type, get_target_type): Remove declarations.
2306 (value_get_print_value, varobj_value_get_print_value): Likewise.
2307 (c_number_of_children, c_name_of_variable): Likewise.
2308 (c_name_of_child, c_path_expr_of_child): Likewise.
2309 (c_value_of_child, c_type_of_child): Likewise.
2310 (c_value_of_variable, cplus_number_of_children): Likewise.
2311 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2312 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2313 (cplus_value_of_child, cplus_type_of_child): Likewise.
2314 (cplus_value_of_variable, java_number_of_children): Likewise.
2315 (java_name_of_variable, java_name_of_child): Likewise.
2316 (java_path_expr_of_child, java_value_of_child): Likewise.
2317 (java_type_of_child, java_value_of_variable): Likewise.
2318 (ada_number_of_children, ada_name_of_variable): Likewise.
2319 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2320 (ada_value_of_child, ada_type_of_child): Likewise.
2321 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2322 (ada_value_has_mutated): Likewise.
2323 (struct language_specific): Move it to varobj.h.
2324 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2325 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2326 Callers update.
2327 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2328 Make it extern.
2329 (is_anonymous_child): Move it to c-varobj.c and rename to
2330 varobj_is_anonymous_child. Caller update.
2331 (get_type): Move it to c-varobj.c.
2332 (get_value_type): Rename it varobj_get_value_type. Make it
2333 extern.
2334 (get_target_type): Move it gdbtypes.c.
2335 (varobj_formatted_print_options): New function.
2336 (value_get_print_value): Rename it to
2337 varobj_value_get_print_value and make it extern.
2338 (varobj_value_is_changeable_p): Make it extern.
2339 (adjust_value_for_child_access): Move it to c-varobj.c.
2340 (default_value_is_changeable_p): Rename it to
2341 varobj_default_value_is_changeable_p. Make it extern.
2342 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2343 (c_name_of_child, c_path_expr_of_child): Likewise.
2344 (c_value_of_child, c_type_of_child): Likewise.
2345 (c_value_of_variable, cplus_number_of_children): Likewise.
2346 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2347 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2348 (cplus_value_of_child, cplus_type_of_child): Likewise.
2349 (cplus_value_of_variable): Likewise.
2350 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2351 (java_name_of_child, java_path_expr_of_child): Likewise.
2352 (java_value_of_child, java_type_of_child): Likewise.
2353 (java_value_of_variable): Likewise.
2354 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2355 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2356 (ada_value_of_child, ada_type_of_child): Likewise.
2357 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2358 (ada_value_has_mutated): Likewise.
2359 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2360 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2361 (c_varobj_ops, cplus_varobj_ops): Declare.
2362 (java_varobj_ops, ada_varobj_ops): Declare.
2363 (varobj_default_value_is_changeable_p): Declare.
2364 (varobj_value_is_changeable_p): Declare.
2365 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2366 (varobj_get_path_expr_parent): Declare.
2367 (varobj_value_get_print_value): Declare.
2368 (varobj_formatted_print_options): Declare.
2369 (varobj_restrict_range): Declare.
2370
2371 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2372
2373 * target/waitstatus.h (target_waitkind): Remove spurious
2374 character from the comments.
2375
2376 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2377
2378 * gdbarch.sh (get_longjmp_target): Add method documentation.
2379 * gdbarch.h: Regenerate.
2380
2381 2013-10-16 Tom Tromey <tromey@redhat.com>
2382
2383 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2384 label.
2385
2386 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2387
2388 * gcore.in: Call GDB using the full path to the gcore script.
2389 Error out if the GDB binary is not found.
2390
2391 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2392
2393 PR gdb/16014
2394 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2395 sizeof.
2396
2397 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2398
2399 PR gdb/16042
2400 * target.c (target_disable_btrace): Fix invalid return value for
2401 void function.
2402 (target_teardown_btrace): Likewise.
2403
2404 2013-10-14 Yao Qi <yao@codesourcery.com>
2405
2406 * varobj.c (struct varobj): Move most of the fields to
2407 varobj.h.
2408 (struct varobj_dynamic): New struct.
2409 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2410 (varobj_has_more): Likewise.
2411 (dynamic_varobj_has_child_method): Likewise.
2412 (update_dynamic_varobj_children): Likewise.
2413 (varobj_get_num_children): Likewise.
2414 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2415 (install_new_value_visualizer): Likewise.
2416 (install_new_value_visualizer, install_new_value): Likewise.
2417 (varobj_update, new_variable, free_variable): Likewise.
2418 (my_value_of_variable, value_get_print_value): Likewise.
2419 (install_visualizer): Change the type of parameter 'var' to
2420 'struct varobjd_dynamic *'. Callers update.
2421 * varobj.h (struct varobj): Moved from varobj.c.
2422 (struct varobj) <dynamic>: New field.
2423
2424 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2425
2426 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2427 as the preferred name of r30.
2428 * nios2-linux-tdep.c (reg_offsets): Likewise.
2429 * features/nios2-cpu.xml: Likewise.
2430 * features/nios2-linux.c: Regenerated.
2431 * features/nios2.c: Regenerated.
2432 * regformats/nios2-linux.dat: Regenerated.
2433
2434 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 Canonicalize directories for EXEC_FILENAME.
2437 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2438 exec_filename.
2439 * utils.c (gdb_realpath_keepfile): New function.
2440 * utils.h (gdb_realpath_keepfile): New declaration.
2441
2442 2013-10-11 Doug Evans <dje@google.com>
2443
2444 * Makefile.in (GDBFLAGS): New variable.
2445 (run): New rule.
2446
2447 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2448
2449 * NEWS: Add entry documenting the new "-catch-assert" and
2450 "-catch-exception" GDB/MI commands.
2451
2452 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2453
2454 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2455 "enabled".
2456 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2457 "enabled". Set B->ENABLE_STATE accordingly.
2458 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2459 ada-lang.c.
2460 (create_ada_exception_catchpoint): Add declaration.
2461 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2462 (create_ada_exception_catchpoint): Make non-static. Add new
2463 parameter "disabled". Use it in call to
2464 init_ada_exception_breakpoint.
2465 (catch_ada_exception_command): Add parameter "enabled" in call
2466 to create_ada_exception_catchpoint.
2467 (catch_assert_command): Likewise.
2468
2469 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2470 Add declarations.
2471 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2472 "catch-exception" commands.
2473 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2474 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2475
2476 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2477
2478 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2479 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2480 of all its enumerates with "ada_". Update the rest of this
2481 file throughout.
2482
2483 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2484
2485 * ada-lang.c (ada_decode_exception_location): Delete.
2486 (create_ada_exception_catchpoint): Remove arguments "sal",
2487 "addr_string" and "ops". Add argument "ex_kind" instead.
2488 Adjust implementation accordingly, calling ada_exception_sal
2489 to get the entities it no longer gets passed as arguments.
2490 Document the function's arguments.
2491 (catch_ada_exception_command): Use catch_ada_exception_command_split
2492 instead of ada_decode_exception_location, and update call to
2493 create_ada_exception_catchpoint.
2494 (catch_ada_assert_command_split): Renames
2495 ada_decode_assert_location. Remove parameters "addr_string" and
2496 "ops", and now returns void. Adjust implementation accordingly.
2497 Update the function documentation.
2498 (catch_assert_command): Use catch_ada_assert_command_split
2499 instead of ada_decode_assert_location. Update call to
2500 create_ada_exception_catchpoint.
2501
2502 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2503
2504 * utils.h (perror_warning_with_name): Add declaration.
2505 * utils.c (perror_warning_with_name): New function.
2506 * cli/cli-cmds.c (source_script_with_search): Add call to
2507 perror_warning_with_name if from_tty is nul.
2508
2509 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2510
2511 * utils.c (perror_string): New function, extracted out of
2512 throw_perror_with_name.
2513 (throw_perror_with_name): Rework to use perror_string.
2514
2515 2013-10-11 Yao Qi <yao@codesourcery.com>
2516
2517 * remote.c (discard_pending_stop_replies_in_queue): Update
2518 declaration.
2519 (struct stop_reply) <rs>: New field.
2520 (remove_stop_reply_of_remote_state): New function.
2521 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2522 Callers update. Pass remove_stop_reply_of_remote_state to
2523 QUEUE_iterate.
2524 (remote_parse_stop_reply): Initialize field 'rs'.
2525
2526 2013-10-10 Will Newton <will.newton@linaro.org>
2527
2528 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2529 linux_init_abi.
2530
2531 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2532
2533 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2534 serial_baud_show_cmd.
2535 (_initialize_cli_cmds): Delete the code creating the
2536 "set/show remotebaud" commands.
2537 * serial.c (baud_rate): Move here from top.c.
2538 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2539 (_initialize_serial): Create "set/show serial baud" commands.
2540 Add "set/show remotebaud" command aliases.
2541 * top.c (baud_rate): Moved to serial.c.
2542 * NEWS: Document the new "set/show serial baud" commands,
2543 replacing "set/show remotebaud".
2544
2545 2013-10-09 Pedro Alves <palves@redhat.com>
2546
2547 * breakpoint.c (insert_bp_location): Use memory_error_message to
2548 build the memory error string.
2549 * c-lang.c: Include "gdbcore.h".
2550 (c_get_string): Use memory_error to throw error.
2551 (target_xfer_memory_error): Delete.
2552 (memory_error_message): New, factored out from
2553 target_xfer_memory_error.
2554 (memory_error): Change parameter type to target_xfer_error.
2555 Rewrite.
2556 (read_memory): Use memory_error instead of
2557 target_xfer_memory_error.
2558 * gdbcore.h: Include "target.h".
2559 (memory_error): Change parameter type to target_xfer_error.
2560 (memory_error_message): Declare function.
2561 * target.c (target_read_memory, target_read_stack)
2562 (target_write_memory, target_write_raw_memory): Return
2563 TARGET_XFER_E_IO on error. Adjust comments.
2564 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2565 instead of EIO.
2566 * target.h (target_read, target_insert_breakpoint)
2567 (target_remove_breakpoint): Adjust comments.
2568 * valprint.c (partial_memory_read): Rename parameter, and adjust
2569 comment.
2570 (val_print_string): Use memory_error_message to build the memory
2571 error string.
2572
2573 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2574
2575 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2576 result variable. Rename variable fopen_e_ever_failed to
2577 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2578
2579 2013-10-09 Pedro Alves <palves@redhat.com>
2580
2581 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2582 (monitor_write_memory_longlongs, monitor_write_memory_block):
2583 Constify 'myaddr' parameter.
2584 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2585 helper.
2586 (monitor_xfer_partial): New function.
2587 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2588 hook. Install a to_xfer_partial hook.
2589
2590 2013-10-09 Tom Tromey <tromey@redhat.com>
2591
2592 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2593 bfd_get_alt_debug_link_info.
2594
2595 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597 New flag OBJF_NOT_FILENAME.
2598 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2599 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2600 allocate_objfile.
2601 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2602 symbol_file_add_from_bfd.
2603 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2604 allocate_objfile.
2605 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2606 NULL.
2607 * objfiles.h (OBJF_NOT_FILENAME): New.
2608
2609 2013-10-08 Tom Tromey <tromey@redhat.com>
2610
2611 * Makefile.in (SFILES): Add build-id.c.
2612 (HFILES_NO_SRCDIR): Add build-id.h.
2613 * build-id.c: New file, largely from elfread.c. Modified
2614 most functions.
2615 * build-id.h: New file.
2616 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2617 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2618 Search for dwz file using build-id.
2619 * elfread.c (build_id_bfd_get, build_id_verify)
2620 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2621
2622 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2623
2624 * ada-lang.c (compare_names_with_case): Renamed from
2625 compare_names, adding a new parameter "casing" and its handling.
2626 New function documentation.
2627 (compare_names): New function, implemented using
2628 compare_names_with_case.
2629
2630 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2631
2632 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2633
2634 2013-10-07 Tom Tromey <tromey@redhat.com>
2635
2636 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2637 demangled_names_hash.
2638 (free_objfile): Don't delete the demangled_names_hash.
2639 * objfiles.h (struct objfile_per_bfd_storage)
2640 <demangled_names_hash>: New field.
2641 (struct objfile) <demangled_names_hash>: Move to
2642 objfile_per_bfd_storage.
2643 * symfile.c (reread_symbols): Don't delete the
2644 demangled_names_hash.
2645 * symtab.c (create_demangled_names_hash): Update.
2646 (symbol_set_names): Update.
2647
2648 2013-10-07 Tom Tromey <tromey@redhat.com>
2649
2650 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2651 needs_relocations>: New fields.
2652 (gdb_bfd_requires_relocations): New function.
2653 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2654 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2655 the BFD needs relocations applied.
2656
2657 2013-10-07 Pedro Alves <palves@redhat.com>
2658
2659 PR breakpoints/11568
2660 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2661 the thread list" instead of "gone".
2662
2663 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2664
2665 * NEWS: Mention new convenience variable $_exitsignal.
2666 * corelow.c (core_open): Reset exit convenience variables. Set
2667 $_exitsignal to the uncaught signal which generated the corefile.
2668 * infrun.c (handle_inferior_event): Reset exit convenience
2669 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2670 (clear_exit_convenience_vars): New function.
2671 * inferior.h (clear_exit_convenience_vars): New prototype.
2672
2673 2013-10-06 Yao Qi <yao@codesourcery.com>
2674
2675 * varobj.h: Add comments to enum varobj_languages.
2676
2677 2013-10-04 Doug Evans <dje@google.com>
2678
2679 Add support for DWP file format version 2.
2680 * NEWS: Mention support for DWP file format version 2.
2681 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2682 union of asection, containing_section. New fields virtual_offset
2683 and is_virtual. Change type of readin filed from int to char.
2684 (dwo_sections, dwo_file): Tweak comments.
2685 (dwp_v2_section_ids): New enum.
2686 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2687 str_offsets, types.
2688 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2689 All uses updated.
2690 (virtual_v2_dwo_sections): New struct.
2691 (dwp_hash_table): New fields version, nr_columns. Change type of
2692 section_pool field to a union.
2693 (dwp_file): New field version.
2694 (dwarf2_has_info): Check for virtual sections.
2695 (get_containing_section): New function.
2696 (get_section_bfd_owner, get_section_bfd_section): Call it.
2697 (dwarf2_locate_sections): Update.
2698 (dwarf2_section_empty_p): Update.
2699 (dwarf2_read_section): Handle virtual sections.
2700 (locate_dwz_sections): Update.
2701 (create_dwp_hash_table): Document and handle V2 format.
2702 (locate_v1_virtual_dwo_sections): Renamed from
2703 locate_virtual_dwo_sections and update. All callers updated.
2704 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2705 Delete arg htab. Rename arg section_index to unit_index.
2706 All callers updated.
2707 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2708 All uses updated.
2709 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2710 (lookup_dwo_unit_in_dwp): Add V2 support.
2711 (dwarf2_locate_dwo_sections): Update.
2712 (dwarf2_locate_common_dwp_sections): Renamed from
2713 dwarf2_locate_dwp_sections and update. All callers updated.
2714 (dwarf2_locate_v2_dwp_sections): New function.
2715 (open_and_init_dwp_file): Add V2 support.
2716 (read_str_index): New locals str_section, str_offsets_section.
2717
2718 2013-10-04 Pedro Alves <palves@redhat.com>
2719
2720 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2721 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2722 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2723 describing comments with references to ptid.h.
2724 * common/ptid.h: Remove intro description of constructors,
2725 accessors and predicates.
2726 (struct ptid): Reformat.
2727 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2728 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2729 describing comments.
2730
2731 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2732
2733 * aix-thread.c (sync_threadlists): Add missing ')' in call
2734 to ptid_build.
2735
2736 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2737
2738 * procfs.c (procfs_init_inferior): Fix typo causing the build
2739 to fail.
2740
2741 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2742
2743 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2744
2745 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2746
2747 * mi/mi-main.c (run_one_inferior): Add function description.
2748 Make ARG a pointer to an integer whose value determines whether
2749 we should "run" or "start" the program.
2750 (mi_cmd_exec_run): Add handling of the "--start" option.
2751 Reject all other command-line options.
2752 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2753
2754 2013-10-04 Yao Qi <yao@codesourcery.com>
2755
2756 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2757 (struct notif_client) <pending_event>: Moved
2758 to struct remote_notif_state.
2759 <id>: New field.
2760 (struct remote_notif_state) <pending_event>: New field.
2761 (notif_event_xfree): Declare.
2762 * remote-notif.c (handle_notification): Adjust.
2763 (notif_event_xfree): New function.
2764 (do_notif_event_xfree): Call notif_event_xfree.
2765 (remote_notif_state_xfree): Call notif_event_xfree to free
2766 each element in field pending_event.
2767 * remote.c (discard_pending_stop_replies): Remove declaration.
2768 (discard_pending_stop_replies_in_queue): Declare.
2769 (remote_close): Call discard_pending_stop_replies_in_queue
2770 instead of discard_pending_stop_replies.
2771 (remote_start_remote): Adjust.
2772 (stop_reply_xfree): Call notif_event_xfree.
2773 (notif_client_stop): Adjust initialization.
2774 (remote_notif_remove_all): Rename it to ...
2775 (remove_stop_reply_for_inferior): ... this. Update comments.
2776 Don't check INF is NULL.
2777 (discard_pending_stop_replies): Return early if notif_state is
2778 NULL. Adjust. Don't check INF is NULL.
2779 (remote_notif_get_pending_events): Adjust.
2780 (discard_pending_stop_replies_in_queue): New function.
2781 (remote_wait_ns): Likewise.
2782
2783 2013-10-04 Yao Qi <yao@codesourcery.com>
2784
2785 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2786 (notif_queue): Remove.
2787 (remote_notif_process): Add one parameter 'notif_queue'.
2788 Update comments. Callers update.
2789 (remote_async_get_pending_events_token): Remove.
2790 (remote_notif_register_async_event_handler): Remove.
2791 (remote_notif_unregister_async_event_handler): Remove.
2792 (handle_notification): Add parameter 'notif_queue'. Update
2793 comments. Callers update.
2794 (notif_xfree): Remove.
2795 (remote_notif_state_allocate): New function.
2796 (remote_notif_state_xfree): New function.
2797 (_initialize_notif): Remove code to allocate queue.
2798 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2799 (struct remote_notif_state): New.
2800 (handle_notification): Update declaration.
2801 (remote_notif_process): Likewise.
2802 (remote_notif_register_async_event_handler): Remove.
2803 (remote_notif_unregister_async_event_handler): Remove.
2804 (remote_notif_state_allocate): Declare.
2805 (remote_notif_state_xfree): Declare.
2806 * remote.c (struct remote_state) <notif_state>: New field.
2807 (remote_close): Don't call
2808 remote_notif_unregister_async_event_handler. Call
2809 remote_notif_state_xfree.
2810 (remote_open_1): Don't call
2811 remote_notif_register_async_event_handler. Call
2812 remote_notif_state_allocate.
2813
2814 2013-10-04 Yao Qi <yao@codesourcery.com>
2815
2816 * varobj.c (create_child_with_value): Remove 'const' from the
2817 type of parameter 'name'.
2818 (varobj_add_child): Likewise.
2819 (install_dynamic_child): Remove 'const' from the type of
2820 parameter 'name'.
2821 (varobj_add_child): Likewise.
2822 (create_child_with_value): Likewise. Update comments. Don't
2823 duplicate 'name'.
2824 (update_dynamic_varobj_children): Duplicate 'name'
2825 and pass it to install_dynamic_child.
2826
2827 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2828
2829 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2830 conversion logic to occur after PyLong_Check. Comment on order
2831 change significance.
2832 * python/py-arch.c (archpy_disassemble): Comment on order of
2833 conversion for integers and longs.
2834
2835 2013-10-03 Pedro Alves <palves@redhat.com>
2836
2837 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2838 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2839 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2840 PTRACE_O_TRACEFORK is not supported.
2841 (linux_test_for_tracesysgood): New function.
2842 (linux_test_for_tracefork): New function, factored out from
2843 linux_check_ptrace_features, and also don't kill child_pid here.
2844
2845 2013-10-03 Tristan Gingold <gingold@adacore.com>
2846
2847 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2848 Remove verbose error reporting. Use detected state to
2849 thread_set_state call.
2850 (i386_darwin_dr_get): Fix return type. Remove verbose error
2851 report.
2852 Remove trailing spaces.
2853
2854 2013-10-02 Pedro Alves <palves@redhat.com>
2855
2856 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2857 val_print_optimized_out.
2858 * jv-valprint.c (java_print_value_fields): Likewise.
2859 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2860 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2861 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2862 new optimized out value.
2863 * findvar.c (address_from_register): Likewise.
2864 * frame.c (put_frame_register): Tweak error string to say the
2865 register was not saved, rather than optimized out.
2866 * infcmd.c (default_print_one_register_info): Adjust call to
2867 val_print_optimized_out. Use value_of_register instead of
2868 get_frame_register_value.
2869 * mi/mi-main.c (output_register): Use value_of_register instead of
2870 get_frame_register_value.
2871 * valprint.c (valprint_check_validity): Likewise.
2872 (val_print_optimized_out): New value parameter. If the value is
2873 lval_register, print <not saved> instead.
2874 (value_check_printable, val_print_scalar_formatted): Adjust calls
2875 to val_print_optimized_out.
2876 * valprint.h (val_print_optimized_out): New value parameter.
2877 * value.c (struct value) <optimized_out>: Extend comment.
2878 (error_value_optimized_out): New function.
2879 (require_not_optimized_out): Use it. Use a different string for
2880 lval_register values.
2881 * value.h (error_value_optimized_out): New declaration.
2882 * NEWS: Mention <not saved>.
2883
2884 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2885
2886 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2887 strcmp to compare two symtab filenames.
2888
2889 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2890
2891 * symtab.c (search_symbols_equal): Delete.
2892 (sort_search_symbols_remove_dups): Replace call to
2893 search_symbols_equal by call to compare_search_syms,
2894 adjusting as necessary.
2895
2896 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2897
2898 PR python/15579
2899 * python/python.c: Document gdb.execute command in Python help.
2900
2901 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2902
2903 * python/py-frame.c (frame_info_to_frame_object): Use
2904 gdbpy_convert_exception. Clean up Python object on failure.
2905
2906 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2907
2908 * python/lib/gdb/command/frame_filters.py
2909 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2910 (ShowFrameFilterPriority.invoke): Ditto.
2911
2912 2013-10-01 Keith Seitz <keiths@redhat.com>
2913
2914 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2915 (parse_linespec): Make 'argptr' const.
2916 Remove temporary cast of 'argptr' to const char **.
2917 (decode_line_full): Pass const pointer to parse_linespec.
2918 (decode_line_1): Likewise.
2919 (decode_objc): Make local variable 'new_argptr' const.
2920 (find_function_symbols): Remove temporary cast to char *
2921 to find_imps.
2922 * objc-lang.c (find_imps): Make argument 'method' const.
2923 Return const.
2924 * objc-lang.h (find_imps): Likewise.
2925
2926 2013-10-01 Keith Seitz <keiths@redhat.com>
2927
2928 * completer.c (skip_quoted_chars): Make all arguments const.
2929 Return const.
2930 (skip_quoted): Likewise.
2931 * completer.h (skip_quoted_chars): Likewise.
2932 (skip_quoted): Likewise.
2933 * defs.h (skip_quoted): Remove duplicate declaration.
2934 * jv-exp.y: Include completer.h.
2935 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2936 * p-exp.y: Include completer.h.
2937
2938 2013-10-01 Keith Seitz <keiths@redhat.com>
2939
2940 * c-exp.y (parse_number): Make first argument const.
2941 Make a copy of the input to manipulate.
2942 (c_parse_escape): Make first argument const.
2943 Make local variable 'tokptr' const.
2944 (parse_string_or_char): Make first two arguments const.
2945 (macro_original_text): Make const.
2946 (lex_one_token): Make local variable 'tokstart' const.
2947 Likewise for local variables named 'p'.
2948 Cast away const for struct stoken (temporary).
2949 * c-lang.h (c_parse_escpae): Make first argument const.
2950 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2951 const.
2952 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2953 var_string case.
2954 * f-exp.y (parse_number): Make first argument const.
2955 (match_string_literal): Make local variable 'tokstart'
2956 const.
2957 (yylex): Make local variable 'p' const.
2958 Cast away const for struct stoken (temporary).
2959 * go-exp.y (parse_number): Make first argument const.
2960 (parse_string_or_char): Likewise.
2961 Make local variable 'tokstart' const.
2962 (lex_one_token): Likewise for numerous locals called 'p'.
2963 Cast away const for struct stoken (temporary).
2964 * jv-exp.y (parse_number): Make first argument const.
2965 Make local variables 'tokstart' and 'tokptr' const.
2966 Cast away const for call to skip_quoted (temporary).
2967 (yylex): Make local variable 'p' const.
2968 Cast away const for struct stoken (temporary).
2969 * m2-exp.y (parse_number): Make local variable 'p' const.
2970 (yylex): Likewise for 'tokstart'.
2971 Cast away const for struct stoken (temporary).
2972 Make local variable 'p' const.
2973 * macroexp.c (get_character_constant): Pass a const string
2974 to c_parse_escape.
2975 (get_string_literal): Likewise.
2976 (macro_expand_next): Make first argument const.
2977 Cast away const for init_shared_buffer.
2978 * macroexp.h (macro_expand_next): Make first argument const.
2979 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2980 Pass a const string to c_parse_escape.
2981 Make local variables 'p' and 'namestart' const.
2982 * parse.c (lexptr): Make const.
2983 (prev_lexptr): Likewise.
2984 (find_template_name_end): Return const.
2985 Make argument const, too.
2986 (parse_exp_in_context): Make first argument const.
2987 Remove the entire const_hack.
2988 (parse_exp_in_context_1): Make first argument const.
2989 * parser-defs.h (find_template_name_end): Return const.
2990 Make argument const, too.
2991 (lexptr): Make const.
2992 (prev_lexptr): Likewise.
2993 * utils.c (parse_escape): Make second argument const.
2994 * utils.h (parse_escape): Likewise.
2995
2996 2013-10-01 Keith Seitz <keiths@redhat.com>
2997
2998 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2999 is now const.
3000 (block_lookup): Make 'raw_name' and 'name' const.
3001 * ada-lex.l (processString): Update for struct stoken.ptr.
3002 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
3003 (operator_stoken): Likewise.
3004 (lex_one_token): Remove temporary cast to char * for
3005 'yylval.sval.ptr'.
3006 * f-exp.y (yylex): Likewise.
3007 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
3008 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
3009 * go-exp.y (lex_one_token): Remove temporary cast to char * for
3010 'yylval.sval.ptr'.
3011 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
3012 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
3013 * linespec.c (struct ls_parser): Make 'stream' const.
3014 (find_parameter_list_end): Make argument 'input' and local
3015 variable 'p' const.
3016 (linespec_lexer_lex_string): Make local variables 'start' and
3017 'p' const.
3018 Use skip_spaces_const instead of skip_spaces.
3019 (linespec_lexer_peek_token): Make local variable 'saved_stream'
3020 const.
3021 (parse_linespec): Temporarily cast 'argptr' to const for
3022 'parser->lexer.stream'.
3023 * m2-exp.y (yylex): Remove temporary cast to char * for
3024 'yylval.sval.ptr'.
3025 * objc-lang.c (add_msglist): Make local variable 'p' const.
3026 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
3027 (exp : STRING): Make 'sp' const.
3028 (parse_number): Make argument 'p' const.
3029 * parser-defs.h (struct stoken): Make 'ptr' const.
3030
3031 2013-10-01 Doug Evans <dje@google.com>
3032
3033 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
3034
3035 2013-10-01 Yao Qi <yao@codesourcery.com>
3036
3037 * varobj.c (c_value_of_root): Remove declaration.
3038 (cplus_value_of_root, java_value_of_root): Likewise.
3039 (ada_value_of_root): Likewise.
3040 (struct language_specific) <value_of_root>: Remove.
3041 (languages): Update initialization.
3042 (check_scope): Move earlier.
3043 (c_value_of_root): Move earlier and rename to ...
3044 (value_of_root_1): ... this.
3045 (value_of_root): Caller update.
3046 (cplus_value_of_root, java_value_of_root): Remove.
3047 (ada_value_of_root): Remove.
3048
3049 2013-10-01 Yao Qi <yao@codesourcery.com>
3050
3051 * varobj.c (varobj_format_string): Remove "unknown".
3052 (languages): Remove the first element.
3053 * varobj.h (enum varobj_languages): Remove vlang_c.
3054
3055 2013-10-01 Yao Qi <yao@codesourcery.com>
3056
3057 * varobj.c (struct language_specific) <language>: Remove.
3058 (languages): Update the initialization.
3059
3060 2013-10-01 Yao Qi <yao@codesourcery.com>
3061
3062 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
3063 "solib-target.h". Include "windows-tdep.h".
3064 (arm_wince_init_abi): Call windows_init_abi. Remove call to
3065 set_solib_ops and set_gdbarch_has_dos_based_file_system.
3066 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
3067 windows-tdep.o to gdb_target_obs.
3068
3069 2013-10-01 Yao Qi <yao@codesourcery.com>
3070
3071 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3072 "solib-target.h".
3073 (amd64_windows_init_abi): Don't call set_solib_ops and
3074 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3075 windows_init_abi instead.
3076 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3077 "solib-target.h".
3078 (i386_cygwin_init_abi): Don't call set_solib_ops,
3079 set_gdbarch_has_dos_based_file_system and
3080 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3081 windows_init_abi instead.
3082 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3083 (windows_init_abi): New function.
3084 (windows_iterate_over_objfiles_in_search_order): Make it
3085 static.
3086 * windows-tdep.h (windows_init_abi): Declare.
3087 (windows_iterate_over_objfiles_in_search_order): Remove
3088 declaration.
3089
3090 2013-10-01 Jerome Guitton <guitton@adacore.com>
3091
3092 Checked in by Joel Brobecker <brobecker@adacore.com>
3093 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3094 incomplete dictionnary instead of None in case of missing
3095 environment variables.
3096 (elinos_init): in case of an incomplete environment, best
3097 effort to load system libraries instead of abort.
3098
3099 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3100
3101 * ada-lang.c (ada_has_this_exception_support): Ignore
3102 mst_solib_trampoline minimal symbols.
3103
3104 2013-09-30 Tristan Gingold <gingold@adacore.com>
3105
3106 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3107 hardware watchpoint.
3108 (i386_darwin_dr_set): Support 32 and 64 bit states.
3109 (i386_darwin_dr_get): Likewise.
3110 (i386_darwin_dr_set_control): Make static.
3111 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3112 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3113
3114 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3115
3116 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3117 Replace TIDGET with ptid_get_lwp.
3118 Replace GET_LWP with ptid_get_lwp.
3119 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3120 Replace BUILD_THREAD with ptid_build.
3121 Replace BUILD_LWP with ptid_build.
3122 Replace PIDGET with ptid_get_pid.
3123 Replace TIDGET with ptid_get_lwp.
3124 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3125 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3126 Replace TIDGET with ptid_get_lwp.
3127 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3128 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3129 Replace TIDGET with ptid_get_lwp.
3130 Replace GET_LWP with ptid_get_lwp.
3131 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3132 * auxv.c: Likewise.
3133 * breakpoint.c: Likewise.
3134 * common/ptid.c (ptid_is_pid): Condense check for
3135 null_ptid and minus_one_ptid.
3136 (ptid_lwp_p): New function.
3137 (ptid_tid_p): New function.
3138 * common/ptid.h: Update comments for accessors.
3139 (ptid_lwp_p): New prototype.
3140 (ptid_tid_p): New prototype.
3141 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3142 * gcore.c: Replace PIDGET with ptid_get_pid.
3143 * gdbthread.h: Likewise.
3144 * gnu-nat.c: Likewise.
3145 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3146 Replace TIDGET with ptid_get_lwp.
3147 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3148 * hppanbsd-nat.c: Likewise.
3149 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3150 Replace TIDGET with ptid_get_lwp.
3151 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3152 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3153 * infcmd.c: Likewise.
3154 * inferior.h: Likewise.
3155 * inflow.c: Likewise.
3156 * infrun.c: Likewise.
3157 * linux-fork.c: Likewise.
3158 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3159 Replace GET_PID with ptid_get_pid.
3160 Replace is_lwp with ptid_lwp_p.
3161 Replace GET_LWP with ptid_get_lwp.
3162 Replace BUILD_LWP with ptid_build.
3163
3164 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3165
3166 * common/linux-btrace.c: Move sys/syscall.h out of the
3167 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3168 Also check for SYS_perf_event_open before attempting to buid.
3169
3170 2013-09-27 Doug Evans <dje@google.com>
3171
3172 * dwarf2read.c (dwarf2_section_info): Add comment.
3173 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3174 All uses updated.
3175 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3176 (dwarf2_read_section): Delete unused local "header". Add section
3177 name to error message.
3178 (create_dwo_in_dwp): Tweak comment.
3179 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3180
3181 * dwarf2read.c (die_reader_specs): Tweak comment.
3182 (get_section_bfd_owner, get_section_bfd_section): New functions.
3183 (get_section_name, get_section_file_name): New functions.
3184 (get_section_id, get_section_flags): New functions.
3185 (*): Use new functions to access section fields.
3186
3187 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3188 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3189 arg "htab". All callers updated.
3190 (create_debug_types_hash_table): Remove redundant copy of
3191 abbrev_section.
3192 (create_dwo_in_dwp): Tweak comments.
3193 (read_str_index): Tweak comment. Record dwarf form name in static
3194 local.
3195
3196 2013-09-27 Pedro Alves <palves@redhat.com>
3197
3198 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3199 (remote_filename_p): Add comment.
3200 * remote.c (remote_filename_p): Adjust to use
3201 REMOTE_SYSROOT_PREFIX.
3202 * solib.c (solib_find): When deciding whether we need to add a
3203 directory separator, check whether the sysroot is "remote:"
3204 instead of checking whether the patch has a drive spec. Add
3205 comments.
3206
3207 2013-09-27 Pedro Alves <palves@redhat.com>
3208
3209 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3210 Delete fields.
3211 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3212 directly.
3213
3214 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3215
3216 Fix set debug frame output.
3217 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3218 SENTINEL_FRAME entry lower to match enum frame_type order.
3219
3220 2013-09-26 Pierre Muller <muller@sourceware.org>
3221
3222 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3223 AMD64_R15_REGNUM when a register index is expected.
3224 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3225 Substitute in array.
3226 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3227 (amd64_push_arguments): Substitute in integer_regnum array.
3228
3229 2013-09-25 Doug Evans <dje@google.com>
3230
3231 * objfiles.c (allocate_objfile): Move comment to better place.
3232
3233 New option "set debug symfile on".
3234 * NEWS: Mention "set debug symfile".
3235 * Makefile.in (SFILES): Add symfile-debug.c.
3236 (COMMON_OBS): Add symfile-debug.o.
3237 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3238 objfile's symbol functions.
3239 * objfiles.h (objfile_set_sym_fns): Declare.
3240 * symfile-debug.c: New file.
3241 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3242 objfile's symbol functions.
3243 (reread_symbols): Ditto.
3244
3245 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3246 All uses updated.
3247 (add_symtab_fns): Update prototype.
3248 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3249 (registered_sym_fns): ... this.
3250 (symtab_fns): Update.
3251 (add_symtab_fns): New arg "flavour". All callers updated.
3252 (find_sym_fns): Rewrite to use new sym_fns registry.
3253
3254 * symfile.h (struct sym_fns): Add "objfile" argument to
3255 sym_read_linetable. All uses updated.
3256
3257 * symtab.c (domain_name, search_domain_name): New functions.
3258 * symtab.h (domain_name, search_domain_name): Declare.
3259
3260 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3261 map_matching_symbols so objfile is first. All uses updated.
3262 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3263 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3264
3265 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3266
3267 PR shlibs/8882
3268 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3269 link map entries.
3270
3271 2013-09-24 Doug Evans <dje@google.com>
3272
3273 * objfiles.c (free_objfile): Move comment.
3274
3275 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3276
3277 * ada-exp.y (string_to_operator): Delete.
3278 (dummy_string_to_ada_operator): Delete.
3279
3280 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3281
3282 Revert:
3283 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3284 amd64-tdep.c.
3285 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3286 call_dummy_integer_regs, and classify.
3287 * amd64-tdep.h (amd64_classify): Add declaration.
3288 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3289 (amd64_reg_class): Delete, moved to i386-tdep.h.
3290 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3291 Replace call to amd64_classify by call to tdep->classify.
3292 (amd64_push_arguments): Get the list of registers to use for
3293 passing integer parameters from the gdbarch tdep structure,
3294 rather than using a hardcoded one. Replace calls to amd64_classify
3295 by calls to tdep->classify.
3296 (amd64_push_dummy_call): Get the register number used for
3297 the "hidden" argument from tdep->call_dummy_integer_regs.
3298 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3299 and tdep->call_dummy_integer_regs. Set tdep->classify.
3300
3301 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3302
3303 Revert:
3304 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3305 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3306 where tdep->memory_args_by_pointer is non-zero.
3307
3308 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3309
3310 Revert:
3311 * i386-tdep.h (struct gdbarch_tdep): Add new field
3312 integer_param_regs_saved_in_caller_frame.
3313 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3314 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3315
3316 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3317
3318 * amd64-windows-tdep.c: #include "value.h"
3319 (amd64_windows_classify): Delete.
3320 (amd64_windows_passed_by_integer_register)
3321 (amd64_windows_passed_by_xmm_register)
3322 (amd64_windows_passed_by_pointer)
3323 (amd64_windows_adjust_args_passed_by_pointer)
3324 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3325 (amd64_windows_push_dummy_call): New functions.
3326 (amd64_windows_init_abi): Remove setting of
3327 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3328 tdep->classify, tdep->memory_args_by_pointer and
3329 tdep->integer_param_regs_saved_in_caller_frame.
3330 Add call to set_gdbarch_push_dummy_call.
3331
3332 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3333
3334 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3335 objfile->original_name.
3336
3337 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 Pass down original filename for objfile.
3340 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3341 * elfread.c (elf_symfile_read): Likewise.
3342 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3343 longer set ORIGINAL_NAME.
3344 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3345 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3346 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3347 symbol_file_add_from_bfd call.
3348 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3349 (macho_check_dsym): Add parameter filenamep. Change function comment.
3350 Set *filenamep.
3351 (macho_symfile_read): New variable dsym_filename. Update
3352 macho_check_dsym call. Use it for symbol_file_add_separate.
3353 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3354 it. Use it for objfile->original_name.
3355 (objfile_name): Return OBFD's filename, if available.
3356 * objfiles.h (allocate_objfile): Add new parameter name.
3357 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3358 * symfile-mem.c (symbol_file_add_from_memory): Update
3359 symbol_file_add_from_bfd call.
3360 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3361 comment for it.
3362 (symbol_file_add_with_addrs): New parameter name, add function comment
3363 for it. Remove variable name. Update allocate_objfile call.
3364 (symbol_file_add_separate): New parameter name, add function comment
3365 for it. Update symbol_file_add_with_addrs call.
3366 (symbol_file_add_from_bfd): New parameter name. Update
3367 symbol_file_add_with_addrs call.
3368 (symbol_file_add): Update symbol_file_add_from_bfd call.
3369 (reread_symbols): New variable original_name. Save
3370 objfile->original_name by it.
3371 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3372 second parameter.
3373
3374 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3375
3376 Code cleanup: Add objfile_name accessor function.
3377 * ada-lang.c (is_known_support_routine): Use objfile_name.
3378 * auto-load.c (source_gdb_script_for_objfile)
3379 (auto_load_objfile_script): Likewise.
3380 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3381 * dbxread.c (dbx_symfile_read): Likewise.
3382 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3383 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3384 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3385 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3386 (lookup_dwp_signatured_type, lookup_dwo_unit)
3387 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3388 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3389 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3390 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3391 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3392 (read_subrange_type, load_partial_dies, read_partial_die)
3393 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3394 (die_containing_type, build_error_marker_type, lookup_die_type)
3395 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3396 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3397 (get_DW_AT_signature_type, write_psymtabs_to_index)
3398 (save_gdb_index_command): Likewise.
3399 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3400 Likewise.
3401 * expprint.c (dump_subexp_body_standard): Likewise.
3402 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3403 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3404 original_name.
3405 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3406 obj_name, use objfile_name for it, use the variable.
3407 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3408 Use objfile_name.
3409 * machoread.c (macho_symtab_read, macho_check_dsym)
3410 (macho_symfile_relocate): Likewise.
3411 * maint.c (maintenance_translate_address): Likewise.
3412 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3413 * minsyms.c (install_minimal_symbols): Likewise.
3414 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3415 original_name.
3416 (filter_overlapping_sections): Use objfile_name.
3417 (objfile_name): New function.
3418 * objfiles.h (struct objfile): Rename field name to original_name.
3419 (objfile_name): New prototype.
3420 * printcmd.c (sym_info, address_info): Use objfile_name.
3421 * probe.c (parse_probes, collect_probes, compare_probes)
3422 (info_probes_for_ops): Likewise.
3423 * progspace.c (clone_program_space): Likewise.
3424 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3425 (maintenance_info_psymtabs): Likewise.
3426 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3427 (source_section_scripts): Likewise.
3428 * python/py-objfile.c (objfpy_get_filename): Likewise.
3429 * python/py-progspace.c (pspy_get_filename): Likewise.
3430 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3431 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3432 * solib.c (solib_read_symbols): Likewise.
3433 * stabsread.c (scan_file_globals): Likewise.
3434 * stap-probe.c (handle_stap_probe): Likewise.
3435 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3436 (find_separate_debug_file_by_debuglink): Likewise.
3437 (reread_symbols): Likewise. Use the objfile field name renamed to
3438 original_name.
3439 (allocate_symtab): Use objfile_name.
3440 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3441 (dump_objfile, dump_msymbols, dump_symtab_1)
3442 (maintenance_print_msymbols, maintenance_print_objfiles)
3443 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3444 * target.c (target_translate_tls_address, target_info): Likewise.
3445 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3446 objfile_name.
3447
3448 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3449
3450 Code cleanup.
3451 * probe.c (parse_probes): Rename variable objfile_name to
3452 objfile_namestr.
3453
3454 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3455
3456 Remove solib-sunos.c.
3457 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3458 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3459 * objfiles.c (rt_common_objfile): Remove.
3460 (free_objfile): Remove rt_common_objfile comparison.
3461 * objfiles.h (rt_common_objfile): Remove.
3462 * solib-sunos.c: Remove.
3463 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3464
3465 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3466
3467 Remove a.out NetBSD and OpenBSD hosts.
3468 * NEWS (Removed native configurations): New.
3469 * config/arm/nbsdaout.mh: Remove.
3470 * config/i386/nbsdaout.mh: Remove.
3471 * config/i386/obsdaout.mh: Remove.
3472 * config/m68k/nbsdaout.mh: Remove.
3473 * config/sparc/nbsdaout.mh: Remove.
3474 * config/vax/nbsdaout.mh: Remove.
3475 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3476 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3477 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3478 error.
3479 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3480 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3481 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3482
3483 2013-09-23 Tom Tromey <tromey@redhat.com>
3484
3485 * linespec.c (struct minsym_and_objfile): Remove.
3486 (minsym_and_objfile_d): Remove.
3487 (struct linespec, struct collect_info, linespec_parse_basic)
3488 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3489 (compare_msymbols, find_method, find_function_symbols)
3490 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3491 (add_minsym, search_minsyms_for_name): Update.
3492
3493 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3494
3495 * regcache.c: Add include of valprint.h.
3496 (dump_endian_bytes): Delete.
3497 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3498
3499 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3500
3501 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3502
3503 2013-09-19 Pedro Alves <palves@redhat.com>
3504
3505 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3506 breakpoints.
3507
3508 2013-09-19 Pedro Alves <palves@redhat.com>
3509 Thomas Schwinge <thomas@codesourcery.com>
3510 Yue Lu <hacklu.newborn@gmail.com>
3511
3512 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3513 Take a gdb_byte pointer instead of a char pointer.
3514
3515 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3516 gnu_xfer_partial helper.
3517 (gnu_xfer_partial): New function.
3518 (gnu_target): Don't install a deprecated_xfer_memory hook.
3519 Install a to_xfer_partial hook.
3520
3521 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3522
3523 Constification.
3524 * main.c (captured_main): Replace catch_command_errors by
3525 catch_command_errors_const. Twice.
3526 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3527 (symbol_file_add): Make name parameter const.
3528 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3529 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3530 variable name. Change their usage accordingly.
3531 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3532 const.
3533 (symbol_file_add_main): Make args parameter const.
3534
3535 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3536 Ulrich Weigand <uweigand@de.ibm.com>
3537
3538 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3539 of c_value member.
3540 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3541
3542 2013-09-18 Pedro Alves <palves@redhat.com>
3543 Yue Lu <hacklu.newborn@gmail.com>
3544
3545 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3546 (gnu_create_inferior)
3547 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3548 (set_sig_thread_cmd): Use the lwpid field of ptids to
3549 store/extract thread ids instead of the tid field.
3550 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3551
3552 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3553
3554 * infcmd.c (default_print_one_register_info): Add detection of
3555 optimized out values.
3556 (default_print_registers_info): Switch to using
3557 get_frame_register_value.
3558
3559 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3560
3561 * infrun.c (handle_inferior_event): Check if we know the
3562 function start address before setting a resume breakpoint.
3563
3564 2013-09-18 Pedro Alves <palves@redhat.com>
3565
3566 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3567 minus_one_ptid instead of looking at the ptid's tid field and
3568 comparing that to -1.
3569
3570 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3571
3572 * main.h (get_gdb_program_name): Remove extra whitespace.
3573
3574 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3575
3576 * main.h (get_gdb_program_name): Add declaration.
3577 * main.c (get_gdb_program_name): Add definition.
3578
3579 2013-09-17 Doug Evans <dje@google.com>
3580
3581 * dwarf2read.c: Move definitions of complaint functions to after
3582 forward declarations of local functions.
3583
3584 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3585 Pedro Alves <palves@redhat.com>
3586
3587 PR gdb/11568
3588 * breakpoint.c (remove_threaded_breakpoints): New function.
3589 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3590 as thread_exit observer.
3591
3592 2013-09-17 Pedro Alves <palves@redhat.com>
3593
3594 PR gdb/15911
3595 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3596 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3597 * corelow.c (core_open):
3598 * frame.h (print_stack_frame, print_frame_info): New
3599 'set_current_sal' parameter.
3600 * infcmd.c (finish_command, kill_command): Adjust call to
3601 print_stack_frame.
3602 * inferior.c (inferior_command): Likewise.
3603 * infrun.c (normal_stop): Likewise.
3604 * linux-fork.c (linux_fork_context): Likewise.
3605 * record-full.c (record_full_goto_entry, record_full_restore):
3606 Likewise.
3607 * remote-mips.c (common_open): Likewise.
3608 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3609 Use it.
3610 (print_frame_info): New 'set_current_sal' parameter. Set the last
3611 displayed sal depending on the new paremeter instead of looking at
3612 print_what.
3613 (backtrace_command_1, select_and_print_frame, frame_command)
3614 (current_frame_command, up_command, down_command): Adjust call to
3615 print_stack_frame.
3616 * thread.c (print_thread_info, restore_selected_frame)
3617 (do_captured_thread_select): Adjust call to print_stack_frame.
3618 * tracepoint.c (tfind_1): Likewise.
3619 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3620 (mi_cmd_stack_info_frame): Likewise.
3621 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3622 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3623
3624 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3625
3626 * value.c (isvoid_internal_fn): Replace "parameter" with
3627 "argument".
3628
3629 2013-09-16 Stan Shebs <stan@codesourcery.com>
3630
3631 * README: Update references to writing code for GDB.
3632 * configure.ac (build_warnings): Remove obsolete comment.
3633 * configure: Regenerate.
3634 * gdbarch.sh: Remove references to gdbint.texinfo.
3635 * gdbarch.h: Regenerate.
3636 * gdbtypes.c (objfile_type): Remove comments referencing internals
3637 manual and D10V.
3638
3639 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3640
3641 * NEWS: Mention new convenience function $_isvoid.
3642 * value.c (isvoid_internal_fn): New function.
3643 (_initialize_values): Add new convenience function $_isvoid.
3644
3645 2013-09-16 Pierre Muller <muller@sourceware.org>
3646
3647 * arm-linux-tdep.c: Add "elf/common.h" header.
3648 Remove AT_HWCAP macro definintion as it is provided in
3649 added include file.
3650 * s390-tdep.c: Remove system header <elf.h>
3651 Add "elf/common.h" header for AT_HWCAP definition.
3652 (s390_core_read_description): Use correct CORE_ADDR
3653 for hwcap local variable used as third parameter
3654 of function target_auxv_search.
3655
3656 2013-09-14 Pierre Muller <muller@sourceware.org>
3657 Tom Tromey <tromey@redhat.com>
3658 Pedro Alves <palves@redhat.com>
3659
3660 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3661 mode if operating system doesn't know O_CLOEXEC.
3662
3663 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3664
3665 Code cleanup.
3666 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3667 inner block.
3668
3669 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3670
3671 * NEWS: Mention TDB support.
3672 * features/s390-tdb.xml: New file.
3673 * features/s390-te-linux64.xml: New file.
3674 * features/s390x-te-linux64.xml: New file.
3675 * features/Makefile (WHICH): Add new tdescs above.
3676 (s390-te-linux64-expedite): Set.
3677 (s390x-te-linux64-expedite): Set.
3678 * features/s390-te-linux64.c: New file (generated).
3679 * features/s390x-te-linux64.c: New file (generated).
3680 * regformats/s390-te-linux64.dat: New file (generated).
3681 * regformats/s390x-te-linux64.dat: New file (generated).
3682 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3683 (HWCAP_S390_TE): Likewise.
3684 (S390_TDB_DWORD0_REGNUM): Likewise.
3685 (S390_TDB_DWORD0_REGNUM): Likewise.
3686 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3687 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3688 (S390_TDB_ATIA_REGNUM): Likewise.
3689 (S390_TDB_R0_REGNUM): Likewise.
3690 (S390_TDB_R1_REGNUM): Likewise.
3691 (S390_TDB_R2_REGNUM): Likewise.
3692 (S390_TDB_R3_REGNUM): Likewise.
3693 (S390_TDB_R4_REGNUM): Likewise.
3694 (S390_TDB_R5_REGNUM): Likewise.
3695 (S390_TDB_R6_REGNUM): Likewise.
3696 (S390_TDB_R7_REGNUM): Likewise.
3697 (S390_TDB_R8_REGNUM): Likewise.
3698 (S390_TDB_R9_REGNUM): Likewise.
3699 (S390_TDB_R10_REGNUM): Likewise.
3700 (S390_TDB_R11_REGNUM): Likewise.
3701 (S390_TDB_R12_REGNUM): Likewise.
3702 (S390_TDB_R13_REGNUM): Likewise.
3703 (S390_TDB_R14_REGNUM): Likewise.
3704 (S390_TDB_R15_REGNUM): Likewise.
3705 (S390_NUM_REGS): Increase.
3706 (S390_IS_TDBREGSET_REGNUM): New macro.
3707 (s390_regmap_tdb): Declare.
3708 (s390_sizeof_tdbregset): Define.
3709 (tdesc_s390_te_linux64): Declare.
3710 (tdesc_s390x_te_linux64): Likewise.
3711 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3712 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3713 (s390_regmap_tdb): New regmap.
3714 (s390_supply_tdb_regset): New function.
3715 (s390_tdb_regset): New regset.
3716 (s390_linux64v2_regset_sections): Add TDB regset to list.
3717 (s390x_linux64v2_regset_sections): Likewise.
3718 (s390_regset_from_core_section): Recognize TDB core note section.
3719 (s390_core_read_description): If HWCAP indicates TE support,
3720 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3721 (s390_gdbarch_init): Handle TDB regset.
3722 (_initialize_s390_tdep): Initialize new tdescs.
3723 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3724 (have_regset_tdb): New variable.
3725 (s390_native_supply): Support register invalidation.
3726 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3727 (check_regset): Treat ENODATA as "regset exists".
3728 (s390_linux_fetch_inferior_registers): Add TDB.
3729 (s390_read_description): Check for TDB existence and select
3730 appropriate tdesc.
3731 * gdbserver/Makefile.in (clean): Add removal of new makefile
3732 targets.
3733 (s390-te-linux64.c): New makefile target.
3734 (s390x-te-linux64.c): Likewise.
3735 * gdbserver/configure.srv (srv_regobj): Append new objects
3736 s390-te-linux64.o and s390x-te-linux64.o.
3737 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3738 s390x-te-linux64.xml, and s390-tdb.xml.
3739 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3740 declaration.
3741 (tdesc_s390_te_linux64): Likewise.
3742 (init_registers_s390x_te_linux64): Likewise.
3743 (tdesc_s390x_te_linux64): Likewise.
3744 (s390_check_regset): Treat ENODATA as "regset exists".
3745 (s390_arch_setup): Add TDB regset support.
3746 (initialize_low_arch): Initialize registers for new tdescs.
3747
3748 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3749
3750 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3751 (S390_IS_FPREGSET_REGNUM): New macro.
3752 * s390-tdep.c (s390_dwarf_regmap): Make const.
3753 (regnum_is_gpr_full): New function for replacing repeated code.
3754 (s390_pseudo_register_name): Use it.
3755 (s390_pseudo_register_type): Likewise.
3756 (s390_pseudo_register_read): Likewise.
3757 (s390_pseudo_register_write): Likewise.
3758 (s390_unwind_pseudo_register): Likewise.
3759 (s390_regmap_gregset): New format for regmap.
3760 (s390x_regmap_gregset): Likewise.
3761 (s390_regmap_fpregset): Likewise.
3762 (s390_regmap_upper): Likewise.
3763 (s390_regmap_last_break): Likewise.
3764 (s390_regmap_system_call): Likewise.
3765 (s390_supply_regset): Adjust to new regmap format.
3766 (s390_collect_regset): Likewise.
3767 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3768 (s390_native_collect): Likewise.
3769 (supply_gregset): Likewise.
3770 (fill_gregset): Likewise.
3771 (supply_fpregset): Likewise.
3772 (fill_fpregset): Likewise.
3773 (fetch_regset): Likewise.
3774 (store_regset): Likewise.
3775 (s390_linux_fetch_inferior_registers): Likewise.
3776 (s390_linux_fetch_inferior_registers): Likewise.
3777
3778 2013-09-12 Andrew Pinski <apinski@cavium.com>
3779
3780 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3781
3782 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3783
3784 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3785
3786 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3787
3788 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3789
3790 2013-09-06 Pedro Alves <palves@redhat.com>
3791
3792 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3793 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3794 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3795 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3796 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3797 gdb_stdlog.
3798
3799 2013-09-06 Pedro Alves <palves@redhat.com>
3800
3801 * remote-sim.c (dump_mem): Constify buf parameter.
3802 gdbsim_xfer_inferior_memory): Rename to ...
3803 (gdbsim_xfer_memory): ... this. Adjust interface as
3804 target_xfer_partial helper.
3805 (gdbsim_xfer_partial): New function.
3806 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3807 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3808
3809 2013-09-06 Pedro Alves <palves@redhat.com>
3810
3811 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3812 host_address_to_string, and send debug output to gdb_stdlog.
3813
3814 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3815
3816 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3817 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3818 gdb_target_obs for cris target.
3819 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3820 (cris_gdbarch_init): Move calls to
3821 set_gdbarch_fetch_tls_load_module_address and
3822 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3823 Add call to gdbarch_init_osabi.
3824 * cris-linux-tdep.c: New file.
3825 * cris-tdep.h: New file.
3826
3827 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3828
3829 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3830 to deprecated_init_ui_hook.
3831
3832 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3833
3834 * cli/cli-interp.c (_initialize_cli_interp): Add a
3835 command_loop_proc to interp_procs.
3836 * event-top.c (cli_command_loop): Change signature to match
3837 interp_command_loop_ftype.
3838 * event-top.h (cli_command_loop): Same.
3839 * interps.c (interp_new): Require every interpreter to have a
3840 command_loop_proc.
3841 (current_interp_command_loop): Just call the command_loop_proc on
3842 the current interpreter.
3843 * tui/tui-interp.c (_initialize_tui_interp): Add a
3844 command_loop_proc to interp_procs.
3845
3846 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3847
3848 * cris-tdep.c (cris_gdbarch_init): Add call to
3849 get_gdbarch_fetch_tls_load_module_address.
3850
3851 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3852
3853 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3854 (cris_elf_gregset_t): Rename from elf_gregset_t.
3855 (crisv32_elf_gregset_t): Adjust.
3856 (cris_supply_gregset, fetch_core_registers): Adjust.
3857
3858 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3859
3860 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3861
3862 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3863
3864 * defs.h (deprecated_command_loop_hook): Remove, including
3865 references in comments.
3866 * interps.c (current_interp_command_loop): No longer use
3867 deprecated_command_loop_hook.
3868 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3869 setup.
3870 * top.c (deprecated_command_loop_hook): Remove.
3871
3872 2013-09-05 Pedro Alves <palves@redhat.com>
3873
3874 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3875 local is now int instead of ULONGEST. Print it with %d
3876 instead of paddress.
3877
3878 2013-09-05 Tristan Gingold <gingold@adacore.com>
3879
3880 * MAINTAINERS: Remove avr maintainership.
3881
3882 2013-09-05 Pedro Alves <palves@redhat.com>
3883
3884 * findvar.c (value_of_register): Rework in terms of
3885 value_of_register_lazy.
3886
3887 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3888
3889 * symfile.c (add_symbol_file_command): Remove trailing
3890 whitespaces and blank line after comment.
3891
3892 2013-09-05 Pedro Alves <palves@redhat.com>
3893
3894 * tui/tui-regs.c (tui_register_format): Don't look at the
3895 register's name here. Return string representing register
3896 value instead of storing it in the data element.
3897 (tui_get_register): Compare register string representations
3898 instead of register value states and contents.
3899
3900 2013-09-05 Pedro Alves <palves@redhat.com>
3901
3902 PR tui/15933
3903 * tui/tui-regs.c (tui_show_registers): Show registers of the
3904 selected frame, not the current frame.
3905
3906 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3907
3908 * MAINTAINERS (Write After Approval): Add myself to the list.
3909
3910 2013-09-04 Doug Evans <dje@google.com>
3911
3912 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3913 (queue_and_load_dwo_tu): New function.
3914 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3915 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3916 Make dependent_cu optional.
3917 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3918 and an older .gdb_index is in use, queue and load all its TUs too.
3919
3920 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3921
3922 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3923 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3924 variable search_flags.
3925 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3926 (OPF_RETURN_REALPATH): ... here.
3927 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3928 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3929 call. Twice.
3930 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3931 openp call.
3932 * solib.c (solib_find): Likewise. Four times.
3933 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3934 in the function comment and for the realpath_fptr variable.
3935 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3936 (find_and_open_source): Likewise. Twice.
3937 * symfile.c (symfile_bfd_open): Likewise, also twice.
3938
3939 2013-09-04 Doug Evans <dje@google.com>
3940
3941 * progspace.c (save_current_space_and_thread): Remove unnecessary
3942 call to save_current_inferior.
3943
3944 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3945
3946 * sh64-tdep.c (sh64_do_register): Return after printing message
3947 about unavailable register contents.
3948
3949 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3950 Pedro Alves <palves@redhat.com>
3951
3952 * symfile.c (add_symbol_file_command): Error out on unknown
3953 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3954 options and collapse into single conditional branch.
3955
3956 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3957
3958 * inf-child.c (inf_child_follow_fork): New parameter
3959 detach_fork.
3960 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3961 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3962 * inferior.h (detach_fork): Remove.
3963 * infrun.c (detach_fork): Adjust comment and make it
3964 static.
3965 (follow_fork): Pass detach_fork parameter to
3966 target_follow_fork.
3967 * linux-nat.c (linux_child_follow_fork): New parameter
3968 detach_fork.
3969 * target.c (target_follow_fork): New parameter detach_fork.
3970 Pass detach_fork as parameter and print its value.
3971 * target.h (struct target_ops) <to_follow_fork>: New int
3972 parameter.
3973 (target_follow_fork): New parameter detach_fork.
3974
3975 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3976
3977 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3978 Replace sec->bfd by sec->the_bfd_section->owner.
3979
3980 2013-09-03 Yao Qi <yao@codesourcery.com>
3981
3982 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3983 from linux_has_shared_address_space.
3984 (linux_has_shared_address_space): Call linux_is_uclinux.
3985 * linux-tdep.h (linux_is_uclinux): Declare.
3986 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3987 linux_is_uclinux.
3988
3989 2013-09-03 Yao Qi <yao@codesourcery.com>
3990
3991 * config/djgpp/fnchange.lst: Remove entry of
3992 i386-interix-nat.c and i386-interix-tdep.c.
3993 * configure.ac: Remove '*-*-interix*'.
3994 * configure: Re-generated.
3995 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3996 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3997 obsolete comments.
3998 * osabi.c (gdb_osabi_names): Remove "Interix".
3999
4000 2013-09-03 Yao Qi <yao@codesourcery.com>
4001
4002 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
4003
4004 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
4005
4006 * record.h (record_print_flag) <record_print_src_line,
4007 record_print_insn_range>: Rename into ...
4008 (record_print_flag) <record_print_src_line,
4009 record_print_insn_range>: ... this. Update all users.
4010
4011 2013-09-02 Pierre Muller <muller@sourceware.org>
4012
4013 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
4014 error code.
4015
4016 2013-09-02 Pierre Muller <muller@sourceware.org>
4017
4018 * windows-nat.c (windows_xfer_memory): Fix compilation failure
4019 by use of plongest function.
4020
4021 2013-09-02 Tristan Gingold <gingold@adacore.com>
4022
4023 * NEWS: Add entry mentioning support for native Windows x64
4024 SEH data.
4025
4026 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
4027 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
4028 (struct amd64_windows_frame_cache): New struct.
4029 (amd64_windows_w2gdb_regnum): New global.
4030 (pc_in_range, amd64_windows_frame_decode_epilogue)
4031 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
4032 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
4033 (amd64_windows_frame_this_id): New functions.
4034 (amd64_windows_frame_unwind): New static global.
4035 (amd64_windows_skip_prologue): New function.
4036 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
4037 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
4038 with amd64_windows_skip_prologue.
4039
4040 2013-08-30 Joel Brobecker <brobecker@adacore.com>
4041
4042 GDB 7.6.1 released.
4043
4044 2013-08-30 Pedro Alves <palves@redhat.com>
4045
4046 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
4047 SRC_AND_LOC.
4048
4049 2013-08-30 Pedro Alves <palves@redhat.com>
4050
4051 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
4052 warning text.
4053
4054 2013-08-30 Pedro Alves <palves@redhat.com>
4055
4056 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
4057 Adjust arguments to print_stack_frame.
4058
4059 2013-08-30 Pedro Alves <palves@redhat.com>
4060
4061 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
4062
4063 2013-08-30 Pedro Alves <palves@redhat.com>
4064
4065 * frame.h (show_and_print_stack_frame): Delete declaration.
4066
4067 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
4068
4069 PR python/15461
4070 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4071 (archpy_name): Check for valid architecture.
4072 (archpy_disassemble): Ditto.
4073
4074 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4075
4076 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4077 instead of "long long" in call to ptrace64.
4078
4079 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4080
4081 * mi/mi-interp.c (mi_command_loop): Change signature to match
4082 interp_command_loop_ftype.
4083 (mi1_command_loop): Remove.
4084 (mi2_command_loop): Remove.
4085 (mi3_command_loop): Remove.
4086 (mi_interpreter_resume): Remove setting of
4087 deprecated_command_loop_hook.
4088 (_initialize_mi_interp): Set mi_command_loop as the command loop
4089 callback.
4090
4091 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4092
4093 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4094 value_type.
4095
4096 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4097
4098 * value.c (allocate_value_contents): Make static.
4099 * value.h (allocate_value_contents): Remove prototype.
4100
4101 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4102
4103 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4104 of assembling value via allocate_value_lazy and attribute setter.
4105 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4106 assembling value via allocate_value_lazy and attribute setter.
4107 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4108 assembling value via allocate_value_lazy and attribute setter.
4109
4110 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4111
4112 * value.c (value_from_contents_and_address): Replace allocate_value and
4113 memcpy with value_from_contents.
4114
4115 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4116
4117 * python/py-framefilter.c (py_print_frame): Remove usage of
4118 PyString_AsString. Use python_string_to_host_string instead.
4119 Refactor function to work with a string as a new allocation
4120 instead of a pointer.
4121 (py_print_frame): Ditto.
4122 * python/lib/gdb/frames.py (return_list): Cain iterators together
4123 instead of adding them as a list.
4124 (_sort_list): Call return_list, and remove duplicate code.
4125 (execute_frame_filters): Convert iterator to a list with list().
4126 * python/lib/gdb/command/frame_filters.py
4127 (SetFrameFilterPriority._set_filter_priority): Convert priority
4128 attribute to an integer.
4129 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4130 wrapper function __next__.
4131 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4132 define as "str".
4133
4134 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4135
4136 PR python/15752
4137 * python/py-framefilter.c (apply_frame_filter): Check
4138 gdb_python_initialized. Exit if the Python frame-filter code
4139 cannot be initialized.
4140
4141 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4142
4143 PR cli/15842
4144 * top.c (print_gdb_version): Remove erroneous newline after help
4145 text.
4146
4147 2013-08-29 Yao Qi <yao@codesourcery.com>
4148
4149 * varobj.c (install_dynamic_child): Remove trailing space.
4150 Add one blank line after variable declaration.
4151
4152 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 PR gdb/15415
4155 * corefile.c (get_exec_file): Use exec_filename.
4156 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4157 * exec.c (exec_close): Free EXEC_FILENAME.
4158 (exec_file_attach): New variable canonical_pathname. Use
4159 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4160 EXEC_FILENAME.
4161 * exec.h (exec_filename): New.
4162 * inferior.c (print_inferior, inferior_command): Use
4163 PSPACE_EXEC_FILENAME.
4164 * mi/mi-main.c (print_one_inferior): Likewise.
4165 * progspace.c (clone_program_space, print_program_space): Likewise.
4166 * progspace.h (struct program_space): New field pspace_exec_filename.
4167 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4168 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4169
4170 2013-08-28 Will Newton <will.newton@linaro.org>
4171
4172 * common/linux-ptrace.c: Include stdint.h unconditionally.
4173
4174 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 Code cleanup.
4177 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4178
4179 2013-08-28 Yao Qi <yao@codesourcery.com>
4180 Pedro Alves <palves@redhat.com>
4181
4182 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4183 instead of stdio_fileopen.
4184 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4185 .Call stderr_fileopen instead of stdio_fileopen.
4186 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4187 [__MINGW32__] (stderr_file_fputs): New function.
4188 (stderr_fileopen): New function.
4189 * ui-file.h (stderr_fileopen): Declare.
4190
4191 2013-08-27 Doug Evans <dje@google.com>
4192
4193 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4194 (struct dwarf2_per_cu_data): Ditto.
4195 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4196 (process_imported_unit_die): Ditto.
4197 (follow_die_sig_1): Simplify assert.
4198
4199 2013-08-27 Pedro Alves <palves@redhat.com>
4200
4201 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4202 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4203 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4204 windows_xfer_memory directly.
4205 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4206
4207 2013-08-27 Pedro Alves <palves@redhat.com>
4208
4209 * darwin-nat.c (darwin_xfer_memory): Delete.
4210 (_initialize_darwin_inferior): Don't install a
4211 deprecated_xfer_memory method.
4212
4213 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4214 Yao Qi <yao@codesourcery.com>
4215
4216 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4217 (parse_no_frames_option): Remove.
4218 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4219 (mi_cmd_stack_list_args): Adjust.
4220 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4221 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4222 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4223 Caller update.
4224 (list_args_or_locals): New parameter 'skip_unavailable'.
4225 Handle it.
4226 * valprint.c (scalar_type_p): Rename to ...
4227 (val_print_scalar_type_p): ... this. Make extern.
4228 (val_print, value_check_printable): Adjust.
4229 * valprint.h (val_print_scalar_type_p): Declare.
4230 * value.c (value_entirely_unavailable): New function.
4231 * value.h (value_entirely_unavailable): Declare.
4232
4233 * NEWS: Mention the new option "--skip-unavailable" to MI
4234 commands '-stack-list-locals', '-stack-list-arguments' and
4235 '-stack-list-variables'.
4236
4237 2013-08-27 Yao Qi <yao@codesourcery.com>
4238
4239 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4240 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4241 options.
4242 * mi/mi-getopt.c (mi_getopt): Remove.
4243 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4244 'error_on_unknown'.
4245 (mi_getopt): Call mi_getopt_1.
4246 (mi_getopt_silent): New.
4247 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4248
4249 2013-08-26 Doug Evans <dje@google.com>
4250
4251 PR symtab/15885
4252 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4253 .gdb_index is in use.
4254 * symfile.c (reread_symbols): Reset objfile->sf.
4255
4256 * NEWS: Document "mt print objfiles" now takes optional regexp.
4257 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4258 regexp of objfiles to print.
4259 (_initialize_symmisc): Update doc string for "mt print objfiles".
4260
4261 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4262 missing debug info checks.
4263
4264 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4265 Ulrich Weigand <uweigand@de.ibm.com>
4266
4267 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4268 line tables generated by XLC compiled binaries.
4269
4270 2013-08-23 Doug Evans <dje@google.com>
4271
4272 * symmisc.c (dump_symtab): Delete prototype.
4273 (dump_msymbols, dump_objfile): Ditto.
4274 (maintenance_info_symtabs): Mark as dont_repeat.
4275 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4276
4277 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4278 debugging printf to better location.
4279
4280 2013-08-23 Pedro Alves <palves@redhat.com>
4281
4282 * target.c (target_read_live_memory): Change type of 'ret' local
4283 to LONGEST.
4284
4285 2013-08-23 Pedro Alves <palves@redhat.com>
4286
4287 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4288 (remote_read_bytes): Change return type to LONGEST, and adjust to
4289 return a target_xfer_error on error.
4290 (remote_xfer_memory): Delete.
4291 (remote_flash_write): Change type of 'ret' local to LONGEST.
4292 (remote_xfer_partial, remote_xfer_partial): Adjust.
4293 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4294
4295 2013-08-23 Pierre Muller <muller@sourceware.org>
4296
4297 ARI fix: Push # directives to start of line.
4298 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4299
4300 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4301
4302 PR gdb/15501
4303 * breakpoint.c (enable_command, disable_command): Iterate over
4304 all specified breakpoint locations.
4305
4306 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4307
4308 * common/linux-ptrace.c (linux_fork_to_function): Push #
4309 directives to the start of the line.
4310 (linux_check_ptrace_features): Fix warning message to use
4311 the "_" markup.
4312
4313 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4314
4315 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4316 nat/linux-waitpid.h.
4317 (linux-waitpid.o): New object file rule.
4318 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4319 (current_ptrace_options): Moved from linux-nat.c.
4320 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4321 parameters.
4322 (linux_fork_to_function): New function.
4323 (linux_grandchild_function): Likewise.
4324 (linux_child_function): Likewise.
4325 (linux_check_ptrace_features): New function, heavily
4326 based on linux-nat.c:linux_test_for_tracefork.
4327 (linux_enable_event_reporting): New function.
4328 (ptrace_supports_feature): Likewise.
4329 (linux_supports_tracefork): Likewise.
4330 (linux_supports_traceclone): Likewise.
4331 (linux_supports_tracevforkdone): Likewise.
4332 (linux_supports_tracesysgood): Likewise.
4333 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4334 gdbserver/linux-low.c.
4335 (linux_enable_event_reporting): New declaration.
4336 (linux_supports_tracefork): Likewise.
4337 (linux_supports_traceclone): Likewise.
4338 (linux_supports_tracevforkdone): Likewise.
4339 (linux_supports_tracesysgood): Likewise.
4340 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4341 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4342 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4343 * config/arm/linux.mh (NATDEPFILES): Likewise.
4344 * config/i386/linux.mh (NATDEPFILES): Likewise.
4345 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4346 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4347 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4348 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4349 * config/mips/linux.mh (NATDEPFILES): Likewise.
4350 * config/pa/linux.mh (NATDEPFILES): Likewise..
4351 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4352 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4353 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4354 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4355 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4356 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4357 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4358 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4359 ptrace's 4th argument's types.
4360 Check the type of PTRACE_TYPE_ARG4.
4361 * configure: Regenerate.
4362 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4363 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4364 (linux_supports_tracefork_flag): Remove.
4365 (linux_supports_tracesysgood_flag): Likewise.
4366 (linux_supports_tracevforkdone_flag): Likewise.
4367 (current_ptrace_options): Moved to
4368 common/linux-ptrace.c.
4369 (linux_tracefork_child): Remove.
4370 (my_waitpid): Remove.
4371 (linux_test_for_tracefork): Renamed to
4372 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4373 (linux_test_for_tracesysgood): Remove.
4374 (linux_supports_tracesysgood): Remove.
4375 (linux_supports_tracefork): Remove.
4376 (linux_supports_tracevforkdone): Remove.
4377 (linux_enable_tracesysgood): Remove.
4378 (linux_enable_event_reporting): Remove.
4379 (linux_init_ptrace): New function.
4380 (linux_child_post_attach): Call linux_init_ptrace.
4381 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4382 (linux_child_follow_fork): Call linux_supports_tracefork
4383 and linux_supports_tracevforkdone.
4384 (linux_child_insert_fork_catchpoint): Call
4385 linux_supports_tracefork.
4386 (linux_child_insert_vfork_catchpoint): Likewise.
4387 (linux_child_set_syscall_catchpoint): Call
4388 linux_supports_tracesysgood.
4389 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4390 * nat/linux-nat.h: New file.
4391 * nat/linux-waitpid.c: New file.
4392 * nat/linux-waitpid.h: New file.
4393
4394 2013-08-22 Samuel Bronson <naesten@gmail.com>
4395
4396 ARM Linux support for `catch syscall'.
4397 * syscalls/arm-linux.py: New file.
4398 * syscalls/arm-linux.xml: Likewise.
4399 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4400 (arm_linux_init_abi): Register the new function and syscall xml file.
4401 * data-directory/Makefile.in: Install the new syscall xml file.
4402 * NEWS: Brag about this.
4403
4404 2013-08-22 Pedro Alves <palves@redhat.com>
4405
4406 PR gdb/15871
4407 * corefile.c (target_xfer_memory_error): New function.
4408 (memory_error): Defer EIO to target_memory_error.
4409 (read_memory): Use target_xfer_partial, and handle finer-grained
4410 target xfer errors.
4411 * target.c (target_xfer_error_to_string): New function.
4412 (memory_xfer_partial_1): If memory is known to be
4413 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4414 (target_xfer_partial): Make extern.
4415 * target.h (enum target_xfer_error): New enum.
4416 (target_xfer_error_to_string): Declare function.
4417 (target_xfer_partial): Declare function.
4418 (struct target_ops) <xfer_partial>: Adjust describing comment.
4419
4420 2013-08-22 Alan Modra <amodra@gmail.com>
4421
4422 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4423 * configure.tgt: Likewise as targets.
4424
4425 2013-08-20 Doug Evans <dje@google.com>
4426
4427 * buildsym.c (subfile_stack): Move here from buildsym.h.
4428 (pending_macros): Ditto.
4429 (get_macro_table): New function.
4430 (buildsym_init): Initialize subfile_stack.
4431 * coffread.c (type_vector,type_vector_length): Moved here from
4432 buildsym.h.
4433 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4434 (coff_symtab_read): Use it.
4435 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4436 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4437 with call to get_macro_table.
4438 * stabsread.c (type_vector,type_vector_length): Moved here from
4439 buildsym.h.
4440 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4441 * buildsym.h (get_macro_table): Declare.
4442
4443 2013-08-20 Tom Tromey <tromey@redhat.com>
4444
4445 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4446 Update.
4447 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4448
4449 2013-08-20 Doug Evans <dje@google.com>
4450
4451 * blockframe.c: Remove #include "psymtab.h".
4452 * cp-support.c: Ditto.
4453 * source.c: Ditto.
4454 * stack.c: Ditto.
4455
4456 2013-08-20 Tom Tromey <tromey@redhat.com>
4457
4458 PR python/15816:
4459 * exceptions.h (return_mask): Now an enum.
4460 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4461 enum constants.
4462
4463 2013-08-20 Tom Tromey <tromey@redhat.com>
4464
4465 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4466 get_objfile_arch.
4467 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4468 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4469 * jit.c (jit_object_close_impl): Update.
4470 * jv-lang.c (get_dynamics_objfile): Update.
4471 * linespec.c (add_minsym): Use get_dynamics_objfile.
4472 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4473 (allocate_objfile): Don't initialize 'gdbarch' field.
4474 (get_objfile_arch): Update.
4475 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4476 moved from...
4477 (struct objfile) <gdbarch>: ... here. Remove.
4478 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4479 get_objfile_arch.
4480 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4481
4482 2013-08-20 Alan Modra <amodra@gmail.com>
4483
4484 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4485 for IBM long double nan and inf.
4486 (floatformat_is_negative, floatformat_classify,
4487 floatformat_mantissa): Similarly.
4488 (floatformat_ieee_single, floatformat_ieee_double,
4489 floatformat_ieee_quad, floatformat_arm_ext,
4490 floatformat_ia64_spill): Delete unused vars.
4491 (_initialize_doublest): Delete unused function.
4492 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4493 little-endian variants of floatformat_ibm_long_double.
4494
4495 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4496
4497 * Makefile.in (SFILES): Remove common/target-common.c and
4498 add target/waitstatus.c.
4499 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4500 target/resume.h, target/wait.h and target/waitstatus.h.
4501 (COMMON_OBS): Remove target-common.o and add
4502 waitstatus.o.
4503 (target-common.o): Remove.
4504 (waitstatus.o): New target object file.
4505 * common/target-common.c: Move contents to
4506 target/waitstatus.c and remove.
4507 * common/target-common.h: Move contents to other files and
4508 remove.
4509 (enum resume_kind: Move to target/resume.h.
4510 (TARGET_WNOHANG): Move to target/wait.h.
4511 (enum target_waitkind): Move to target/waitstatus.h.
4512 (struct target_waitstatus): Likewise.
4513 * target.h: Do not include target-common.h and
4514 include target/resume.h, target/wait.h and
4515 target/waitstatus.h.
4516 * target/resume.h: New file.
4517 * target/wait.h: New file.
4518 * target/waitstatus.h: New file.
4519 * target/waitstatus.c: New file.
4520
4521 2013-08-19 Pedro Alves <palves@redhat.com>
4522
4523 * linux-nat.c (linux_test_for_tracefork)
4524 (linux_test_for_tracesysgood, linux_child_follow_fork)
4525 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4526 (linux_nat_wait_1): Extend comment.
4527 (linux_async_pipe): Add comment.
4528
4529 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4530
4531 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4532 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4533 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4534 Update to account for fact that PC is now a pseudo-register.
4535 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4536 cases for RL78_PC_REGNUM.
4537
4538 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4539
4540 PR cli/15841
4541 * top.c (quit_force): Skip writing history file
4542 if input is not from terminal.
4543
4544 2013-08-14 Tom Tromey <tromey@redhat.com>
4545
4546 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4547 resultthreadlist>: New fields.
4548 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4549 (remote_get_threadlist, remote_threadlist_iterator): Use
4550 new fields. Remove static variables.
4551
4552 2013-08-14 Tom Tromey <tromey@redhat.com>
4553
4554 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4555 remote_watch_data_address>: New fields.
4556 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4557 (process_stop_reply, remote_wait_as)
4558 (remote_check_watch_resources, remote_stopped_data_address): Update.
4559
4560 2013-08-14 Tom Tromey <tromey@redhat.com>
4561
4562 * remote.c (struct remote_state) <async_client_callback,
4563 async_client_context>: New fields.
4564 (async_client_callback, async_client_context): Remove.
4565 (remote_async_serial_handler, remote_async): Update.
4566
4567 2013-08-14 Tom Tromey <tromey@redhat.com>
4568
4569 * remote.c (sizeof_pkt): Remove.
4570 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4571
4572 2013-08-14 Tom Tromey <tromey@redhat.com>
4573
4574 * remote.c (struct remote_state) <use_threadinfo_query,
4575 use_threadextra_query>: New fields.
4576 (remote_threads_info, remote_threads_extra_info)
4577 (remote_open_1): Update.
4578
4579 2013-08-14 Tom Tromey <tromey@redhat.com>
4580
4581 * remote.c (struct remote_state) <finished_object,
4582 finished_annex, finished_offset>: New fields.
4583 (remote_read_qxfer): Use remote_state fields; remove static
4584 variables.
4585
4586 2013-08-14 Tom Tromey <tromey@redhat.com>
4587
4588 * remote.c (struct remote_state) <last_sent_step>:
4589 New field.
4590 (last_sent_step): Remove.
4591 (remote_resume, remote_wait_as): Update.
4592
4593 2013-08-14 Tom Tromey <tromey@redhat.com>
4594
4595 * remote.c (struct remote_state) <last_sent_signal>:
4596 New field.
4597 (last_sent_signal): Remove.
4598 (new_remote_state, remote_resume, remote_wait_as): Update.
4599
4600 2013-08-14 Tom Tromey <tromey@redhat.com>
4601
4602 * remote.c (struct remote_state) <last_program_signals_packet>:
4603 New field.
4604 (last_program_signals_packet): Remove.
4605 (remote_program_signals, remote_open_1): Update.
4606
4607 2013-08-14 Tom Tromey <tromey@redhat.com>
4608
4609 * remote.c (struct remote_state) <last_pass_packet>:
4610 New field.
4611 (last_pass_packet): Remove.
4612 (remote_pass_signals, remote_open_1): Update.
4613
4614 2013-08-14 Tom Tromey <tromey@redhat.com>
4615
4616 * remote.c (struct remote_state) <remote_traceframe_number>:
4617 New field.
4618 (remote_traceframe_number): Remove.
4619 (new_remote_state, remote_open_1, set_remote_traceframe)
4620 (remote_trace_find): Update.
4621
4622 2013-08-14 Tom Tromey <tromey@redhat.com>
4623
4624 * remote.c (struct remote_state) <general_thread, continue_thread>:
4625 New fields.
4626 (general_thread, continue_thread): Remove.
4627 (record_currthread, set_thread, set_general_process)
4628 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4629 (extended_remote_mourn_1): Update.
4630
4631 2013-08-14 Tom Tromey <tromey@redhat.com>
4632
4633 * remote.c (struct remote_state) <remote_desc>: New field.
4634 (remote_desc): Remove.
4635 (remote_threads_info, remote_threads_extra_info, remote_close)
4636 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4637 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4638 (remote_hostio_send_command, remote_file_put, remote_file_get)
4639 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4640 (remote_async, remote_new_objfile, set_range_stepping): Update.
4641
4642 2013-08-14 Tom Tromey <tromey@redhat.com>
4643
4644 * remote.c (remote_state): Now a pointer.
4645 (get_remote_state_raw): Update.
4646 (new_remote_state): New function.
4647 (_initialize_remote): Use new_remote_state.
4648
4649 2013-08-14 Tom Tromey <tromey@redhat.com>
4650
4651 * remote.c (remote_protocol_features): Now const.
4652
4653 2013-08-14 Tom Tromey <tromey@redhat.com>
4654
4655 * remote.c (crc32_table, crc32): Remove.
4656 (remote_verify_memory): Use xcrc32.
4657
4658 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4659
4660 * value.h (create_internalvar_type_lazy): Adjust prototype
4661 declaration.
4662
4663 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4664
4665 * common/format.c (parse_format_string): Don't allow '#' flag for
4666 pointer arguments in format string.
4667
4668 2013-08-13 Pierre Muller <muller@sourceware.org>
4669
4670 * utils.c (init_page_info): Only call tgetnum function
4671 if rl_get_screen_size did not return useful values.
4672
4673 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4674
4675 PR breakpoints/15117
4676 * linespec.c (linespec_parse_basic): Check for convenience
4677 variable or history value while parsing.
4678
4679 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4680
4681 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4682 AVR.
4683 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4684 different signals between the generic Linux kernel implementation
4685 and AVR's.
4686 (avr_linux_gdb_signal_from_target): Delete.
4687 (avr_linux_gdb_signal_to_target): Delete.
4688 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4689
4690 2013-08-09 Doug Evans <dje@google.com>
4691
4692 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4693 entries.
4694
4695 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4696
4697 * linux-tdep.c: Define enum with generic signal numbers.
4698 (linux_gdb_signal_from_target): New function.
4699 (linux_gdb_signal_to_target): Likewise.
4700 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4701 methods to the functions above.
4702 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4703 (linux_gdb_signal_to_target): Likewise.
4704 * alpha-linux-tdep.c: Define new enum with signals different
4705 from generic Linux kernel.
4706 (alpha_linux_gdb_signal_from_target): New function.
4707 (alpha_linux_gdb_signal_to_target): Likewise.
4708 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4709 with the functions mentioned above.
4710 * avr-tdep.c: Define enum with differences between Linux kernel
4711 and AVR signals.
4712 (avr_linux_gdb_signal_from_target): New function.
4713 (avr_linux_gdb_signal_to_target): Likewise.
4714 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4715 the functions mentioned above.
4716 * sparc-linux-tdep.c: Define enum with differences between SPARC
4717 and generic Linux kernel signal numbers.
4718 (sparc32_linux_gdb_signal_from_target): New function.
4719 (sparc32_linux_gdb_signal_to_target): Likewise.
4720 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4721 to the functions defined above.
4722 * xtensa-linux-tdep.c: Define enum with differences between
4723 Xtensa and Linux kernel generic signals.
4724 (xtensa_linux_gdb_signal_from_target): New function.
4725 (xtensa_linux_gdb_signal_to_target): Likewise.
4726 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4727 to the functions defined above.
4728 * mips-linux-tdep.c: Define enum with differences between
4729 signals in MIPS and Linux kernel generic ones.
4730 (mips_gdb_signal_to_target): New function.
4731 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4732 only different signals from the Linux kernel generic.
4733 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4734 the functions defined above.
4735 * mips-linux-tdep.h (enum mips_signals): Remove.
4736
4737 2013-08-09 Pedro Alves <palves@redhat.com>
4738
4739 * avr-tdep.c (XMALLOC): Delete macro.
4740 * cli/cli-dump.c (XMALLOC): Delete macro.
4741
4742 2013-08-09 Pedro Alves <palves@redhat.com>
4743
4744 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4745 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4746 (fopen_with_cleanup, add_dump_command): Make static.
4747 * cli/cli-dump.h: Delete file.
4748 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4749 cli/cli-dump.h.
4750
4751 2013-08-09 Pedro Alves <palves@redhat.com>
4752
4753 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4754 error message.
4755
4756 2013-08-09 Pedro Alves <palves@redhat.com>
4757
4758 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4759 error message.
4760
4761 2013-08-09 Pedro Alves <palves@redhat.com>
4762
4763 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4764 (gcore_command): Use tilde_expand here, and when showing the
4765 filename to the user, show the expanded version.
4766
4767 2013-08-09 Yao Qi <yao@codesourcery.com>
4768
4769 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4770 'entryval' is set.
4771
4772 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4773
4774 * gcore.c (create_gcore_bfd): Use tilde_expand.
4775
4776 2013-08-08 Yao Qi <yao@codesourcery.com>
4777
4778 * frame.h (read_frame_local): Declare.
4779 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4780 read_frame_local.
4781 * stack.c (read_frame_local): New.
4782
4783 2013-08-08 Yao Qi <yao@codesourcery.com>
4784
4785 * mi/mi-cmd-stack.c: Update comments to function
4786 list_args_or_locals.
4787
4788 2013-08-07 Tom Tromey <tromey@redhat.com>
4789
4790 PR symtab/15028:
4791 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4792 (process_psymtab_comp_unit_reader): Use it.
4793 (process_psymtab_comp_unit): Update. Add "pretend_language"
4794 argument.
4795 (dwarf2_build_psymtabs_hard): Update.
4796 (scan_partial_symbols): Pass CU's language to
4797 process_psymtab_comp_unit.
4798
4799 2013-08-07 Tom Tromey <tromey@redhat.com>
4800
4801 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4802 (dwarf2_gdb_index_functions): Update.
4803 * psymtab.c (find_symbol_file_from_partial): Remove.
4804 (psym_functions): Update.
4805 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4806 Remove.
4807
4808 2013-08-07 Tom Tromey <tromey@redhat.com>
4809
4810 * symfile.c (set_initial_language): Look up "main" symbol
4811 and use its language.
4812 * symtab.c (find_main_filename): Remove.
4813 * symtab.h (find_main_filename): Remove.
4814
4815 2013-08-07 Tom Tromey <tromey@redhat.com>
4816
4817 * dwarf2read.c (recursively_compute_inclusions): Add
4818 "immediate_parent" argument. Set symtab's "user" field
4819 if not set.
4820 (compute_symtab_includes): Update.
4821
4822 2013-08-07 Tom Tromey <tromey@redhat.com>
4823
4824 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4825 when adding label symbols.
4826
4827 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4828 Ulrich Weigand <uweigand@de.ibm.com>
4829
4830 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4831 * configure.host (powerpc64-*-aix*): Likewise.
4832
4833 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4834 Ulrich Weigand <uweigand@de.ibm.com>
4835
4836 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4837 is defined.
4838 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4839 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4840 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4841 * configure.ac: Check for ptrace64.
4842 * configure, config.in: Regenerate.
4843
4844 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4845 Ulrich Weigand <uweigand@de.ibm.com>
4846
4847 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4848 Call ptrace64 instead of ptrace if defined.
4849 Add macro addr_ptr to take care of ptrace address argument.
4850 (pdc_read_regs): Likewise.
4851 (pdc_write_regs): Likewise.
4852 (aix_thread_resume): Likewise.
4853 (fetch_regs_kernel_thread): Likewise.
4854 (store_regs_kernel_thread): Likewise.
4855
4856 2013-08-07 Anton Blanchard <anton@samba.org>
4857
4858 * MAINTAINERS: Add myself to Write After Approval.
4859
4860 2013-08-05 Tom Tromey <tromey@redhat.com>
4861
4862 * aix-thread.c (_initialize_aix_thread): Use
4863 complete_target_initialization.
4864 * bsd-uthread.c (_initialize_bsd_uthread): Use
4865 complete_target_initialization.
4866 * dec-thread.c (_initialize_dec_thread): Use
4867 complete_target_initialization.
4868 * ravenscar-thread.c (_initialize_ravenscar): Use
4869 complete_target_initialization.
4870 * sol-thread.c (_initialize_sol_thread): Use
4871 complete_target_initialization.
4872 * spu-multiarch.c (_initialize_spu_multiarch): Use
4873 complete_target_initialization.
4874
4875 2013-08-05 Tom Tromey <tromey@redhat.com>
4876
4877 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4878 * ada-lang.c (ada_lookup_simple_minsym): Return
4879 bound_minimal_symbol.
4880 * ada-lang.h (ada_lookup_simple_minsym): Update.
4881 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4882 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4883 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4884 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4885 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4886 * minsyms.c (msymbol_objfile): Remove.
4887 (lookup_minimal_symbol_internal): New function, from
4888 lookup_minimal_symbol.
4889 (lookup_minimal_symbol): Rewrite using
4890 lookup_minimal_symbol_internal.
4891 (lookup_bound_minimal_symbol): New function.
4892 * minsyms.h (msymbol_objfile): Remove.
4893 (lookup_bound_minimal_symbol): Declare.
4894 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4895 * parse.c (write_exp_msymbol): Change parameter to a
4896 bound_minimal_symbol.
4897 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4898 * parser-defs.h (write_exp_msymbol): Update.
4899 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4900 * symfile.c (simple_read_overlay_table): Use
4901 lookup_bound_minimal_symbol.
4902 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4903 (search_symbols): Likewise.
4904 (print_msymbol_info): Take a bound_minimal_symbol argument.
4905 (symtab_symbol_info, rbreak_command): Update.
4906 * symtab.h (struct symbol_search) <msymbol>: Change type
4907 to bound_minimal_symbol.
4908 * valops.c (find_function_in_inferior): Use
4909 lookup_bound_minimal_symbol.
4910 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4911
4912 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 Code cleanup.
4915 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4916 to ...
4917 (async_cleanup_sigint_signal_handler): ... this.
4918 (initialize_sigint_signal_handler): Remove declaration.
4919 (handle_remote_sigint): Rename the declaration to ...
4920 (async_handle_remote_sigint): ... this.
4921 (handle_remote_sigint_twice): Rename the declaration to ...
4922 (async_handle_remote_sigint_twice): ... this.
4923 (async_remote_interrupt, async_remote_interrupt_twice)
4924 (remote_interrupt): Remove the declarations.
4925 (remote_interrupt_twice): Rename the declaration ...
4926 (sync_remote_interrupt_twice): ... this.
4927 (sigint_remote_twice_token): Rename the variable to ...
4928 (async_sigint_remote_twice_token): ... this.
4929 (sigint_remote_token): Rename the variable to ...
4930 (async_sigint_remote_token): ... this.
4931 (initialize_sigint_signal_handler): Rename the function to ...
4932 (async_initialize_sigint_signal_handler): ... this. Update the name
4933 inside.
4934 (handle_remote_sigint): Rename the function to ...
4935 (async_handle_remote_sigint): ... this. Update the names inside.
4936 (handle_remote_sigint_twice): Rename the function to ...
4937 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4938 (cleanup_sigint_signal_handler): Rename the function to ...
4939 (async_cleanup_sigint_signal_handler): ... this.
4940 (remote_interrupt): Rename the function to ...
4941 (sync_remote_interrupt): this. Update the names inside.
4942 (remote_interrupt_twice): Rename the function to ...
4943 (sync_remote_interrupt_twice): this. Update the names inside.
4944 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4945 (_initialize_remote): Update the names inside.
4946
4947 2013-08-02 Tom Tromey <tromey@redhat.com>
4948
4949 PR symtab/15719:
4950 * breakpoint.c (update_watchpoint, watchpoint_check)
4951 (watch_command_1): Update.
4952 * eval.c (fetch_subexp_value): Add "preserve_errors"
4953 parameter.
4954 * ppc-linux-nat.c (check_condition): Update.
4955 * value.h (fetch_subexp_value): Update.
4956
4957 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4958
4959 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4960 add_file_handler.
4961
4962 2013-08-01 Doug Evans <dje@google.com>
4963
4964 PR symtab/15691
4965 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4966 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4967 Add assert of sig_entry->dwo_unit == NULL.
4968 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4969 had already been read.
4970 (read_signatured_type): Set per_cu.tu_read.
4971
4972 PR symtab/15695
4973 * valops.c (value_struct_elt): Add missing call to check_typedef.
4974 (value_find_oload_method_list): Ditto.
4975
4976 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4977 effectively, struct symbol_search **.
4978 (make_cleanup_free_search_symbols): Change arg to struct
4979 symbol_search **. All callers updated.
4980 (compare_search_syms): Compare symtab file name and block as well.
4981 (search_symbols_equal): New function.
4982 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4983 New args new_head, new_tail. Result is now void. Remove dups after
4984 sorting the symbols.
4985 (search_symbols): Sort all found symbols once, after all have been
4986 found, and remove duplicates. Simplify cleanup tracking of result.
4987 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4988
4989 Further workarounds for binutils/15021.
4990 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4991 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4992 Watch for duplicate symtabs coming from type units.
4993 (compute_symtab_includes): Update call to
4994 recursively_compute_inclusions. Build vector of included symtabs
4995 instead of per_cus.
4996 * symtab.h (symtab_ptr): New typedef.
4997 (DEF_VEC_P (symtab_ptr)): New VEC type.
4998 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4999 instead.
5000
5001 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
5002
5003 * cli/cli-script.c (script_from_file): Remove use of
5004 error_pre_print.
5005 * main.c (captured_main): Remove use of error_pre_print and
5006 quit_pre_print.
5007 * utils.c (error_pre_print, quit_pre_print): Remove.
5008 * utils.h (error_pre_print, quit_pre_print): Likewise.
5009
5010 2013-08-01 Yao Qi <yao@codesourcery.com>
5011
5012 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
5013 with mi_getopt.
5014 (mi_cmd_stack_list_variables): Likewise.
5015
5016 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5017
5018 * exceptions.c (deprecated_throw_reason): Remove.
5019 * exceptions.h (deprecated_throw_reason): Remove.
5020
5021 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5022
5023 * remote-mips.c (mips_error): Replace use of
5024 deprecated_throw_reason with throw_verror. Use the error message
5025 passed to mips_error as the error message for throw_verror.
5026
5027 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5028
5029 * monitor.c (monitor_interrupt_query): Replace use of
5030 deprecated_throw_reason with quit.
5031 * nto-procfs.c (interrupt_query): Likewise.
5032 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
5033 * remote-mips.c (mips_kill): Likewise.
5034 * remote.c (interrupt_query): Likewise.
5035
5036 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
5037
5038 * utils.c (internal_verror): Replace use of deprecated_throw_reason
5039 with call to fatal.
5040
5041 2013-07-31 Pedro Alves <pedro@codesourcery.com>
5042 Yao Qi <yao@codesourcery.com>
5043
5044 * tracepoint.c (trace_dump_command): Select the current frame.
5045
5046 2013-07-30 Doug Evans <dje@google.com>
5047
5048 * dwarf2read.c (process_queue): Add type signature to debug output.
5049
5050 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5051
5052 * value.c (value_fetch_lazy): Mark optimized out values as such
5053 rather than raising an error.
5054
5055 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
5056
5057 * value.c (value_fetch_lazy): Ensure parent value is not lazy
5058 before checking which bits of the parent, not the child, value are
5059 valid.
5060
5061 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
5062
5063 PR gdb/15715
5064 * top.c: Include "filenames.h".
5065 (set_history_filename): New function.
5066 (init_main): Install it as set hook of the "set history filename"
5067 command.
5068
5069 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5070
5071 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5072 attribute parameter.
5073 (dwarf2_const_value_data): Constify struct attribute parameter.
5074 (dwarf2_const_value): Constify struct attribute parameter.
5075 (dwarf2_const_value_attr): Constify struct attribute parameter.
5076 (lookup_die_type): Constify struct attribute parameter.
5077 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5078 (follow_die_ref_or_sig): Constify struct attribute parameter.
5079 (follow_die_ref): Constify struct attribute parameter.
5080 (follow_die_sig): Constify struct attribute parameter.
5081 (get_DW_AT_signature_type): Constify struct attribute parameter.
5082 (get_type_unit_group): Constify struct attribute parameter.
5083 (fill_in_loclist_baton): Constify struct attribute parameter.
5084 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5085 (type_unit_group): Constify struct attribute parameter.
5086
5087 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5088
5089 * dwarf2read.c (attr_form_is_block): Make argument const.
5090 (attr_form_is_section_offset): Make argument const.
5091 (attr_form_is_constant): Make argument const.
5092 (attr_form_is_ref): Make argument const.
5093
5094 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5095
5096 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5097 All uses updated.
5098 (attr_form_is_ref): Moved below attr_form_is_constant.
5099
5100 2013-07-29 Doug Evans <dje@google.com>
5101
5102 * main.c (captured_command_loop): Tweak comment.
5103
5104 * target.c (target_async_permitted_1): Fix comment.
5105
5106 * symtab.c (iterate_over_some_symtabs): Add comment.
5107
5108 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5109
5110 2013-07-27 Yao Qi <yao@codesourcery.com>
5111
5112 * NEWS: Mention that GDBserver now supports hardware
5113 watchpoints on the MIPS GNU/Linux target.
5114
5115 2013-07-27 Yao Qi <yao@codesourcery.com>
5116
5117 * Makefile.in (HFILES_NO_SRCDIR): Add
5118 common/mips-linux-watch.h.
5119 (mips-linux-watch.o): New rule.
5120 * common/mips-linux-watch.c: New.
5121 * common/mips-linux-watch.h: New.
5122 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5123 * mips-linux-nat.c: Include mips-linux-watch.h.
5124 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5125 to common/mips-linux-watch.h.
5126 (MAX_DEBUG_REGISTER): Likewise.
5127 (enum pt_watch_style): Likewise.
5128 (struct mips32_watch_regs): Likewise.
5129 (struct mips64_watch_regs): Likewise.
5130 (struct pt_watch_regs): Likewise.
5131 (struct mips_watchpoint): Likewise.
5132 (mips_linux_watch_get_irw_mask): Move to
5133 common/mips-linux-watch.c.
5134 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5135 (mips_linux_watch_get_watchlo): Likewise.
5136 (mips_linux_watch_set_watchlo): Likewise.
5137 (mips_linux_watch_get_watchhi): Likewise.
5138 (mips_linux_watch_set_watchhi): Likewise.
5139 (mips_linux_read_watch_registers): Likewise.
5140 (mips_linux_watch_type_to_irw): Likewise.
5141 (mips_linux_stopped_data_address, fill_mask): Likewise.
5142 (mips_linux_watch_try_one_watch): Likewise.
5143 (mips_linux_watch_populate_regs): Likewise.
5144
5145 2013-07-27 Yao Qi <yao@codesourcery.com>
5146
5147 * mips-linux-nat.c (get_irw_mask): Rename to ...
5148 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5149 'set' to 'n'. Update function comment. All callers changed.
5150 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5151 function comment. All callers changed.
5152 (get_num_valid): Rename to ...
5153 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5154 'set' to 'n'. Update function comment. All callers changed.
5155 (get_watchlo): Rename to ...
5156 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5157 'set' to 'n'. Update function comment. All callers changed.
5158 (set_watchlo): Rename to ...
5159 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5160 'set' to 'n'. Update function comment. All callers changed.
5161 (get_watchhi): Rename to ...
5162 (mips_linux_watch_get_watchhi): ... this. Update function
5163 comment. All callers changed.
5164 (set_watchhi): Rename to ...
5165 (mips_linux_watch_set_watchhi): ... this. Update function
5166 comment. All callers changed.
5167 (mips_linux_read_watch_registers): Update function comment.
5168 Add new parameters 'lwpid', 'watch_readback', and
5169 'watch_readback_valid'. Update.
5170 (type_to_irw): Rename to ...
5171 (mips_linux_watch_type_to_irw): ... this. Update function
5172 comment. All callers changed.
5173 (fill_mask): Update function comment.
5174 (try_one_watch): Rename to ...
5175 (mips_linux_watch_try_one_watch): ... this. Change the type
5176 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5177 (populate_regs_from_watches): Rename to ...
5178 (mips_linux_watch_populate_regs): ... this. Add parameter
5179 'current_watches'. All callers changed.
5180
5181 2013-07-27 Yao Qi <yao@codesourcery.com>
5182
5183 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5184 the code.
5185 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5186 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5187 (struct pt_watch_regs): Likewise.
5188 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5189 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5190 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5191 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5192 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5193
5194 2013-07-27 Yao Qi <yao@codesourcery.com>
5195
5196 * breakpoint.h: Include break-common.h.
5197 (enum target_hw_bp_type): Move to ...
5198 * common/break-common.h: ... here. New.
5199
5200 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5201
5202 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5203 process group regardless of having tty on stdin.
5204
5205 2013-07-25 Doug Evans <dje@google.com>
5206
5207 * linux-fork.h (detach_fork): Delete.
5208
5209 2013-07-25 Tom Tromey <tromey@redhat.com>
5210
5211 PR remote/15256, PR remote/15266:
5212 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5213 * monitor.c (monitor_detach): Use unpush_target.
5214 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5215 * remote-mips.c (mips_detach): Use unpush_target. Don't
5216 call mips_close.
5217 * remote-sim.c (gdbsim_detach): Use unpush_target.
5218 * target.c (pop_target): Remove.
5219 (pop_all_targets_above): Don't call target_close.
5220 (target_close): Assert that the target is unpushed.
5221 * target.h (pop_target): Don't declare.
5222 * tracepoint.c (tfile_open): Use unpush_target.
5223
5224 2013-07-25 Tom Tromey <tromey@redhat.com>
5225
5226 * linux-thread-db.c (init_thread_db_ops): Call
5227 complete_target_initialization.
5228 (_initialize_thread_db): Don't call add_target.
5229 * target.c (complete_target_initialization): New function.
5230 (add_target_with_completer): Call it.
5231 * target.h (complete_target_initialization): Declare.
5232
5233 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5234
5235 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5236 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5237 (HPPANBSD_SIZEOF_GREGS): New define.
5238 (hppaobsd_supply_gregset): Handle additional registers.
5239 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5240 we provide more registers now.
5241 (hppabsd_supply_gregset): Supply additional registers.
5242 (hppabsd_collect_gregset): Collect additional registers.
5243
5244 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5245
5246 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5247 (hppabsd_dwarf2_frame_init_reg): New function.
5248 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5249
5250 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5251
5252 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5253 'z' format code. Remove error for optimized out values, standard
5254 code will handle these fine.
5255
5256 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5257
5258 * NEWS: Mention new 'z' formatter.
5259 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5260 (_initialize_printcmd): Mention 'z' formatter in help text of the
5261 'x' command.
5262
5263 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5264
5265 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5266 formatting.
5267
5268 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5269
5270 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5271 interface can evaluate arguments. Fallback to the old mode if it
5272 cannot.
5273 (create_exception_master_breakpoint): Likewise.
5274 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5275 (struct sym_probe_fns elf_probe_fns): Export function above to the
5276 probe interface.
5277 * probe.c (can_evaluate_probe_arguments): New function.
5278 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5279 function pointer.
5280 (can_evaluate_probe_arguments): New function prototype.
5281 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5282 probe interface can evaluate arguments. Fallback to the old mode
5283 if it cannot.
5284 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5285 interface can evaluate arguments. Warning the user if it cannot.
5286 (stap_can_evaluate_probe_arguments): New function.
5287 (struct probe_ops stap_probe_ops): Export function above to the
5288 probe interface.
5289 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5290 New function pointer.
5291
5292 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5293
5294 * Makefile.in (SFILES): Add common/target-common.c.
5295 Add common/target-common.h to headers.
5296 (COMMON_OBS): Add target-common.o.
5297 (target-common.o): New target.
5298 * linux-nat.h (resume_kind): Move to common/target-common.h.
5299 * target.c (target_waitstatus_to_string): Move to
5300 common/target-common.c.
5301 * target.h: Include target-common.h.
5302 (target_waitkind): Move to common/target-common.h.
5303 (target_waitstatus): Likewise.
5304 (TARGET_WNOHANG): Likewise.
5305 * common/target-common.c: New file.
5306 * common/target-common.h: New file.
5307
5308 2013-07-24 Doug Evans <dje@google.com>
5309
5310 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5311 a warning.
5312
5313 2013-07-23 Yao Qi <yao@codesourcery.com>
5314
5315 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5316 parameter 'gdbarch'.
5317 (i386_stack_tramp_frame_sniffer): Caller update.
5318 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5319 parameter 'gdbarch' and 'target'.
5320 (i386_linux_core_read_description): Caller update.
5321 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5322 Likewise.
5323 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5324 declaration.
5325
5326 2013-07-23 Tom Tromey <tromey@redhat.com>
5327
5328 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5329 2013-07-22.
5330
5331 2013-07-22 Doug Evans <dje@google.com>
5332
5333 * exec.h (remove_target_sections): Delete arg abfd.
5334 * exec.c (exec_close): Update call to remove_target_sections.
5335 (remove_target_sections): Delete arg abfd.
5336 * solib.c (update_solib_list): Ditto.
5337 (reload_shared_libraries_1): Ditto.
5338 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5339 * target.h (struct target_section): Rename key to owner.
5340 All uses updated.
5341
5342 2013-07-22 Tom Tromey <tromey@redhat.com>
5343
5344 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5345
5346 2013-07-22 Tom Tromey <tromey@redhat.com>
5347
5348 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5349 Simplify cleanup handling.
5350
5351 2013-07-22 Tom Tromey <tromey@redhat.com>
5352
5353 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5354 on all return paths.
5355
5356 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5357
5358 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5359 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5360 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5361
5362 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5363
5364 * top.c (print_gdb_version): Add help, apropos description and
5365 url to online documentation.
5366
5367 2013-07-19 Hui Zhu <hui@codesourcery.com>
5368
5369 PR gdb/15692
5370 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5371
5372 2013-07-19 Yao Qi <yao@codesourcery.com>
5373
5374 * target.c (update_current_target): Change the default action
5375 of 'to_traceframe_info' from tcomplain to return_zero.
5376 * target.h (struct target_ops) <to_traceframe_info>: Add more
5377 comments.
5378 * valops.c (read_value_memory): Call
5379 traceframe_available_memory unconditionally.
5380
5381 2013-07-18 Yao Qi <yao@codesourcery.com>
5382
5383 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5384 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5385 symbol without prefix. If found, set its type to
5386 'mst_solib_trampoline'.
5387
5388 2013-07-17 Doug Evans <dje@google.com>
5389
5390 * NEWS: Mention "set print raw frame-arguments".
5391 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5392 * stack.c (print_raw_frame_arguments): New static global.
5393 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5394 (_initialize_stack): New command "set/show print raw frame-arguments".
5395 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5396 (set_print_raw, show_print_raw): New functions.
5397 (_initialize_valprint): New prefix command "set/show print raw".
5398 * valprint.h (value_print_options): Improve comments.
5399
5400 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5401 of all *list variables.
5402
5403 * gdbcmd.h (togglelist): Delete.
5404 * cli/cli-cmds.c (togglelist): Delete.
5405 (init_cmd_lists): Update.
5406 * cli/cli-cmds.h (togglelist): Delete.
5407
5408 2013-07-17 Tom Tromey <tromey@redhat.com>
5409
5410 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5411 dwarf2_per_objfile.
5412
5413 2013-07-16 Doug Evans <dje@google.com>
5414
5415 * nto-tdep.c (nto_relocate_section_addresses): Update,
5416 target_section.bfd deleted.
5417 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5418 * s390-tdep.c (s390_load): Ditto.
5419 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5420
5421 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5422
5423 * common/format.c (parse_format_string): Add checks for NULL
5424 character before calling strchr.
5425
5426 2013-07-16 Doug Evans <dje@google.com>
5427
5428 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5429 temp_pathname argument.
5430 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5431 when opening the file fails.
5432
5433 * target.h (struct target_section): Delete member bfd.
5434 All users updated to use the_bfd_section->owner instead.
5435 * exec.c (add_to_section_table): Assert bfd is expected value.
5436 Remove initialization of target_section.bfd.
5437 (remove_target_sections): Update.
5438 (section_table_available_memory): Update.
5439 (section_table_xfer_memory_partial): Update.
5440 (print_section_info): Update.
5441 (exec_set_section_address): Update.
5442 * record-full.c (record_full_core_xfer_partial): Update.
5443 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5444 * solib-target.c (solib_target_relocate_section_addresses): Update.
5445 * symfile.c (build_section_addr_info_from_section_table): Update.
5446 * target.c (memory_xfer_live_readonly_partial): Update.
5447 (memory_xfer_partial_1): Update.
5448
5449 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5450
5451 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5452 now available for embedded (BookE) and server (BookS) processors,
5453 correct mentions of 'booke' and adjust comments accordingly in order to
5454 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5455 (have_ptrace_booke_interface): Rename function and variable
5456 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5457 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5458 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5459 'hwdebug_point_cmp'. Update all uses.
5460 (booke_find_thread_points_by_tid): Rename function
5461 'booke_find_thread_points_by_tid' to
5462 'hwdebug_find_thread_points_by_tid'. Update all uses.
5463 (booke_insert_point): Rename function 'booke_insert_point' to
5464 'hwdebug_insert_point'. Update all uses.
5465 (booke_remove_point): Rename function 'booke_remove_point' to
5466 'hwdebug_remove_point'. Update all uses.
5467
5468 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5469
5470 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5471 numbers with enum values.
5472
5473 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5474
5475 PR threads/13217
5476 * thread.c (thread_apply_all_command): Check for valid threads
5477 and thread count.
5478 (thread_array_cleanup): New struct.
5479 (set_thread_refcount): New function.
5480
5481 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5482
5483 * infcmd.c (default_print_one_register_info): Reuse function
5484 print_hex_chars.
5485
5486 2013-07-10 Tom Tromey <tromey@redhat.com>
5487
5488 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5489 (ada-exp.o): New target.
5490
5491 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5492
5493 * mt-tdep.c (mt_registers_info): Call
5494 get_no_prettyformat_print_options instead of
5495 get_raw_print_options (regression by last patch from Doug
5496 Evans).
5497
5498 2013-07-09 Pedro Alves <palves@redhat.com>
5499
5500 Checked in by Joel Brobecker <brobecker@adacore.com>.
5501 * ada-lang.c (coerce_unspec_val_to_type): Use
5502 value_optimized_out_const.
5503 * value.c (value_optimized_out_const): New function.
5504 * value.h (value_optimized_out_const): New declaration.
5505
5506 2013-07-09 Doug Evans <dje@google.com>
5507
5508 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5509 Enum values rename as well. All uses updated.
5510 * valprint.h (value_print_options): Rename member pretty to
5511 pretty format. Rename member prettyprint_arrays to
5512 prettyformat_arrays. Rename member prettyprint_structs to
5513 prettyformat_structs. All uses updated.
5514 (get_no_prettyformat_print_options): Renamed from
5515 get_raw_print_options.
5516 * valprint.c (get_no_prettyformat_print_options): Renamed from
5517 get_raw_print_options. All callers updated.
5518 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5519 All callers updated.
5520 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5521 All callers updated.
5522 (_initialize_valprint): Improve help text for "set print pretty" and
5523 "set print arrays".
5524
5525 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5526
5527 * value.c (value_bits_valid): Revert previous change, and change
5528 by Pedro on 2013-07-04, due to regressions in
5529 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5530
5531 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5532 Pedro Alves <palves@redhat.com>
5533
5534 * value.c (value_bits_valid): If the value is not lval_computed
5535 or has no check validity handler then the answer is the
5536 optimized_out flag, otherwise defer to the handler.
5537
5538 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5539
5540 * top.c (print_gdb_configuration): Explain in output of
5541 --configuration what does "relocatable" mean.
5542
5543 * main.c (print_gdb_help): Regroup options in the --help text.
5544 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5545 the relevant discussions.
5546
5547 2013-07-06 Yao Qi <yao@codesourcery.com>
5548
5549 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5550 Remove parameter 'lsal'.
5551 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5552 to inner block. Caller update.
5553 (base_breakpoint_create_breakpoints_sal): Update.
5554 (bkpt_create_breakpoints_sal): Likewise.
5555 (tracepoint_create_breakpoints_sal): Likewise.
5556 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5557 element 0 of vector 'canonical->sals'.
5558
5559 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5560
5561 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5562 register number instead of the pseudo register one.
5563 (rs6000_dwarf2_reg_to_regnum): Likewise.
5564
5565 2013-07-04 Pedro Alves <palves@redhat.com>
5566
5567 * findvar.c (value_of_register): Use allocate_optimized_out_value
5568 if the register has been optimized out, instead of
5569 set_value_optimized_out.
5570 * frame-unwind.c (frame_unwind_got_optimized): Use
5571 allocate_optimized_out_value.
5572
5573 2013-07-04 Pedro Alves <palves@redhat.com>
5574
5575 * value.c (value_bits_valid): If the value is not lval_computed,
5576 or doesn't have a check_validity hook, assume the value is entirely
5577 valid.
5578
5579 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5580
5581 * stack.c (read_frame_arg): No longer fetch lazy values.
5582 * value.c (value_optimized_out): If the value is not already
5583 marked optimized out, and is lazy then fetch it.
5584 (value_primitive_field): Move optimized out check to later in the
5585 function, after we have loaded any lazy values.
5586 (value_fetch_lazy): Use optimized out flag directly rather than
5587 calling optimized_out method.
5588
5589 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5590
5591 * valops.c: Don't include "user-regs.h".
5592 (value_fetch_lazy): Moved to value.c.
5593 * value.c: Include "user-regs.h".
5594 (value_fetch_lazy): Moved from valops.c.
5595
5596 2013-07-04 Yao Qi <yao@codesourcery.com>
5597
5598 Revert:
5599 2013-06-27 Yao Qi <yao@codesourcery.com>
5600
5601 * common/create-version.sh: Update comments. Handle the case
5602 that TARGET_ALIAS is empty.
5603
5604 2013-07-03 Pedro Alves <palves@redhat.com>
5605
5606 * Makefile.in (config.status): Depend on development.sh.
5607 (aclocal_m4_deps): Add libmcheck.m4.
5608 * acinclude.m4: Include libmcheck.m4.
5609 * configure.ac: Source development.sh instead of setting
5610 'development' here. --enable-libmcheck/--disable-libmcheck code
5611 factored out to GDB_AC_LIBMCHECK. Run it.
5612 * development.sh: New file.
5613 * libmcheck.m4: New file.
5614 * configure: Regenerate.
5615
5616 2013-07-02 Tom Tromey <tromey@redhat.com>
5617
5618 * contrib/ari/update-web-ari.sh: Update for version.in change.
5619
5620 2013-07-02 Tom Tromey <tromey@redhat.com>
5621
5622 * common/ptid.h: Comment fixes.
5623
5624 2013-07-01 Tom Tromey <tromey@redhat.com>
5625
5626 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5627 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5628 (dwarf2_read_index, create_all_comp_units): Update.
5629
5630 2013-07-01 Tom Tromey <tromey@redhat.com>
5631
5632 * configure.ac (build_warnings): Add -Wold-style-definition.
5633 * configure: Rebuild.
5634 * machoread.c (_initialize_machoread): Use "(void)".
5635 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5636 use "(void)".
5637
5638 2013-07-01 Tom Tromey <tromey@redhat.com>
5639
5640 * configure.ac (build_warnings): Add -Wold-style-declaration.
5641 * configure: Rebuild.
5642 * dsrec.c (make_srec): Use "static const", not "const static".
5643 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5644 not "const static".
5645 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5646 Use "static const", not "const static".
5647 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5648 not "const static".
5649 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5650 not "const static".
5651 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5652 not "const static".
5653 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5654 not "const static".
5655 (v850_dbtrap_breakpoint_from_pc): Likewise.
5656 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5657 not "const static".
5658
5659 2013-07-01 Tom Tromey <tromey@redhat.com>
5660
5661 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5662 * configure: Rebuild.
5663
5664 2013-07-01 Pedro Alves <palves@redhat.com>
5665
5666 * defs.h: Include "pathmax.h".
5667 * utils.c: Don't include sys/param.h.
5668 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5669 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5670 instead of MAXPATHLEN.
5671 * solib-sunos.c: Don't include sys/param.h.
5672 * xcoffread.c: Don't include sys/param.h.
5673 * bsd-kvm.c: Don't include sys/param.h.
5674 * darwin-nat.c: Don't include sys/param.h.
5675 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5676 * darwin-nat-info.c: Don't include sys/param.h.
5677 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5678 MAXPATHLEN.
5679 * i386obsd-nat.c: Don't include sys/param.h.
5680 * inf-child.c: Don't include sys/param.h.
5681 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5682 * linux-fork.c: Don't include sys/param.h.
5683 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5684 * linux-nat.c: Don't include sys/param.h.
5685 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5686 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5687 * m68klinux-nat.c: Don't include sys/param.h.
5688 * nbsd-nat.c: Don't include sys/param.h.
5689 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5690 * ppc-linux-nat.c: Don't include sys/param.h.
5691 * rs6000-nat.c: Don't include sys/param.h.
5692 * spu-linux-nat.c. Don't include sys/param.h.
5693 * windows-nat.c: Don't include sys/param.h.
5694 * xtensa-linux-nat.c: Don't include sys/param.h.
5695 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5696
5697 2013-07-01 Pedro Alves <palves@redhat.com>
5698
5699 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5700 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5701 * gnulib/aclocal.m4: Regenerate.
5702 * gnulib/config.in: Regenerate.
5703 * gnulib/configure: Regenerate.
5704 * gnulib/import/pathmax.h: New file.
5705 * gnulib/import/Makefile.am: Regenerate.
5706 * gnulib/import/Makefile.in: Regenerate.
5707 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5708 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5709 * gnulib/import/m4/pathmax.m4: New file.
5710
5711 2013-07-01 Pedro Alves <palves@redhat.com>
5712
5713 * configure.ac (GDBINIT): Define, depending on host.
5714 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5715 * top.c (PATH_MAX): Delete fallback definition.
5716 (GDBINIT_FILENAME): Delete.
5717 (gdbinit): Reimplement as const char array set to the GDBINIT
5718 string constant.
5719 * top.h (gdbinit): Make const.
5720 * configure, config.in: Regenerate.
5721
5722 2013-07-01 Pedro Alves <palves@redhat.com>
5723
5724 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5725 * cli/cli-cmds.h (source_script): Likewise.
5726 * exceptions.c (catch_command_errors_const): New function.
5727 * exceptions.h (catch_command_errors_const): Declare.
5728 * main.c (get_init_files): Make parameters const, and adjust.
5729 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5730 'local_gdbinit' locals const. Adjust to use
5731 catch_command_errors_const.
5732 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5733 'local_gdbinit' locals const.
5734
5735 2013-07-01 Pedro Alves <palves@redhat.com>
5736
5737 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5738 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5739 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5740 <unistd.h>.
5741
5742 2013-07-01 Pedro Alves <palves@redhat.com>
5743
5744 Import the "unistd" gnulib module.
5745 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5746 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5747 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5748 import/m4/unistd_h.m4.
5749 * gnulib/aclocal.m4: Renenerate.
5750 * gnulib/config.in: Renenerate.
5751 * gnulib/configure: Renenerate.
5752 * gnulib/import/Makefile.am: Renenerate.
5753 * gnulib/import/Makefile.in: Renenerate.
5754 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5755 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5756 * gnulib/import/m4/off_t.m4: New file.
5757 * gnulib/import/m4/ssize_t.m4: New file.
5758 * gnulib/import/m4/sys_types_h.m4: New file.
5759 * gnulib/import/m4/unistd_h.m4: New file.
5760 * gnulib/import/sys_types.in.h: New file.
5761 * gnulib/import/unistd.c: New file.
5762 * gnulib/import/unistd.in.h: New file.
5763
5764 2013-07-01 Pedro Alves <palves@redhat.com>
5765
5766 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5767 defined instead of checking HAVE_UNISTD_H.
5768
5769 2013-07-01 Pedro Alves <palves@redhat.com>
5770
5771 Reimport gnulib from scratch.
5772 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5773 import/m4/onceonly.m4.
5774 * gnulib/aclocal.m4: Renegerate.
5775 * gnulib/config.in: Renegerate.
5776 * gnulib/configure: Renegerate.
5777 * gnulib/import/Makefile.in: Renegerate.
5778 * gnulib/import/extra/update-copyright: Renegerate.
5779 * gnulib/import/m4/onceonly.m4: Delete.
5780
5781 2013-07-01 Pedro Alves <palves@redhat.com>
5782
5783 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5784
5785 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5786
5787 Code cleanup.
5788 * remote.c (async_remote_interrupt_twice): Make it static.
5789 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5790
5791 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5792
5793 * ia64-linux-tdep.c: Include <ctype.h>.
5794 (ia64_linux_stap_is_single_operand): New function.
5795 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5796
5797 2013-06-28 Tom Tromey <tromey@redhat.com>
5798
5799 * Makefile.in (version.c): Use version.in, not
5800 common/version.in.
5801 * common/create-version.sh: Likewise.
5802 * common/version.in: Move...
5803 * version.in: ...here.
5804
5805 2013-06-28 Pedro Alves <palves@redhat.com>
5806
5807 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5808 here.
5809 * utils.h (pagination_enabled): Declare.
5810
5811 2013-06-28 Pedro Alves <palves@redhat.com>
5812
5813 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5814 Move higher up in file.
5815
5816 2013-06-28 Tom Tromey <tromey@redhat.com>
5817
5818 * tracepoint.c (deprecated_readline_begin_hook)
5819 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5820 declare.
5821
5822 2013-06-28 Pedro Alves <palves@redhat.com>
5823
5824 PR tui/14880
5825 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5826 checking if they're available.
5827 * value.c (value_available_contents_eq): Change comment.
5828 * value.h (value_available_contents_eq): Expand comment.
5829
5830 2013-06-27 Tom Tromey <tromey@redhat.com>
5831
5832 * target.c (find_run_target): Remove.
5833 * target.h (find_run_target): Remove.
5834
5835 2013-06-27 Tom Tromey <tromey@redhat.com>
5836
5837 * corelow.c (core_gdbarch): Now static.
5838
5839 2013-06-27 Tom Tromey <tromey@redhat.com>
5840
5841 * target.c (target_struct_index): Remove.
5842
5843 2013-06-27 Pedro Alves <palves@redhat.com>
5844
5845 * infrun.c: Remove comment describing the 'stepping over runtime
5846 loader dynamic symbol resolution code' mechanism; moved to
5847 gdbint.texinfo.
5848
5849 2013-06-27 Pedro Alves <palves@redhat.com>
5850
5851 * exceptions.c (catch_command_errors): Remove spurious space.
5852 * exceptions.h (catch_command_errors): Second parameter is "arg",
5853 not "command".
5854
5855 2013-06-27 Yao Qi <yao@codesourcery.com>
5856
5857 * common/create-version.sh: Update comments. Handle the case
5858 that TARGET_ALIAS is empty.
5859
5860 2013-06-26 Pedro Alves <palves@redhat.com>
5861
5862 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5863 comment.
5864
5865 2013-06-26 Pedro Alves <palves@redhat.com>
5866
5867 * infrun.c: Update comments on stepping over runtime loader
5868 dynamic symbol resolution code.
5869
5870 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5871
5872 * ax-gdb.h (union exp_element): Forward declare.
5873 * parser-defs.h: Include expression.h.
5874
5875 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5876
5877 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5878
5879 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5880
5881 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5882
5883 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5884
5885 Fix trace-status to output proper start-time and stop-time.
5886 * tracepoint.c (trace_status_command): Fix type of printf arg to
5887 prevent improper type conversion.
5888 (trace_status_mi): Likewise.
5889
5890 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5891
5892 * mips-tdep.c (mips_next_pc): Fix a typo.
5893
5894 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5895
5896 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5897
5898 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5899 Yao Qi <yao@codesourcery.com>
5900
5901 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5902 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5903 * mi/mi-main.c (print_variable_or_computed): New function.
5904 (mi_cmd_trace_frame_collected): New function.
5905 * tracepoint.c (find_trace_state_variable_by_number): New.
5906 (struct traceframe_info): Move to tracepoint.h
5907 (struct collection_list): Likewise.
5908 (do_collect_symbol): Include locals and arguments in the
5909 collected variables list.
5910 (clear_collection_list): Clear wholly collected variables list
5911 and computed variables list.
5912 (append_exp): New function.
5913 (encode_actions_1): Include variables in the wholly
5914 collected variables list. Include memory ranges and
5915 full-fledged expressions in the computed expressions list.
5916 (encode_actions): Move some code to ...
5917 Return the cleanup chain.
5918 (encode_actions_rsp): ... here. New function.
5919 (get_traceframe_location, get_traceframe_info): Remove static.
5920 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5921 (struct collection_list): Moved from tracepoint.c. Add two
5922 new fields 'wholly_collected' and 'computed'.
5923 (find_trace_state_variable_by_number): Declare.
5924 (encode_actions): Adjust declaration.
5925 (encode_actions_rsp): Declare.
5926 (get_traceframe_info, get_traceframe_location): Declare.
5927
5928 * NEWS: Mention new MI command -trace-frame-collected.
5929
5930 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5931 Yao Qi <yao@codesourcery.com>
5932
5933 * ctf.c (ctf_traceframe_info): Push trace state variables
5934 present in the trace data into the traceframe info object.
5935 * breakpoint.c (DEF_VEC_I): Remove.
5936 * common/filestuff.c (DEF_VEC_I): Likewise.
5937 * dwarf2loc.c (DEF_VEC_I): Likewise.
5938 * mi/mi-main.c (DEF_VEC_I): Likewise.
5939 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5940 * features/traceframe-info.dtd: Add tvar element and its
5941 attributes.
5942 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5943 (build_traceframe_info): Push trace state variables present in
5944 the trace data into the traceframe info object.
5945 (traceframe_info_start_tvar): New function.
5946 (tvar_attributes): New.
5947 (traceframe_info_children): Add "tvar" element.
5948 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5949
5950 * NEWS: Mention the change in GDB and GDBserver.
5951
5952 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5953 Yao Qi <yao@codesourcery.com>
5954
5955 * tracepoint.c (trace_dump_command): Move code to ...
5956 (get_traceframe_location): ... here. New.
5957
5958 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5959 Yao Qi <yao@codesourcery.com>
5960
5961 * tracepoint.c (trace_dump_command): GDB emits an error
5962 instead of a warning when a traceframe is not selected.
5963
5964 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5965 Yao Qi <yao@codesourcery.com>
5966
5967 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5968 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5969 in collection_list.
5970 (do_clear_collection_list, init_collection_list): New.
5971 (encode_actions): Add local variables 'tracepoint_list' and
5972 'stepping_list'. Call init_collection_list and make cleanup
5973 which calls do_clear_collection_list. Don't call
5974 clear_collection_list.
5975 (_initialize_tracepoint): Delete references to
5976 'tracepoint_list' and 'stepping_list'.
5977
5978 2013-06-25 Tom Tromey <tromey@redhat.com>
5979
5980 * common/create-version.sh (date): Use "$", not "$$" in sed
5981 expression.
5982
5983 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5984
5985 * NEWS (New targets): Add entry for TI MSP430.
5986
5987 2013-06-25 Yao Qi <yao@codesourcery.com>
5988
5989 * remote.c (remote_start_remote): Move code to upload tsv
5990 earlier.
5991
5992 2013-06-25 Yao Qi <yao@codesourcery.com>
5993 Hui Zhu <hui@codesourcery.com>
5994 Pedro Alves <palves@redhat.com>
5995
5996 PR breakpoints/15075
5997 PR breakpoints/15434
5998 * breakpoint.c (bpstat_stop_status): Call
5999 b->ops->after_condition_true.
6000 (update_dprintf_command_list): Don't append "continue" command
6001 to the command list of dprintf breakpoint.
6002 (base_breakpoint_after_condition_true): New function.
6003 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
6004 (dprintf_after_condition_true): New function.
6005 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
6006 * breakpoint.h (breakpoint_ops): Add after_condition_true.
6007
6008 2013-06-24 Kevin Buettner <kevinb@redhat.com>
6009
6010 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
6011 (ALLDEPFILES): Add msp430-tdep.c.
6012 * configure.tgt (msp430*-*-elf): New target.
6013 * msp430-tdep.c: New file.
6014
6015 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6016
6017 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
6018 microMIPS synthetic symbols.
6019
6020 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
6021
6022 * objfiles.h (pc_in_section): New prototype.
6023 (in_plt_section): Remove name argument, replace prototype with
6024 static inline function.
6025 * mips-tdep.h: Include "objfiles.h".
6026 (in_mips_stubs_section): New function.
6027 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
6028 in_solib_call_trampoline member.
6029 (hppa_in_solib_call_trampoline): Remove name argument.
6030 * objfiles.c (pc_in_section): New function.
6031 (in_plt_section): Remove function.
6032 * mips-linux-tdep.c: Include "objfiles.h".
6033 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
6034 name argument. Return 1 rather than the low 16-bit halfword of
6035 any instruction examined.
6036 (mips_linux_in_dynsym_resolve_code): Update
6037 mips_linux_in_dynsym_stub call accordingly.
6038 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
6039 rather than an equivalent hand-coded sequence.
6040 * hppa-hpux-tdep.c (in_opd_section): Remove function.
6041 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
6042 (hppa64_hpux_in_solib_call_trampoline): Likewise.
6043 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
6044 in_opd_section.
6045 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
6046 on call to tdep->in_solib_call_trampoline.
6047 (hppa_in_solib_call_trampoline): Remove name argument, update
6048 according to in_plt_section change.
6049 (hppa_skip_trampoline_code): Update according to in_plt_section
6050 change.
6051 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
6052 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
6053 Likewise.
6054 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
6055 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
6056 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
6057 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
6058 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
6059 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
6060 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
6061 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
6062 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
6063 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
6064 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
6065 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
6066 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
6067
6068 2013-06-24 Joel Brobecker <brobecker@adacore.com>
6069
6070 * common/create-version.sh: Fix expansion of $host_alias
6071 and $target_alias in generation of HOST_NAME and TARGET_NAME
6072 (resp.).
6073
6074 2013-06-24 Tom Tromey <tromey@redhat.com>
6075
6076 * common/create-version.sh: New file.
6077 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6078 create-version.sh.
6079 (HFILES_NO_SRCDIR): Use common/version.h.
6080 * version.in: Move to ...
6081 * common/version.in: ... here. Replace date with "DATE".
6082 * version.h: Move to ...
6083 * common/version.h: ... here.
6084
6085 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6086
6087 * gdb/gnulib/Makefile.in: Update date in copyright header.
6088 * gdb/gnulib/configure.ac: Ditto.
6089 * gdb/gnulib/update-gnulib.sh: Ditto.
6090
6091 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6092
6093 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6094 "gdb/gnulib/import".
6095
6096 2013-06-21 Will Newton <will.newton@linaro.org>
6097
6098 * doublest.c (ldfrexp): Remove function.
6099 (convert_doublest_to_floatformat): Call frexpl instead of
6100 ldfrexp.
6101
6102 2013-06-21 Will Newton <will.newton@linaro.org>
6103
6104 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6105 * gnulib/aclocal.m4: Regenerate.
6106 * gnulib/config.in: Regenerate.
6107 * gnulib/configure: Regenerate.
6108 * gnulib/import/Makefile.am: Update.
6109 * gnulib/import/Makefile.in: Update.
6110 * gnulib/import/m4/gnulib-cache.m4: Update.
6111 * gnulib/import/m4/gnulib-comp.m4: Update.
6112 * gnulib/import/float+.h: Import.
6113 * gnulib/import/float.c: Import.
6114 * gnulib/import/float.in.h: Import.
6115 * gnulib/import/fpucw.h: Import.
6116 * gnulib/import/frexp.c: Import.
6117 * gnulib/import/frexpl.c: Import.
6118 * gnulib/import/isnan.c: Import.
6119 * gnulib/import/isnand-nolibm.h: Import.
6120 * gnulib/import/isnand.c: Import.
6121 * gnulib/import/isnanl-nolibm.h: Import.
6122 * gnulib/import/isnanl.c: Import.
6123 * gnulib/import/itold.c: Import.
6124 * gnulib/import/m4/exponentd.m4: Import.
6125 * gnulib/import/m4/exponentl.m4: Import.
6126 * gnulib/import/m4/float_h.m4: Import.
6127 * gnulib/import/m4/fpieee.m4: Import.
6128 * gnulib/import/m4/frexp.m4: Import.
6129 * gnulib/import/m4/frexpl.m4: Import.
6130 * gnulib/import/m4/isnand.m4: Import.
6131 * gnulib/import/m4/isnanl.m4: Import.
6132 * gnulib/import/m4/math_h.m4: Import.
6133 * gnulib/import/math.c: Import.
6134 * gnulib/import/math.in.h: Import.
6135
6136 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6137
6138 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6139 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6140 signature_INTEL_edx comparisons.
6141
6142 2013-06-20 Doug Evans <dje@google.com>
6143
6144 symtab/15652
6145 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6146 All callers updated.
6147 (open_dwp_file): If we can't find the dwp file, search the basename
6148 in debug-file-directory.
6149
6150 * dwarf2read.c (struct dwp_file): Fix comment.
6151 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6152
6153 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6154 better.
6155
6156 2013-06-20 Yao Qi <yao@codesourcery.com>
6157
6158 * breakpoint.c (create_breakpoint): Fix code indentation.
6159
6160 2013-06-20 Yao Qi <yao@codesourcery.com>
6161
6162 * breakpoint.c (create_breakpoints_sal_default): Remove
6163 parameter 'lsal'. Update declaration.
6164 (bkpt_create_breakpoints_sal): Caller update.
6165 (tracepoint_create_breakpoints_sal): Likewise.
6166
6167 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6168 Yao Qi <yao@codesourcery.com>
6169
6170 * NEWS: Mention the new option '--skip-unavailable' of command
6171 -data-list-register-values.
6172 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6173 --skip-unavailable option. Adjust to use output_register.
6174 (output_register): Add new 'skip_unavailable' parameter.
6175 Handle it.
6176
6177 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6178
6179 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6180 common/i386-gcc-cpuid.h.
6181 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6182 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6183 Copy the latest version from upstream gcc.
6184 * common/linux-btrace.c: Include i386-cpuid.h.
6185 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6186 call to i386_cpuid.
6187 (cpu_supports_btrace): Likewise.
6188 * go32-nat.c: Include i386-cpuid.h.
6189 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6190
6191 2013-06-19 Doug Evans <dje@google.com>
6192
6193 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6194 (get_section_index): Ditto.
6195
6196 2013-06-19 Tom Tromey <tromey@redhat.com>
6197
6198 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6199 "dprintf" help.
6200
6201 2013-06-18 Doug Evans <dje@google.com>
6202
6203 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6204 before using it.
6205 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6206 Move test of cu_index closer to use. Print complaint if cu_index
6207 is bad.
6208
6209 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6210
6211 * machoread.c (oso_vector): Delete this global.
6212 (macho_register_oso): Add new parameter "oso_vector_ptr".
6213 Use it instead of the "oso_vector" global.
6214 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6215 (macho_symfile_read): Use a local oso_vector, to be free'ed
6216 at the end of this function, in place of the old "oso_vector"
6217 global. Update various function calls accordingly. Use one
6218 single cleanup chain for the entire function.
6219
6220 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6221
6222 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6223 DWARF2_PER_OBJFILE by uses of DATA instead.
6224
6225 2013-06-18 Tom Tromey <tromey@redhat.com>
6226
6227 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6228 argument.
6229 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6230 Special case signals other than GDB_SIGNAL_TRAP.
6231 (explains_signal_watchpoint): New function.
6232 (base_breakpoint_explains_signal): Add 'sig' argument.
6233 (initialize_breakpoint_ops): Set 'explains_signal' method for
6234 watchpoints.
6235 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6236 signal argument.
6237 (bpstat_explains_signal): Likewise.
6238 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6239
6240 2013-06-18 Tom Tromey <tromey@redhat.com>
6241
6242 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6243
6244 2013-06-18 Tom Tromey <tromey@redhat.com>
6245
6246 * python/python.c (finish_python_initialization): Decref
6247 'pythondir' on failure path as well.
6248
6249 2013-06-18 Tom Tromey <tromey@redhat.com>
6250
6251 PR symtab/15391:
6252 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6253 after taking bits_to_skip into account. Sign extend byte_offset.
6254 * utils.h (gdb_sign_extend): Declare.
6255 * utils.c (gdb_sign_extend): New function.
6256
6257 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6258
6259 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6260
6261 2013-06-17 Pierre Muller <muller@sourceware.org>
6262
6263 * corelow.c (core_open): Print GDB signal name instead of target
6264 signal number.
6265
6266 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6267
6268 * .gitignore: Add /gcore.
6269
6270 2013-06-13 Doug Evans <dje@google.com>
6271
6272 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6273 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6274
6275 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6276
6277 * stack.c (backtrace_command_1): Fix indentation.
6278
6279 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6280
6281 * window-nat.c (thread_rec): Add missing empty line after
6282 local variable declaration.
6283
6284 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6285
6286 * windows-nat.c (thread_rec): Revert format used to print
6287 error code returned by SuspendThread from %d back to %u.
6288
6289 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6290
6291 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6292 ID in debug trace.
6293 (get_windows_debug_event): Likewise, for all debug traces.
6294
6295 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6296
6297 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6298 warning message.
6299
6300 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6301 Yao Qi <yao@codesourcery.com>
6302
6303 * mi/mi-main.c (get_register): Remove declaration.
6304 (output_register): Declare.
6305 (mi_cmd_data_list_register_values): Remove local variable
6306 'tuple_cleanup'. Move some code into output_register.
6307 (get_register): Renamed to ...
6308 (output_register): ... this. Output the register's
6309 "number" ui_out tuple here.
6310
6311 2013-06-07 Pedro Alves <palves@redhat.com>
6312
6313 * darwin-nat.c: Fix formating in copyright header.
6314 * darwin-nat.h: Likewise.
6315 * gnu-nat.c: Likewise.
6316 * machoread.c: Likewise.
6317
6318 2013-06-07 Pedro Alves <palves@redhat.com>
6319
6320 PR server/14823
6321 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6322 static. Output a global target description pointer.
6323 (init_registers_${name}): Adjust to initialize a
6324 target description structure.
6325
6326 2013-06-07 Will Newton <will.newton@linaro.org>
6327
6328 * printcmd.c (build_address_symbolic): Call
6329 gdbarch_addr_bits_remove for text minimal symbols.
6330
6331 2013-06-07 Will Newton <will.newton@linaro.org>
6332
6333 * MAINTAINERS: Add myself to Write After Approval.
6334
6335 2013-06-07 Yao Qi <yao@codesourcery.com>
6336
6337 * tracepoint.c (start_tracing): Move code to ...
6338 (trace_reset_local_state): ... here. New.
6339 (disconnect_tracing): Don't call set_current_traceframe,
6340 set_tracepoint_num, and set_traceframe_context. Call
6341 trace_reset_local_state instead.
6342 (tfile_close): Call trace_reset_local_state.
6343 * ctf.c (ctf_close): Likewise.
6344 * remote.c (remote_close): Likewise.
6345 * tracepoint.h (trace_reset_local_state): Declare.
6346
6347 2013-06-06 Doug Evans <dje@google.com>
6348
6349 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6350 and fix header docs.
6351
6352 2013-06-05 Doug Evans <dje@google.com>
6353 Keith Seitz <keiths@redhat.com>
6354
6355 PR 15519
6356 * cp-namespace.c (find_symbol_in_baseclass): Call
6357 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6358 Check result of call to lookup_symbol_static.
6359 Call lookup_static_symbol_aux unconditionally.
6360 Call check_typedef on base types before accessing them.
6361 (cp_lookup_nested_symbol): Fix comment.
6362
6363 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6364
6365 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6366 minimal symbols pointing to function descriptors.
6367
6368 2013-06-05 Tom Tromey <tromey@redhat.com>
6369
6370 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6371
6372 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6373 Pedro Alves <palves@redhat.com>
6374
6375 * remote.c (remote_wait_as): Restore signal handler before returning
6376 when GDB gets a notification.
6377
6378 2013-06-04 Gary Benson <gbenson@redhat.com>
6379
6380 PR 2328
6381 * breakpoint.h (handle_solib_event): Moved function declaration
6382 to solib.h.
6383 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6384 (bpstat_stop_status): Pass new argument to handle_solib_event.
6385 * solib.h (update_solib_breakpoints): New function declaration.
6386 (handle_solib_event): Moved function declaration from
6387 breakpoint.h.
6388 * solib.c (update_solib_breakpoints): New function.
6389 (handle_solib_event): Moved function from breakpoint.c.
6390 Updated to call solib_ops->handle_event if not NULL.
6391 * solist.h (target_so_ops): New fields "update_breakpoints" and
6392 "handle_event".
6393 * infrun.c (set_stop_on_solib_events): New function.
6394 (_initialize_infrun): Use the above for "set
6395 stop-on-solib-events".
6396 (handle_inferior_event): Pass new argument to handle_solib_event.
6397 * solib-svr4.c (probe.h): New include.
6398 (svr4_free_library_list): New forward declaration.
6399 (probe_action): New enum.
6400 (probe_info): New struct.
6401 (probe_info): New static variable.
6402 (NUM_PROBES): New definition.
6403 (svr4_info): New fields "using_xfer", "probes_table" and
6404 "solib_list".
6405 (free_probes_table): New function.
6406 (free_solib_list): New function.
6407 (svr4_pspace_data_cleanup): Free probes table and solib list.
6408 (svr4_copy_library_list): New function.
6409 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6410 (svr4_read_so_list): New parameter "prev_lm".
6411 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6412 (svr4_current_sos): New function.
6413 (probe_and_action): New struct.
6414 (hash_probe_and_action): New function.
6415 (equal_probe_and_action): Likewise.
6416 (register_solib_event_probe): Likewise.
6417 (solib_event_probe_at): Likewise.
6418 (solib_event_probe_action): Likewise.
6419 (solist_update_full): Likewise.
6420 (solist_update_incremental): Likewise.
6421 (disable_probes_interface_cleanup): Likewise.
6422 (svr4_handle_solib_event): Likewise.
6423 (svr4_update_solib_event_breakpoint): Likewise.
6424 (svr4_update_solib_event_breakpoints): Likewise.
6425 (svr4_create_solib_event_breakpoints): Likewise.
6426 (enable_break): Free probes table before creating breakpoints.
6427 Use svr4_create_solib_event_breakpoints to create breakpoints.
6428 (svr4_solib_create_inferior_hook): Free the solib list.
6429 (_initialize_svr4_solib): Initialise
6430 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6431
6432 2013-06-04 Gary Benson <gbenson@redhat.com>
6433
6434 * target.h (target_ops): New field
6435 "to_augmented_libraries_svr4_read".
6436 (target_augmented_libraries_svr4_read): New macro.
6437 * target.c (update_current_target): Handle
6438 to_augmented_libraries_svr4_read.
6439 * remote.c (remote_state): New field
6440 "augmented_libraries_svr4_read".
6441 (remote_augmented_libraries_svr4_read_feature): New function.
6442 (remote_protocol_features): Add entry for
6443 "augmented-libraries-svr4-read".
6444 (remote_augmented_libraries_svr4_read): New function.
6445 (init_remote_ops): Initialize
6446 remote_ops.to_augmented_libraries_svr4_read.
6447
6448 2013-06-04 Gary Benson <gbenson@redhat.com>
6449
6450 * NEWS: Update.
6451
6452 2013-06-04 Gary Benson <gbenson@redhat.com>
6453
6454 * objfiles.h (inhibit_section_map_updates): New function
6455 declaration.
6456 (resume_section_map_updates): Likewise.
6457 (resume_section_map_updates_cleanup): Likewise.
6458 * objfiles.c (objfile_pspace_info): Removed field
6459 "objfiles_changed_p". New fields "new_objfiles_available",
6460 "section_map_dirty" and "inhibit_updates".
6461 (allocate_objfile): Set new_objfiles_available.
6462 (free_objfile): Set section_map_dirty.
6463 (objfile_relocate1): Likewise.
6464 (in_plt_section): Likewise.
6465 (find_pc_section): Update the conditions under which the
6466 section map will be updated.
6467 (inhibit_section_map_updates): New function.
6468 (resume_section_map_updates): Likewise.
6469 (resume_section_map_updates_cleanup): Likewise.
6470
6471 2013-06-04 Gary Benson <gbenson@redhat.com>
6472
6473 * probe.h (get_probe_argument_count): New declaration.
6474 (evaluate_probe_argument): Likewise.
6475 * probe.c (get_probe_argument_count): New function.
6476 (evaluate_probe_argument): Likewise.
6477 (probe_safe_evaluate_at_pc): Use the above new functions.
6478
6479 2013-06-04 Alan Modra <amodra@gmail.com>
6480
6481 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6482 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6483 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6484 target mem reads on optional insns.
6485 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6486 ppc_insns_match_pattern calls.
6487 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6488 Add match for power7 thread safety insns, and new order of
6489 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6490 invocation in comment, and update rest of comment.
6491 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6492 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6493 (ppc64_standard_linkage2_target): Update insn offsets.
6494 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6495 stubs first. Update calls.
6496
6497 2013-06-04 Yao Qi <yao@codesourcery.com>
6498
6499 * solib.c (solib_find): Don't need dir separator if path has
6500 drive spec.
6501
6502 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6503
6504 Revert (indirectly causes a SIGSEGV):
6505 * machoread.c (macho_symfile_read): Assign first cleanup to
6506 'back_to'.
6507
6508 2013-06-03 Yao Qi <yao@codesourcery.com>
6509
6510 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6511 mi-parse.c. Make them static.
6512 (mi_all_values): Likewise.
6513 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6514 mi_parse_print_values. Make it external.
6515 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6516 Remove the declarations.
6517 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6518 * mi/mi-parse.h (mi_parse_print_values): Declare.
6519 * mi/mi-cmd-stack.c: Include mi-parse.h.
6520 (parse_print_values): Remove
6521 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6522 of parse_print_values.
6523 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6524
6525 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6526 Yao Qi <yao@codesourcery.com>
6527
6528 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6529 (encode_actions): Move code to ...
6530 (all_tracepoint_actions_and_cleanup): ... here. New.
6531 (trace_dump_command): Likewise.
6532
6533 2013-05-30 Tom Tromey <tromey@redhat.com>
6534
6535 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6536
6537 2013-05-30 Tom Tromey <tromey@redhat.com>
6538
6539 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6540 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6541 'old_chain' argument. Add 'parser_result' argument.
6542 (gdb_xml_create_parser_and_cleanup): Remove old version.
6543 (gdb_xml_parse_quick): Update.
6544 (xml_process_xincludes): Update.
6545 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6546 declare.
6547
6548 2013-05-30 Tom Tromey <tromey@redhat.com>
6549
6550 * probe.c (collect_probes): Check arguments for NULL before
6551 calling compile_rx_or_error.
6552 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6553 Remove NULL return.
6554
6555 2013-05-30 Tom Tromey <tromey@redhat.com>
6556
6557 * infrun.c (adjust_pc_after_break): Introduce an outer null
6558 cleanup.
6559
6560 2013-05-30 Tom Tromey <tromey@redhat.com>
6561
6562 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6563
6564 2013-05-30 Tom Tromey <tromey@redhat.com>
6565
6566 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6567 for 'old_chain'. Do not check 'head' before processing
6568 cleanups.
6569
6570 2013-05-30 Tom Tromey <tromey@redhat.com>
6571
6572 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6573 "cleanup_tuple".
6574
6575 2013-05-30 Tom Tromey <tromey@redhat.com>
6576
6577 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6578 inner scope. Unconditionally call do_cleanups.
6579
6580 2013-05-30 Tom Tromey <tromey@redhat.com>
6581
6582 * source.c (find_and_open_source): Call do_cleanups.
6583
6584 2013-05-30 Tom Tromey <tromey@redhat.com>
6585
6586 * linux-thread-db.c (thread_db_load_search): Unconditionally
6587 call do_cleanups.
6588
6589 2013-05-30 Tom Tromey <tromey@redhat.com>
6590
6591 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6592 for 'cleanup'; instead use a later one.
6593
6594 2013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * python/py-breakpoint.c (bppy_get_commands): Use
6597 explicit, unconditional return.
6598 * python/py-frame.c (frapy_read_var): Likewise.
6599 * python/python.c (gdbpy_decode_line): Likewise.
6600
6601 2013-05-30 Tom Tromey <tromey@redhat.com>
6602
6603 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6604 do_cleanups on all return paths.
6605
6606 2013-05-30 Tom Tromey <tromey@redhat.com>
6607
6608 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6609
6610 2013-05-30 Tom Tromey <tromey@redhat.com>
6611
6612 * stabsread.c (read_struct_type): Call do_cleanups along
6613 all return paths.
6614
6615 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6616
6617 * mips-linux-tdep.c: Adjust formatting throughout.
6618
6619 2013-05-30 Tom Tromey <tromey@redhat.com>
6620
6621 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6622 along all return paths.
6623
6624 2013-05-30 Tom Tromey <tromey@redhat.com>
6625
6626 * symfile.c (find_separate_debug_file): Call do_cleanups
6627 along all return paths.
6628
6629 2013-05-30 Tom Tromey <tromey@redhat.com>
6630
6631 * symtab.c (search_symbols): Introduce a null cleanup for
6632 'retval_chain'.
6633
6634 2013-05-30 Tom Tromey <tromey@redhat.com>
6635
6636 * python/py-value.c (valpy_binop): Call do_cleanups before
6637 exiting loop.
6638
6639 2013-05-30 Tom Tromey <tromey@redhat.com>
6640
6641 * python/py-prettyprint.c (print_children): Remove extra
6642 do_cleanups call.
6643
6644 2013-05-30 Tom Tromey <tromey@redhat.com>
6645
6646 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6647 all return paths.
6648
6649 2013-05-30 Tom Tromey <tromey@redhat.com>
6650
6651 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6652 along all return paths.
6653
6654 2013-05-30 Tom Tromey <tromey@redhat.com>
6655
6656 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6657 call do_cleanups.
6658
6659 2013-05-30 Tom Tromey <tromey@redhat.com>
6660
6661 * varobj.c (c_value_of_root): Call do_cleanups along all
6662 return paths.
6663
6664 2013-05-30 Tom Tromey <tromey@redhat.com>
6665
6666 * tracepoint.c (trace_dump_command): Unconditionally call
6667 do_cleanups.
6668
6669 2013-05-30 Tom Tromey <tromey@redhat.com>
6670
6671 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6672 do_cleanups earlier.
6673
6674 2013-05-30 Tom Tromey <tromey@redhat.com>
6675
6676 * machoread.c (macho_symfile_read): Assign first cleanup to
6677 'back_to'.
6678
6679 2013-05-30 Tom Tromey <tromey@redhat.com>
6680
6681 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6682
6683 2013-05-30 Tom Tromey <tromey@redhat.com>
6684
6685 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6686
6687 2013-05-30 Tom Tromey <tromey@redhat.com>
6688
6689 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6690 call discard_cleanups.
6691 (inf_ptrace_attach): Likewise.
6692
6693 2013-05-30 Tom Tromey <tromey@redhat.com>
6694
6695 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6696 return paths.
6697 (mips_initialize): Likewise.
6698 (common_open): Call do_cleanups.
6699
6700 2013-05-30 Tom Tromey <tromey@redhat.com>
6701
6702 * utils.c (internal_vproblem): Call do_cleanups.
6703
6704 2013-05-30 Tom Tromey <tromey@redhat.com>
6705
6706 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6707
6708 2013-05-30 Tom Tromey <tromey@redhat.com>
6709
6710 * cli/cli-script.c (setup_user_args): Don't return after error.
6711
6712 2013-05-30 Tom Tromey <tromey@redhat.com>
6713
6714 * somread.c (som_symtab_read): Call do_cleanups.
6715
6716 2013-05-30 Tom Tromey <tromey@redhat.com>
6717
6718 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6719
6720 2013-05-30 Tom Tromey <tromey@redhat.com>
6721
6722 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6723 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6724 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6725 * source.c (show_substitute_path_command): Call do_cleanups.
6726 (unset_substitute_path_command, set_substitute_path_command):
6727 Likewise.
6728 * symfile.c (load_command): Call do_cleanups.
6729
6730 2013-05-30 Tom Tromey <tromey@redhat.com>
6731
6732 * contrib/cleanup_check.py: New file.
6733 * contrib/gcc-with-excheck: Add option parsing.
6734
6735 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6736
6737 * windows-nat.c (windows_delete_thread): Add missing space
6738 in cast expression.
6739
6740 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6741
6742 * inferior.c (top level): Include tilde.h.
6743 (add_inferior_command): Call tilde_expand on the value of 'exec'
6744 argument.
6745
6746 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6747 Yao Qi <yao@codesourcery.com>
6748
6749 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6750 Caller update.
6751 (encode_actions): Likewise.
6752 * remote.c (remote_download_tracepoint): Caller update.
6753 * tracepoint.h (encode_actions): Update declaration.
6754
6755 2013-05-30 Pedro Alves <palves@redhat.com>
6756
6757 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6758 pointer.
6759
6760 2013-05-30 Yao Qi <yao@codesourcery.com>
6761
6762 * remote.c (remote_check_symbols): Remove unused parameter
6763 'objfile'.
6764 Declaration update.
6765 (remote_start_remote, remote_new_objfile): Caller update.
6766
6767 2013-05-30 Yao Qi <yao@codesourcery.com>
6768
6769 * mi/mi-cmds.c (mi_cmds): Define MI command
6770 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6771 DEF_MI_CMD_CLI.
6772
6773 2013-05-29 Pedro Alves <palves@redhat.com>
6774
6775 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6776 (remote_insert_watchpoint, remote_remove_watchpoint)
6777 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6778 (remote_verify_memory, compare_sections_command)
6779 (remote_search_memory): Set the general process/thread on the
6780 remote side.
6781
6782 2013-05-29 Pedro Alves <palves@redhat.com>
6783
6784 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6785 (_initialize_aarch64_tdep): Don't call
6786 initialize_tdesc_aarch64_without_fpu.
6787 * features/Makefile (WHICH): Remove reference to
6788 aarch64-without-fpu.
6789 * features/aarch64-without-fpu.c: Delete file.
6790 * regformats/aarch64-without-fpu.dat: Delete file.
6791
6792 2013-05-28 Yao Qi <yao@codesourcery.com>
6793
6794 * tracepoint.c (stringify_collection_list): Remove parameter
6795 'string'.
6796 (encode_actions): Caller update. Remove local variables.
6797
6798 2013-05-24 Yao Qi <yao@codesourcery.com>
6799
6800 * tracepoint.c (TFILE_PID): Remove.
6801 (tfile_open): Don't add thread and inferior.
6802 (tfile_close): Don't set 'inferior_ptid'. Don't call
6803 exit_inferior_silent.
6804 (tfile_thread_alive): Remove.
6805 (init_tfile_ops): Don't set field 'to_thread_alive' of
6806 tfile_ops.
6807
6808 2013-05-23 Doug Evans <dje@google.com>
6809
6810 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6811
6812 2013-05-23 Pedro Alves <palves@redhat.com>
6813
6814 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6815 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6816 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6817 Only define if HAVE_SOCKETS is defined.
6818 * configure.ac: Check for sys/socket.h.
6819 * config.in, configure: Regenerate.
6820
6821 2013-05-23 Pedro Alves <palves@redhat.com>
6822
6823 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6824 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6825 printing uint32_t variables.
6826
6827 2013-05-23 Pedro Alves <palves@redhat.com>
6828
6829 * NEWS: Mention GDBserver range stepping support.
6830
6831 2013-05-23 Yao Qi <yao@codesourcery.com>
6832 Pedro Alves <palves@redhat.com>
6833
6834 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6835 field.
6836 * infcmd.c (step_once, until_next_command): Enable range stepping.
6837 * infrun.c (displaced_step_prepare): Disable range stepping.
6838 (resume): Disable range stepping if stepping over a breakpoint or
6839 we have software watchpoints. If range stepping is enabled,
6840 assert the thread is in the stepping range.
6841 (clear_proceed_status_thread): Clear may_range_step.
6842 (handle_inferior_event): Disable range stepping as soon as we know
6843 the thread that hit the event. Re-enable it whenever we're going
6844 to step with a step range.
6845 * remote.c (struct vCont_action_support) <r>: New field.
6846 (use_range_stepping): New global.
6847 (remote_vcont_probe): Handle 'r' action.
6848 (append_resumption): Append an 'r' action if the thread may range
6849 step.
6850 (show_range_stepping): New function.
6851 (set_range_stepping): New function.
6852 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6853 'set range-stepping' and 'show range-stepping' commands.
6854 * NEWS: Mention range stepping, the new vCont;r action, and the
6855 new "set/show range-stepping" commands.
6856
6857 2013-05-23 Yao Qi <yao@codesourcery.com>
6858 Pedro Alves <palves@redhat.com>
6859
6860 * remote.c (struct vCont_action_support): New struct.
6861 (struct remote_state) <support_vCont_t>: Remove field.
6862 <vCont_actions_support>: New field.
6863 (remote_vcont_probe, remote_stop_ns): Update.
6864
6865 2013-05-23 Yao Qi <yao@codesourcery.com>
6866 Pedro Alves <palves@redhat.com>
6867
6868 * gdbthread.h (pc_in_thread_step_range): New declaration.
6869 * thread.c (pc_in_thread_step_range): New function.
6870 * infrun.c (handle_inferior_event): Use it.
6871
6872 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6873
6874 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6875 of sprintf.
6876
6877 2013-05-22 Keith Seitz <keiths@redhat.com>
6878
6879 * ada-lang.c (is_known_support_routine): Add explicit free of
6880 'func_name' from find_frame_funname.
6881 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6882 for func_name from find_frame_funname.
6883 * python/py-frame.c (frapy_name): Add explicit free of
6884 'name' from find_frame_funname.
6885 * stack.c (find_frame_funname): Add comment explaining that
6886 funcp must be freed by the caller.
6887 Return copy of symbol names instead of pointers.
6888 (print_frame): Add a cleanup for 'funname' from
6889 find_frame_funname.
6890 * stack.h (find_frame_funname): Remove "const" from
6891 'funname' parameter.
6892
6893 2013-05-22 Tom Tromey <tromey@redhat.com>
6894
6895 PR c++/15401:
6896 * c-valprint.c (c_value_print): Use value_addr for
6897 references. Convert back to reference type with value_ref.
6898
6899 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6900
6901 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6902 unloaded DLL, it will be done by handle_solib_event. See
6903 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6904 details.
6905
6906 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6907
6908 * ui-out.c: Create typedef ui_out_level_p and define vector
6909 operations for that type.
6910 (struct ui_out): Use a vector instead of an array.
6911 (current_level): Return level from a vector.
6912 (push_level): Create a level in a vector.
6913 (pop_level): Delete a level in a vector.
6914 (ui_out_new): Create initial level zero level, and store in a
6915 vector.
6916 (ui_out_destroy): Add vector cleanup.
6917
6918 2013-05-22 Pedro Alves <palves@redhat.com>
6919
6920 * python/python-internal.h (gdb_Py_DECREF): Tag with
6921 "ARI: editCase function".
6922
6923 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6924
6925 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6926
6927 2013-05-21 Pedro Alves <palves@redhat.com>
6928
6929 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6930 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6931 * python/py-utils.c (py_decref): Don't check for NULL before
6932 calling Py_DECREF.
6933
6934 2013-05-21 Pedro Alves <palves@redhat.com>
6935
6936 * python/py-utils.c (py_decref): Remove extra braces.
6937 (gdb_pymodule_addobject): Remove extra braces.
6938 * python-internal.h (gdb_Py_DECREF): New static inline function.
6939 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6940
6941 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6942
6943 * breakpoints.c (detach_breakpoints): Do not
6944 detach breakpoints locations with loc_type bp_loc_other.
6945
6946 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6947
6948 Workaround Python 2.6.
6949 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6950 a block.
6951
6952 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 Code cleanup: constification.
6955 * solib.c (solib_ops): Make return type and ops variable type const.
6956 (set_solib_ops): Make the new_ops parameter and ops variable const.
6957 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6958 (solib_add, solib_keep_data_in_core, clear_solib)
6959 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6960 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6961 const.
6962 * solib.h (set_solib_ops): Make the new_ops parameter const.
6963
6964 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6965
6966 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6967 variable.
6968 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6969 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6970 (SYSTEM_GDBINIT_FILES): New variables.
6971 (all): Add stamp-system-gdbinit.
6972 (stamp-system-gdbinit): New rule.
6973 (clean-system-gdbinit, install-system-gdbinit)
6974 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6975 (install-only): Add dependency on install-system-gdbinit.
6976 (uninstall): Add dependency on uninstall-system-gdbinit.
6977 (clean): Add dependency on clean-system-gdbinit.
6978 * system-gdbinit/elinos.py: New file.
6979 * system-gdbinit/wrs-linux.py: New file.
6980
6981 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6982
6983 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6984
6985 2013-05-21 Hui Zhu <hui@codesourcery.com>
6986
6987 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6988 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6989 * mi/mi-cmd-break.c (ctype.h): New include.
6990 (gdb_obstack.h): New include.
6991 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6992 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6993 (mi_cmd_dprintf_insert): New.
6994 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6995 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6996
6997 2013-05-20 Tom Tromey <tromey@redhat.com>
6998
6999 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
7000
7001 2013-05-20 Tom Tromey <tromey@redhat.com>
7002
7003 * python/py-value.c (valpy_get_dynamic_type): Simplify
7004 dynamic_type assignment. Use Py_XINCREF.
7005
7006 2013-05-20 Tom Tromey <tromey@redhat.com>
7007
7008 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
7009
7010 2013-05-20 Tom Tromey <tromey@redhat.com>
7011
7012 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
7013 (gdbpy_selected_frame): Move object-construction code
7014 out of TRY_CATCH.
7015
7016 2013-05-20 Tom Tromey <tromey@redhat.com>
7017
7018 * python/py-arch.c (gdbpy_initialize_arch): Use
7019 gdb_pymodule_addobject.
7020 * python/py-block.c (gdbpy_initialize_blocks): Use
7021 gdb_pymodule_addobject.
7022 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
7023 gdb_pymodule_addobject.
7024 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
7025 gdb_pymodule_addobject.
7026 * python/py-event.c (gdbpy_initialize_event_generic): Use
7027 gdb_pymodule_addobject.
7028 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
7029 gdb_pymodule_addobject.
7030 * python/py-evts.c (add_new_registry): Use
7031 gdb_pymodule_addobject.
7032 (gdbpy_initialize_py_events): Likewise.
7033 * python/py-finishbreakpoint.c
7034 (gdbpy_initialize_finishbreakpoints): Use
7035 gdb_pymodule_addobject.
7036 * python/py-frame.c (gdbpy_initialize_frames): Use
7037 gdb_pymodule_addobject.
7038 * python/py-function.c (gdbpy_initialize_functions): Use
7039 gdb_pymodule_addobject.
7040 * python/py-inferior.c (gdbpy_initialize_inferior): Use
7041 gdb_pymodule_addobject.
7042 * python/py-infthread.c (gdbpy_initialize_thread): Use
7043 gdb_pymodule_addobject.
7044 * python/py-objfile.c (gdbpy_initialize_objfile): Use
7045 gdb_pymodule_addobject.
7046 * python/py-param.c (gdbpy_initialize_parameters): Use
7047 gdb_pymodule_addobject.
7048 * python/py-progspace.c (gdbpy_initialize_pspace): Use
7049 gdb_pymodule_addobject.
7050 * python/py-symbol.c (gdbpy_initialize_symbols): Use
7051 gdb_pymodule_addobject.
7052 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
7053 gdb_pymodule_addobject.
7054 * python/py-type.c (gdbpy_initialize_types): Use
7055 gdb_pymodule_addobject.
7056 * python/py-utils.c (gdb_pymodule_addobject): New function.
7057 * python/py-value.c (gdbpy_initialize_values): Use
7058 gdb_pymodule_addobject.
7059 * python/python-internal.h (gdb_pymodule_addobject): Declare.
7060 * python/python.c (_initialize_python): Use
7061 gdb_pymodule_addobject.
7062
7063 2013-05-20 Tom Tromey <tromey@redhat.com>
7064
7065 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
7066 * python/py-param.c (get_set_value, get_show_value): Use
7067 explicit decrefs.
7068 * python/python.c (start_type_printers, apply_type_printers):
7069 Use explicit decrefs.
7070
7071 2013-05-20 Tom Tromey <tromey@redhat.com>
7072
7073 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7074 incref the module.
7075
7076 2013-05-20 Tom Tromey <tromey@redhat.com>
7077
7078 * python/python.c (gdbpy_run_events): Decref the result
7079 of PyObject_CallObject.
7080
7081 2013-05-20 Tom Tromey <tromey@redhat.com>
7082
7083 * python/py-symtab.c (set_sal): Use
7084 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7085 (symtab_and_line_to_sal_object): Update.
7086
7087 2013-05-20 Tom Tromey <tromey@redhat.com>
7088
7089 * python/py-param.c (compute_enum_values): Decref 'item'.
7090
7091 2013-05-20 Tom Tromey <tromey@redhat.com>
7092
7093 * mi/mi-main.c: Include python-internal.h.
7094 (mi_cmd_list_features): Check gdb_python_initialized.
7095 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7096 (python_inferior_exit, python_new_objfile, add_thread_object)
7097 (delete_thread_object, py_free_inferior): Check
7098 gdb_python_initialized.
7099 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7100 gdb_python_initialized.
7101 * python/py-type.c (save_objfile_types): Check
7102 gdb_python_initialized.
7103 * python/python-internal.h (gdb_python_initialized): Declare.
7104 * python/python.c (ensure_python_env): Throw exception if
7105 Python not initialized.
7106 (before_prompt_hook, source_python_script_for_objfile)
7107 (start_type_printers, apply_type_printers,
7108 free_type_printers): Check gdb_python_initialized.
7109 * varobj.c (varobj_get_display_hint)
7110 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7111 (install_new_value_visualizer, varobj_set_visualizer)
7112 (value_get_print_value): Check gdb_python_initialized.
7113
7114 2013-05-20 Tom Tromey <tromey@redhat.com>
7115
7116 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7117 Check errors.
7118 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7119 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7120 Check errors.
7121 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7122 Check errors.
7123 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7124 Check errors.
7125 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7126 Check errors.
7127 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7128 init function to return 'int'.
7129 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7130 Return 'int'. Check errors.
7131 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7132 Check errors.
7133 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7134 Return 'int'. Check errors.
7135 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7136 Check errors.
7137 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7138 Check errors.
7139 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7140 Check errors.
7141 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7142 Check errors.
7143 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7144 Check errors.
7145 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7146 Check errors.
7147 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7148 Check errors.
7149 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7150 Check errors.
7151 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7152 Check errors.
7153 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7154 Check errors.
7155 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7156 Check errors.
7157 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7158 Check errors.
7159 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7160 Check errors.
7161 * python/python-internal.h (gdbpy_initialize_auto_load,
7162 gdbpy_initialize_values, gdbpy_initialize_frames,
7163 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7164 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7165 gdbpy_initialize_blocks, gdbpy_initialize_types,
7166 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7167 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7168 gdbpy_initialize_finishbreakpoints,
7169 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7170 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7171 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7172 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7173 gdbpy_initialize_signal_event,
7174 gdbpy_initialize_breakpoint_event,
7175 gdbpy_initialize_continue_event,
7176 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7177 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7178 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7179 * python/python.c (gdb_python_initialized): New global.
7180 (gdbpy_initialize_events): Return 'int'. Check errors.
7181 (_initialize_python): Check errors. Set
7182 gdb_python_initialized.
7183
7184 2013-05-20 Tom Tromey <tromey@redhat.com>
7185
7186 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7187 Decref the reslut of PyObject_CallMethod.
7188
7189 2013-05-20 Tom Tromey <tromey@redhat.com>
7190
7191 * python/py-event.c (gdbpy_initialize_event_generic): Return
7192 early if PyType_Ready fails.
7193
7194 2013-05-20 Tom Tromey <tromey@redhat.com>
7195
7196 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7197 as 'default' in the switch.
7198
7199 2013-05-20 Tom Tromey <tromey@redhat.com>
7200
7201 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7202 get_addr_from_python calls out of TRY_CATCH.
7203 (infpy_write_memory, infpy_search_memory): Likewise.
7204 * python/py-utils.c (get_addr_from_python): Return negative
7205 value on error. Use TRY_CATCH.
7206 * python/python-internal.h (get_addr_from_python): Use
7207 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7208
7209 2013-05-20 Tom Tromey <tromey@redhat.com>
7210
7211 * python/py-event.c (evpy_emit_event): Decref the
7212 result of PyObject_CallFunctionObjArgs.
7213
7214 2013-05-20 Tom Tromey <tromey@redhat.com>
7215
7216 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7217 Correctly decref.
7218
7219 2013-05-20 Tom Tromey <tromey@redhat.com>
7220
7221 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7222
7223 2013-05-20 Tom Tromey <tromey@redhat.com>
7224
7225 * python/py-event.h (gdbpy_initialize_event_generic): Use
7226 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7227 * python/py-evts.c (add_new_registry): Use
7228 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7229 * python/python-internal.h
7230 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7231
7232 2013-05-20 Tom Tromey <tromey@redhat.com>
7233
7234 * python/py-arch.c (archpy_disassemble): Update.
7235 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7236 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7237 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7238 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7239 macro.
7240 (GDB_PY_HANDLE_EXCEPTION): Update.
7241 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7242
7243 2013-05-20 Tom Tromey <tromey@redhat.com>
7244
7245 * python/python-internal.h (events_object_type): Remove.
7246
7247 2013-05-20 Tom Tromey <tromey@redhat.com>
7248
7249 * python/py-event.h (evpy_emit_event): Use
7250 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7251 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7252 New macro.
7253
7254 2013-05-20 Tom Tromey <tromey@redhat.com>
7255
7256 * py-evtregistry.c (create_event_object): Decref
7257 eventregistry_object if PyList_New fails.
7258
7259 2013-05-20 Tom Tromey <tromey@redhat.com>
7260
7261 * py-cmd.c (gdbpy_string_to_argv): Check result of
7262 PyList_New.
7263
7264 2013-05-20 Tom Tromey <tromey@redhat.com>
7265
7266 * python/python.c (before_prompt_hook): Add cleanup to
7267 decref 'hook'.
7268
7269 2013-05-20 Tom Tromey <tromey@redhat.com>
7270
7271 * python/py-function.c (fnpy_init): Decref result of
7272 PyObject_GetAttrString.
7273
7274 2013-05-20 Tom Tromey <tromey@redhat.com>
7275
7276 * python/py-threadevent.c (get_event_thread): Use
7277 CPYCHECKER_RETURNS_BORROWED_REF.
7278 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7279 New define.
7280 (pspace_to_pspace_object, objfile_to_objfile_object)
7281 (find_thread_object): Use it.
7282
7283 2013-05-20 Tom Tromey <tromey@redhat.com>
7284
7285 * python/py-arch.c (arch_object_type): Use
7286 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7287 * python/py-block.c (block_syms_iterator_object_type):
7288 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7289 * python/py-bpevent.c (breakpoint_event_object_type):
7290 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7291 * python/py-cmd.c (cmdpy_object_type): Use
7292 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7293 * python/py-continueevent.c (continue_event_object_type):
7294 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7295 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7296 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7297 * python/py-events.h (thread_event_object_type):
7298 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7299 * python/py-evtregistry.c (eventregistry_object_type): Use
7300 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7301 * python/py-exitedevent.c (exited_event_object_type):
7302 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7303 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7304 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7305 * python/py-function.c (fnpy_object_type): Use
7306 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7307 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7308 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7309 * python/py-infthread.c (thread_object_type): Use
7310 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7311 * python/py-lazy-string.c (lazy_string_object_type):
7312 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7313 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7314 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7315 * python/py-objfile.c (objfile_object_type): Use
7316 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7317 * python/py-param.c (parmpy_object_type):
7318 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7319 * python/py-progspace.c (pspace_object_type):
7320 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7321 * python/py-signalevent.c (signal_event_object_type):
7322 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7323 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7324 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7325 * python/py-type.c (type_object_type, field_object_type)
7326 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7327 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7328 define.
7329 (value_object_type, block_object_type, symbol_object_type)
7330 (event_object_type, stop_event_object_type, breakpoint_object_type)
7331 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7332
7333 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7334
7335 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7336 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7337
7338 2013-05-20 Doug Evans <dje@google.com>
7339
7340 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7341 For Fission.
7342 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7343 reading_dwo_directly.
7344 (struct signatured_type): New member dwo_unit.
7345 (struct die_reader_specs): New member comp_dir.
7346 (create_signatured_type_table_from_index): Use malloc for
7347 all_type_units instead of objfile's obstack.
7348 (create_all_type_units): Ditto.
7349 (fill_in_sig_entry_from_dwo_entry): New function.
7350 (add_type_unit): New function.
7351 (lookup_dwo_signatured_type): New function.
7352 (lookup_dwp_signatured_type): New function.
7353 (lookup_signatured_type): New arg cu. All callers updated.
7354 (init_cu_die_reader): Initialize comp_dir.
7355 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7356 Change assert of matching type signatures to call error on mismatch.
7357 (lookup_dwo_unit): Add assert.
7358 (init_tu_and_read_dwo_dies): New function.
7359 (init_cutu_and_read_dies): Call it.
7360 (build_type_unit_groups): Handle case of no type unit groups created.
7361 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7362 (lookup_dwo_cutu): Tweak complaint.
7363 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7364 (dwarf2_per_objfile_free): Free all_type_units.
7365
7366 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7367
7368 * windows-nat.c (handle_unload_dll): Add missing empty line.
7369
7370 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7371
7372 * dwarf2read.c (prototyped_function_p): New function.
7373 (read_subroutine_type): Use it.
7374
7375 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7376
7377 * rs6000-aix-tdep.c: De-indent some example code provided
7378 as a comment.
7379
7380 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7381
7382 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7383 region is ok for a hardware watchpoint using the new ptrace interface
7384 on Power servers.
7385
7386 2013-05-17 Doug Evans <dje@google.com>
7387
7388 * NEWS: Mention new maintenance commands check-symtabs, and
7389 expand-symtabs, and renamed check-psymtabs.
7390 * psymtab.c (maintenance_check_psymtabs): Renamed from
7391 maintenance_check_symtabs. Only process already-expanded symbol
7392 tables.
7393 (_initialize_psymtab): Update.
7394 * symmisc.c (maintenance_check_symtabs): New function.
7395 (maintenance_expand_name_matcher): New function
7396 (maintenance_expand_file_matcher): New function
7397 (maintenance_expand_symtabs): New function.
7398 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7399 commands.
7400
7401 2013-05-17 Tom Tromey <tromey@redhat.com>
7402
7403 * python/py-inferior.c (infpy_read_memory): Don't call
7404 PyErr_SetString if PyObject_New fails.
7405 * python/py-frame.c (frame_info_to_frame_object): Don't call
7406 PyErr_SetString if PyObject_New fails.
7407
7408 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7409
7410 * acinclude.m4: Add check for dlopen in libdl.
7411 * configure.ac: Ditto.
7412 * configure: Regenerate.
7413
7414 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7415
7416 * frame.c (frame_stash): Convert to htab.
7417 (frame_addr_hash): New function.
7418 (frame_addr_hash_eq): New function.
7419 (frame_stash_create): Convert function to create
7420 a hash table.
7421 (frame_stash_add): Convert function to add an entry to a hash
7422 table.
7423 (frame_stash_find): Convert function to search the hash table.
7424 (frame_stash_invalidate): Convert function to empty the hash
7425 table.
7426 (get_frame_id): Only add to stash if a frame_id is created.
7427 (_initialize_frame): Call frame_stash_create.
7428
7429 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7430
7431 * configure.ac: Ensure MIG is available when building for GNU Hurd
7432 hosts.
7433 * configure: Regenerate.
7434
7435 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7436
7437 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7438
7439 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7440
7441 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7442 all cleanups are done before returning from this function.
7443
7444 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7445
7446 * utils.h: #include "exceptions.h".
7447 (enum errors): Remove partial declaration.
7448
7449 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7450
7451 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7452 * gdbarch.h, gdbarch.c: Regenerate.
7453 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7454 handling.
7455
7456 * rs6000-aix-tdep.h: New file.
7457 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7458 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7459 "xml-utils.h".
7460 (struct field_info, struct ld_info_desc): New types.
7461 (ld_info32_desc, ld_info64_desc): New static constants.
7462 (struct ld_info): New type.
7463 (rs6000_aix_extract_ld_info): New function.
7464 (rs6000_aix_shared_library_to_xml): Likewise.
7465 (rs6000_aix_ld_info_to_xml): Likewise.
7466 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7467 (rs6000_aix_init_osabi): Add call to
7468 set_gdbarch_core_xfer_shared_libraries_aix.
7469 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7470 Remove "xml-utils.h" include.
7471 (LdInfo): Delete typedef.
7472 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7473 Delete macros.
7474 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7475 Adjust code accordingly.
7476 (rs6000_core_ldinfo): Delete, folded into
7477 rs6000_aix_core_xfer_shared_libraries_aix.
7478 (rs6000_xfer_shared_library): Delete.
7479 (rs6000_xfer_shared_libraries): Reimplement.
7480
7481 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7482
7483 * record.c (record_goto_cmdlist): New.
7484 (cmd_record_goto): Split into this ...
7485 (cmd_record_goto_begin): ... this
7486 (cmd_record_goto_end): ... and this.
7487 (_initialize_record): Change "record goto" to prefix command.
7488 Add commands for "record goto begin" and "record goto end".
7489 Add an alias for "record goto start" to "record goto begin".
7490
7491 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7492
7493 * linespec.c (convert_linespec_to_sals): New comment for
7494 SOURCE_FILENAME assignment.
7495
7496 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7497
7498 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7499 internal_warning.
7500
7501 2013-05-14 Tom Tromey <tromey@redhat.com>
7502
7503 * eval.c (parse_and_eval_long): Make 'exp' const.
7504 * value.h (parse_and_eval_long): Update.
7505
7506 2013-05-14 Tom Tromey <tromey@redhat.com>
7507
7508 * ui-file.c (gdb_fopen): Make arguments const.
7509 * ui-file.h (gdb_fopen): Make arguments const.
7510
7511 2013-05-14 Tom Tromey <tromey@redhat.com>
7512
7513 * remote.c (remote_set_trace_notes): Make arguments const.
7514 * target.c (update_current_target): Update cast.
7515 * target.h (to_set_trace_notes): Make arguments const.
7516
7517 2013-05-14 Tom Tromey <tromey@redhat.com>
7518
7519 * go32-nat.c (go32_terminal_info): Make 'args' const.
7520 * inferior.h (child_terminal_info): Update.
7521 * inflow.c (child_terminal_info): Make 'args' const.
7522 * target.c (default_terminal_info): Make 'args' const.
7523 (debug_to_terminal_save_ours): Likewise.
7524 * target.h (struct target_ops) <to_terminal_info>: Make argument
7525 const.
7526
7527 2013-05-13 Tom Tromey <tromey@redhat.com>
7528
7529 * gcore.c (create_gcore_bfd): Make 'filename' const.
7530 * gcore.h (create_gcore_bfd): Make 'filename' const.
7531 * record-full.c (record_full_save): Make 'recfilename' const.
7532 * target.c (target_save_record): Make 'filename' const.
7533 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7534 const.
7535 (target_save_record): Likewise.
7536
7537 2013-05-13 Tom Tromey <tromey@redhat.com>
7538
7539 PR gdb/15338:
7540 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7541 ranges section has been read.
7542
7543 2013-05-13 Tom Tromey <tromey@redhat.com>
7544
7545 PR exp/15364:
7546 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7547 STRUCTOP_PTR>: Return a not_lval value for
7548 EVAL_AVOID_SIDE_EFFECTS.
7549 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7550 for EVAL_AVOID_SIDE_EFFECTS.
7551
7552 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7553
7554 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7555 floating point registers to register type before storing
7556 value.
7557 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7558 Likewise.
7559
7560 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7561 Tom Tromey <tromey@redhat.com>
7562
7563 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7564 New functions.
7565 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7566 Declare.
7567 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7568 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7569 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7570 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7571
7572 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7573 Tom Tromey <tromey@redhat.com>
7574
7575 PR build/15414:
7576 * configure: Rebuild.
7577 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7578 with -Wno-format.
7579
7580 2013-05-10 Pedro Alves <palves@redhat.com>
7581
7582 * remote.c (_initialize_remote): Fix spelling of
7583 qXfer:traceframe-info:read packet in packet config command.
7584
7585 2013-05-10 David Taylor <dtaylor@emc.com>
7586
7587 PR remote/15455
7588
7589 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7590 "QTro" at start of packet.
7591
7592 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7593
7594 * solib-aix.c (solib_aix_relocate_section_addresses):
7595 For the .bss section action, apply the same offset as
7596 the .data section.
7597
7598 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7599
7600 * solib-aix.c (solib_aix_relocate_section_addresses):
7601 Remove FIXME comment.
7602
7603 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7604
7605 PR tdep/15420:
7606 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7607 New functions, directly copied from sparc-sol-thread.c.
7608 * sparc-sol-thread.c: Delete.
7609 * configure.ac: Remove code handling sparc-solaris-thread.c.
7610 * configure: Regenerate.
7611
7612 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7613
7614 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7615 filter logic.
7616 (backtrace_command): Add "no-filters" option parsing.
7617 (_initialize_stack): Alter help to reflect "no-filters" option.
7618 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7619 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7620 (py-frame.o): Add target
7621 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7622 filter files.
7623 * python/python.h: Add new frame filter constants, and flag enum.
7624 (apply_frame_filter): Add definition.
7625 * python/python.c (apply_frame_filter): New non-Python
7626 enabled function.
7627 * python/py-utils.c (py_xdecref): New function.
7628 (make_cleanup_py_xdecref): Ditto.
7629 * python/py-objfile.c: Declare frame_filters dictionary.
7630 (objfpy_dealloc): Add frame_filters dealloc.
7631 (objfpy_new): Initialize frame_filters attribute.
7632 (objfile_to_objfile_object): Ditto.
7633 (objfpy_get_frame_filters): New function.
7634 (objfpy_set_frame_filters): New function.
7635 * python/py-progspace.c: Declare frame_filters dictionary.
7636 (pspy_dealloc): Add frame_filters dealloc.
7637 (pspy_new): Initialize frame_filters attribute.
7638 (pspacee_to_pspace_object): Ditto.
7639 (pspy_get_frame_filters): New function.
7640 (pspy_set_frame_filters): New function.
7641 * python/py-framefilter.c: New file.
7642 * python/lib/gdb/command/frame_filters.py: New file.
7643 * python/lib/gdb/frames.py: New file.
7644 * python/lib/gdb/__init__.py: Initialize global frame_filters
7645 dictionary
7646 * python/lib/gdb/FrameDecorator.py: New file.
7647 * python/lib/gdb/FrameIterator.py: New file.
7648 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7649 * mi/mi-cmds.h: Declare.
7650 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7651 --no-frame-filter logic, and Python frame filter logic.
7652 (stack_enable_frame_filters): New function.
7653 (parse_no_frame_option): Ditto.
7654 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7655 filter logic.
7656 (mi_cmd_stack_list_locals): Ditto.
7657 (mi_cmd_stack_list_args): Ditto.
7658 (mi_cmd_stack_list_variables): Ditto.
7659 * NEWS: Add frame filter note.
7660
7661 2013-05-09 Doug Evans <dje@google.com>
7662
7663 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7664 All callers updated.
7665 (syms_from_objfile): Ditto. Make static.
7666 (symbol_file_add_with_addrs): Renamed from
7667 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7668 num_offsets. All callers updated.
7669 * symfile.h (syms_from_objfile): Delete.
7670
7671 * symfile.c (decrement_reading_symtab): Add assert.
7672 (increment_reading_symtab): Ditto.
7673
7674 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7675
7676 * source.c (forward_search_command): Replace call to getc
7677 by call to fgetc.
7678 (reverse_search_command): Likewise.
7679
7680 2013-05-08 Doug Evans <dje@google.com>
7681
7682 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7683 matching test.
7684
7685 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7686
7687 * sol-thread.c (info_cb): Factorize the code a little.
7688
7689 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7690
7691 * sol-thread.c (info_cb): Rework the output of the "maintenance
7692 info sol-threads" command a bit.
7693
7694 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7695
7696 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7697 Replace ti.ti_startfunc by ti.ti_pc.
7698
7699 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7700
7701 * solib-aix.c (solib_aix_free_library_list): New function
7702 for the case where HAVE_LIBEXPAT is not defined.
7703
7704 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7705
7706 PR breakpoints/15413:
7707 * breakpoint.c (condition_completer): Simplify the code to
7708 disconsider multiple locations of breakpoints when completing the
7709 "condition" command.
7710
7711 2013-05-07 Pierre Muller <muller@sourceware.org>
7712
7713 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7714 instead of <sys/wait.h>.
7715
7716 2013-05-07 Pierre Muller <muller@sourceware.org>
7717
7718 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7719 trailing new line from warning message.
7720
7721 2013-05-07 Pierre Muller <muller@sourceware.org>
7722
7723 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7724 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7725
7726 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7727
7728 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7729 error message (ARI fix).
7730
7731 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7732
7733 * features/library-list-aix.dtd: Replace library-list by
7734 library-list-aix.
7735 * rs6000-nat.c: Replace library-list by library-list-aix
7736 throughout.
7737 * solib-aix.c: Likewise.
7738
7739 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7740
7741 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7742 Renames TARGET_OBJECT_AIX_LIBRARIES.
7743 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7744 TARGET_OBJECT_LIBRARIES_AIX throughout.
7745 * solib-aix.c: Likwise.
7746
7747 2013-05-07 Yao Qi <yao@codesourcery.com>
7748
7749 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7750 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7751
7752 2013-05-07 Yao Qi <yao@codesourcery.com>
7753
7754 * solib-dsbt.c (enable_break): Declare.
7755 (dsbt_current_sos): Remove call to enable_break2.
7756 (enable_break2): Rename to enable_break. Set solib breakpoint
7757 on '_dl_debug_state'.
7758 (enable_break): Remove.
7759
7760 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7761
7762 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7763 debug state prior to replicating existing hardware watchpoints or
7764 breakpoints.
7765
7766 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 * gcore.c (gcore_create_callback): Ignore sections with
7769 separate_debug_objfile_backlink != NULL.
7770
7771 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7772 Andrew Jenner <andrew@codesourcery.com>
7773 Chung-Lin Tang <cltang@codesourcery.com>
7774 Julian Brown <julian@codesourcery.com>
7775
7776 Based on the nios2-elf port from Altera Corporation.
7777
7778 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7779 nios2-linux-tdep.o.
7780 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7781 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7782 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7783 * nios2-tdep.h: New.
7784 * nios2-tdep.c: New.
7785 * nios2-linux-tdep.c: New.
7786 * features/Makefile (WHICH): Add nios2-linux.
7787 (nios2-linux-expedite): Set.
7788 * features/nios2-cpu.xml: New.
7789 * features/nios2.xml: New.
7790 * features/nios2-linux.xml: New.
7791 * features/nios2.c: New (autogenerated).
7792 * features/nios2-linux.c: New (autogenerated).
7793 * regformats/nios2-linux.dat: New (autogenerated).
7794 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7795 and commands.
7796
7797 2013-05-06 Doug Evans <dje@google.com>
7798
7799 * symfile.c: Whitespace cleanup.
7800
7801 * solist.h (struct target_so_ops): New member clear_so.
7802 * solib-svr4.c (svr4_clear_so): New function.
7803 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7804 * solib.c (clear_so): Renamed from free_so_symbols.
7805 All callers updated. Call target clear_so if it exists.
7806
7807 2013-05-06 Tom Tromey <tromey@redhat.com>
7808
7809 * ada-lang.c (ada_value_primitive_packed_val): Don't
7810 call value_incref.
7811 * value.c (set_value_parent): Incref the new parent and decref
7812 the old parent.
7813 (value_copy, value_primitive_field): Use set_value_parent.
7814
7815 2013-05-06 Tom Tromey <tromey@redhat.com>
7816
7817 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7818 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7819 if needed.
7820 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7821 * dwarf2read.c (write_constant_as_bytes)
7822 (dwarf2_fetch_constant_bytes): New functions.
7823
7824 2013-05-06 Tom Tromey <tromey@redhat.com>
7825
7826 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7827 parameters.
7828 (dwarf2_const_value_attr): Update.
7829
7830 2013-05-06 Tom Tromey <tromey@redhat.com>
7831
7832 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7833 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7834 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7835 Remove declaration.
7836
7837 2013-05-06 Tom Tromey <tromey@redhat.com>
7838
7839 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7840 objfile's obstack.
7841
7842 2013-05-06 Doug Evans <dje@google.com>
7843
7844 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7845 * stabsread.h (process_one_symbol): Update declaration.
7846 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7847 * elfread.c (elf_symfile_relocate_probe): Ditto.
7848 * psymtab.c (relocate_psymtabs): Ditto.
7849 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7850 (objfile_relocate): Ditto.
7851 * objfiles.h (objfile_relocate): Update declaration.
7852 * symfile.c (relative_addr_info_to_section_offsets): Constify
7853 addrs parameter.
7854 (default_symfile_offsets): Ditto.
7855 (syms_from_objfile_1): Constify offsets parameter.
7856 (syms_from_objfile): Ditto.
7857 (symbol_file_add_with_addrs_or_offsets): Ditto.
7858 (symfile_map_offsets_to_segments): Constify data parameter.
7859 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7860 delta parameters of member relocate.
7861 (struct sym_probe_fns): Constify new_offsets,
7862 delta parameters of member sym_relocate_probe.
7863 (struct sym_fns): Constify section_addr_info parameter of member
7864 sym_offsets.
7865 (relative_addr_info_to_section_offsets): Update declaration.
7866 (default_symfile_offsets): Ditto.
7867 (syms_from_objfile): Ditto.
7868 (symfile_map_offsets_to_segments): Ditto.
7869
7870 * symfile.c (syms_from_objfile_1): Use correct section count when
7871 objfile->sf == NULL.
7872
7873 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7874
7875 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7876
7877 2013-05-06 Doug Evans <dje@google.com>
7878
7879 * psympriv.h (struct partial_symtab): Augment comment for member
7880 section_offsets.
7881
7882 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7883
7884 Reimplement shared library support on ppc-aix...
7885 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7886 * features/library-list-aix.dtd: New file.
7887 * solib-aix.h, solib-aix.c: New file.
7888 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7889 (rs6000_find_toc_address_hook): Delete.
7890 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7891 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7892 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7893 "xml-utils.h".
7894 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7895 (vmap_symtab, fixup_breakpoints): Delete.
7896 (rs6000_xfer_shared_libraries): New function.
7897 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7898 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7899 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7900 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7901 (rs6000_xfer_shared_library): New function.
7902 (find_toc_address): Delete.
7903 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7904 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7905 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7906 before creating minimal symbol. Adjust function description
7907 accordingly.
7908 (scan_xcoff_symtab): Replace call to
7909 prim_record_minimal_symbol_and_info by call to
7910 record_minimal_symbol.
7911 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7912 around default_symfile_offsets.
7913 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7914 powerpc-aix targets.
7915 * config/rs6000/nm-rs6000.h: Delete.
7916 * config/powerpc/aix.mh (NAT_FILE): Delete.
7917 (NATDEPFILES): Remove xcoffsolib.o.
7918 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7919 (ALL_TARGET_OBS): Add solib-aix.o.
7920 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7921 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7922 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7923 * xcoffsolib.h, xcoffsolib.c: Delete.
7924
7925 * solib.c (reload_shared_libraries): Remove reference to
7926 SOLIB_CREATE_INFERIOR_HOOK.
7927 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7928 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7929 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7930 comment.
7931 * corelow.c (deprecated_core_resize_section_table): Delete.
7932 * exec.c: Remove include of xcoffsolib.h".
7933 (map_vmap, vmap): Delete.
7934 (exec_close_1): Remove references to vmap.
7935 (exec_file_attach): Remove vmap handling code, and reference
7936 to DEPRECATED_IBM6000_TARGET.
7937 (bfdsec_to_vmap): Delete.
7938 (exec_files_info): Remove block of code handling VMAP.
7939 * infcmd.c (post_create_inferior): Remove reference to
7940 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7941 * infrun.c (follow_exec): Remove reference to
7942 SOLIB_CREATE_INFERIOR_HOOK.
7943 * stack.c (print_frame): Remove reference to PC_SOLIB.
7944 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7945 (dsbt_relocate_main_executable): Likewise.
7946 * solib-frv.c (frv_current_sos): Likewise.
7947
7948 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7949
7950 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7951 to target_write_memory and target_read_memory.
7952
7953 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7954
7955 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7956 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7957
7958 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7959
7960 * darwin-nat.c: Replace all "%x" instances in format strings
7961 into "0x%x" throughout.
7962
7963 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7964
7965 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7966 gdb_assert by call to MACH_CHECK_ERROR.
7967 (darwin_attach_pid): Raise an error rather than a failed
7968 assertion when various system calls failed. Report a warning
7969 instead of raising a failed assertion when PREV_NOT is not NULL
7970 after call to mach_port_request_notification.
7971 (darwin_ptrace_me): Raise an error rather than a failed
7972 assertion when read returns nonzero.
7973
7974 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7975
7976 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7977
7978 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7979
7980 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7981
7982 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7985 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7986 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7987 a stale cleanup. Fix double free of NAME.
7988
7989 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7990
7991 * windows-nat.c (windows_delete_thread): Accept an additional
7992 argument, the thread's exit code, and announce thread death when
7993 print_thread_events is non-zero and we are deleting a thread that
7994 is not the main thread.
7995 (get_windows_debug_event): Pass thread exit code to
7996 windows_delete_thread.
7997
7998 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7999
8000 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
8001 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
8002 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
8003 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
8004 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
8005 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
8006 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
8007 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
8008 (gdbarch_tdep): New struct.
8009 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
8010 E_NUM_REGS.
8011 (v850e3v5_register_name): New function.
8012 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
8013 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
8014 code handling the struct return conventions for the RH850 ABI.
8015 Update all callers.
8016 (v850_eight_byte_align_p): New function.
8017 (v850_push_call_dummy): Push structs by value, not by reference
8018 for the RH850 ABI. Add support for eight byte alignment.
8019 (v850_dbtrap_breakpoint_from_pc): New function.
8020 (v850_gdbarch_init): Add ABI detection code. Register
8021 v850e3v5_register_name for the v850e3v5 architecture. Set the
8022 number of registers for v850e3v5. Register
8023 v850_dbtrap_breakpoint_from_pc as appropriate.
8024 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
8025
8026 2013-05-03 Doug Evans <dje@google.com>
8027
8028 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
8029 of bfd_count_sections.
8030 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
8031 * symfile.c (default_symfile_offsets): Ditto.
8032 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
8033 one entry, not bfd_count_sections entries.
8034
8035 2013-05-03 Kevin Buettner <kevinb@redhat.com>
8036
8037 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
8038 `save' and `restore' register groups. Don't include SPL
8039 or SPH in these groups.
8040 (rl78_dwarf_reg_to_regnum): Adjust mapping for
8041 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
8042 RL78_ES_REGNUM, and RL78_CS_REGNUM.
8043 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
8044 dwarf2_append_unwinders().
8045
8046 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8047
8048 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
8049 ignore SIGINT and SIGTRAP in case these internal signals are
8050 caught explicitely.
8051
8052 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8053
8054 * darwin-nat.c (darwin_read_write_inferior): Change types
8055 of parameters rdaddr and wraddr to "gdb_byte *". Change type
8056 of copy_count to "mach_msg_type_number_t".
8057 (darwin_read_dyld_info): Change type of parameter
8058 rdaddr to "gdb_byte *".
8059
8060 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8061
8062 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
8063 of &info->load_map from "char *" to "gdb_byte *".
8064
8065 2013-05-01 Joel Brobecker <brobecker@adacore.com>
8066
8067 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
8068 from "char *" to "gdb_byte *".
8069 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8070
8071 2013-04-30 Doug Evans <dje@google.com>
8072
8073 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8074 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8075 DWO stub. If DWO isn't found, just use stub.
8076 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8077
8078 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8079 calling init_cutu_and_read_dies.
8080
8081 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8082
8083 * target-descriptions.c (maint_print_c_tdesc_cmd):
8084 Add case to parse structures as register types and
8085 bitfields.
8086
8087 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8088
8089 * MAINTAINERS (Write After Approval): Add myself to the list.
8090
8091 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8092
8093 * sol-thread.c (rw_common): Change type of parameter "buf"
8094 to "gdb_byte *".
8095 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8096 rw_common to "gdb_byte *" instead of "char *".
8097
8098 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8099
8100 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8101 of local variable msym to const struct bound_minimal_symbol.
8102 Adjust use accordingly.
8103 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8104
8105 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8106
8107 * i386gnu-nat.c (CREG_OFFSET): New macro.
8108 (creg_offset): New array.
8109 (CREG_ADDR): Use creg_offset instead of reg_offset.
8110
8111 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8112
8113 * mep-tdep.c (mep_write_pc): Delete.
8114 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8115 Add call to set_gdbarch_pc_regnum.
8116
8117 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8118
8119 * common/filestuff.c: Replace #include <dirent.h> by
8120 #include "gdb_dirent.h".
8121
8122 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8123
8124 * common/filestuff.c: Replace #include <sys/stat.h> by
8125 #include "gdb_stat.h".
8126
8127 2013-04-29 Pierre Muller <muller@sourceware.org>
8128
8129 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8130 editCase function rule.
8131 (get_DW_AT_signature_type): Likewise.
8132
8133 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8134
8135 * m32r-tdep.c (m32r_write_pc): Delete.
8136 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8137 Add call to set_gdbarch_pc_regnum.
8138
8139 2013-04-29 Pierre Muller <muller@sourceware.org>
8140
8141 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8142
8143 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8144
8145 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8146
8147 2013-04-28 Yao Qi <yao@codesourcery.com>
8148
8149 * solib-dsbt.c (fetch_loadmap): Re-indent.
8150 (displacement_from_map, enable_break2): Likewise.
8151 (dsbt_relocate_section_addresses): Likewise.
8152
8153 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8154
8155 GDB 7.6 released.
8156
8157 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8158
8159 PR corefiles/14983:
8160 * dwarf2read.c (process_full_comp_unit): Always create a static
8161 block.
8162
8163 2013-04-25 Hui Zhu <hui@codesourcery.com>
8164
8165 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8166 to loc->cmd_bytecode.
8167
8168 2013-04-24 Doug Evans <dje@google.com>
8169
8170 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8171
8172 2013-04-22 Keith Seitz <keiths@redhat.com>
8173
8174 * tracepoint.c (trace_save): Call the writer's start method.
8175
8176 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8177
8178 PR gdb/10462
8179 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8180 before argument.
8181
8182 2013-04-23 Tom Tromey <tromey@redhat.com>
8183
8184 * common/filestuff.c: Check USE_WIN32API before including
8185 sys/socket.h.
8186 (HAVE_F_GETFD): New define.
8187 (mark_cloexec): Check HAVE_F_GETFD.
8188 (gdb_open_cloexec): Change 'mode' to unsigned long.
8189 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8190 (gdb_pipe_cloexec): Check HAVE_PIPE.
8191 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8192 long.
8193
8194 2013-04-23 Hui Zhu <hui@codesourcery.com>
8195
8196 PR gdb/15293
8197 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8198
8199 2013-04-23 Hui Zhu <hui@codesourcery.com>
8200
8201 PR gdb/15165
8202 * breakpoint.c (dprintf_print_recreate): New.
8203 (save_breakpoints): Let it not save dprintf commands.
8204 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8205
8206 2013-04-22 Tom Tromey <tromey@redhat.com>
8207
8208 PR gdb/7912:
8209 * Makefile.in (SFILES): Add filestuff.c
8210 (COMMON_OBS): Add filestuff.o.
8211 (filestuff.o): New target.
8212 * auto-load.c (auto_load_objfile_script_1): Use
8213 gdb_fopen_cloexec.
8214 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8215 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8216 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8217 * common/agent.c (gdb_connect_sync_socket): Use
8218 gdb_socket_cloexec.
8219 * common/filestuff.c: New file.
8220 * common/filestuff.h: New file.
8221 * common/linux-osdata.c (linux_common_core_of_thread)
8222 (command_from_pid, commandline_from_pid, print_source_lines)
8223 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8224 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8225 gdb_fopen_cloexec.
8226 * common/linux-procfs.c (linux_proc_get_int)
8227 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8228 * config.in, configure: Rebuild.
8229 * configure.ac: Don't check for sys/socket.h. Check for
8230 fdwalk, pipe2.
8231 * corelow.c (core_open): Use gdb_open_cloexec.
8232 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8233 * fork-child.c (fork_inferior): Call close_most_fds.
8234 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8235 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8236 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8237 Use gdb_fopen_cloexec.
8238 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8239 gdb_open_cloexec.
8240 (linux_async_pipe): Use gdb_pipe_cloexec.
8241 * remote-fileio.c (remote_fileio_func_open): Use
8242 gdb_open_cloexec.
8243 * remote.c (remote_file_put, remote_file_get): Use
8244 gdb_fopen_cloexec.
8245 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8246 close_most_fds.
8247 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8248 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8249 * solib.c (solib_find): Use gdb_open_cloexec.
8250 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8251 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8252 (tfile_open): Use gdb_open_cloexec.
8253 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8254 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8255 * xml-support.c (xml_fetch_content_from_file): Use
8256 gdb_fopen_cloexec.
8257 * main.c (captured_main): Call notice_open_fds.
8258
8259 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8260
8261 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8262 'char *' to 'gdb_byte *'.
8263 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8264 'gdb_byte'.
8265
8266 2013-04-22 Yao Qi <yao@codesourcery.com>
8267
8268 * infrun.c: Fix typo in comment.
8269
8270 2013-04-22 Andrew Haley <aph@redhat.com>
8271
8272 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8273 instead of "long".
8274
8275 2013-04-20 Yao Qi <yao@codesourcery.com>
8276
8277 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8278 'char *' to 'gdb_byte *'. Cast the return value of
8279 'bt_ctf_get_char_array' to 'gdb_byte *'.
8280
8281 2013-04-19 Pedro Alves <palves@redhat.com>
8282
8283 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8284 -Wpointer-sign.
8285 * configure: Regenerate.
8286
8287 2013-04-19 Pedro Alves <palves@redhat.com>
8288
8289 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8290 'void *'.
8291
8292 2013-04-19 Pedro Alves <palves@redhat.com>
8293
8294 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8295 Change type of 'myaddr' parameter to gdb_byte pointer.
8296 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8297 to 'long long' pointer instead of to 'unsigned long long'.
8298 (monitor_write_memory_block, monitor_read_memory_single)
8299 (monitor_read_memory): Change type of 'myaddr' parameter to
8300 gdb_byte pointer.
8301
8302 2013-04-19 Pedro Alves <palves@redhat.com>
8303
8304 * record.c (validate_history_size): Make parameter 'setting'
8305 unsigned.
8306
8307 2013-04-19 Pedro Alves <palves@redhat.com>
8308
8309 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8310 to 'gdb_byte *'.
8311
8312 2013-04-19 Pedro Alves <palves@redhat.com>
8313
8314 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8315 local to int.
8316
8317 2013-04-19 Pedro Alves <palves@redhat.com>
8318
8319 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8320 * ada-tasks.c (read_fat_string_value): Likewise.
8321
8322 2013-04-19 Pedro Alves <palves@redhat.com>
8323
8324 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8325 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8326 'offset', and adjust.
8327
8328 2013-04-19 Pedro Alves <palves@redhat.com>
8329
8330 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8331 (read_index_from_section): Add cast to 'char *'.
8332
8333 2013-04-19 Pedro Alves <palves@redhat.com>
8334
8335 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8336
8337 2013-04-19 Pedro Alves <palves@redhat.com>
8338
8339 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8340
8341 2013-04-19 Pedro Alves <palves@redhat.com>
8342
8343 * record-full.c (record_full_get_bookmark): Change local 'ret'
8344 type to char * and add cast to gdb_byte *.
8345 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8346 string.
8347 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8348
8349 2013-04-19 Pedro Alves <palves@redhat.com>
8350
8351 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8352 * python/py-prettyprint.c (print_string_repr): Change type of
8353 'output' local to char *. Add cast to gdb_byte * in
8354 LA_PRINT_STRING call.
8355 (print_children): Change type of 'output' local to char *.
8356 * python/py-value.c (valpy_string): Add cast to const char * in
8357 PyUnicode_Decode call.
8358
8359 2013-04-19 Pedro Alves <palves@redhat.com>
8360
8361 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8362 and change its type to 'const char *'. Adjust.
8363 (mips_send_packet): Add cast to 'char *', and remove cast to
8364 'unsigned char *'.
8365 (mips_receive_packet): Remove cast to 'unsigned char *'.
8366 (mips_load_srec): Use bfd_byte.
8367 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8368 (pmon_checkset): Make 'value' parameter unsigned.
8369
8370 2013-04-19 Pedro Alves <palves@redhat.com>
8371
8372 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8373
8374 2013-04-19 Pedro Alves <palves@redhat.com>
8375
8376 * remote.c (remote_write_bytes_aux, compare_sections_command)
8377 (remote_read_qxfer)
8378 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8379 (remote_hostio_readlink, remote_bfd_iovec_pread)
8380 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8381 binary buffer, and char when buffer is used as string.
8382 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8383 (trace_save, tfile_open, traceframe_walk_blocks)
8384 (tfile_fetch_registers): Likewise.
8385
8386 2013-04-19 Pedro Alves <palves@redhat.com>
8387
8388 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8389 buffer and size_t size. Adjust.
8390 * ser-base.h (ser_base_write): Adjust.
8391 * ser-go32.c (cnts): Change type to size_t.
8392 (dos_write): Change prototype -- take 'void *'
8393 buffer and size_t size. Adjust.
8394 (dos_info): Print elements of 'cnts' as unsigned long.
8395 * serial.c (serial_write): Likewise.
8396 * serial.h (serial_write): Adjust.
8397 (struct serial_ops) <write>: Change prototype -- take 'void *'
8398 buffer and size_t size. Adjust.
8399
8400 2013-04-19 Pedro Alves <palves@redhat.com>
8401
8402 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8403 gdb_byte *.
8404 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8405
8406 2013-04-19 Pedro Alves <palves@redhat.com>
8407
8408 * alpha-tdep.c (alpha_extract_return_value): Use
8409 regcache_cooked_read_unsigned to read 'v0'.
8410
8411 2013-04-19 Pedro Alves <palves@redhat.com>
8412
8413 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8414 parameters 'at', 'as' and 'offset' to uint32_t.
8415
8416 2013-04-19 Pedro Alves <palves@redhat.com>
8417
8418 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8419 'is64' to signed 'int'.
8420
8421 2013-04-19 Pedro Alves <palves@redhat.com>
8422
8423 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8424 parameter to int *.
8425
8426 2013-04-19 Pedro Alves <palves@redhat.com>
8427
8428 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8429 'insnbuf' buffer type to unsigned int[].
8430
8431 2013-04-19 Pedro Alves <palves@redhat.com>
8432
8433 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8434
8435 2013-04-19 Pedro Alves <palves@redhat.com>
8436
8437 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8438 unsigned long *.
8439
8440 2013-04-19 Pedro Alves <palves@redhat.com>
8441
8442 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8443 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8444 UINT_MAX.
8445 * mips-tdep.c (heuristic_fence_post): Change type to int.
8446 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8447
8448 2013-04-19 Pedro Alves <palves@redhat.com>
8449
8450 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8451 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8452 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8453
8454 2013-04-19 Pedro Alves <palves@redhat.com>
8455
8456 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8457 it to get a string view of the byte buffer.
8458 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8459 type to gdb_byte *. Adjust.
8460 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8461 Change local to char *.
8462 * solib-darwin.c (find_program_interpreter): Change return type to
8463 char *. Adjust.
8464 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8465 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8466 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8467 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8468 * solib-svr4.c (find_program_interpreter): Change return type to
8469 char *. Adjust.
8470 (enable_break): Change local 'interp_name' to char *.
8471 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8472 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8473 (spu_pseudo_register_write_spu): Use char for string buffer.
8474 Adjust.
8475 (info_spu_event_command, info_spu_signal_command): Add casts to
8476 'char *'.
8477
8478 2013-04-19 Pedro Alves <palves@redhat.com>
8479
8480 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8481 gdb_byte[].
8482 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8483 * ada-lang.c (ada_value_assign): Use gdb_byte.
8484 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8485 (alphanbsd_sigtramp_offset): Use gdb_byte.
8486 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8487 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8488 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8489 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8490 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8491 * arm-tdep.c (arm_stub_unwind_sniffer)
8492 (arm_displaced_init_closure): Use gdb_byte.
8493 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8494 (arm_default_thumb_le_breakpoint)
8495 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8496 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8497 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8498 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8499 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8500 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8501 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8502 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8503 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8504 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8505 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8506 (cris_store_return_value, cris_extract_return_value): Use
8507 gdb_byte.
8508 (constraint): Change type of parameter to char * from signed
8509 char*. Use gdb_byte.
8510 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8511 of local buffer to gdb_byte *.
8512 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8513 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8514 (add_address_entry): Change type of local buffer to gdb_byte[].
8515 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8516 (frv_push_dummy_call): Use gdb_byte.
8517 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8518 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8519 (hppa_hpux_supply_save_state): Use gdb_byte.
8520 * hppa-tdep.c (hppa32_push_dummy_call)
8521 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8522 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8523 (slotN_contents, replace_slotN_contents): Change type of parameter
8524 to gdb_byte *.
8525 (fetch_instruction, ia64_pseudo_register_write)
8526 (ia64_register_to_value, ia64_value_to_register)
8527 (ia64_extract_return_value, ia64_store_return_value)
8528 (ia64_push_dummy_call): Use gdb_byte.
8529 * m32c-tdep.c (m32c_return_value): Remove cast.
8530 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8531 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8532 gdb_byte.
8533 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8534 * mn10300-tdep.c (mn10300_store_return_value)
8535 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8536 gdb_byte.
8537 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8538 (moxie_process_record): Remove casts.
8539 * ppc-ravenscar-thread.c (supply_register_at_address)
8540 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8541 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8542 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8543 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8544 * remote.c (compare_sections_command): Use gdb_byte.
8545 * score-tdep.c (score7_free_memblock): Change type of parameter to
8546 gdb_byte *.
8547 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8548 gdb_byte *. Use gdb_byte.
8549 (sh_push_dummy_call_fpu): Use gdb_byte.
8550 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8551 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8552 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8553 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8554 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8555 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8556 (sh64_store_return_value, sh64_register_convert_to_virtual):
8557 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8558 (sh64_pseudo_register_write): Use gdb_byte.
8559 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8560 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8561 buffer.
8562 (irix_current_sos): Use gdb_byte.
8563 * solib-som.c (som_current_sos): Use gdb_byte.
8564 * sparc-ravenscar-thread.c (supply_register_at_address)
8565 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8566 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8567 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8568 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8569 'gdb_byte *'.
8570 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8571 'gdb_byte *'.
8572 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8573 * xstormy16-tdep.c (xstormy16_extract_return_value)
8574 (xstormy16_store_return_value): Change parameter type to
8575 'gdb_byte *'. Adjust.
8576 (xstormy16_push_dummy_call): Use gdb_byte.
8577 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8578 (call0_analyze_prologue, execute_code): Use gdb_byte.
8579
8580 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8581 Pedro Alves <palves@redhat.com>
8582
8583 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8584 value contents.
8585
8586 2013-04-17 Doug Evans <dje@google.com>
8587
8588 * dwarf2read.c (struct signatured_type): New member type.
8589 (struct attribute): Replace member signatured_type with signature.
8590 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8591 (read_call_site_scope): Call follow_die_ref instead of
8592 follow_die_ref_or_sig.
8593 (read_structure_type): Rewrite handling of signatured types.
8594 (read_enumeration_type): Ditto.
8595 (read_attribute_value): Update.
8596 (build_error_marker_type): New function.
8597 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8598 Don't call error for bad types, just build an error marker type.
8599 (dump_die_shallow): Update.
8600 (follow_die_sig_1): Renamed from follow_die_sig.
8601 Don't call error for bad types, instead return NULL.
8602 (follow_die_sig): New function.
8603 (get_signatured_type, get_DW_AT_signature_type): New functions.
8604
8605 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8606
8607 * aarch64-tdep.c (aarch64_write_pc): Removed.
8608 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8609 function.
8610
8611 2013-04-17 Yao Qi <yao@codesourcery.com>
8612
8613 * top.c (print_gdb_configuration): Print configure-time
8614 parameter on using libbabeltrace or not.
8615
8616 2013-04-16 Pedro Alves <palves@redhat.com>
8617
8618 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8619
8620 2013-04-16 Pedro Alves <palves@redhat.com>
8621
8622 * common/glibc_thread_db.h: Update from upstream glibc
8623 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8624
8625 2013-04-16 Pedro Alves <palves@redhat.com>
8626
8627 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8628 * common/glibc_thread_db.h: ... this new file ...
8629 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8630
8631 2013-04-16 Will Newton <will.newton@gmail.com>
8632 Pedro Alves <palves@redhat.com>
8633
8634 PR build/11881
8635
8636 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8637 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8638 HAVE_THREAD_DB_H.
8639
8640 2013-04-16 Pedro Alves <palves@redhat.com>
8641 Eli Zaretskii <eliz@gnu.org>
8642
8643 * NEWS: Mention "set foo unlimited".
8644
8645 2013-04-15 Doug Evans <dje@google.com>
8646
8647 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8648 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8649 (create_dwo_cu_reader): Renamed from
8650 create_dwo_debug_info_hash_table_reader.
8651 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8652 Remove support for multiple CUs in a DWO file.
8653 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8654
8655 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8656 instead of phex.
8657 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8658 (create_dwo_in_dwp): Ditto.
8659
8660 2013-04-15 Tom Tromey <tromey@redhat.com>
8661
8662 * NEWS: Move recent entries into "since 7.6" section.
8663
8664 2013-04-15 Tom Tromey <tromey@redhat.com>
8665
8666 PR c++/13588:
8667 * NEWS: Update.
8668 * break-catch-throw.c (struct exception_catchpoint)
8669 <exception_rx, pattern>: New fields.
8670 (fetch_probe_arguments, dtor_exception_catchpoint)
8671 (check_status_exception_catchpoint)
8672 (print_one_detail_exception_catchpoint): New functions.
8673 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8674 Compile regular expression if needed.
8675 (extract_exception_regexp): New function.
8676 (catch_exception_command_1): Use extract_exception_regexp.
8677 (compute_exception): Use fetch_probe_arguments.
8678 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8679 and check_status fields.
8680 * cp-abi.c (cplus_typename_from_type_info): New function.
8681 * cp-abi.h (cplus_typename_from_type_info): Declare.
8682 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8683 * gdb_regex.h (compile_rx_or_error): Declare.
8684 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8685 comment.
8686 (init_gnuv3_ops): Set get_type_from_type_info field.
8687 * probe.c (compile_rx_or_error): Move...
8688 * utils.c (compile_rx_or_error): ... here.
8689
8690 2013-04-15 Tom Tromey <tromey@redhat.com>
8691
8692 PR c++/15176:
8693 * NEWS: Update.
8694 * break-catch-throw.c (compute_exception): New function.
8695 (exception_funcs): New global.
8696 (_initialize_break_catch_throw): Create $_exception.
8697 * cp-abi.c (cplus_type_from_type_info): New function.
8698 * cp-abi.h (cplus_type_from_type_info): Declare.
8699 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8700 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8701 (gnuv3_get_type_from_type_info): New functions.
8702 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8703
8704 2013-04-15 Tom Tromey <tromey@redhat.com>
8705
8706 * break-catch-throw.c (struct exception_names): New.
8707 (exception_functions): Change type.
8708 (re_set_exception_catchpoint): Look for SDT probes.
8709
8710 2013-04-15 Tom Tromey <tromey@redhat.com>
8711
8712 PR c++/10119:
8713 * break-catch-throw.c (exception_functions): New global.
8714 (gnu_v3_exception_catchpoint_ops): Move earlier.
8715 (struct exception_catchpoint): New.
8716 (classify_exception_breakpoint): Rewrite.
8717 (re_set_exception_catchpoint): New function.
8718 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8719 Allocate a struct exception_catchpoint.
8720 (catch_exception_command_1): Update.
8721 (initialize_throw_catchpoint_ops): Set 're_set' method.
8722
8723 2013-04-15 Tom Tromey <tromey@redhat.com>
8724
8725 * Makefile.in (SFILES): Add break-catch-throw.c
8726 (COMMON_OBS): Add break-catch-throw.o.
8727 * break-catch-throw.c: New file.
8728 * breakpoint.c: Move exception-catching code to new file.
8729 (ep_parse_optional_if_clause): No longer static.
8730 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8731
8732 2013-04-15 Tom Tromey <tromey@redhat.com>
8733
8734 PR c++/9065:
8735 * NEWS: Update.
8736 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8737 * c-exp.y (TYPEID): New token.
8738 (exp): Add new TYPEID productions.
8739 (ident_tokens): Add "typeid".
8740 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8741 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8742 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8743 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8744 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8745 case.
8746 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8747 (build_std_type_info_type, gnuv3_get_typeid_type)
8748 (gnuv3_get_typeid): New functions.
8749 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8750 new fields on ABI object.
8751 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8752 * std-operator.def (OP_TYPEID): New.
8753
8754 2013-04-15 Tom Tromey <tromey@redhat.com>
8755
8756 * elfread.c (elf_symtab_read): Install versioned symbol under
8757 unversioned name as well.
8758
8759 2013-04-15 Tom Tromey <tromey@redhat.com>
8760
8761 PR c++/11990:
8762 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8763 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8764 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8765 (gdb_demangle): New function.
8766 * cp-support.h (gdb_demangle): Declare.
8767 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8768 (dwarf2_name): Use gdb_demangle.
8769 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8770 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8771 suffixes from name.
8772 (gnuv3_print_method_ptr): Use gdb_demangle.
8773 * jv-lang.c (java_demangle): Use gdb_demangle.
8774 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8775 * language.c (unk_lang_demangle): Use gdb_demangle.
8776 * symtab.c (symbol_find_demangled_name)
8777 (demangle_for_lookup): Use gdb_demangle.
8778
8779 2013-04-15 Tom Tromey <tromey@redhat.com>
8780
8781 PR c++/12824:
8782 * NEWS: Update.
8783 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8784 New constant.
8785 (classify_exception_breakpoint): New function.
8786 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8787 (print_mention_exception_catchpoint)
8788 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8789 (catch_exception_command_1): Handle "rethrow" catchpoint.
8790 (catch_rethrow_command): New function.
8791 (_initialize_breakpoint): Add "catch rethrow" command.
8792
8793 2013-04-15 Pierre Muller <muller@sourceware.org>
8794
8795 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8796 set_gdbarch_write_pc as deprecated anymore.
8797
8798 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8799
8800 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8801 declarations.
8802
8803 2013-04-13 Yao Qi <yao@codesourcery.com>
8804
8805 * ctf.c (_initialize_ctf): Include "completer.h".
8806 Call add_target_with_completer instead of add_target.
8807
8808 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8809
8810 Fix GDB regression related to PR binutils/14813.
8811 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8812 * minidebug.c (lzma_close): Add return value comment.
8813 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8814 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8815 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8816
8817 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8818
8819 * config.in: Regenerate.
8820
8821 2013-04-12 Tom Tromey <tromey@redhat.com>
8822
8823 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8824 const.
8825 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8826 (struct die_reader_specs) <buffer>: Likewise.
8827 (die_reader_func_ftype): Make 'info_ptr' const.
8828 (struct line_header) <include_dirs, statement_program_start,
8829 statement_program_end>: Now const.
8830 (struct file_entry) <name>: Likewise.
8831 (struct partial_die_info) <sibling>: Likewise.
8832 (struct dwarf_block) <data>: Likewise.
8833 (dwarf2_read_section): Remove cast.
8834 (dwarf2_get_section_info): Make 'bufp' const.
8835 (read_index_from_section): Constify.
8836 (dw2_get_file_names_reader): Make 'info_ptr' const.
8837 (dw2_get_primary_filename_reader): Likewise.
8838 (read_comp_unit_head): Make 'info_ptr' and return type const.
8839 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8840 Likewise.
8841 (read_abbrev_offset): Constify.
8842 (dwarf2_create_include_psymtab): Make 'name' const.
8843 (create_debug_types_hash_table): Update.
8844 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8845 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8846 Constify.
8847 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8848 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8849 (read_comp_units_from_section): Constify.
8850 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8851 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8852 const.
8853 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8854 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8855 (create_dwp_hash_table, dwarf2_ranges_read)
8856 (dwarf2_record_block_ranges): Constify.
8857 (read_die_and_children, read_die_and_siblings_1)
8858 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8859 const.
8860 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8861 (abbrev_table_read_table): Constify.
8862 (load_partial_dies): Make 'info_ptr' const.
8863 (read_partial_die, read_attribute_value, read_attribute): Make
8864 'info_ptr' and return type const.
8865 (read_address, read_initial_length)
8866 (read_checked_initial_length_and_offset, read_offset)
8867 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8868 const.
8869 (read_direct_string): Make 'buf' and return type const.
8870 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8871 (read_indirect_string): Make return type const.
8872 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8873 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8874 'info_ptr' const.
8875 (read_str_index): Make return type const.
8876 (add_include_dir): Make 'include_dir' const.
8877 (add_file_name): Make 'name' const.
8878 (dwarf_decode_line_header): Constify.
8879 (psymtab_include_file_name): Make return type const.
8880 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8881 (dwarf2_start_subfile): Make 'filename' const.
8882 (dwarf2_const_value_attr): Make 'bytes' const.
8883 (read_signatured_type_reader): Make 'info_ptr' const.
8884 (decode_locdesc): Constify.
8885 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8886 const.
8887 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8888 'mac_end', and return type const.
8889 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8890 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8891 type const.
8892 (per_cu_header_read_in): Constify.
8893 * symfile.h (dwarf2_get_section_info): Update.
8894
8895 2013-04-12 Tom Tromey <tromey@redhat.com>
8896
8897 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8898
8899 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8900
8901 * NEWS: Mention "show configuration", --configuration.
8902 * top.c (print_gdb_configuration): New function, displays the
8903 details about GDB configure-time parameters.
8904 (print_gdb_version): Mention "show configuration".
8905 * cli/cli-cmds.c (show_configuration): New function.
8906 (_initialize_cli_cmds): Add the "show configuration" command.
8907 * main.c (captured_main) <print_configuration>: New static var.
8908 <long_options>: Use it.
8909 If --configuration was given, call print_gdb_configuration.
8910
8911 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8912 Pedro Alves <palves@redhat.com>
8913
8914 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8915 (generated_files): Add gcore.
8916 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8917 HAVE_NATIVE_GCORE_HOST.
8918 (gcore): New.
8919 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8920 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8921 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8922 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8923 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8924 Add HAVE_NATIVE_GCORE_HOST.
8925 * configure: Regenerate.
8926 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8927 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8928 AC_CONFIG_FILES for gcore.
8929 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8930 gdb_have_gcore.
8931 * gdb_gcore.sh: Rename to ...
8932 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8933 and GCORE_TRANSFORM_NAME substitutions.
8934
8935 Fix parsing tabs in ${gdb_target_obs}.
8936 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8937
8938 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8939
8940 * remote.c (unpush_and_perror): Add output message final dot.
8941
8942 2013-04-11 Yao Qi <yao@codesourcery.com>
8943
8944 * tracepoint.c (tfile_interp_line): Fit parameters line and
8945 utpp in one line.
8946
8947 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8948
8949 * solib.c (solib_map_sections): Remove code overwriting
8950 SO->SO_NAME with the bfd's filename.
8951
8952 2013-04-10 Pedro Alves <palves@redhat.com>
8953
8954 * cli/cli-decode.c (integer_unlimited_completer): New function.
8955 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8956 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8957 completer.
8958 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8959 (is_unlimited_literal): New function.
8960 (do_set_command): Handle literal "unlimited" arguments.
8961 * frame.c (_initialize_frame) <set backtrace limit>: Document
8962 "unlimited".
8963 * printcmd.c (_initialize_printcmd) <set print
8964 max-symbolic-offset>: Add help text.
8965 * record-full.c (_initialize_record_full) <set record full
8966 insn-number-max>: Likewise.
8967 * record.c (_initialize_record) <set record
8968 instruction-history-size, set record function-call-history-size>:
8969 Add help text.
8970 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8971 help text.
8972 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8973 Likewise.
8974 * source.c (_initialize_source) <set listsize>: Add help text.
8975 * utils.c (initialize_utils) <set height, set width>: Likewise.
8976 <set pagination>: Mention "set height unlimited".
8977 * valprint.c (_initialize_valprint) <set print elements, set print
8978 repeats>: Document "unlimited".
8979
8980 2013-04-10 Pedro Alves <palves@redhat.com>
8981
8982 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8983 instead of disconnect_tracing.
8984 * infcmd.c (detach_command, disconnect_command): Call
8985 query_if_trace_running. Adjust.
8986 * top.c: Include "tracepoint.h".
8987 (quit_target): Delete. Contents moved ...
8988 (quit_force): ... here. Wrap each stage of teardown in
8989 TRY_CATCH. Call disconnect_tracing before detaching.
8990
8991 2013-04-10 Hui Zhu <hui@codesourcery.com>
8992 Yao Qi <yao@codesourcery.com>
8993
8994 * configure.ac: Check libbabeltrace is installed.
8995 * config.in: Regenerate.
8996 * configure: Regenerate.
8997 * Makefile.in (LIBBABELTRACE): New.
8998 (CLIBS): Add LIBBABELTRACE.
8999 * ctf.c: Include "exec.h".
9000 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
9001 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
9002 (ctf_save_metadata_header): Define new type aliases in
9003 metadata.
9004 (ctf_write_header): Define event type "tsv_def" and "tp_def"
9005 in metadata. Start a new faked packet for trace status.
9006 (ctf_write_status): Write trace status to CTF.
9007 (ctf_write_uploaded_tsv): Write TSV to CTF.
9008 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
9009 (ctf_write_definition_end): End the faked packet.
9010
9011 (ctx, ctf_iter, trace_dirname): New.
9012 (start_pos): New variable.
9013 (ctf_destroy, ctf_open_dir, ctf_open): New.
9014 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
9015 macros.
9016 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
9017 (ctf_fetch_registers, ctf_xfer_partial): New.
9018 (ctf_get_trace_state_variable_value): New.
9019 (ctf_get_tpnum_from_frame_event): New.
9020 (ctf_get_traceframe_address): New.
9021 (ctf_trace_find, ctf_has_stack): New.
9022 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
9023 (ctf_get_trace_status, ctf_read_status): New.
9024 (_initialize_ctf): New.
9025 * tracepoint.c (get_tracepoint_number): New
9026 (get_uploaded_tsv): Remove 'static'.
9027 (struct traceframe_info, trace_regblock_size): Move it to ...
9028 * tracepoint.h: ... here.
9029 (get_tracepoint_number): Declare it.
9030 (get_uploaded_tsv): Declare it.
9031
9032 * NEWS: Mention new configure option.
9033
9034 2013-04-10 Pedro Alves <palves@redhat.com>
9035 Hui Zhu <hui@codesourcery.com>
9036
9037 * breakpoint.c (dprintf_re_set): New.
9038 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
9039 to dprintf_re_set.
9040
9041 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9042
9043 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
9044 Remove solib-svr4.o from the list.
9045
9046 2013-04-09 Joel Brobecker <brobecker@adacore.com>
9047
9048 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
9049 Use gdb_assert_not_reached instead of invalid boolean expression.
9050
9051 2013-04-09 Pedro Alves <palves@redhat.com>
9052
9053 * remote.c (unpush_and_perror): New function.
9054 (readchar, remote_serial_write): Use it.
9055
9056 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
9057
9058 * NEWS: Mention new btrace RSP packets.
9059
9060 2013-04-08 Tom Tromey <tromey@redhat.com>
9061
9062 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
9063 long.
9064
9065 2013-04-08 Tom Tromey <tromey@redhat.com>
9066
9067 * maint.c (print_bfd_section_info): Print the section index.
9068 * symmisc.c (dump_msymbols): Print the section index.
9069
9070 2013-04-08 Tom Tromey <tromey@redhat.com>
9071
9072 PR symtab/8424:
9073 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9074 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9075 * breakpoint.c (resolve_sal_pc): Update.
9076 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9077 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9078 (minsym_lookup_iterator_cb): Use it.
9079 (default_read_var_value): Update.
9080 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9081 Update.
9082 * infcmd.c (jump_command): Update.
9083 * linespec.c (minsym_found): Update.
9084 * maint.c (maintenance_translate_address): Update.
9085 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9086 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9087 * parse.c (write_exp_msymbol): Update.
9088 * printcmd.c (address_info): Update.
9089 * psymtab.c (find_pc_sect_psymbol): Update.
9090 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9091 SYMBOL_OBJ_SECTION.
9092 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9093 Don't initialize SYMBOL_OBJ_SECTION.
9094 * spu-tdep.c (spu_catch_start): Update.
9095 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9096 * symmisc.c (dump_msymbols, print_symbol): Update.
9097 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9098 how fallback section is computed.
9099 (fixup_symbol_section): Update.
9100 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9101 Update.
9102 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9103 Initialize SYMBOL_SECTION.
9104 * symtab.h (struct general_symbol_info) <section>: Update comment.
9105 <obj_section>: Remove.
9106 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9107 (SYMBOL_OBJFILE): New macro.
9108
9109 2013-04-08 Tom Tromey <tromey@redhat.com>
9110
9111 * coffread.c (record_minimal_symbol): Update.
9112 * dbxread.c (record_minimal_symbol): Update.
9113 * elfread.c (record_minimal_symbol): Update.
9114 * machoread.c (macho_symtab_add_minsym): Update.
9115 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9116 Update.
9117 * minsyms.c (prim_record_minimal_symbol): Update.
9118 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9119 argument.
9120 (prim_record_minimal_symbol_and_info): Likewise.
9121 * minsyms.h (prim_record_minimal_symbol_full)
9122 (prim_record_minimal_symbol_and_info): Update.
9123 * symtab.c (allocate_symbol, initialize_symbol)
9124 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9125 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9126 Update.
9127
9128 2013-04-08 Tom Tromey <tromey@redhat.com>
9129
9130 PR symtab/8423:
9131 * solib-som.c (som_solib_section_offsets): Use BFD section
9132 indices. Set offsets for all sections.
9133 * somread.c (som_symtab_read): Compute BFD section for
9134 symbol. Use prim_record_minimal_symbol_and_info.
9135 (som_symfile_read): Fix comment.
9136 (struct find_section_offset_arg): New.
9137 (find_section_offset, set_section_index): New functions.
9138 (som_symfile_offsets): Use set_section_index to compute
9139 section indices.
9140
9141 2013-04-08 Tom Tromey <tromey@redhat.com>
9142
9143 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9144 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9145 gdb_bfd_section_index.
9146 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9147 New functions.
9148 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9149 Declare.
9150 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9151 Update.
9152 * objfiles.c (add_to_objfile_sections_full): New function.
9153 (add_to_objfile_sections): Use it.
9154 (build_section_table): Rewrite.
9155 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9156 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9157 (struct objfile) <sections>: Update comment.
9158 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9159 is NULL.
9160 (ALL_OBJSECTIONS): Use it.
9161 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9162 * solib-frv.c (frv_relocate_main_executable): Update.
9163 * solib-target.c (solib_target_relocate_section_addresses):
9164 Use gdb_bfd_section_index.
9165 * symfile.c (build_section_addr_info_from_section_table):
9166 Use gdb_bfd_section_index.
9167 (build_section_addr_info_from_bfd, place_section): Likewise.
9168 * symtab.c (fixup_section): Update.
9169 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9170
9171 2013-04-08 Tom Tromey <tromey@redhat.com>
9172
9173 * minsyms.h (struct bound_minimal_symbol): New.
9174 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9175 Remove objfile argument.
9176 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9177 Return bound_minimal_symbol.
9178 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9179 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9180 Return bound_minimal_symbol.
9181 (in_gnu_ifunc_stub): Update.
9182 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9183 Remove 'objfile_p' argument.
9184 (lookup_solib_trampoline_symbol_by_pc): Update.
9185 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9186 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9187 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9188 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9189 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9190 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9191 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9192 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9193 stack.c, symtab.c, tui/tui-disasm.c: Update.
9194
9195 2013-04-08 Tom Tromey <tromey@redhat.com>
9196
9197 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9198 Use symbol's obstack, not an objfile.
9199 * coffread.c (process_coff_symbol): Update.
9200 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9201 * jv-lang.c (add_class_symbol): Update.
9202 * mdebugread.c (new_symbol): Update.
9203 * minsyms.c (prim_record_minimal_symbol_full)
9204 (terminate_minimal_symbol_table): Update.
9205 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9206 * stabsread.c (define_symbol, read_enum_type): Update.
9207 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9208 Handle Ada specially.
9209 (symbol_set_language): Add 'obstack' argument.
9210 (symbol_set_names): Update.
9211 (symbol_natural_name, symbol_demangled_name): Always use
9212 ada_decode_symbol.
9213 * symtab.h (struct general_symbol_info)
9214 <language_specific::obstack>: New field.
9215 <ada_mangled>: New field.
9216 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9217 (symbol_set_language): Update.
9218
9219 2013-04-08 Tom Tromey <tromey@redhat.com>
9220
9221 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9222 Take an obstack, not an objfile.
9223 (symbol_set_names): Update.
9224 * symtab.h (symbol_set_demangled_name): Update.
9225
9226 2013-04-08 Tom Tromey <tromey@redhat.com>
9227
9228 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9229 allocate_symbol.
9230 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9231 (read_func_scope): Call allocate_template_symbol.
9232 (new_symbol_full): Call allocate_symbol.
9233 * jit.c (finalize_symtab): Call allocate_symbol.
9234 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9235 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9236 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9237 (common_block_end): Call allocate_symbol.
9238 * symtab.c (allocate_symbol, initialize_symbol)
9239 (allocate_template_symbol): New functions.
9240 * symtab.c (allocate_symbol, initialize_symbol)
9241 (allocate_template_symbol): Declare.
9242 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9243
9244 2013-04-08 Pedro Alves <palves@redhat.com>
9245 Keith Seitz <keiths@redhat.com>
9246
9247 * breakpoint.c (create_breakpoint): Rename
9248 "parse_condition_and_thread" parameter to "parse_arg". Update
9249 describing comment. If !PARSE_ARG, then error out if ARG is not
9250 the empty string after extracting the location.
9251 * breakpoint.h (create_breakpoint): Rename
9252 "parse_condition_and_thread" parameter to "parse_arg".
9253
9254 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9255
9256 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9257
9258 2013-04-07 Yao Qi <yao@codesourcery.com>
9259
9260 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9261 and 'addr2' to CORE_ADDR.
9262 * target.c (update_current_target): Update.
9263 * target.h (struct target_ops) <to_trace_find>: Change parameter
9264 type to CORE_ADDR.
9265 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9266 'addr2' to CORE_ADDR.
9267 (tfile_trace_find): Likewise.
9268 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9269 Change local variable 'addr' to type CORE_ADDR.
9270 * tracepoint.h (tfind_1): Update declaration.
9271
9272 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9273
9274 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9275 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9276 Include main.h.
9277
9278 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9279 here...
9280 * main.h (windows_get_absolute_argv0): ...to here.
9281
9282 2013-04-05 Doug Evans <dje@google.com>
9283
9284 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9285 (read_cutu_die_from_dwo): Add comments.
9286 (read_structure_type): Update comment.
9287 (read_enumeration_type, read_namespace_type): Update comment.
9288 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9289
9290 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9291
9292 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9293 * Makefile.in (gdb.z): Remove.
9294 (install-only): Remove $(man1dir) and gdb.1 installation.
9295 * gdb.1: Remove.
9296
9297 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9298
9299 Fix compatibility with Linux kernel 3.8.3.
9300 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9301 to more inner block. Remove parsing of NUMBER from outer block.
9302 Parse NUMBER only if KEYWORD has been identified.
9303
9304 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9305
9306 Fix variable name shadowing.
9307 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9308 filename to mapsfilename and update its uses.
9309
9310 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9311
9312 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9313 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9314 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9315 details of the problem.
9316
9317 2013-04-04 Pedro Alves <palves@redhat.com>
9318 Hui Zhu <hui@codesourcery.com>
9319
9320 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9321 tracepoint, reset its STEP_COUNT and call validate_actionline.
9322
9323 2013-04-03 Doug Evans <dje@google.com>
9324
9325 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9326 read_die_and_siblings.
9327 (read_die_and_siblings): New function.
9328 (read_cutu_die_from_dwo): Dump die if requested.
9329 (read_die_and_children): Call read_full_die_1 and
9330 read_die_and_siblings_1.
9331 (read_full_die): Dump die if requested.
9332
9333 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9334
9335 * dwarf2read.c (struct dwo_file): New member comp_dir.
9336 Rename member name to dwo_name. All uses updated.
9337 (hash_dwo_file): Include comp_dir in computation.
9338 (eq_dwo_file): Ditto.
9339 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9340 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9341
9342 * psymtab.c (read_psymtabs_with_fullname): Don't call
9343 psymtab_to_fullname if the basenames are different.
9344
9345 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9346
9347 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9348 New entry about "fullname" presence.
9349
9350 2013-04-03 Pedro Alves <palves@redhat.com>
9351
9352 * NEWS: Mention x86_64/Cygwin as new native configuration.
9353
9354 2013-04-02 Doug Evans <dje@google.com>
9355
9356 * dwarf2read.c (read_structure_type): Fix typo in comment.
9357
9358 2013-04-02 Pedro Alves <palves@redhat.com>
9359
9360 * NEWS: Mention "set/show debug aarch64", "set/show debug
9361 coff-pe-read" and "set/show debug mach-o".
9362
9363 2013-04-02 Pedro Alves <palves@redhat.com>
9364
9365 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9366
9367 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9368
9369 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9370 gdb_string.h is now in common/.
9371
9372 2013-04-02 Pedro Alves <palves@redhat.com>
9373
9374 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9375 under "New options".
9376
9377 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9378
9379 Revert this patch:
9380 PR gdb/15275
9381 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9382
9383 2013-04-02 Pedro Alves <palves@redhat.com>
9384
9385 PR gdb/15275
9386
9387 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9388 (remote_serial_write): New function.
9389 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9390
9391 2013-04-01 Jiong Wang <jiwang@tilera.com>
9392
9393 * NEWS: Mention TILE-Gx in "New native configurations" and
9394 "New targets" sections.
9395
9396 2013-04-01 Doug Evans <dje@google.com>
9397
9398 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9399 (process_enumeration_scope): Simplify.
9400
9401 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9402 type_unit_group ...
9403 (struct signatured_type): ... to here.
9404 (sig_type_ptr): New typedef.
9405 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9406 out of union 't'. All uses updated.
9407 (dw2_get_file_names_reader): Assert not called for a type unit.
9408 (dw2_get_file_names): Assert not called for a type unit or type
9409 unit group.
9410 (build_type_psymtabs_reader): Assert called for a type unit.
9411 (build_type_psymtab_dependencies): Assert called for a type unit group.
9412
9413 * dwarf2read.c (free_dwo_file): Add comment.
9414 (dwarf2_per_objfile_free): Unref dwp bfd.
9415
9416 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9417
9418 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9419 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9420 (read_pe_exported_syms): Remove unused 'exportix'.
9421 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9422 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9423 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9424
9425 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9426
9427 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9428 (print_it_watchpoint): Remove unused 'bl'.
9429 (say_where): Remove unused 'uiout'.
9430 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9431 (bkpt_breakpoint_hit): Remove unused 'b'.
9432 (internal_bkpt_print_it): Remove unused 'uiout'.
9433 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9434
9435 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9436
9437 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9438 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9439
9440 2013-03-29 Doug Evans <dje@google.com>
9441
9442 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9443 Delete arg is_dwp. All callers updated.
9444 (open_dwp_file): New function.
9445 (open_and_init_dwp_file): Call it.
9446 (get_dwp_file): New function.
9447 (lookup_dwo_cutu): Call it.
9448
9449 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9450 unnecessary, cleanup.
9451
9452 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9453
9454 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9455 (lookup_dwo_unit): New function.
9456 (init_cutu_and_read_dies): Move DWO handling to new functions.
9457
9458 * dwarf2read.c (struct signatured_type): Tweak comment.
9459 (struct dwo_unit): Tweak comment.
9460 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9461 (create_dwo_debug_info_hash_table): Tweak comment.
9462 (dwarf2_per_cu_offset_and_type): Tweak comment.
9463
9464 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9465 missing .debug_types section.
9466
9467 2013-03-29 Yao Qi <yao@codesourcery.com>
9468
9469 * corelow.c: Include "completer.h".
9470 (_initialize_corelow): Call add_target_with_completer with
9471 argument 'filename_completer'.
9472 * tracepoint.c: Likewise.
9473 * exec.c (_initialize_exec): Likewise.
9474 * target.c (add_target): Rename to ...
9475 (add_target_with_completer): ... this. Call set_cmd_completer
9476 if parameter completer is not NULL.
9477 (add_target): New.
9478 * target.h: Include "command.h".
9479 (add_target_with_completer): Declare it.
9480
9481 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9482
9483 * coffread.c (is_import_fixup_symbol): New function.
9484 (record_minimal_symbol): Use is_import_fixup_symbol to
9485 detect import fixup symbols, and discard them.
9486
9487 2013-03-28 Doug Evans <dje@google.com>
9488
9489 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9490 types hash table until we know we need it.
9491
9492 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9493 index numbers.
9494
9495 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9496 All callers updated.
9497 (dw2_print_stats): Print #read CUs too.
9498 (dump_die_shallow): Print signatured types better.
9499
9500 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9501 info_or_types_section to section. All uses updated.
9502 (struct dwo_unit): Ditto.
9503
9504 2013-03-28 Pedro Alves <palves@redhat.com>
9505
9506 * NEWS (New options): New section.
9507 (New options): Mention set/show remote trace-status-packet.
9508 * remote.c (PACKET_qTStatus): New enumeration value.
9509 (remote_get_trace_status): Skip sending qTStatus if the packet is
9510 disabled. Use packet_ok.
9511 (_initialize_remote): Register a configuration command for
9512 qTStatus packet.
9513
9514 2013-03-28 Doug Evans <dje@google.com>
9515
9516 * symfile.c (find_separate_debug_file): Add comment.
9517 (terminate_after_last_dir_separator): Tweak comment.
9518
9519 * dwarf2read.c (create_partial_symtab): Add forward decl.
9520 (create_partial_symtab): Move to be closer to other psymtab functions.
9521 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9522
9523 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9524 (compute_symtab_includes): Remove unnecessary forward declaration.
9525 (die_needs_namespace): Add comment marking group of functions for
9526 dwarf2 name computation.
9527
9528 * typeprint.c (_initialize_typeprint): Improve type help text.
9529
9530 * python/python.c (finish_python_initialization): Provide suggestion
9531 for how to tell gdb to find its python files.
9532
9533 2013-03-28 Pedro Alves <palves@redhat.com>
9534
9535 PR gdb/15294
9536
9537 * source.c (_initialize_source): Change back "set listsize" to an
9538 integer command.
9539
9540 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9541
9542 PR gdb/15275
9543 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9544
9545 2013-03-27 Pedro Alves <palves@redhat.com>
9546
9547 * top.c (history_size): Rename to ...
9548 (history_size_setshow_var): ... this. Add comment.
9549 (show_commands): Use readline's 'history_length' instead of
9550 computing the history length by calling history_get in a loop.
9551 (set_history_size_command): Error out for sizes over INT_MAX.
9552 Restore previous history size on invalid size.
9553 (init_history): If HISTSIZE is negative, leave the history size as
9554 zero. Add comments.
9555 (init_main): Adjust.
9556
9557 2013-03-27 Pedro Alves <palves@redhat.com>
9558
9559 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9560 coff_pe_read" command to "set debug coff-pe-read".
9561
9562 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9563
9564 * record.c (command_size_to_target_size): Fix size comparison.
9565 Change parameter type from pointer to integer to integer.
9566 Update all users.
9567
9568 2013-03-27 Pierre Muller <muller@sourceware.org>
9569
9570 * windows-nat.c (handle_output_debug_string): Avoid typecast
9571 from integer of different size warning.
9572
9573 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9574
9575 * windows-nat.c (handle_output_debug_string): Add empty line
9576 after local block variable definition.
9577
9578 2013-03-26 Pedro Alves <palves@redhat.com>
9579
9580 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9581 (net_open): Make 'polls' local unsigned.
9582
9583 2013-03-26 Pedro Alves <palves@redhat.com>
9584
9585 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9586 a zuinteger command instead of uinteger.
9587
9588 2013-03-26 Pedro Alves <palves@redhat.com>
9589
9590 * record-full.c (record_full_insn_num): Make it unsigned.
9591 (record_full_check_insn_num, record_full_message)
9592 (record_full_registers_change, record_full_xfer_partial): Remove
9593 record_full_insn_max_num check (it's always != 0).
9594 (record_full_info, record_full_restore): Use %u as format string.
9595 (): Use %u as format string.
9596 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9597 check (it's always != 0).
9598
9599 2013-03-26 Pedro Alves <palves@redhat.com>
9600
9601 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9602 and "set dcache size" commands zuinteger instead of uinteger.
9603
9604 2013-03-26 Pedro Alves <palves@redhat.com>
9605
9606 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9607 command zuinteger instead of uinteger.
9608
9609 2013-03-26 Pedro Alves <palves@redhat.com>
9610
9611 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9612 zuinteger instead of uinteger.
9613
9614 2013-03-26 Pedro Alves <palves@redhat.com>
9615
9616 * record.c (record_insn_history_size_setshow_var)
9617 (record_call_history_size_setshow_var): New globals.
9618 (command_size_to_target_size): New function.
9619 (cmd_record_insn_history, cmd_record_call_history): Use
9620 command_size_to_target_size instead of cast.
9621 (validate_history_size, set_record_insn_history_size)
9622 (set_record_call_history_size): New functions.
9623 (_initialize_record): Install set_record_insn_history_size and
9624 set_record_call_history_size as "set" hooks of "set record
9625 instruction-history-size" and "set record
9626 function-call-history-size".
9627
9628 2013-03-26 Pedro Alves <palves@redhat.com>
9629
9630 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9631 use with history_max_entries use. Remove FIXME note.
9632
9633 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9634
9635 * record-btrace.c (record_btrace_close): Call
9636 record_btrace_auto_disable.
9637
9638 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9639
9640 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9641
9642 2013-03-25 Doug Evans <dje@google.com>
9643
9644 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9645
9646 2013-03-25 Tom Tromey <tromey@redhat.com>
9647
9648 PR symtab/11462:
9649 * c-exp.y (exp): Add new productions for destructors after '.' and
9650 '->'.
9651 (write_destructor_name): New function.
9652
9653 2013-03-25 Tom Tromey <tromey@redhat.com>
9654
9655 PR c++/9197:
9656 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9657 value_struct_elt, not lookup_struct_elt_type.
9658 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9659 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9660 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9661
9662 2013-03-25 Yao Qi <yao@codesourcery.com>
9663
9664 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9665 instead of '_mkdir'.
9666
9667 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9668
9669 * windows-nat.c (windows_get_absolute_argv0): New function.
9670 * windows-nat.h: Add its prototype.
9671
9672 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9673 Use IS_DIR_SEPARATOR instead of looking for a character inside
9674 SLASH_STRING. Include filenames.h.
9675 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9676 relocate_gdb_directory works when passed gdb_program_name.
9677 Include windows-nat.h.
9678
9679 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9680
9681 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9682 * remote.c (trace_error): Remove the special handling of '2'.
9683 (readchar) <SERIAL_EOF>
9684 (readchar) <SERIAL_ERROR>
9685 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9686 (remote_get_trace_status): Call throw_exception if EX is
9687 TARGET_CLOSE_ERROR.
9688 * utils.c (perror_with_name): Rename to ...
9689 (throw_perror_with_name): ... here. New parameter errcode, describe it
9690 in the function comment.
9691 (perror_with_name): New function wrapper.
9692 * utils.h (enum errors): New stub declaration.
9693 (throw_perror_with_name): New declaration.
9694
9695 2013-03-22 Pedro Alves <palves@redhat.com>
9696 Yao Qi <yao@codesourcery.com>
9697 Mark Kettenis <kettenis@gnu.org>
9698
9699 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9700 Don't let the user set the value to UINT_MAX directly.
9701 <var_integer>: Don't let the user set the value to INT_MAX
9702 directly.
9703
9704 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9705
9706 * remote.c (remote_unpush_target): New function.
9707 (remote_open_1): Remove two pop_target calls, update one comment, add
9708 comment to target_preopen call. Replace pop_target call by
9709 remote_unpush_target call.
9710 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9711 pop_target calls by remote_unpush_target calls.
9712
9713 2013-03-22 Pedro Alves <palves@redhat.com>
9714
9715 * linux-nat.c (linux_child_follow_fork): Don't call
9716 linux_enable_event_reporting.
9717 (linux_handle_extended_wait): Don't call
9718 linux_enable_event_reporting.
9719
9720 2013-03-22 Pedro Alves <palves@redhat.com>
9721
9722 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9723 use it to rewrite the trampoline buffers with type gdb_byte[], and
9724 undefine the macro. Remove char* cast.
9725
9726 2013-03-21 Doug Evans <dje@google.com>
9727
9728 New commands "mt set per-command {space,time,symtab} {on,off}".
9729 * NEWS: Add entry.
9730 * event-top.c: #include "maint.h".
9731 * main.c: #include "maint.h".
9732 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9733 timeval-utils.h, maint.h, cli/cli-setshow.h.
9734 (per_command_time, per_command_space): New static globals.
9735 (per_command_symtab): New static global.
9736 (per_command_setlist, per_command_showlist): New static globals.
9737 (struct cmd_stats): Move here from utils.c.
9738 (set_per_command_time): Renamed from set_display_time in utils.c
9739 and moved here. All callers updated.
9740 (set_per_command_space): Renamed from set_display_space in utils.c
9741 and moved here. All callers updated.
9742 (count_symtabs_and_blocks): New function.
9743 (report_command_stats): Moved here from utils.c. Add support for
9744 printing symtab stats. Only print data if enabled before command
9745 executed.
9746 (make_command_stats_cleanup): Ditto.
9747 (sert_per_command_cmd, show_per_command_cmd): New functions.
9748 (_initialize_maint_cmds): Add new commands
9749 mt set per-command {space,time,symtab} {on,off}.
9750 * maint.h: New file.
9751 * top.c: #include "maint.h".
9752 * utils.c (reset_prompt_for_continue_wait_time): New function.
9753 (get_prompt_for_continue_wait_time): New function.
9754 * utils.h (reset_prompt_for_continue_wait_time): Declare
9755 (get_prompt_for_continue_wait_time): Declare.
9756 (make_command_stats_cleanup): Moved to maint.h.
9757 (set_display_time, set_display_space): Moved to maint.h and renamed
9758 to set_per_command_time, set_per_command_space.
9759 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9760 parse_binary_operation and made non-static. Don't call error,
9761 just return an error marker. All callers updated.
9762 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9763
9764 2013-03-21 Tom Tromey <tromey@redhat.com>
9765
9766 * symfile.c (alloc_section_addr_info): Update header. Don't set
9767 'num_sections' field.
9768 (build_section_addr_info_from_section_table): Set 'num_sections'.
9769 (build_section_addr_info_from_bfd): Likewise.
9770 (build_section_addr_info_from_objfile): Remove dead loop
9771 condition.
9772 (free_section_addr_info): Unconditionally call xfree.
9773 (relative_addr_info_to_section_offsets, addrs_section_sort)
9774 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9775 condition.
9776 (syms_from_objfile_1): Remove dead 'if' condition. Check
9777 'num_sections'.
9778 (add_symbol_file_command): Set 'num_sections'.
9779 * symfile-mem.c (symbol_file_add_from_memory): Set
9780 'num_sections'.
9781 * somread.c (som_symfile_offsets): Remove dead loop condition.
9782 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9783 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9784
9785 2013-03-21 Tom Tromey <tromey@redhat.com>
9786
9787 * tracepoint.h (decode_agent_options): Add 'trace_string'
9788 argument.
9789 * tracepoint.c (decode_agent_options): Add 'trace_string'
9790 argument.
9791 (validate_actionline): Update.
9792 (collect_symbol): Add 'trace_string' argument.
9793 (struct add_local_symbols_data) <trace_string>: New field.
9794 (do_collect_symbol): Update.
9795 (add_local_symbols): Add 'trace_string' argument.
9796 (encode_actions_1): Update.
9797 (trace_dump_actions): Update.
9798 * dwarf2loc.c (access_memory): Update.
9799 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9800 * ax-general.c (new_agent_expr): Update.
9801 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9802 (gen_trace_for_return_address): Add argument.
9803 (trace_kludge, trace_string_kludge): Remove.
9804 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9805 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9806 (gen_trace_for_var): Add 'trace_string' argument.
9807 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9808 (gen_printf, agent_eval_command_one): Update.
9809
9810 2013-03-21 Tom Tromey <tromey@redhat.com>
9811
9812 PR exp/15109:
9813 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9814 Handle FILENAME token.
9815
9816 2013-03-21 Tom Tromey <tromey@redhat.com>
9817
9818 * c-exp.y (YYPRINT): Define.
9819 (c_print_token): New function.
9820
9821 2013-03-21 Tom Tromey <tromey@redhat.com>
9822
9823 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9824
9825 2013-03-21 Yao Qi <yao@codesourcery.com>
9826
9827 * ctf.c: Include "gdb_stat.h".
9828 [USE_WIN32API]: New macro 'mkdir'.
9829 (ctf_start): Use permission bits macros if they are defined.
9830
9831 2013-03-20 Keith Seitz <keiths@redhat.com>
9832
9833 * breakpoint.h (struct breakpoint): Add comment to
9834 extra_string indicating that this member is mallod'd.
9835 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9836
9837 2013-03-20 Pedro Alves <palves@redhat.com>
9838
9839 PR gdb/15289
9840
9841 * cli/cli-setshow.c (do_set_command)
9842 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9843 the result of parsing the command argument. Throw error if the
9844 value is greater than UINT_MAX. Print the invalid value with
9845 plongest.
9846 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9847 result of parsing the command argument. Throw error if the value
9848 is greater than INT_MAX, not greater or equal. Also throw error
9849 if the value is less than INT_MIN. Print the invalid value with
9850 plongest.
9851 <var_zuinteger_unlimited>: Throw error if the value is greater
9852 than INT_MAX, not greater or equal.
9853 (do_show_command) <var_integer, var_zinteger,
9854 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9855
9856 2013-03-20 Tom Tromey <tromey@redhat.com>
9857
9858 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9859 if possible.
9860 * dwarf2read.c (read_func_scope): Remove old FIXME.
9861 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9862 not LOC_COMPUTED.
9863 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9864 Unconditionally call via computed ops, if possible.
9865 * printcmd.c (address_info): Unconditionally call via computed ops,
9866 if possible.
9867 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9868 if possible.
9869 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9870 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9871 if possible.
9872
9873 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9874 Tom Tromey <tromey@redhat.com>
9875
9876 PR symtab/8421:
9877 * coffread.c (coff_register_index): New global.
9878 (process_coff_symbol, coff_read_enum_type): Set
9879 SYMBOL_ACLASS_INDEX.
9880 (_initialize_coffread): Initialize new global.
9881 * dwarf2loc.c (locexpr_find_frame_base_location)
9882 (dwarf2_block_frame_base_locexpr_funcs)
9883 (loclist_find_frame_base_location)
9884 (dwarf2_block_frame_base_loclist_funcs): New.
9885 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9886 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9887 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9888 (dwarf2_block_frame_base_loclist_funcs): New.
9889 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9890 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9891 globals.
9892 (read_func_scope): Update.
9893 (fixup_go_packaging, mark_common_block_symbol_computed)
9894 (var_decode_location, new_symbol_full, dwarf2_const_value):
9895 Set SYMBOL_ACLASS_INDEX.
9896 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9897 (_initialize_dwarf2_read): Initialize new globals.
9898 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9899 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9900 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9901 globals.
9902 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9903 (_initialize_mdebugread): Initialize new globals.
9904 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9905 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9906 (stab_register_index, stab_regparm_index): New globals.
9907 (define_symbol, read_enum_type, common_block_end): Set
9908 SYMBOL_ACLASS_INDEX.
9909 (_initialize_stabsread): Initialize new globals.
9910 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9911 globals.
9912 (MAX_SYMBOL_IMPLS): New define.
9913 (register_symbol_computed_impl, register_symbol_block_impl)
9914 (register_symbol_register_impl)
9915 (initialize_ordinary_address_classes): New functions.
9916 (_initialize_symtab): Call initialize_ordinary_address_classes.
9917 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9918 (struct symbol_impl): New.
9919 (SYMBOL_ACLASS_BITS): New define.
9920 (struct symbol) <aclass, ops>: Remove fields.
9921 <aclass_index>: New field.
9922 (symbol_impls): Declare.
9923 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9924 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9925 (register_symbol_computed_impl, register_symbol_block_impl)
9926 (register_symbol_register_impl): Declare.
9927 (struct symbol_computed_ops): Add location_has_loclist.
9928 (struct symbol_block_ops): New.
9929 (SYMBOL_BLOCK_OPS): New.
9930 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9931
9932 2013-03-20 Tom Tromey <tromey@redhat.com>
9933
9934 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9935 (print_partial_symbols, recursively_search_psymtabs): Use
9936 PSYMBOL_CLASS.
9937
9938 2013-03-20 Pierre Muller <muller@sourceware.org>
9939
9940 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9941 addtion, subtraction, multiplication and division binary operator.
9942
9943 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9944
9945 Code cleanup.
9946 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9947 * bsd-kvm.c (bsd_kvm_close): Likewise.
9948 * bsd-uthread.c (bsd_uthread_close): Likewise.
9949 * corelow.c (core_close): Likewise.
9950 (core_close_cleanup): Remove parameter quitting from a caller.
9951 * event-top.c (async_disconnect): Likewise.
9952 * exec.c (exec_close_1): Remove parameter quitting.
9953 * go32-nat.c (go32_close): Likewise.
9954 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9955 parameter quitting from a caller.
9956 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9957 variable.
9958 (mips_linux_close): Remove parameter quitting. Remove parameter
9959 quitting from a caller.
9960 * monitor.c (monitor_close): Remove parameter quitting.
9961 * monitor.h (monitor_close): Likewise.
9962 * record-btrace.c (record_btrace_close): Likewise.
9963 * record-full.c (record_full_close): Likewise.
9964 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9965 it also from fprintf_unfiltered.
9966 * remote-mips.c (mips_close): Remove parameter quitting.
9967 (mips_detach): Remove parameter quitting from a caller.
9968 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9969 (gdbsim_close): Remove duplicate function comment. Remove parameter
9970 quitting and remove it also from printf_filtered.
9971 * remote.c (remote_close): Remove parameter quitting.
9972 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9973 * target.c (update_current_target): Remove parameter int from to_close
9974 de_fault.
9975 (push_target, unpush_target, pop_target): Remove parameter quitting from
9976 a caller.
9977 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9978 Remove parameter quitting from a caller.
9979 (target_preopen): Remove parameter quitting from a caller.
9980 (target_close): Remove parameter quitting. Remove parameter quitting
9981 from a caller two times. Remove parameter quitting also from
9982 fprintf_unfiltered.
9983 * target.h (struct target_ops): Remove parameter quitting and as int
9984 from fields to_xclose and to_close.
9985 (extern struct target_ops current_target):
9986 (target_close, pop_all_targets): Remove parameter quitting. Update the
9987 comment.
9988 (pop_all_targets_above): Remove parameter quitting.
9989 * top.c (quit_target): Remove parameter quitting from a caller.
9990 * tracepoint.c (tfile_close): Remove parameter quitting.
9991 * windows-nat.c (windows_close): Remove parameter quitting.
9992
9993 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9994
9995 * windows-nat.c (handle_output_debug_string): Replace call
9996 to string_to_core_addr with call to strtoull.
9997
9998 2013-03-20 Yao Qi <yao@codesourcery.com>
9999
10000 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
10001 and write it to CTF metadata.
10002
10003 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
10004
10005 * windows-nat.c (handle_output_debug_string): Change type of n to
10006 SIZE_T to avoid crash on 64 bit systems.
10007
10008 2013-03-17 Eli Zaretskii <eliz@gnu.org>
10009
10010 * python/python-internal.h (HAVE_SNPRINTF)
10011 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
10012 about redefinition of snprintf by pyerrors.h.
10013
10014 2013-03-15 Steve Ellcey <sellcey@mips.com>
10015
10016 * remote-sim.c (sim_command_completer): Make char arguments const.
10017
10018 2013-03-15 Tom Tromey <tromey@redhat.com>
10019
10020 PR c++/15116:
10021 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
10022
10023 2013-03-14 Tom Tromey <tromey@redhat.com>
10024
10025 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
10026 New fields.
10027 (get_file_crc): Move from symfile.c.
10028 (gdb_bfd_crc): New function.
10029 * gdb_bfd.h (gdb_bfd_crc): Declare.
10030 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
10031 * symfile.c (get_file_crc): Move to gdb_bfd.c.
10032 (separate_debug_file_exists): Use gdb_bfd_crc.
10033
10034 2013-03-14 Tom Tromey <tromey@redhat.com>
10035
10036 * symfile.c (get_debug_link_info): Remove.
10037 (find_separate_debug_file_by_debuglink): Use
10038 bfd_get_debug_link_info.
10039
10040 2013-03-14 Tom Tromey <tromey@redhat.com>
10041
10042 * symtab.c (error_in_psymtab_expansion): New function.
10043 (lookup_symbol_aux_quick)
10044 (basic_lookup_transparent_type_quick): Remove "last resort"
10045 code. Use error_in_psymtab_expansion.
10046
10047 2013-03-14 Doug Evans <dje@google.com>
10048 Jan Kratochvil <jan.kratochvil@redhat.com>
10049
10050 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
10051 any successful compare_filenames_for_search or FILENAME_CMP.
10052 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10053 * symtab.c (iterate_over_some_symtabs): Likewise.
10054
10055 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * source.c (print_source_lines_base): Make a local copy of
10058 symtab_to_fullname.
10059
10060 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
10061 Jan Kratochvil <jan.kratochvil@redhat.com>
10062
10063 * source.c (print_source_lines_base): Suppress "file" for TUI.
10064
10065 2013-03-14 Keith Seitz <keiths@redhat.com>
10066 Alan Matsuoka <alanm@redhat.com>
10067
10068 PR c++/15203
10069 PR c++/15210
10070 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10071 TYPE_CODE_METHOD.
10072 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10073 symbols.
10074
10075 2013-03-14 Yao Qi <yao@codesourcery.com>
10076
10077 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10078 status to tfile if trace is stopped by command 'tstop'.
10079
10080 2013-03-14 Yao Qi <yao@codesourcery.com>
10081
10082 * tracepoint.c (tfile_write_status): Write trace notes and user
10083 name into tfile if they are not NULL.
10084
10085 2013-03-14 Hui Zhu <hui@codesourcery.com>
10086 Yao Qi <yao@codesourcery.com>
10087
10088 * Makefile.in (REMOTE_OBS): Add ctf.o.
10089 (SFILES): Add ctf.c.
10090 (HFILES_NO_SRCDIR): Add ctf.h.
10091 * ctf.c, ctf.h: New files.
10092 * tracepoint.c: Include 'ctf.h'.
10093 (collect_pseudocommand): Remove static.
10094 (trace_save_command): Parse option "-ctf".
10095 Produce different trace file writers per option.
10096 Adjust output message.
10097 (trace_save_tfile, trace_save_ctf): New.
10098 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10099 * mi/mi-main.c: Include 'ctf.h'.
10100 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10101 trace_save_tfile or trace_save_ctf.
10102 * NEWS: Mention these changes.
10103
10104 2013-03-14 Yao Qi <yao@codesourcery.com>
10105
10106 * tracepoint.c (trace_file_writer_xfree): New.
10107 (struct tfile_writer_data): New.
10108 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10109 (tfile_write_header, tfile_write_regblock_type): New.
10110 (tfile_write_status, tfile_write_uploaded_tsv): New.
10111 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10112 (tfile_write_raw_data, (tfile_end): New.
10113 (tfile_write_ops): New global variable.
10114 (TRACE_WRITE_R_BLOCK): New macro.
10115 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10116 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10117 (TRACE_WRITE_V_BLOCK): New macro.
10118 (trace_save): Add extra one parameter WRITER. Make it static.
10119 Use WRITER to writer trace.
10120 (tfile_trace_file_writer_new): New.
10121 (trace_save_command): Caller update.
10122 (trace_save_tfile): Write trace data in TFILE format.
10123 * tracepoint.h (struct trace_frame_write_ops): New.
10124 (struct trace_file_write_ops): New.
10125 (struct trace_file_writer): New.
10126 (trace_save): Remove its declaration.
10127 (trace_save_tfile): Declare it.
10128 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10129 instead of trace_save.
10130
10131 2013-03-13 Pedro Alves <palves@redhat.com>
10132
10133 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10134
10135 2013-03-13 Pedro Alves <palves@redhat.com>
10136
10137 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10138 commented out code.
10139 * demangle.c (current_demangling_style_string): Make it const.
10140 (set_demangling_command): Assert the demangling style is known.
10141 Remove all handling of unknown styles. Set
10142 'current_demangling_style_string' to an element of the
10143 demangling_style_names array.
10144 (set_demangling_style): Delete.
10145 (_initialize_demangler): Set current_demangling_style_string to the
10146 element of the demangling_style_names array that corresponds to
10147 the default demangling style. Remove FIXME note. Don't call
10148 set_demangling_style.
10149 * gdb-demangle.h (set_demangling_style): Remove declaration.
10150
10151 2013-03-13 Pedro Alves <palves@redhat.com>
10152
10153 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10154 fields const.
10155 (ada_make_symbol_completion_list): Make "text0" parameter const.
10156 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10157 * breakpoint.c (condition_completer): Make "text" and "word"
10158 parameters const. Adjust.
10159 (check_tracepoint_command): Adjust to validate_actionline
10160 prototype change.
10161 (catch_syscall_completer): Make "text" and "word" parameters
10162 const.
10163 * cli/cli-cmds.c (show_user): Make "comname" local const.
10164 (valid_command_p): Make "command" parameter const.
10165 (alias_command): Make "alias_prefix" and "command_prefix" locals
10166 const.
10167 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10168 (add_alias_cmd): Make "name" and "oldname" parameters const.
10169 Adjust. No longer make copy of OLDNAME.
10170 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10171 (add_setshow_cmd_full, add_setshow_enum_cmd)
10172 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10173 (add_setshow_filename_cmd, add_setshow_string_cmd)
10174 (add_setshow_string_noescape_cmd)
10175 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10176 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10177 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10178 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10179 Make "name" parameter const.
10180 (help_cmd): Rename "command" parameter to "arg". New const local
10181 "command".
10182 (find_cmd): Make "command" parameter const.
10183 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10184 deprecated_cmd_warning prototype change.
10185 (undef_cmd_error): Make "cmdtype" parameter const.
10186 (lookup_cmd): Make "line" parameter const.
10187 (deprecated_cmd_warning): Change type of "text" parameter to
10188 pointer to const char, from pointer to pointer to char. Adjust.
10189 (lookup_cmd_composition): Make "text" parameter const.
10190 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10191 parameters const.
10192 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10193 const.
10194 * cli/cli-script.c (validate_comname): Make "tem" local const.
10195 (define_command): New const local "tem_c". Use it in calls to
10196 lookup_cmd.
10197 (document_command): Make "tem" and "comfull" locals const.
10198 (show_user_1): Make "prefix" and "name" parameters const.
10199 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10200 const.
10201 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10202 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10203 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10204 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10205 (complete_on_enum, add_setshow_enum_cmd)
10206 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10207 (add_setshow_filename_cmd, add_setshow_string_cmd)
10208 (add_setshow_string_noescape_cmd)
10209 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10210 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10211 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10212 Change prototypes, constifying strings.
10213 * completer.c (noop_completer, filename_completer): Make "text"
10214 and "prefix" parameters const.
10215 (location_completer, expression_completer)
10216 (complete_line_internal): Make "text" and "prefix" parameters
10217 const and adjust.
10218 (command_completer, signal_completer): Make "text" and "prefix"
10219 parameters const.
10220 * completer.h (noop_completer, filename_completer)
10221 (expression_completer, location_completer, command_completer)
10222 (signal_completer): Change prototypes.
10223 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10224 parameters const.
10225 * cp-abi.c (cp_abi_completer): Likewise.
10226 * expression.h (parse_expression_for_completion): Change
10227 prototype.
10228 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10229 parameters const.
10230 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10231 * infrun.c (handle_completer): Make "text" and "word" parameters
10232 const.
10233 * interps.c (interpreter_completer): Make "text" and "word"
10234 parameters const.
10235 * language.h (struct language_defn)
10236 <la_make_symbol_completion_list>: Make "text" and "word"
10237 parameters const.
10238 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10239 (parse_exp_in_context): Rename to ...
10240 (parse_exp_in_context_1): ... this.
10241 (parse_exp_in_context): Reimplement, with const hack from
10242 parse_exp_1.
10243 (parse_expression_for_completion): Make "string" parameter const.
10244 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10245 to pointer to const char. Adjust.
10246 (print_command_1): Make "exp" parameter const.
10247 (output_command): Rename to ...
10248 (output_command_const): ... this. Make "exp" parameter const.
10249 (output_command): Reimplement.
10250 (x_command): Adjust.
10251 (display_command): Rename "exp" parameter to "arg". New "exp"
10252 local, const version of "arg".
10253 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10254 "cmd_name" local const.
10255 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10256 call.
10257 (cmdpy_completer): Make "text" and "word" parameters const.
10258 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10259 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10260 const.
10261 * remote.c (_initialize_remote): Make "cmd_name" local const.
10262 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10263 parameters const. Adjust.
10264 (completion_list_add_fields): Make "sym_text", "text" and "word"
10265 parameters const.
10266 (struct add_name_data) <sym_text, text, word>: Make fields const.
10267 (default_make_symbol_completion_list_break_on): Make "text" and
10268 "word" parameters const. Adjust locals.
10269 (default_make_symbol_completion_list)
10270 (make_symbol_completion_list, make_symbol_completion_type)
10271 (make_symbol_completion_list_fn): Make "text" and "word"
10272 parameters const.
10273 (make_file_symbol_completion_list): Make "text", "word" and
10274 "srcfile" parameters const. Adjust locals.
10275 (add_filename_to_list): Make "text" and "word" parameters const.
10276 (struct add_partial_filename_data) <text, word>: Make fields
10277 const.
10278 (make_source_files_completion_list): Make "text" and "word"
10279 parameters const.
10280 * symtab.h (default_make_symbol_completion_list_break_on)
10281 (default_make_symbol_completion_list, make_symbol_completion_list)
10282 (make_symbol_completion_type enum type_code)
10283 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10284 (make_source_files_completion_list): Change prototype.
10285 * top.c (execute_command): Adjust to pass pointer to pointer to
10286 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10287 change.
10288 (set_verbose): Make "cmdname" local const.
10289 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10290 and adjust.
10291 (validate_actionline): Make "line" parameter a pointer to const
10292 char, and adjust.
10293 (encode_actions_1): Make "action_exp" local const, and adjust.
10294 (encode_actions): Adjust.
10295 (replace_comma): Delete.
10296 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10297 const, and adjust. Don't frob the action string while splitting
10298 it at commas. Instead, make a copy of each split substring in
10299 turn.
10300 (trace_dump_command): Adjust to validate_actionline prototype
10301 change.
10302 * tracepoint.h (decode_agent_options, decode_agent_options)
10303 (encode_actions, validate_actionline): Change prototypes.
10304 * valprint.h (output_command): Delete declaration.
10305 (output_command_const): Declare.
10306 * value.c (function_destroyer): Cast const away in xfree call.
10307
10308 2013-03-13 Pedro Alves <palves@redhat.com>
10309
10310 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10311 rather than casting 'const char * const *' to 'const char **'.
10312 * ada-lex.l (processInt): Make "trailer" local const. Remove
10313 'const char **' cast.
10314 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10315 locals, and use those as strtol output pointer, instead than doing
10316 invalid casts to from 'const char **' to 'char **'.
10317 (_initialize_demangle): Remove cast.
10318 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10319 locals, and use those as strtol output pointer, instead than doing
10320 invalid casts to from 'const char **' to 'char **'.
10321 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10322 casts.
10323 * stap-probe.c (stap_parse_register_operand)
10324 (stap_parse_single_operand): Likewise.
10325
10326 2013-03-13 Yao Qi <yao@codesourcery.com>
10327
10328 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10329 the last matched 'V' blcok in trace frame.
10330
10331 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10332
10333 * NEWS: Create a new section for the next release branch.
10334 Rename the section of the current branch, now that it has
10335 been cut.
10336
10337 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10338
10339 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10340 * version.in: Bump version to 7.6.50.20130312-cvs.
10341
10342 2013-03-12 Keith Seitz <keiths@redhat.com>
10343
10344 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10345 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10346 Remove temporary copy of input string.
10347 (mi_execute_command_wrapper): Make "cmd" const.
10348 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10349 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10350 Use const strings.
10351 (mi_parse): Make "cmd" const.
10352 Use const strings.
10353 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10354
10355 2013-03-12 Keith Seitz <keiths@redhat.com>
10356
10357 * ada-lang.c (ada_read_renaming_var_value): Pass const
10358 pointer to expression string to parse_exp_1.
10359 (create_excep_cond_exprs): Likewise.
10360 * ax-gdb.c (agent_eval_command_one): Likewise.
10361 (maint_agent_printf_command): Likewise.
10362 Constify much of the string handling/parsing.
10363 * breakpoint.c (set_breakpoint_condition): Pass const
10364 pointer to expression string to parse_exp_1.
10365 (update_watchpoint): Likewise.
10366 (parse_cmd_to_aexpr): Constify string handling.
10367 Pass const pointer to parse_exp_1.
10368 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10369 (find_condition_and_thread): Likewise.
10370 Make TOK const.
10371 (watch_command_1): Make "arg" const.
10372 Constify string handling.
10373 Copy the expression string instead of changing the input
10374 string.
10375 (update_breakpoint_location): Pass const pointer to
10376 parse_exp_1.
10377 * eval.c (parse_and_eval_address): Make "exp" const.
10378 (parse_to_comma_and_eval): Make "expp" const.
10379 (parse_and_eval): Make "exp" const.
10380 * expression.h (parse_expression): Make argument const.
10381 (parse_exp_1): Make first argument const.
10382 * findcmd.c (parse_find_args): Treat "args" as const.
10383 * linespec.c (parse_linespec): Pass const pointer to
10384 linespec_expression_to_pc.
10385 (linespec_expression_to_pc): Make "exp_ptr" const.
10386 * parse.c (parse_exp_1): Make "stringptr" const.
10387 Make a copy of the expression to pass to parse_exp_in_context until
10388 this whole interface can be constified.
10389 (parse_expression): Make "string" const.
10390 * printcmd.c (ui_printf): Treat "arg" as const.
10391 Handle const strings.
10392 * tracepoint.c (validate_actionline): Pass const pointer to
10393 all calls to parse_exp_1.
10394 (encode_actions_1): Likewise.
10395 * value.h (parse_to_comma_and_eval): Make argument const.
10396 (parse_and_eval_address): Likewise.
10397 (parse_and_eval): Likewise.
10398 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10399 (varobj_set_value): Likewise.
10400 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10401 constify string handling.
10402 Pass const pointers to parse_and_eval_address and
10403 parse_to_comman_and_eval.
10404 * cli/cli-utils.c (skip_to_space): Rename to ...
10405 (skip_to_space_const): ... this. Handle const strings.
10406 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10407 skip_to_space_const.
10408 (skip_to_space_const): Declare.
10409 * common/format.c (parse_format_string): Make "arg" const.
10410 Handle const strings.
10411 * common/format.h (parse_format_string): Make "arg" const.
10412 * gdbserver/ax.c (ax_printf): Make "format" const.
10413 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10414 of the expression string.
10415
10416 2013-03-12 Hui Zhu <hui@codesourcery.com>
10417
10418 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10419
10420 2013-03-12 Yao Qi <yao@codesourcery.com>
10421 Hui Zhu <hui@codesourcery.com>
10422
10423 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10424 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10425 DW_OP_deref_size.
10426
10427 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10428
10429 * ada-lex.l (rules): Only recognize 'thread' as a
10430 delimiter when followed by numerals, as for c-exp.y.
10431 Use new rewind_to_char function to rewind the input for
10432 expression-delimiting tokens.
10433 (rewind_to_char): New function.
10434
10435 2013-03-11 Pedro Alves <palves@redhat.com>
10436 Jan Kratochvil <jan.kratochvil@redhat.com>
10437
10438 * configure: Regenerate.
10439 * configure.ac (check dynamic export flag): Link python test with
10440 $PYTHON_LIBS.
10441
10442 2013-03-11 Doug Evans <dje@google.com>
10443 Keith Seitz <keiths@redhat.com>
10444
10445 * linespec.c (find_linespec_symbols): Call find_function_symbols
10446 first, and then call lookup_prefix_sym/find_method.
10447
10448 2013-03-11 Pedro Alves <palves@redhat.com>
10449
10450 * charset.c (convert_between_encodings): Don't cast between
10451 different pointer to pointer types. Instead, make the 'inp' local
10452 be of the type iconv expects.
10453 (wchar_iterate): Don't cast between different pointer to pointer
10454 types. Instead, use new pointer local of the type iconv expects.
10455 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10456 Add new local of type char pointer, and use it to get a
10457 char/string view of the byte buffer, instead of casting between
10458 pointer to pointer types.
10459
10460 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10461
10462 * remote.c (remote_set_trace_buffer_size): Move != operator
10463 to the start of next line to fix an ARI warning.
10464
10465 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10466
10467 * NEWS: Add record changes.
10468
10469 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10470
10471 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10472 the instruction history disassembly.
10473 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10474 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10475
10476 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10477
10478 * Makefile.in (SFILES): Add record-btrace.c
10479 (COMMON_OBS): Add record-btrace.o
10480 * record-btrace.c: New.
10481 * objfiles.c: Include btrace.h.
10482 (free_objfile): call btrace_free_objfile.
10483
10484 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10485
10486 * target.c (target_call_history, target_call_history_from,
10487 target_call_history_range): New.
10488 * target.h (target_ops) <to_call_history, to_call_history_from,
10489 to_call_history_range>: New fields.
10490 (target_call_history, target_call_history_from,
10491 target_call_history_range): New declaration.
10492 * record.c (get_call_history_modifiers, cmd_record_call_history,
10493 record_call_history_size): New.
10494 (_initialize_record): Add the "record function-call-history" command.
10495 Add "set/show record function-call-history-size" commands.
10496 * record.h (record_print_flag): New.
10497
10498 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10499
10500 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10501 to_insn_history_range>: New fields.
10502 (target_insn_history): New.
10503 (target_insn_history_from): New.
10504 (target_insn_history_range): New.
10505 * target.c (target_insn_history): New.
10506 (target_insn_history_from): New.
10507 (target_insn_history_range): New.
10508 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10509 (record_insn_history_size): New.
10510 (get_insn_number): New.
10511 (get_context_size): New.
10512 (no_chunk): New.
10513 (get_insn_history_modifiers): New.
10514 (cmd_record_insn_history): New.
10515 (_initialize_record): Add "set/show record instruction-history-size"
10516 command. Add "record instruction-history" command.
10517
10518 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10519
10520 * record.h (record_disconnect): New.
10521 (record_detach): New.
10522 (record_mourn_inferior): New.
10523 (record_kill): New.
10524 * record-full.c (record_disconnect, record_detach,
10525 record_mourn_inferior, record_kill): Move to...
10526 * record.c: ...here.
10527 (DEBUG): New.
10528 (record_stop): New.
10529 (record_unpush): New.
10530 (cmd_record_stop): Call record_stop. Replace unpush_target
10531 call with record_unpush call.
10532 (record_disconnect, record_detach): Assert that the target
10533 is of record stratum. Call record_unpush, record_stop, and
10534 DEBUG.
10535 (record_mourn_inferior, record_kill): Assert that the target
10536 is of record stratum. Call record_unpush and DEBUG.
10537
10538 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10539
10540 * record-full.h, record-full.c (record_memory_query): Rename
10541 to ...
10542 (record_full_memory_query): ...this. Update all users.
10543 (record_arch_list_add_reg): Rename to ...
10544 (record_full_arch_list_add_reg): ...this. Update all users.
10545 (record_arch_list_add_mem): Rename to ...
10546 (record_full_arch_list_add_mem): ...this. Update all users.
10547 (record_arch_list_add_end): Rename to ...
10548 (record_full_arch_list_add_end): ...this. Update all users.
10549 (record_gdb_operation_disable_set): Rename to ...
10550 (record_full_gdb_operation_disable_set): ...this.
10551 Update all users.
10552
10553 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10554
10555 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10556 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10557 (RECORD_IS_REPLAY): Renamed to ...
10558 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10559 (RECORD_FILE_MAGIC): Renamed to ...
10560 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10561 (record_mem_entry): Renamed to ...
10562 (record_full_mem_entry): ... this. Updated all users.
10563 (record_reg_entry): Renamed to ...
10564 (record_full_reg_entry): ... this. Updated all users.
10565 (record_end_entry): Renamed to ...
10566 (record_full_end_entry): ... this. Updated all users.
10567 (record_type) <record_end, record_reg, record_mem>: Renamed
10568 to ...
10569 (record_full_type) <record_full_end, record_full_reg,
10570 record_full_mem>: ... this. Updated all users.
10571 (record_entry): Renamed to ...
10572 (record_full_entry): ... this. Updated all users.
10573 (record_core_buf_entry): Renamed to ...
10574 (record_full_core_buf_entry): ... this. Updated all users.
10575 (record_core_regbuf): Renamed to ...
10576 (record_full_core_regbuf): ... this. Updated all users.
10577 (record_core_start): Renamed to ...
10578 (record_full_core_start): ... this. Updated all users.
10579 (record_core_end): Renamed to ...
10580 (record_full_core_end): ... this. Updated all users.
10581 (record_core_buf_list): Renamed to ...
10582 (record_full_core_buf_list): ... this. Updated all users.
10583 (record_first): Renamed to ...
10584 (record_full_first): ... this. Updated all users.
10585 (record_list): Renamed to ...
10586 (record_full_list): ... this. Updated all users.
10587 (record_arch_list_head): Renamed to ...
10588 (record_full_arch_list_head): ... this. Updated all users.
10589 (record_arch_list_tail): Renamed to ...
10590 (record_full_arch_list_tail): ... this. Updated all users.
10591 (record_stop_at_limit): Renamed to ...
10592 (record_full_stop_at_limit): ... this. Updated all users.
10593 (record_insn_max_num): Renamed to ...
10594 (record_full_insn_max_num): ... this. Updated all users.
10595 (record_insn_num): Renamed to ...
10596 (record_full_insn_num): ... this. Updated all users.
10597 (record_insn_count): Renamed to ...
10598 (record_full_insn_count): ... this. Updated all users.
10599 (record_ops): Renamed to ...
10600 (record_full_ops): ... this. Updated all users.
10601 (record_core_ops): Renamed to ...
10602 (record_full_core_ops): ... this. Updated all users.
10603 (set_record_cmdlist): Renamed to ...
10604 (set_record_full_cmdlist): ... this. Updated all users.
10605 (show_record_cmdlist): Renamed to ...
10606 (show_record_full_cmdlist): ... this. Updated all users.
10607 (record_cmdlist): Renamed to ...
10608 (record_full_cmdlist): ... this. Updated all users.
10609 (record_beneath_to_resume_ops): Renamed to ...
10610 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10611 (record_beneath_to_resume): Renamed to ...
10612 (record_full_beneath_to_resume): ... this. Updated all users.
10613 (record_beneath_to_wait_ops): Renamed to ...
10614 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10615 (record_beneath_to_wait): Renamed to ...
10616 (record_full_beneath_to_wait): ... this. Updated all users.
10617 (record_beneath_to_store_registers_ops): Renamed to ...
10618 (record_full_beneath_to_store_registers_ops): ... this.
10619 Updated all users.
10620 (record_beneath_to_store_registers): Renamed to ...
10621 (record_full_beneath_to_store_registers): ... this.
10622 Updated all users.
10623 (record_beneath_to_xfer_partial_ops): Renamed to ...
10624 (record_full_beneath_to_xfer_partial_ops): ... this.
10625 Updated all users.
10626 (record_beneath_to_xfer_partial): Renamed to ...
10627 (record_full_beneath_to_xfer_partial): ... this.
10628 Updated all users.
10629 (record_beneath_to_insert_breakpoint): Renamed to ...
10630 (record_full_beneath_to_insert_breakpoint): ... this.
10631 Updated all users.
10632 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10633 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10634 Updated all users.
10635 (record_beneath_to_stopped_data_address): Renamed to ...
10636 (record_full_beneath_to_stopped_data_address): ... this.
10637 Updated all users.
10638 (record_beneath_to_async): Renamed to ...
10639 (record_full_beneath_to_async): ... this. Updated all users.
10640 (record_goto_insn): Renamed to ...
10641 (record_full_goto_insn): ... this. Updated all users.
10642 (record_save): Renamed to ...
10643 (record_full_save): ... this. Updated all users.
10644 (record_reg_alloc): Renamed to ...
10645 (record_full_reg_alloc): ... this. Updated all users.
10646 (record_reg_release): Renamed to ...
10647 (record_full_reg_release): ... this. Updated all users.
10648 (record_mem_alloc): Renamed to ...
10649 (record_full_mem_alloc): ... this. Updated all users.
10650 (record_mem_release): Renamed to ...
10651 (record_full_mem_release): ... this. Updated all users.
10652 (record_end_alloc): Renamed to ...
10653 (record_full_end_alloc): ... this. Updated all users.
10654 (record_end_release): Renamed to ...
10655 (record_full_end_release): ... this. Updated all users.
10656 (record_entry_release): Renamed to ...
10657 (record_full_entry_release): ... this. Updated all users.
10658 (record_list_release): Renamed to ...
10659 (record_full_list_release): ... this. Updated all users.
10660 (record_list_release_following): Renamed to ...
10661 (record_full_list_release_following): ... this.
10662 Updated all users.
10663 (record_list_release_first): Renamed to ...
10664 (record_full_list_release_first): ... this. Updated all users.
10665 (record_arch_list_add): Renamed to ...
10666 (record_full_arch_list_add): ... this. Updated all users.
10667 (record_get_loc): Renamed to ...
10668 (record_full_get_loc): ... this. Updated all users.
10669 (record_check_insn_num): Renamed to ...
10670 (record_full_check_insn_num): ... this. Updated all users.
10671 (record_arch_list_cleanups): Renamed to ...
10672 (record_full_arch_list_cleanups): ... this. Updated all users.
10673 (record_message): Renamed to ...
10674 (record_full_message): ... this. Updated all users.
10675 (record_message_wrapper): Renamed to ...
10676 (record_full_message_wrapper): ... this. Updated all users.
10677 (record_message_wrapper_safe): Renamed to ...
10678 (record_full_message_wrapper_safe): ... this. Updated all users.
10679 (record_gdb_operation_disable): Renamed to ...
10680 (record_full_gdb_operation_disable): ... this. Updated all users.
10681 (record_hw_watchpoint): Renamed to ...
10682 (record_full_hw_watchpoint): ... this. Updated all users.
10683 (record_exec_insn): Renamed to ...
10684 (record_full_exec_insn): ... this. Updated all users.
10685 (record_restore): Renamed to ...
10686 (record_full_restore): ... this. Updated all users.
10687 (record_async_inferior_event_token): Renamed to ...
10688 (record_full_async_inferior_event_token): ... this.
10689 Updated all users.
10690 (record_async_inferior_event_handler): Renamed to ...
10691 (record_full_async_inferior_event_handler): ... this.
10692 Updated all users.
10693 (record_core_open_1): Renamed to ...
10694 (record_full_core_open_1): ... this. Updated all users.
10695 (record_open_1): Renamed to ...
10696 (record_full_open_1): ... this. Updated all users.
10697 (record_open): Renamed to ...
10698 (record_full_open): ... this. Updated all users.
10699 (record_close): Renamed to ...
10700 (record_full_close): ... this. Updated all users.
10701 (record_resume_step): Renamed to ...
10702 (record_full_resume_step): ... this. Updated all users.
10703 (record_resumed): Renamed to ...
10704 (record_full_resumed): ... this. Updated all users.
10705 (record_execution_dir): Renamed to ...
10706 (record_full_execution_dir): ... this. Updated all users.
10707 (record_resume): Renamed to ...
10708 (record_full_resume): ... this. Updated all users.
10709 (record_get_sig): Renamed to ...
10710 (record_full_get_sig): ... this. Updated all users.
10711 (record_sig_handler): Renamed to ...
10712 (record_full_sig_handler): ... this. Updated all users.
10713 (record_wait_cleanups): Renamed to ...
10714 (record_full_wait_cleanups): ... this. Updated all users.
10715 (record_wait_1): Renamed to ...
10716 (record_full_wait_1): ... this. Updated all users.
10717 (record_wait): Renamed to ...
10718 (record_full_wait): ... this. Updated all users.
10719 (record_stopped_by_watchpoint): Renamed to ...
10720 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10721 (record_disconnect): Renamed to ...
10722 (record_full_disconnect): ... this. Updated all users.
10723 (record_detach): Renamed to ...
10724 (record_full_detach): ... this. Updated all users.
10725 (record_mourn_inferior): Renamed to ...
10726 (record_full_mourn_inferior): ... this. Updated all users.
10727 (record_kill): Renamed to ...
10728 (record_full_kill): ... this. Updated all users.
10729 (record_stopped_data_address): Renamed to ...
10730 (record_full_stopped_data_address): ... this. Updated all users.
10731 (record_registers_change): Renamed to ...
10732 (record_full_registers_change): ... this. Updated all users.
10733 (record_store_registers): Renamed to ...
10734 (record_full_store_registers): ... this. Updated all users.
10735 (record_xfer_partial): Renamed to ...
10736 (record_full_xfer_partial): ... this. Updated all users.
10737 (record_breakpoint): Renamed to ...
10738 (record_full_breakpoint): ... this. Updated all users.
10739 (record_breakpoint_p): Renamed to ...
10740 (record_full_breakpoint_p): ... this. Updated all users.
10741 (record_breakpoints): Renamed to ...
10742 (record_full_breakpoints): ... this. Updated all users.
10743 (record_sync_record_breakpoints): Renamed to ...
10744 (record_full_sync_record_breakpoints): ... this.
10745 Updated all users.
10746 (record_init_record_breakpoints): Renamed to ...
10747 (record_full_init_record_breakpoints): ... this.
10748 Updated all users.
10749 (record_insert_breakpoint): Renamed to ...
10750 (record_full_insert_breakpoint): ... this. Updated all users.
10751 (record_remove_breakpoint): Renamed to ...
10752 (record_full_remove_breakpoint): ... this. Updated all users.
10753 (record_can_execute_reverse): Renamed to ...
10754 (record_full_can_execute_reverse): ... this. Updated all users.
10755 (record_get_bookmark): Renamed to ...
10756 (record_full_get_bookmark): ... this. Updated all users.
10757 (record_goto_bookmark): Renamed to ...
10758 (record_full_goto_bookmark): ... this. Updated all users.
10759 (record_async): Renamed to ...
10760 (record_full_async): ... this. Updated all users.
10761 (record_can_async_p): Renamed to ...
10762 (record_full_can_async_p): ... this. Updated all users.
10763 (record_is_async_p): Renamed to ...
10764 (record_full_is_async_p): ... this. Updated all users.
10765 (record_execution_direction): Renamed to ...
10766 (record_full_execution_direction): ... this. Updated all users.
10767 (record_info): Renamed to ...
10768 (record_full_info): ... this. Updated all users.
10769 (record_delete): Renamed to ...
10770 (record_full_delete): ... this. Updated all users.
10771 (record_is_replaying): Renamed to ...
10772 (record_full_is_replaying): ... this. Updated all users.
10773 (record_goto_entry): Renamed to ...
10774 (record_full_goto_entry): ... this. Updated all users.
10775 (record_goto_begin): Renamed to ...
10776 (record_full_goto_begin): ... this. Updated all users.
10777 (record_goto_end): Renamed to ...
10778 (record_full_goto_end): ... this. Updated all users.
10779 (record_goto): Renamed to ...
10780 (record_full_goto): ... this. Updated all users.
10781 (init_record_ops): Renamed to ...
10782 (init_record_full_ops): ... this. Updated all users.
10783 (record_core_resume): Renamed to ...
10784 (record_full_core_resume): ... this. Updated all users.
10785 (record_core_kill): Renamed to ...
10786 (record_full_core_kill): ... this. Updated all users.
10787 (record_core_fetch_registers): Renamed to ...
10788 (record_full_core_fetch_registers): ... this. Updated all users.
10789 (record_core_prepare_to_store): Renamed to ...
10790 (record_full_core_prepare_to_store): ... this. Updated all users.
10791 (record_core_store_registers): Renamed to ...
10792 (record_full_core_store_registers): ... this. Updated all users.
10793 (record_core_xfer_partial): Renamed to ...
10794 (record_full_core_xfer_partial): ... this. Updated all users.
10795 (record_core_insert_breakpoint): Renamed to ...
10796 (record_full_core_insert_breakpoint): ... this. Updated all users.
10797 (record_core_remove_breakpoint): Renamed to ...
10798 (record_full_core_remove_breakpoint): ... this. Updated all users.
10799 (record_core_has_execution): Renamed to ...
10800 (record_full_core_has_execution): ... this. Updated all users.
10801 (init_record_core_ops): Renamed to ...
10802 (init_record_full_core_ops): ... this. Updated all users.
10803 (cmd_record_restore): Renamed to ...
10804 (cmd_record_full_restore): ... this. Updated all users.
10805 (record_save_cleanups): Renamed to ...
10806 (record_full_save_cleanups): ... this. Updated all users.
10807 (cmd_record_start): Renamed to ...
10808 (cmd_record_full_start): ... this. Updated all users.
10809 (set_record_insn_max_num): Renamed to ...
10810 (set_record_full_insn_max_num): ... this. Updated all users.
10811 (set_record_command): Renamed to ...
10812 (set_record_full_command): ... this. Updated all users.
10813 (show_record_command): Renamed to ...
10814 (show_record_full_command): ... this. Updated all users.
10815 (_initialize_record): Renamed to ...
10816 (_initialize_record_full): ... this. Updated all users.
10817
10818 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10819
10820 * record.h: Split into this and ...
10821 * record-full.h: ... this.
10822 * record.c: Split into this and ...
10823 * record-full.c: ... this.
10824 * target.h (target_ops): Add new fields to_info_record,
10825 to_save_record, to_delete_record, to_record_is_replaying,
10826 to_goto_record_begin, to_goto_record_end, to_goto_record.
10827 (target_info_record): New.
10828 (target_save_record): New.
10829 (target_supports_delete_record): New.
10830 (target_delete_record): New.
10831 (target_record_is_replaying): New.
10832 (target_goto_record_begin): New.
10833 (target_goto_record_end): New.
10834 (target_goto_record): New.
10835 * target.c (target_info_record): New.
10836 (target_save_record): New.
10837 (target_supports_delete_record): New.
10838 (target_delete_record): New.
10839 (target_record_is_replaying): New.
10840 (target_goto_record_begin): New.
10841 (target_goto_record_end): New.
10842 (target_goto_record): New.
10843 * record.h: Declare struct cmd_list_element.
10844 (record_cmdlist): New declaration.
10845 (set_record_cmdlist): New declaration.
10846 (show_record_cmdlist): New declaration.
10847 (info_record_cmdlist): New declaration.
10848 (cmd_record_goto): New declaration.
10849 * record.c: Remove unnecessary includes.
10850 Include inferior.h.
10851 (cmd_record_goto): Remove declaration.
10852 (record_cmdlist): Now extern. Initialize.
10853 (set_record_cmdlist): Now extern. Initialize.
10854 (show_record_cmdlist): Now extern. Initialize.
10855 (info_record_cmdlist): Now extern. Initialize.
10856 (find_record_target): New.
10857 (require_record_target): New.
10858 (cmd_record_start): Update.
10859 (cmd_record_delete): Remove target-specific code.
10860 Call target_delete_record.
10861 (cmd_record_stop): Unpush any record target.
10862 (set_record_insn_max_num): Move to record-full.c
10863 (set_record_command): Add comment.
10864 (show_record_command): Add comment.
10865 (info_record_command): Update comment.
10866 Remove target-specific code.
10867 Call the record target's to_info_record.
10868 (cmd_record_start): New.
10869 (cmd_record_goto): Now extern.
10870 Remove target-specific code.
10871 Call target_goto_begin, target_goto_end, or target_goto.
10872 (_initialize_record): Move record target ops initialization to
10873 record-full.c.
10874 Change "record" command help text.
10875 Move "record restore", "record set", and "record show" commands to
10876 record-full.c.
10877 * Makefile.in (SFILES): Add record-full.c.
10878 (HFILES_NO_SRCDIR): Add record-full.h.
10879 (COMMON_OBS): Add record-full.o.
10880 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10881 * arm-tdep.c: Include record-full.h.
10882 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10883 * i386-tdep.c: Include record-full.h.
10884 * infrun.c: Include record-full.h.
10885 * linux-record.c: Include record-full.h.
10886 * moxie-tdep.c: Include record-full.h.
10887 * record-full.c: Include record-full.h.
10888 Change module comment.
10889 (set_record_full_cmdlist): New.
10890 (show_record_full_cmdlist): New.
10891 (record_full_cmdlist): New.
10892 (record_goto_insn): New declaration.
10893 (record_save): New declaration.
10894 (record_check_insn_num): Change query string.
10895 (record_info): New.
10896 (record_delete): New.
10897 (record_is_replaying): New.
10898 (record_goto_entry): New.
10899 (record_goto_begin): New.
10900 (record_goto_end): New.
10901 (record_goto): New.
10902 (init_record_ops): Update.
10903 (init_record_core_ops): Update.
10904 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10905 (cmd_record_start): New.
10906 (set_record_insn_max_num): Moved from record.c
10907 (set_record_full_command): New.
10908 (show_record_full_command): New.
10909 (_initialize_record_full): New.
10910
10911 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10912
10913 * target.h (add_deprecated_target_alias): New.
10914 * target.c (add_deprecated_target_alias): New.
10915
10916 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10917
10918 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10919 and signal.h.
10920 (linux_supports_btrace): Add kernel and
10921 cpuid check.
10922 (kernel_supports_btrace): New function.
10923 (cpu_supports_btrace): New function.
10924 (intel_supports_btrace): New function.
10925
10926 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10927
10928 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10929 * remote.c: Include btrace.h.
10930 (struct btrace_target_info): New struct.
10931 (remote_supports_btrace): New function.
10932 (send_Qbtrace): New function.
10933 (remote_enable_btrace): New function.
10934 (remote_disable_btrace): New function.
10935 (remote_teardown_btrace): New function.
10936 (remote_read_btrace): New function.
10937 (init_remote_ops): Add btrace ops.
10938 (enum <unnamed>): Add btrace packets.
10939 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10940 (_initialize_remote): Add packet configuration for branch tracing.
10941
10942 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * features/btrace.dtd: New file.
10945 * Makefile.in (XMLFILES): Add btrace.dtd.
10946 * btrace.h (parse_xml_btrace): New declaration.
10947 * btrace.c: Include xml-support.h.
10948 (parse_xml_btrace): New function.
10949 (parse_xml_btrace_block): New function.
10950 (block_attributes): New struct.
10951 (btrace_attributes): New struct.
10952 (btrace_children): New struct.
10953 (btrace_elements): New struct.
10954
10955 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10956
10957 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10958 (amd64_linux_enable_btrace): New.
10959 (amd64_linux_disable_btrace): New.
10960 (amd64_linux_teardown_btrace): New.
10961 (_initialize_amd64_linux_nat): Initialize btrace ops.
10962 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10963 (i386_linux_enable_btrace): New.
10964 (i386_linux_disable_btrace): New.
10965 (i386_linux_teardown_btrace): New.
10966 (_initialize_i386_linux_nat): Initialize btrace ops.
10967 * config/i386/linux.mh: Add linux-btrace.o.
10968 * config/i386/linux64.mh: Add linux-btrace.o.
10969
10970 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10971
10972 * common/linux_btrace.h: New file.
10973 * common/linux_btrace.c: New file.
10974 * Makefile.in (SFILES): Add btrace.c.
10975 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10976 (COMMON_OBS): Add btrace.o.
10977 (linux-btrace.o): New rule.
10978
10979 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10980
10981 * target.h: Include btrace.h.
10982 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10983 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10984 * target.c (target_supports_btrace): New function.
10985 (target_enable_btrace): New function.
10986 (target_disable_btrace): New function.
10987 (target_teardown_btrace): New function.
10988 (target_read_btrace): New function.
10989 * btrace.h: New file.
10990 * btrace.c: New file.
10991 * Makefile.in: Add btrace.c.
10992 * gdbthread.h: Include btrace.h.
10993 (struct thread_info): Add btrace field.
10994 * thread.c: Include btrace.h.
10995 (clear_thread_inferior_resources): Call target_teardown_btrace.
10996 * common/btrace-common.h: New file.
10997
10998 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10999
11000 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
11001 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
11002 kill_status to outer block.
11003
11004 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11005
11006 Fix entry-values if the callee called a noreturn function.
11007 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11008 get_frame_address_in_block. Add new comment.
11009
11010 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11011
11012 Fix entry-values in C++ across CUs.
11013 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
11014 lookup_minimal_symbol. Add a comment.
11015 * dwarf2read.c
11016 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
11017 DW_AT_linkage_name.
11018
11019 2013-03-08 Yao Qi <yao@codesourcery.com>
11020
11021 * tracepoint.c (_initialize_tracepoint): Indent the code.
11022
11023 2013-03-08 Pedro Alves <palves@redhat.com>
11024
11025 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
11026 (parse_find_args, find_command): Change type of pattern buffer
11027 locals to 'gdb_byte *'.
11028
11029 2013-03-08 Stan Shebs <stan@codesourcery.com>
11030 Hafiz Abid Qadeer <abidh@codesourcery.com>
11031
11032 * NEWS: Mention set and show trace-buffer-size commands.
11033 Mention new packet.
11034 * target.h (struct target_ops): New method
11035 to_set_trace_buffer_size.
11036 (target_set_trace_buffer_size): New macro.
11037 * target.c (update_current_target): Set up new method.
11038 * tracepoint.c (trace_buffer_size): New global.
11039 (start_tracing): Send it to the target.
11040 (set_trace_buffer_size): New function.
11041 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
11042 * remote.c (remote_set_trace_buffer_size): New function.
11043 (_initialize_remote): Use it.
11044 (QTBuffer:size) New remote command.
11045 (PACKET_QTBuffer_size): New enum.
11046 (remote_protocol_features): Add an entry for
11047 PACKET_QTBuffer_size.
11048
11049 2013-03-08 Tom Tromey <tromey@redhat.com>
11050
11051 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
11052 variable.
11053
11054 2013-03-07 Pedro Alves <palves@redhat.com>
11055
11056 * target.c (target_read_stralloc, target_fileio_read_alloc):
11057 *Cast pointer to 'gdb_byte *' in target call.
11058
11059 2013-03-07 Pedro Alves <palves@redhat.com>
11060
11061 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
11062 call.
11063
11064 2013-03-07 Keith Seitz <keiths@redhat.com>
11065
11066 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
11067 (trace_pass_command): Likewise.
11068 * cli/cli-cmds.c: Include cli/cli-utils.h.
11069 (source_command): Use skip-spaces.
11070 (disassemble_command): Likewise.
11071 * findcmd.c: Include cli/cli-utils.h.
11072 (parse_find_args): Use skip_spaces.
11073 * go32-nat.c: Include cli/cli-utils.h.
11074 (go32_sldt): Use skip_spaces.
11075 (go32_sgdt): Likewise.
11076 (go32_sidt): Likewise.
11077 (go32_pde): Likewise.
11078 (go32_pte): Likewise.
11079 (go32_pte_for_address): Likewise.
11080 * infcmd.c: Include cli/cli-utils.h.
11081 (registers_info): Use skip_spaces.
11082 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11083 (linux_info_proc): Likewise.
11084 * linux-thread-db.c: Include cli/cli-utils.h.
11085 (info_auto_load_libthread_db): Use skip_spaces_const.
11086 * m32r-rom.c: Include cli/cli-utils.h.
11087 (m32r_upload_command): Use skip_spaces.
11088 * maint.c: Include cli/cli-utils.h.
11089 (maintenance_translate_address): Use skip_spaces.
11090 * mi/mi-parse.c: Include cli/cli-utils.h.
11091 (mi_parse_argv): Use skip_spaces.
11092 (mi_parse): Likewise.
11093 * minsyms.c: Include cli/cli-utils.h.
11094 (msymbol_hash_iw): Use skip_spaces_const.
11095 * objc-lang.c: Include cli/cli-utils.h.
11096 (parse_selector): Use skip_spaces.
11097 (parse_method): Likewise.
11098 * python/python.c: Include cli/cli-utils.h.
11099 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11100 (python_command)[HAVE_PYTHON]: Likewise.
11101 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11102 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11103 (m32r_load): Use skip_spaces.
11104 * serial.c: Include cli/cli-utils.h.
11105 (serial_open): Use skip_spaces_const.
11106 * stack.c: Include cli/cli-utils.h.
11107 (parse_frame_specification_1): Use skip_spaces_const.
11108 * symfile.c: Include cli/cli-utils.h.
11109 (set_ext_lang_command): Use skip_spaces.
11110 * symtab.c: Include cli/cli-utils.h.
11111 (rbreak_command): Use skip_spaces.
11112 * thread.c (thread_name_command): Use skip_spaces.
11113 * tracepoint.c (validate_actionline): Use skip_spaces.
11114 (encode_actions_1): Likewise.
11115 (trace_find_range_command): Likewise.
11116 (trace_find_outside_command): Likewise.
11117 (trace_dump_actions): Likewise.
11118
11119 2013-03-07 Pedro Alves <palves@redhat.com>
11120
11121 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11122 * expprint.c (print_subexp_standard): Likewise.
11123 * utils.c (host_char_to_target): Likewise.
11124 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11125 * varobj.c (value_get_print_value): Change type of local to char*.
11126 Cast it gdb_byte * in call to language printer.
11127
11128 2013-03-07 Pedro Alves <palves@redhat.com>
11129
11130 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11131 gdb_byte *'.
11132 (make_wchar_iterator): Remove cast to char*.
11133 (wchar_iterate): Change type of local.
11134
11135 2013-03-07 Pedro Alves <palves@redhat.com>
11136
11137 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11138 for 'regcache->register_status'.
11139
11140 2013-03-07 Pedro Alves <palves@redhat.com>
11141
11142 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11143 int.
11144
11145 2013-03-07 Pedro Alves <palves@redhat.com>
11146
11147 * stap-probe.c (handle_stap_probe): Add cast to char*.
11148
11149 2013-03-07 Pedro Alves <palves@redhat.com>
11150
11151 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11152 RECORD_MSGRCV>: Pass a signed variable to
11153 regcache_raw_read_signed, instead of an unsigned one.
11154
11155 2013-03-07 Pedro Alves <palves@redhat.com>
11156
11157 * remote-notif.c (notif_debug): Change type to int.
11158 * remote-notif.h (notif_debug): Likewise.
11159
11160 2013-03-07 Pedro Alves <palves@redhat.com>
11161
11162 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11163
11164 2013-03-07 Pedro Alves <palves@redhat.com>
11165
11166 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11167 * remote.h (hex2bin, bin2hex): ... here.
11168 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11169
11170 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11171
11172 * utils.c (initialize_utils): Improve doc strings of "set/show
11173 width", "set/show height", and "set/show pagination".
11174
11175 2013-03-06 Keith Seitz <keiths@redhat.com>
11176
11177 * ax-gdb.c (gen_printf): Make FORMAT const.
11178 * ax-gdb.h (gen_printf): Likewise.
11179 * ax-general.c (ax_string): Make STR const.
11180 * ax.h (ax_string): Likewise.
11181
11182 2013-03-06 Doug Evans <dje@google.com>
11183
11184 * elfread.c (elf_symfile_read): Move debugging printf to more
11185 logical location.
11186
11187 2013-03-06 Pedro Alves <palves@redhat.com>
11188
11189 * python/py-utils.c (target_string_to_unicode): Delete function.
11190 * python/python-internal.h (target_string_to_unicode): Delete
11191 declaration.
11192
11193 2013-03-06 Pierre Muller <muller@sourceware.org>
11194
11195 * linespec.c (get_current_search_block): ARI fix, use (void)
11196 for empty parameter list.
11197
11198 2013-03-05 Doug Evans <dje@google.com>
11199
11200 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11201 of old ada_lookup_symbol_list. In !full_search case, don't
11202 search superblocks.
11203 (ada_lookup_symbol_list): Delete arg full_search, all callers
11204 updated. Call ada_lookup_symbol_list_worker.
11205 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11206 * ada-lang.h (ada_lookup_symbol_list): Update.
11207 * language.h (language_defn): Update comment for
11208 la_iterate_over_symbols.
11209 * linespec.c (iterate_over_file_blocks): New function.
11210 (iterate_over_all_matching_symtabs): Call it.
11211 (lookup_prefix_sym): Ditto.
11212 (get_current_search_block): New function.
11213 (get_search_block): Delete.
11214 (find_label_symbols): Call get_current_search_block.
11215 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11216 * symtab.c (iterate_over_symbols): Don't search superblocks.
11217
11218 2013-03-05 Yao Qi <yao@codesourcery.com>
11219
11220 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11221 parameter VAR's type from "unsigned int" to "int".
11222 * command.h (var_zuinteger_unlimited): Update its comments.
11223 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11224
11225 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11226
11227 * NEWS: Mention new target x86_64-*-cygwin*.
11228
11229 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11230
11231 * configure.host: Add x86_64-*-cygwin* as host.
11232 * configure.tgt: Add x86_64-*-cygwin* as target.
11233 * config/i386/cygwin64.mh: New file.
11234
11235 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11236
11237 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11238
11239 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11240
11241 * linespec.c (struct linespec_canonical_name): New.
11242 (struct linespec_state): Change canonical_names type to it.
11243 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11244 xrealloc element size. Initialize the different CANONICAL fields.
11245 (canonical_to_fullform): New.
11246 (filter_results): Use it. Add variables canonical, fullform and
11247 cleanup.
11248 (struct decode_line_2_item, decode_line_2_compare_items): New.
11249 (decode_line_2): Remove variables iter and item_names, add variables
11250 items and items_count. Modify the code for these new variables.
11251
11252 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11253
11254 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11255 calling do_cleanup.
11256
11257 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11258
11259 * tracepoint.c (build_traceframe_info): Add code for byte order.
11260
11261 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11262
11263 * v850-tdep.c: (v850e2_register_name): Revise system register
11264 names to match current V850E2M architecture specifications.
11265 Update register number enum comments too.
11266
11267 2013-03-01 Jiong Wang <jiwang@tilera.com>
11268 Pedro Alves <palves@redhat.com>
11269
11270 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11271 to END_ADDR.
11272 (tilegx_skip_prologue): Limit prologue analysis to section end.
11273
11274 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11275
11276 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11277 use it.
11278
11279 2013-03-01 Pedro Alves <palves@redhat.com>
11280
11281 Use gdb_byte for bytes from the program being debugged.
11282
11283 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11284 Change type of local 'buf' to gdb_byte.
11285 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11286 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11287 * cris-tdep.c (cris_sigcontext_addr)
11288 (cris_sigtramp_frame_unwind_cache): Likewise.
11289 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11290 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11291 Likewise.
11292 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11293 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11294 (hppa32_hpux_search_dummy_call_sequence)
11295 (hppa_hpux_supply_save_state): Likewise.
11296 * hppa-linux-tdep.c (insns_match_pattern)
11297 (hppa_linux_find_global_pointer): Likewise.
11298 * hppa-tdep.c (hppa_in_function_epilogue_p)
11299 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11300 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11301 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11302 (i386fbsd_collect_uthread): Likewise.
11303 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11304 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11305 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11306 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11307 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11308 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11309 (ia64_libunwind_frame_prev_register)
11310 (ia64_libunwind_sigtramp_frame_this_id)
11311 (ia64_find_global_pointer_from_dynamic_section)
11312 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11313 (ia64_unwind_pc): Likewise.
11314 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11315 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11316 (m68hc11_extract_return_value): Likewise.
11317 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11318 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11319 (mep_get_insn, mep_push_dummy_call): Likewise.
11320 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11321 (mips_linux_in_dynsym_stub): Likewise.
11322 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11323 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11324 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11325 to gdb_byte.
11326 * remote-mips.c (mips_set_register): Likewise.
11327 * remote-sim.c (gdbsim_fetch_register): Likewise.
11328 * score-tdep.c (score7_fetch_inst): Change type of parameter
11329 'memblock' and local 'buf' to gdb_byte.
11330 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11331 Change type of local 'buf' to gdb_byte. Adjust.
11332 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11333 to gdb_byte**.
11334 (score7_analyze_prologue): Change type of 'memblock' and
11335 'memblock_ptr' locals to gdb_byte*.
11336 * sh64-tdep.c (sh64_extract_return_value)
11337 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11338 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11339 * solib-pa64.c (pa64_solib_create_inferior_hook)
11340 (pa64_open_symbol_file_object): Remove local 'buf'.
11341 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11342 (som_open_symbol_file_object): Likewise.
11343 * solib-spu.c (spu_current_sos): Likewise.
11344 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11345 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11346 (spu_store_registers): Likewise.
11347 * target.c (debug_print_register): Likewise.
11348 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11349 * xstormy16-tdep.c (xstormy16_store_return_value)
11350 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11351 (xstormy16_find_jmp_table_entry): Likewise.
11352
11353 2013-03-01 Jiong Wang <jiwang@tilera.com>
11354
11355 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11356 (tilegx_gdbarch_init): Install it.
11357
11358 2013-02-28 Tom Tromey <tromey@redhat.com>
11359
11360 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11361 PyLong_Check.
11362
11363 2013-02-28 Doug Evans <dje@google.com>
11364
11365 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11366 * python/python.c (gdbpy_find_pc_line): Ditto.
11367
11368 2013-02-28 Tom Tromey <tromey@redhat.com>
11369
11370 * contrib/excheck.py: New file.
11371 * contrib/exsummary.py: New file.
11372 * contrib/gcc-with-excheck: New file.
11373
11374 2013-02-28 Tom Tromey <tromey@redhat.com>
11375
11376 * python/python.c (gdbpy_print_stack): Call begin_line and
11377 fprintf_filtered inside TRY_CATCH.
11378
11379 2013-02-28 Tom Tromey <tromey@redhat.com>
11380
11381 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11382 inside TRY_CATCH.
11383
11384 2013-02-28 Tom Tromey <tromey@redhat.com>
11385
11386 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11387 frame_object_to_frame_info inside TRY_CATCH.
11388
11389 2013-02-28 Tom Tromey <tromey@redhat.com>
11390
11391 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11392 TRY_CATCH.
11393
11394 2013-02-28 Tom Tromey <tromey@redhat.com>
11395
11396 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11397
11398 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11399
11400 * windows-nat.c: Throughout, fix format strings and casts of
11401 printf-like functions to avoid type related warnings on all
11402 platforms.
11403 (handle_output_debug_string): Fetch context information address
11404 from debug string using string_to_core_addr.
11405
11406 2013-02-27 Jiong Wang <jiwang@tilera.com>
11407
11408 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11409 * regformats/reg-tilegx32.dat: New.
11410
11411 2013-02-27 Jiong Wang <jiwang@tilera.com>
11412
11413 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11414
11415 2013-02-27 Jiong Wang <jiwang@tilera.com>
11416
11417 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11418
11419 2013-02-27 Yao Qi <yao@codesourcery.com>
11420 Pedro Alves <palves@redhat.com>
11421
11422 * tracepoint.c (tfile_trace_find): For tfind
11423 pc/tp/range/outside, look for the next trace frame instead of
11424 always starting from frame 0.
11425
11426 2013-02-26 Anthony Green <green@moxielogic.com>
11427
11428 * configure.tgt: Add support for moxie-*-rtems* target.
11429
11430 2013-02-25 Pedro Alves <palves@redhat.com>
11431
11432 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11433 warning text.
11434
11435 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11436
11437 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11438 if $fp is used as the virtual frame pointer.
11439
11440 2013-02-23 Alan Modra <amodra@gmail.com>
11441
11442 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11443 symbol size.
11444 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11445 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11446 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11447 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11448
11449 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11450
11451 Code cleanup.
11452 * elfread.c (build_id_bfd_get): Make the return type const.
11453 (build_id_verify): Make the check parameter const.
11454 (build_id_to_debug_filename): Make the build_id parameter and variable
11455 data const.
11456 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11457
11458 2013-02-21 Alan Modra <amodra@gmail.com>
11459
11460 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11461
11462 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11463
11464 Add a new method 'disassemble' to gdb.Architecture class.
11465 * python/py-arch.c (archpy_disassmble): Implementation of the
11466 new method gdb.Architecture.disassemble.
11467 (arch_object_methods): Add entry for the new method.
11468
11469 2013-02-20 Jiong Wang <jiwang@tilera.com>
11470
11471 * MAINTAINERS (Write After Approval): Add myself to the list.
11472
11473 2013-02-19 Pedro Alves <palves@redhat.com>
11474
11475 Garbage collect 'struct monitor_ops'::load_routine.
11476
11477 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11478 * monitor.c (monitor_load): No longer call
11479 current_monitor->load_routine.
11480 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11481 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11482 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11483
11484 2013-02-19 Pedro Alves <palves@redhat.com>
11485
11486 PR gdb/15161
11487
11488 Harmonize with generic_load.
11489
11490 * monitor.c: Include "readline/readline.h".
11491 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11492 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11493 long/strtol for the 'load_offset' local. Error out if no argument
11494 is given or if too many arguments are given. Tilde expand the
11495 passed in file name.
11496
11497 2013-02-19 Kai Tietz <ktietz@redhat.com>
11498
11499 PR gdb/15161
11500 * symfile.c (load_section_data): Change type of load_offset
11501 to CORE_ADDR.
11502 (generic_load): User strtoulst instead of strtoul for conversion
11503 of load_offset.
11504
11505 2013-02-19 Jiong Wang <jiwang@tilera.com>
11506
11507 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11508 for return address, "lr" register, saved on stack.
11509 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11510 after we invoke tilegx_analyze_prologue.
11511
11512 2013-02-19 Jiong Wang <jiwang@tilera.com>
11513
11514 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11515
11516 2013-02-19 Jiong Wang <jiwang@tilera.com>
11517
11518 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11519
11520 2013-02-19 Jiong Wang <jiwang@tilera.com>
11521
11522 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11523 (tilegx_write_pc): New function.
11524 (tilegx_cannot_reference_register): Return zero if REGNO
11525 is TILEGX_FAULTNUM_REGNUM.
11526 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11527 (tilegx_register_name): Add handling of "faultnum" register.
11528 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11529 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11530 handling of TILEGX_FAULTNUM_REGNUM.
11531 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11532
11533 2013-02-19 Jiong Wang <jiwang@tilera.com>
11534
11535 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11536 should be aligned to 64bit.
11537
11538 2013-02-19 Kai Tietz <ktietz@redhat.com>
11539
11540 * windows-nat.c (windows_xfer_memory): Fix debug-output
11541 for LLP64.
11542
11543 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11544
11545 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11546 Don't check DSP register number if HAVE_DSP is not set.
11547
11548 2013-02-19 Alan Modra <amodra@gmail.com>
11549
11550 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11551 throughout file instead.
11552 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11553 Don't xmalloc return value.
11554 (build_id_verify): Similarly. Don't xfree.
11555 (build_id_to_debug_filename): Update.
11556 (find_separate_debug_file_by_buildid): Update, don't xfree.
11557
11558 2013-02-18 Tom Tromey <tromey@redhat.com>
11559
11560 PR gdb/15102:
11561 * dwarf2read.c (read_subrange_type): Use result of
11562 'check_typedef'.
11563
11564 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11565
11566 * frame.c: Remove one extra white space after #include
11567 directive.
11568
11569 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11570
11571 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11572
11573 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11574
11575 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11576 and dir commands into an if block.
11577
11578 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11579
11580 * python/py-breakpoint (struct pybp_code): Use int instead of
11581 enum type_code.
11582
11583 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11584 Hafiz Abid Qadeer <abidh@codesourcery.com>
11585
11586 * NEWS: Mention new field "trace-file".
11587 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11588 (tfile_open): Record the trace file's filename in the trace
11589 status.
11590 (tfile_files_info): Mention the name of the trace file.
11591 Check the "filename" field explicitely.
11592 (trace_status_command): Explicitely check "filename" field.
11593 (trace_find_command): Ditto.
11594 (trace_find_pc_command): Ditto.
11595 (trace_find_tracepoint_command): Ditto.
11596 (trace_find_line_command): Ditto.
11597 (trace_find_range_command): Ditto.
11598 (trace_find_outside_command): Ditto.
11599 * tracepoint.h (struct trace_status) <from_file>: Rename it
11600 to "filename" and make it hold the trace file's filename
11601 instead of a boolean.
11602 * remote.c (remote_get_trace_status): Initialize "filename"
11603 field with NULL instead of 0.
11604
11605 2013-02-15 Yao Qi <yao@codesourcery.com>
11606
11607 * remote.c: Fix a typo.
11608
11609 2013-02-14 Pierre Muller <muller@sourceware.org>
11610
11611 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11612
11613 2013-02-14 Pedro Alves <palves@redhat.com>
11614
11615 * utils.c (savestring): Don't #undef it. Move function to
11616 common/common-utils.c.
11617 * common/common-utils.c: Include gdb_string.h.
11618 (savestring): Move here from utils.c.
11619 * common/common-utils.h (savestring): Declare.
11620
11621 2013-02-14 Pedro Alves <palves@redhat.com>
11622
11623 * utils.c (savestring): Rename parameter 'size' to 'len'.
11624
11625 2013-02-14 Pedro Alves <palves@redhat.com>
11626 Yufeng Zhang <yufeng.zhang@arm.com>
11627
11628 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11629 (aarch64_inferior_data, struct aarch64_inferior_data):
11630 Delete.
11631 (struct aarch64_process_info): New.
11632 (aarch64_process_list): New global.
11633 (aarch64_find_process_pid, aarch64_add_process)
11634 (aarch64_process_info_get): New functions.
11635 (aarch64_inferior_data_get): Delete.
11636 (aarch64_process_info_get): New function.
11637 (aarch64_forget_process): New function.
11638 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11639 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11640 aarch64_get_debug_reg_state.
11641 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11642 instead of linux_nat_iterate_watchpoint_lwps.
11643 (aarch64_linux_new_fork): New function.
11644 (aarch64_linux_child_post_startup_inferior): Use
11645 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11646 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11647 (aarch64_linux_remove_hw_breakpoint)
11648 (aarch64_handle_aligned_watchpoint)
11649 (aarch64_handle_unaligned_watchpoint)
11650 (aarch64_linux_insert_watchpoint)
11651 (aarch64_linux_remove_watchpoint)
11652 (aarch64_linux_stopped_data_address): Adjust to pass the current
11653 process id to aarch64_debug_reg_state.
11654 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11655 linux_nat_new_fork hook, and aarch64_forget_process as
11656 linux_nat_forget_process hook; remove the call to
11657 register_inferior_data_with_cleanup.
11658
11659 2013-02-14 Pedro Alves <palves@redhat.com>
11660
11661 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11662 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11663 lval_memory.
11664
11665 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11666 Hafiz Abid Qadeer <abidh@codesourcery.com>
11667
11668 * tracepoint.h (validate_trace_state_variable_name): Declare.
11669 * tracepoint.c (validate_trace_state_variable_name): New.
11670 (trace_variable_command): Parse the trace state variable's name
11671 without using parse_expression. Do several validations.
11672 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11673 trace state variable's name with parse_expression. Validate it.
11674
11675 2013-02-14 Yao Qi <yao@codesourcery.com>
11676
11677 * infcmd.c (breakpoint_proceeded): Remove it.
11678
11679 2013-02-14 Yao Qi <yao@codesourcery.com>
11680
11681 * tracepoint.c (end_actions_pseudocommand): Make it static.
11682 (while_stepping_pseudocommand): Likewise.
11683 * tracepoint.h (end_actions_pseudocommand): Remove the
11684 declaration.
11685 (while_stepping_pseudocommand): Likewise.
11686
11687 2013-02-14 Yao Qi <yao@codesourcery.com>
11688
11689 * cli/cli-decode.c (help_cmd): Remove the declaration of
11690 "cmdlist".
11691 (help_all): Likewise.
11692
11693 2013-02-13 Pedro Alves <palves@redhat.com>
11694
11695 * amd64-linux-nat.c (update_debug_registers_callback):
11696 Update comment.
11697 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11698 iterate_over_lwps.
11699 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11700 i386_debug_reg_state.
11701 (amd64_linux_new_fork): New function.
11702 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11703 linux_nat_new_fork hook, and i386_forget_process as
11704 linux_nat_forget_process hook.
11705 * i386-linux-nat.c (update_debug_registers_callback):
11706 Update comment.
11707 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11708 iterate_over_lwps.
11709 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11710 i386_debug_reg_state.
11711 (i386_linux_new_fork): New function.
11712 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11713 linux_nat_new_fork hook, and i386_forget_process as
11714 linux_nat_forget_process hook.
11715 * i386-nat.c (i386_init_dregs): Delete.
11716 (i386_inferior_data, struct i386_inferior_data):
11717 Delete.
11718 (struct i386_process_info): New.
11719 (i386_process_list): New global.
11720 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11721 New functions.
11722 (i386_inferior_data_get): Delete.
11723 (i386_process_info_get): New function.
11724 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11725 (i386_forget_process): New function.
11726 (i386_cleanup_dregs): Rewrite.
11727 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11728 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11729 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11730 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11731 to i386_debug_reg_state.
11732 (i386_use_watchpoints): Don't register inferior data.
11733 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11734 adjust comment.
11735 (i386_forget_process): Declare.
11736 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11737 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11738 New static globals.
11739 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11740 (add_initial_lwp): New, factored out from ...
11741 (add_lwp): ... this. Don't check the number of lwps before
11742 calling linux_nat_new_thread.
11743 (linux_nat_iterate_watchpoint_lwps): Delete.
11744 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11745 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11746 forks and vforks.
11747 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11748 initial lwp.
11749 (linux_nat_kill, linux_nat_mourn_inferior): Call
11750 linux_nat_forget_process.
11751 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11752 (linux_nat_forget_process): New functions.
11753 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11754 type.
11755 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11756 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11757 types.
11758 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11759 (linux_nat_forget_process): New declarations.
11760
11761 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11762 (amd64fbsd_mourn_inferior): New function.
11763 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11764 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11765
11766 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11767
11768 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11769 Adding _().
11770
11771 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11772
11773 * aarch64-linux-nat.c (debug_reg_change_callback)
11774 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11775 %s and phex().
11776
11777 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11778
11779 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11780 with LONGEST.
11781
11782 2013-02-13 Pedro Alves <palves@redhat.com>
11783 Hafiz Abid Qadeer <abidh@codesourcery.com>
11784
11785 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11786
11787 2013-02-12 Tom Tromey <tromey@redhat.com>
11788
11789 PR symtab/11464:
11790 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11791 NAME return.
11792 (classify_inner_name): Remove 'first_name' argument, add
11793 'context'. Remove unused variable.
11794 (yylex): Explicitly maintain the context type. Exit loop earlier
11795 if NAME result is seen.
11796
11797 2013-02-12 Pedro Alves <palves@redhat.com>
11798
11799 * amd64-darwin-tdep.c: Add (C) after Copyright.
11800 * cli/cli-cmds.h: Ditto.
11801 * cli/cli-decode.c: Ditto.
11802 * cli/cli-decode.h: Ditto.
11803 * cli/cli-dump.c: Ditto.
11804 * cli/cli-dump.h: Ditto.
11805 * cli/cli-interp.c: Ditto.
11806 * cli/cli-logging.c: Ditto.
11807 * cli/cli-script.c: Ditto.
11808 * cli/cli-script.h: Ditto.
11809 * cli/cli-setshow.c: Ditto.
11810 * cli/cli-setshow.h: Ditto.
11811 * cli/cli-utils.c: Ditto.
11812 * cli/cli-utils.h: Ditto.
11813 * config/alpha/nm-osf3.h: Ditto.
11814 * config/djgpp/djconfig.sh: Ditto.
11815 * config/i386/nm-fbsd.h: Ditto.
11816 * config/i386/nm-i386gnu.h: Ditto.
11817 * config/nm-linux.h: Ditto.
11818 * config/nm-nto.h: Ditto.
11819 * config/rs6000/nm-rs6000.h: Ditto.
11820 * config/sparc/nm-sol2.h: Ditto.
11821 * darwin-nat-info.c: Ditto.
11822 * dfp.c: Ditto.
11823 * dfp.h: Ditto.
11824 * gdb-demangle.h: Ditto.
11825 * i386-darwin-nat.c: Ditto.
11826 * i386-darwin-tdep.c: Ditto.
11827 * linux-fork.h: Ditto.
11828 * m32c-tdep.c: Ditto.
11829 * microblaze-linux-tdep.c: Ditto.
11830 * microblaze-rom.c: Ditto.
11831 * microblaze-tdep.c: Ditto.
11832 * microblaze-tdep.h: Ditto.
11833 * mips-linux-tdep.h: Ditto.
11834 * ppc-ravenscar-thread.c: Ditto.
11835 * ppc-ravenscar-thread.h: Ditto.
11836 * prologue-value.c: Ditto.
11837 * prologue-value.h: Ditto.
11838 * ravenscar-thread.c: Ditto.
11839 * ravenscar-thread.h: Ditto.
11840 * sparc-ravenscar-thread.c: Ditto.
11841 * sparc-ravenscar-thread.h: Ditto.
11842 * tilegx-linux-tdep.c: Ditto.
11843 * unwind_stop_reasons.def: Ditto.
11844 * windows-nat.h: Ditto.
11845 * xtensa-linux-tdep.c: Ditto.
11846 * xtensa-xtregs.c: Ditto.
11847 * regformats/regdat.sh: Ditto.
11848 * regformats/regdef.h: Ditto.
11849
11850 2013-02-12 Pedro Alves <palves@redhat.com>
11851
11852 * break-catch-sig.c: Update copyright years.
11853
11854 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11855
11856 Add support for a destructor for ui_out data and use it to
11857 provide a ui_out destructor.
11858 * ui-out.h: Declare the new ui_out destructor.
11859 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11860 * ui-out.c (default_data_destroy): Add a default data destructor
11861 which does nothing.
11862 (default_ui_out_impl): Set the new data_destroy field to
11863 default_data_destroy
11864 (uo_data_destroy): Local function which invokes the data
11865 destructor if present.
11866 (clear_table): Local function which clears the table data of a
11867 ui_out object.
11868 (ui_out_destroy): Public function which frees a ui_out object.
11869 (ui_out_table_end): Use the new clear_table function.
11870 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11871 NULL.
11872 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11873 to NULL.
11874
11875 2013-02-11 Doug Evans <dje@google.com>
11876
11877 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11878 (printf_decfloat): New function. Broken out from ui_printf.
11879 Remove unnecessary code to shift the entire format string down.
11880 (printf_pointer): New function.
11881 (ui_printf): Code to print C strings, wide C strings, decfloats,
11882 and pointers moved to separate functions.
11883
11884 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11885
11886 * valops.c (value_assign): Handling bitfield offset in
11887 `lval_internalvar_component' case.
11888
11889 2013-02-08 Doug Evans <dje@google.com>
11890
11891 * common/format.c (parse_format_string): Fix whitespace.
11892
11893 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11894
11895 * stack.c (return_command): Work around uninitialized variable
11896 warning.
11897
11898 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11899
11900 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11901 number of the registers from 36 to 34.
11902
11903 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11904
11905 * NEWS: Mention new AArch64 native and target support.
11906
11907 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11908
11909 * MAINTAINERS (Write After Approval): Add myself.
11910
11911 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11912 Marcus Shawcroft <marcus.shawcroft@arm.com>
11913 Nigel Stephens <nigel.stephens@arm.com>
11914 Yufeng Zhang <yufeng.zhang@arm.com>
11915
11916 * aarch64-linux-nat.c: New file.
11917 * config/aarch64/linux.mh: New file.
11918 * configure.host: Add AArch64.
11919 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11920
11921 2013-02-07 Doug Evans <dje@google.com>
11922
11923 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11924 disassemble command.
11925
11926 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11927
11928 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11929 set_gdbarch_fetch_tls_load_module_address.
11930
11931 2013-02-06 David S. Miller <davem@davemloft.net>
11932
11933 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11934 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11935 * value.c (struct_return_convention): New function.
11936 (using_struct_return): Implement in terms of struct_return_convention.
11937 * value.h (struct_return_convention): Declare.
11938 * stack.c (return_command): Allow successful overriding of the return
11939 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11940
11941 2013-02-06 Tom Tromey <tromey@redhat.com>
11942
11943 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11944 outside of TRY_CATCH.
11945
11946 2013-02-06 Yao Qi <yao@codesourcery.com>
11947
11948 * mi/mi-interp.c: Include "tracepoint.h".
11949 (mi_tsv_modified): Declare.
11950 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11951 (mi_interpreter_init): Call observer_attach_tsv_modified.
11952 (mi_tsv_modified): New.
11953 (mi_tsv_created, mi_tsv_deleted): Update.
11954 * tracepoint.c (trace_variable_command): Call
11955 observer_notify_tsv_modified if the initial value of tsv is
11956 changed.
11957 (delete_trace_state_variable): Call
11958 observer_notify_tsv_deleted earlier.
11959 (trace_variable_command): Caller update.
11960 (create_tsv_from_upload): Likewise.
11961 * observer.sh: Declare "struct trace_state_variable".
11962
11963 * NEWS: Mention the new MI notification "=tsv-modified".
11964
11965 2013-02-05 Doug Evans <dje@google.com>
11966
11967 * completer.c (location_completer): Fix typo in comment.
11968
11969 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11970
11971 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11972 ADDRESS sorted.
11973
11974 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11975
11976 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11977 Refactor if statement to avoid trailing || operator.
11978
11979 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11980
11981 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11982
11983 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11984
11985 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11986 * configure.host: Add powerpc*-*-freebsd* target.
11987 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11988 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11989 * config/powerpc/fbsd.mh: New file.
11990
11991 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11992 Denys Vlasenko <dvlasenk@redhat.com>
11993 Pedro Alves <palves@redhat.com>
11994
11995 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11996 (struct elf_internal_linux_prpsinfo): Forward declare.
11997 * gdbarch.h, gdbarch.c: Regenerate.
11998 * linux-tdep.c: Include `cli/cli-utils.h'.
11999 (linux_fill_prpsinfo): New function.
12000 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
12001 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
12002 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
12003 depending on gdbarch pointer bitness.
12004 * ppc-linux-tdep.c: Include elf-bfd.h.
12005 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
12006 on 32-bit.
12007
12008 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12009 Marcus Shawcroft <marcus.shawcroft@arm.com>
12010 Nigel Stephens <nigel.stephens@arm.com>
12011 Yufeng Zhang <yufeng.zhang@arm.com>
12012
12013 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
12014
12015 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12016 Marcus Shawcroft <marcus.shawcroft@arm.com>
12017 Nigel Stephens <nigel.stephens@arm.com>
12018 Yufeng Zhang <yufeng.zhang@arm.com>
12019
12020 * aarch64-newlib-tdep.c: New file.
12021 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
12022 aarch64*-*-elf.
12023 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
12024 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
12025 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
12026 * osabi.c (gdb_osabi_names): Add "Newlib".
12027
12028 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12029 Marcus Shawcroft <marcus.shawcroft@arm.com>
12030 Nigel Stephens <nigel.stephens@arm.com>
12031 Yufeng Zhang <yufeng.zhang@arm.com>
12032
12033 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
12034 (ALLDEPFILES): Add aarch64-linux-tdep.c.
12035 * aarch64-linux-tdep.c: New file.
12036 * aarch64-linux-tdep.h: New file.
12037 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
12038 * configure.tgt: Add aarch64-none-linux-gnu.
12039
12040 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12041 Marcus Shawcroft <marcus.shawcroft@arm.com>
12042 Nigel Stephens <nigel.stephens@arm.com>
12043 Yufeng Zhang <yufeng.zhang@arm.com>
12044
12045 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
12046 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
12047 (ALLDEPFILES): Add aarch64-tdep.c.
12048 * aarch64-tdep.c: New file.
12049 * aarch64-tdep.h: New file.
12050 * configure.tgt: Add AArch64.
12051 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
12052 (aarch64-expedite): New definition.
12053 * features/aarch64-core.xml: New file.
12054 * features/aarch64-fpu.xml: New file.
12055 * features/aarch64-without-fpu.c: New file (generated).
12056 * features/aarch64-without-fpu.xml: New file.
12057 * features/aarch64.c: New file (generated).
12058 * features/aarch64.xml: New file.
12059 * regformats/aarch64-without-fpu.dat: New file (generated).
12060 * regformats/aarch64.dat: New file (generated).
12061
12062 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12063
12064 * contrib/expect-read1.c: New file.
12065 * contrib/expect-read1.sh: New file.
12066
12067 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12068
12069 * dwarf2read.c (file_file_name): New function with code from
12070 file_full_name.
12071 (file_full_name): Move most of the code to file_file_name.
12072 (macro_start_file): Rename variable full_name to file_name and use
12073 file_file_name for it. Add comp_dir parameter to new_macro_table.
12074 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12075 macro_source_file->filename access by macro_source_fullname call.
12076 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12077 caller.
12078 * macrotab.c (struct macro_table): New field comp_dir.
12079 (macro_include): New variables link_fullname and source_fullname.
12080 Replace any macro_source_file->filename access by macro_source_fullname
12081 call.
12082 (macro_lookup_inclusion): Remove the partial filenames checking code.
12083 (check_for_redefinition): New variables source_fullname and
12084 found_key_fullname. Replace any macro_source_file->filename access by
12085 macro_source_fullname call.
12086 (macro_undef): New variables source_fullname and key_fullname. Replace
12087 any macro_source_file->filename access by macro_source_fullname call.
12088 (macro_lookup_definition): New variables retval and source_fullname.
12089 Replace any macro_source_file->filename access by macro_source_fullname
12090 call.
12091 (foreach_macro): New variable key_fullname. Replace any
12092 macro_source_file->filename access by macro_source_fullname call.
12093 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12094 macro_source_file->filename access by macro_source_fullname call.
12095 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12096 (macro_source_fullname): New function.
12097 * macrotab.h (struct macro_source_file): Extent the filename field
12098 comment.
12099 (new_macro_table): New parameter comp_dir, add a comment for it.
12100 (macro_source_fullname): new declaration.
12101
12102 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12103
12104 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12105 this_real_name to outer block. Use it also for
12106 compare_filenames_for_search.
12107 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12108 with dw2_get_real_path for file_matcher, considering also
12109 BASENAMES_MAY_DIFFER.
12110 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12111
12112 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12113
12114 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12115 to the file_matcher parameter. Pass 0 to it.
12116 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12117 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12118 NULL psymtab_to_fullname result.
12119 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12120 an expected filename instead.
12121 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12122 file_matcher parameter. Call also psymtab_to_fullname, after newly
12123 considering BASENAMES_MAY_DIFFER.
12124 * source.c (rewrite_source_path): Remove static.
12125 * source.h (rewrite_source_path): New declaration.
12126 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12127 the expand_symtabs_matching field. Comment it.
12128 * symtab.c (file_matches): New function comment. Add parameter
12129 basenames, implement it.
12130 (search_symbols_file_matches): Add basenames parameter. Update the
12131 file_matches caller.
12132 (search_symbols): Match FILES also against symtab_to_fullname.
12133 Optimize it for BASENAMES_MAY_DIFFER.
12134
12135 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12136
12137 * source.c (print_source_lines_base): Print for TUI also "fullname".
12138 * tui/tui-data.c (init_content_element): Change tui_locator_element
12139 field to full_name.
12140 * tui/tui-data.h (struct tui_locator_element): Likewise.
12141 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12142 tui_update_locator_filename calls to tui_update_locator_fullname.
12143 Replace symtab->filename refererence by symtab_to_fullname call.
12144 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12145 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12146 field to full_name. Replace symtab->filename refererence by
12147 symtab_to_fullname call.
12148 (tui_show_symtab_source): Rename parameter to fullname. Change
12149 tui_locator_element field to full_name.
12150 * tui/tui-stack.c: Include source.h.
12151 (tui_set_locator_filename): Rename the declaration to ...
12152 (tui_set_locator_fullname): ... here. Rename its parameter to
12153 fullname, updates its comment.
12154 (tui_set_locator_info): Rename its parameter to fullname.
12155 (tui_set_locator_filename): Rename the definition to ...
12156 (tui_set_locator_fullname): ... here. Rename its parameter to
12157 fullname, updates its comment. Change tui_locator_element field to
12158 full_name.
12159 (tui_set_locator_info): Rename its parameter to fullname.
12160 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12161 (tui_update_locator_filename): Rename to ...
12162 (tui_update_locator_fullname): ... here. Rename callee to
12163 tui_set_locator_fullname.
12164 (tui_show_frame_info): Replace symtab->filename refererence by
12165 symtab_to_fullname call.
12166 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12167 (tui_update_locator_fullname): ... here.
12168 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12169 tui_update_locator_fullname. Replace symtab->filename refererence by
12170 symtab_to_fullname call.
12171 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12172 Rename the callee to tui_update_locator_fullname.
12173 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12174
12175 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12176
12177 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12178 by symtab_to_filename_for_display calls.
12179 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12180 (clear_command): New variable sal_fullname, initialize it. Replace
12181 compare_filenames_for_search by filename_cmp with sal_fullname.
12182 (say_where, update_static_tracepoint): Replace symtab->filename
12183 refererences by symtab_to_filename_for_display calls.
12184 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12185 Likewise.
12186 * dwarf2read.c: Include source.h.
12187 (fixup_go_packaging): Replace symtab->filename refererences by
12188 symtab_to_filename_for_display calls.
12189 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12190 Replace symtab->filename refererences by symtab_to_filename_for_display
12191 calls.
12192 (create_sals_line_offset, convert_linespec_to_sals): New variable
12193 fullname, initialize it, replace symtab->filename reference by the
12194 variable.
12195 * linux-fork.c: Include source.h.
12196 (info_checkpoints_command): Replace symtab->filename refererences by
12197 symtab_to_filename_for_display calls.
12198 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12199 by symtab_to_filename_for_display calls.
12200 * mdebugread.c: Include source.h.
12201 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12202 symtab_to_filename_for_display calls.
12203 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12204 (mi_cmd_file_list_exec_source_files): Likewise.
12205 * printcmd.c: Include source.h.
12206 (build_address_symbolic): Replace symtab->filename refererences by
12207 symtab_to_filename_for_display calls.
12208 * psymtab.c (partial_map_symtabs_matching_filename)
12209 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12210 with psymtab_to_fullname.
12211 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12212 by symtab_to_filename_for_display calls.
12213 (stpy_get_filename): New variable filename, initialize it, use instead
12214 of symtab->filename refererences.
12215 (salpy_str): Make variable filename const char *. Replace
12216 symtab->filename refererences by symtab_to_filename_for_display calls.
12217 * skip.c: Include source.h and filenames.h.
12218 (skip_file_command): Remove const from the symtab variable. Replace
12219 symtab->filename refererences by symtab_to_fullname call.
12220 (function_name_is_marked_for_skip): New variables searched_for_fullname
12221 and fullname. Use them to search also with symtab's fullname.
12222 * source.c (find_source_lines): Replace symtab->filename refererences
12223 by symtab_to_filename_for_display calls.
12224 (print_source_lines_base): New variable filename, use it instead of
12225 symtab->filename. Replace symtab->filename refererences by
12226 symtab_to_filename_for_display calls.
12227 (line_info, forward_search_command): Replace symtab->filename
12228 refererences by symtab_to_filename_for_display calls.
12229 (reverse_search_command): Replace symtab->filename refererences by
12230 symtab_to_filename_for_display calls. New variable filename for it.
12231 * stack.c (frame_info): Likewise.
12232 * symmisc.c: Include source.h.
12233 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12234 (maintenance_info_symtabs): Replace symtab->filename refererences by
12235 symtab_to_filename_for_display calls.
12236 * symtab.c (iterate_over_some_symtabs): Call
12237 compare_filenames_for_search also with symtab_to_fullname.
12238 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12239 symtab->filename refererences by symtab_to_filename_for_display calls.
12240 (find_line_symtab): Replace symtab->filename refererences by
12241 symtab_to_filename_for_display calls.
12242 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12243 (print_symbol_info): Make the last parameter const char *. New
12244 variable s_filename. Use it in the function.
12245 (symtab_symbol_info): Make the last_filename variable const char *.
12246 Replace symtab->filename refererences by symtab_to_filename_for_display
12247 calls.
12248 (rbreak_command): New variable fullname. Use it. Replace
12249 symtab->filename refererence by symtab_to_filename_for_display call.
12250 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12251 (print_one_static_tracepoint_marker): Replace symtab->filename
12252 refererences by symtab_to_filename_for_display calls.
12253 * tui/tui-source.c (tui_set_source_content): New variables filename and
12254 s_filename. Replace symtab->filename refererences by this variable.
12255 Replace other symtab->filename refererences by
12256 symtab_to_filename_for_display calls.
12257
12258 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12259 Jan Kratochvil <jan.kratochvil@redhat.com>
12260
12261 Add a new variable that controls a way in which filenames are
12262 displayed.
12263 * NEWS (set filename-display): New entry.
12264 * source.c (filename_display_basename, filename_display_relative)
12265 (filename_display_absolute, filename_display_kind_names)
12266 (filename_display_string, show_filename_display_string)
12267 (symtab_to_filename_for_display): New.
12268 (_initialize_source): Added initialization of 'filename-display'
12269 variable.
12270 * source.h (symtab_to_filename_for_display): Added declaration.
12271 * stack.c (print_frame): Added new variable and calling of a new
12272 function and condition with this variable. Changed third argument of
12273 calling of a function.
12274
12275 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12276
12277 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12278 Rename field reference filename to fullname.
12279 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12280 fullname. New comment for it.
12281 * tui/tui-source.c (tui_set_source_content): Rename field reference
12282 filename to fullname. Initialize field by symtab_to_fullname now.
12283 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12284 reference filename to fullname. Use symtab_to_fullname during
12285 comparison.
12286
12287 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12288
12289 Code cleanup.
12290 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12291 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12292 filename to fullname. Rename variable this_name to this_fullname.
12293 Lowercase FILENAME_CMP call.
12294 (dw2_find_symbol_file): New comment for the returned string.
12295 (dwarf2_gdb_index_functions): Rename the function to
12296 dw2_expand_symtabs_with_fullname.
12297 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12298 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12299 fullname.
12300 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12301 * symfile.h (struct quick_symbol_functions): Rename field
12302 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12303 parameter filename to fullname. Document returned string meaning for
12304 find_symbol_file.
12305 * symtab.c (find_line_symtab): Rename the called function to
12306 expand_symtabs_with_fullname.
12307
12308 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12309
12310 Code cleanup.
12311 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12312 call of filename_cmp with compare_filenames_for_search.
12313 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12314 is_abs, unify the call of FILENAME_CMP with
12315 compare_filenames_for_search. New gdb_asserts for real_path and name.
12316 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12317 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12318 * symfile.h (struct quick_symbol_functions): Extend the comment for
12319 map_symtabs_matching_filename.
12320 * symtab.c (compare_filenames_for_search): Remove the function comment
12321 relative path requirement. Handle absolute filenames, with a comment.
12322 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12323 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12324 real_path and name. Unify the call of compare_filenames_for_search
12325 with FILENAME_CMP.
12326 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12327
12328 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12329
12330 Code cleanup.
12331 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12332 source_file references by symtab field references. Remove variables
12333 sal and fullname.
12334 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12335 (clear_command, say_where): Replace bp_location field source_file
12336 references by symtab field references.
12337 (bp_location_dtor): Remove the source_file reference.
12338 (update_static_tracepoint): Replace bp_location field source_file
12339 references by symtab field references.
12340 (breakpoint_free_objfile): New function.
12341 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12342 Replace the field source_file by field symtab, extend its comment.
12343 (breakpoint_free_objfile): New declaration.
12344 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12345 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12346 field source_file references by symtab field references.
12347
12348 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12349
12350 Replace xfullpath calls by gdb_realpath calls.
12351 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12352 function comment.
12353 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12354 Remove it from the iterate_over_some_symtabs call.
12355 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12356 Remove it from the dw2_map_expand_apply calls, remove a block handling
12357 it.
12358 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12359 Remove it from the iterate_over_some_symtabs call.
12360 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12361 Remove it from the partial_map_expand_apply calls, remove a block
12362 handling it. Drop gdb_realpath call and cleanups from the real_path
12363 handling.
12364 * source.c (openp): Drop the comment part about xfullpath. Replace
12365 xfullpath calls by gdb_realpath calls.
12366 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12367 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12368 from method map_symtabs_matching_filename and its comment.
12369 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12370 gdb_realpath call.
12371 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12372 remove it also from the function comment, remove a block handling it.
12373 Drop gdb_realpath call and cleanups from the real_path handling.
12374 (iterate_over_symtabs): Drop variable full_path and its use.
12375 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12376 * utils.c (xfullpath): Remove.
12377 * utils.h (xfullpath): Remove.
12378
12379 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12380
12381 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12382 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12383 (ALLDEPFILES): Add ppc64-tdep.c.
12384 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12385 ppc64-tdep.o to gdb_target_obs.
12386 * ppc64-tdep.h: New file.
12387 * ppc64-tdep.c: New file.
12388 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12389 ppc-linux-tdep.c to here.
12390 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12391 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12392 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12393 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12394 from ppc-linux-tdep.c to here.
12395 (ppc64_convert_from_func_ptr_addr): Rename from
12396 ppc64_linux_convert_from_func_ptr_addr to
12397 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12398 here.
12399 * rs6000-tdep.c:
12400 (read_insn): Move from ppc-linux-tdep.c to here.
12401 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12402 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12403 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12404 Removed above functions.
12405 (ppc_linux_init_abi): Adjust.
12406
12407 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12408
12409 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12410
12411 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12412
12413 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12414
12415 2013-02-01 Pedro Alves <palves@redhat.com>
12416
12417 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12418 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12419
12420 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12421
12422 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12423 files with no separate debug info.
12424 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12425 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12426 only for files with no separate debug info.
12427
12428 2013-01-31 Tom Tromey <tromey@redhat.com>
12429
12430 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12431 change type.
12432 (struct jit_program_space_data): Rename from jit_inferior_data.
12433 Update comments.
12434 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12435 Change return type. Attach data to program space.
12436 (jit_program_space_data_cleanup): Rename from
12437 jit_inferior_data_cleanup; change argument type.
12438 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12439 change type.
12440 (jit_register_code): Update.
12441 (jit_update_inferior_cache): Remove.
12442 (jit_breakpoint_deleted): Get jit data from the location's program
12443 space.
12444 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12445 'ps_data', change type.
12446 (jit_inferior_init, jit_breakpoint_re_set_internal)
12447 (jit_event_handler): Update.
12448 (free_objfile_data): Get data from objfile's program space.
12449 (_initialize_jit): Update.
12450
12451 2013-01-31 Tom Tromey <tromey@redhat.com>
12452
12453 PR gdb/13987:
12454 * jit.c (struct jit_inferior_data) <cached_code_address,
12455 jit_breakpoint>: New fields.
12456 (jit_breakpoint_re_set_internal): Fix logging. Only create
12457 breakpoint if cached address has changed.
12458 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12459 functions.
12460 (_initialize_jit): Register breakpoint deleted observer.
12461
12462 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12463
12464 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12465 (save_infcall_suspend_state): Ifdef out unused inf.
12466 (restore_infcall_suspend_state): Ifdef out unused inf.
12467 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12468 (jit_frame_sniffer): Remove unused inf_data.
12469
12470 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12471
12472 * c-exp.y (classify_inner_name): Remove unused type.
12473 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12474 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12475 need_escape.
12476 (c_get_string): Remove unused kind.
12477 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12478
12479 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12480
12481 * charset.c (intermediate_encoding): Remove unused i.
12482 * completer.c (signal_completer): Remove unused i.
12483 * continuations.c (discard_my_continuations_1): Remove unused
12484 continuation_ptr.
12485 * corelow.c (core_close): Remove unuseD name.
12486 (get_core_siginfo): Remove unused pid.
12487 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12488 i, cps.
12489 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12490 (loclist_describe_location): Remove unused first.
12491 * event-top.c (command_line_handler): Remove unused got_eof.
12492 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12493 (resize_section_table): Remove unused old_value.
12494 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12495 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12496 * i386-tdep.c (i386_process_record): Remove unused rex.
12497 * infcmd.c (get_return_value): Remove unused uiout.
12498 * jv-lang.c (type_from_class): Remove unused is_array.
12499 * jv-valprint.c (java_val_print): Remove unused i.
12500 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12501 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12502 * m2-typeprint.c (m2_print_type): Remove unused code.
12503 * macroexp.c (get_character_constant): Remove unused body_start.
12504 (macro_stringify): Remove unused result.
12505 * objc-lang.c (find_methods): Remove unused gdbarch.
12506 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12507 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12508 * stack.c (print_frame_args): Remove unused summary.
12509 * thread.c (thread_apply_command): Remove unused p.
12510 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12511 * valops.c (search_struct_method): Remove unused skip.
12512 * valprint.c (generic_val_print): Remove unused byte_order.
12513 * varobj.c (varobj_update): Remove unused changed.
12514 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12515 (alias_command): Remove unused c.
12516 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12517 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12518 format.
12519 (mi_cmd_data_write_memory): Remove unused word_format.
12520 (mi_cmd_data_write_memory_bytes): Remove unused r.
12521 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12522 p_start, p_end.
12523 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12524 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12525 line_width.
12526
12527 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12528
12529 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12530 * symtab.c (iterate_over_symtabs): Remove unused s.
12531 (find_pc_sect_symtab): Remove unused pspAce.
12532 (find_pc_sect_line): Remove unused alt_symtab.
12533 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12534 (completion_list_add_name): Remove unused newsize.
12535
12536 2013-01-31 Tom Tromey <tromey@redhat.com>
12537
12538 PR c++/14998:
12539 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12540 TYPE_CODE_FUNC.
12541
12542 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12543
12544 * target.c (target_read_string): Remove unused origlen.
12545
12546 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12547
12548 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12549 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12550 * ax-general.c (ax_print): Remove unused is_float.
12551 * blockframe.c (block_innermost_frame): Remove unused start, end.
12552 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12553
12554 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12555
12556 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12557 (svr4_read_so_list): Remove unused lmo.
12558 * solib-target.c (solib_target_relocate_section_addresses): Remove
12559 unused flags.
12560
12561 2013-01-30 Tom Tromey <tromey@redhat.com>
12562
12563 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12564
12565 2013-01-30 Tom Tromey <tromey@redhat.com>
12566
12567 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12568 * utils.c (gnu_debuglink_crc32): Remove.
12569 * utils.h (gnu_debuglink_crc32): Don't declare.
12570
12571 2013-01-30 Tom Tromey <tromey@redhat.com>
12572
12573 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12574 (read_structure_type, read_enumeration_type): Remove cast.
12575
12576 2013-01-30 Tom Tromey <tromey@redhat.com>
12577
12578 * dwarf2read.c (read_namespace_type): Remove cast.
12579 (read_typedef): Likewise.
12580
12581 2013-01-29 Tom Tromey <tromey@redhat.com>
12582
12583 * dwarf2read.c (free_dwo_file): Remove assert.
12584
12585 2013-01-29 Tom Tromey <tromey@redhat.com>
12586
12587 * value.c (deprecated_set_value_modifiable): Remove.
12588 * value.h (deprecated_set_value_modifiable): Remove.
12589
12590 2013-01-28 Doug Evans <dje@google.com>
12591
12592 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12593 to addresses from dwo files.
12594
12595 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12596
12597 * valops.c (find_overload_match): Remove unused argument 'lax'.
12598 * value.h: Remove unused argument 'lax' from the declaration of
12599 find_overload_match.
12600 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12601 to find_overload_match.
12602 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12603 argument to find_overload_match.
12604
12605 2013-01-25 Tom Tromey <tromey@redhat.com>
12606
12607 * dwarf2read.c (processing_has_namespace_info): Remove.
12608 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12609 (process_die, read_func_scope, dwarf2_start_symtab)
12610 (new_symbol_full): Update.
12611
12612 2013-01-25 Tom Tromey <tromey@redhat.com>
12613
12614 * cp-namespace.c (cp_set_block_scope): Remove.
12615 * cp-support.h (cp_set_block_scope): Remove.
12616 * dbxread.c: Include block.h.
12617 (cp_set_block_scope): New function.
12618 (process_one_symbol): Update.
12619 * dwarf2read.c (read_func_scope): Use block_set_scope.
12620
12621 2013-01-25 Pedro Alves <palves@redhat.com>
12622
12623 * remote.c (add_current_inferior_and_thread): Tweak comment.
12624
12625 2013-01-25 Tom Tromey <tromey@redhat.com>
12626
12627 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12628 (cp_add_using_directive): Add 'copy_names' argument.
12629 * cp-support.h (cp_add_using_directive): Update.
12630 (struct using_direct) <import_src, import_dest, alias,
12631 declaration>: Now const.
12632 * dwarf2read.c (read_import_statement): Use obconcat.
12633 Don't copy names passed to cp_add_using_directive.
12634
12635 2013-01-25 Tom Tromey <tromey@redhat.com>
12636
12637 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12638
12639 2013-01-25 Pedro Alves <palves@redhat.com>
12640
12641 * remote.c (stop_reply_extract_thread): New.
12642 (add_current_inferior_and_thread): New parameter 'wait_status'.
12643 Handle it.
12644 (remote_start_remote): Pass wait status to
12645 add_current_inferior_and_thread.
12646 (extended_remote_run): Update comment.
12647 (extended_remote_create_inferior_1): Pass wait status to
12648 add_current_inferior_and_thread.
12649
12650 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12651 Ulrich Weigand <uweigand@de.ibm.com>
12652
12653 * valarith.c (value_vector_widen): New function for replicating a
12654 scalar into a vector.
12655 (value_binop): Use value_vector_widen to widen scalar to vector
12656 rather than casting, this better matches gcc C behaviour.
12657 * valops.c (value_casst): Update logic for casting between vector
12658 types, and for casting from scalar to vector, try to match gcc C
12659 behaviour.
12660 * value.h (value_vector_widen): Declare.
12661 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12662 function, handle special case for casting scalar to vector.
12663 (opencl_relop): Use opencl_value_cast.
12664 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12665 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12666 in order to use opencl_value_cast.
12667
12668 2013-01-25 Yao Qi <yao@codesourcery.com>
12669
12670 * event-loop.c: Include "queue.h".
12671 (gdb_event_p): New typedef.
12672 (DECLARE_QUEUE_P): Use.
12673 (DEFINE_QUEUE_P): Use.
12674 (async_queue_event): Remove.
12675 (gdb_event_xfree): New.
12676 (initialize_event_loop): New.
12677 (process_event): Use QUEUE macros.
12678 (event_queue): Remove.
12679 (gdb_wait_for_event): Caller update.
12680 (check_async_event_handlers): Likewise.
12681 (poll_timers): Likewise.
12682 * event-loop.h (initialize_event_loop): Declare.
12683 * event-loop.c (gdb_event_xfree): New.
12684 * top.c (gdb_init): Call initialize_event_loop.
12685
12686 2013-01-25 Yao Qi <yao@codesourcery.com>
12687
12688 * event-loop.c (async_queue_event): Remove one parameter
12689 'position'. Remove code handling 'position' == TAIL.
12690 (gdb_wait_for_event): Caller update.
12691 (check_async_event_handlers): Caller update.
12692 (poll_timers): Caller update.
12693 * event-loop.h (enum queue_position): Remove.
12694
12695 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12696
12697 * MAINTAINERS: Update my email.
12698
12699 2013-01-25 Yao Qi <yao@codesourcery.com>
12700
12701 * main.c (print_gdb_help): Remove "--epoch" from the help
12702 message.
12703
12704 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12705
12706 * symtab.c (skip_prologue_using_sal): Consider a file
12707 change the same as an increased line number
12708
12709 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12710
12711 * MAINTAINERS (Write After Approval): Add myself to the list.
12712
12713 2013-01-24 Tom Tromey <tromey@redhat.com>
12714
12715 * ada-lang.h (ada_decode_symbol): Make return type const.
12716 * ada-lang.c (ada_decode_symbol): Likewise.
12717
12718 2013-01-23 Doug Evans <dje@google.com>
12719
12720 * linespec.c (find_linespec_symbols): Make static.
12721
12722 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12723
12724 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12725 type on float conversion for complex type.
12726
12727 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12728
12729 Add a new class gdb.Architecture which exposes GDB's
12730 internal representation of architecture via GDB Python API.
12731 * Makefile.in: Add entries corresponding to the new file
12732 python/py-arch.c.
12733 * NEWS (Python Scripting): Add entries for the new class
12734 gdb.Architecture and the new method gdb.Frame.architecture.
12735 * python/py-arch.c: Implement gdb.Architecture class.
12736 * python/py-frame.c (frapy_arch): Implement the method
12737 gdb.Frame.architecture().
12738 (frame_object_methods): Add 'architecture' to the method table.
12739 * python/python-internal.h: Add declarations of new utility
12740 functions.
12741 * python/python.c (_initialize_python): Initialize
12742 gdb.Architecture class.
12743
12744 2013-01-23 Doug Evans <dje@google.com>
12745
12746 Work around binutils/15021.
12747 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12748 type_unit_group out of union s. All uses updated.
12749 (read_index_from_section): Watch for index version 8.
12750 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12751 an imported symtab.
12752 (write_psymtabs_to_index): Increment version number to 8.
12753
12754 2013-01-22 Pedro Alves <palves@redhat.com>
12755
12756 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12757 user-visible.
12758
12759 2013-01-22 Pedro Alves <palves@redhat.com>
12760
12761 * annotate.c (annotate_breakpoints_changed): Rename to ...
12762 (annotate_breakpoints_invalid): ... this. Make static.
12763 (breakpoint_changed): Adjust.
12764 (_initialize_annotate): Always install the observers. Install a
12765 "breakpoint_created" observer.
12766 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12767 * breakpoint.c (set_breakpoint_condition)
12768 (breakpoint_set_commands, do_map_commands_command)
12769 (init_raw_breakpoint, clear_command, set_ignore_count)
12770 (enable_breakpoint_disp): No longer call
12771 annotate_breakpoints_changed.
12772
12773 2013-01-22 Pedro Alves <palves@redhat.com>
12774
12775 * annotate.c: Include "inferior.h".
12776 (frames_invalid_emitted)
12777 (breakpoints_invalid_emitted): New globals.
12778 (async_background_execution_p): New function.
12779 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12780 emitting the annotation if it has already been emitted.
12781 (annotate_display_prompt): New function.
12782 * annotate.h (annotate_display_prompt): New declaration.
12783 * event-top.c: Include annotate.h.
12784 (display_gdb_prompt): Call annotate_display_prompt.
12785
12786 2013-01-22 Pedro Alves <palves@redhat.com>
12787
12788 * annotate.c (ignore_count_changed): Delete.
12789 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12790 (annotate_ignore_count_change): Delete.
12791 (annotate_stopped): Don't emit a delayed breakpoints-changed
12792 annotation.
12793 * annotate.h (annotate_ignore_count_change): Delete.
12794 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12795 annotate_ignore_count_change.
12796
12797 2013-01-22 Tom Tromey <tromey@redhat.com>
12798
12799 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12800 require_rvalue for a register location.
12801
12802 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12803
12804 * breakpoint.c (print_one_breakpoint_location): Add MI
12805 field 'thread-groups' when printing a breakpoint.
12806 (output_thread_groups): New function.
12807
12808 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12809
12810 * python/lib/gdb/commands/explore.py
12811 (CompoundExplorer.explore_expr): Correct the name of a method
12812 being invoked.
12813 (ExploreTypeCommand.invoke): Add a missing 'return'.
12814
12815 2013-01-21 Tom Tromey <tromey@redhat.com>
12816
12817 * gdb_obstack.h (obconcat): Move declaration here, from...
12818 * symfile.h (obconcat): ... here.
12819 * gdb_obstack.c: New file.
12820 (obconcat): Move from...
12821 * symfile.c (obconcat): ... here.
12822 * Makefile.in (SFILES): Add gdb_obstack.c.
12823 (COMMON_OBS): Add gdb_obstack.o.
12824
12825 2013-01-21 Tom Tromey <tromey@redhat.com>
12826
12827 * symfile.h (obsavestring): Don't declare.
12828 * symfile.c (obsavestring): Remove.
12829 * ada-exp.y: Use obstack_copy0, not obsavestring.
12830 * ada-lang.c: Use obstack_copy0, not obsavestring.
12831 * coffread.c: Use obstack_copy0, not obsavestring.
12832 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12833 * dbxread.c: Use obstack_copy0, not obsavestring.
12834 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12835 * jit.c: Use obstack_copy0, not obsavestring.
12836 * mdebugread.c: Use obstack_copy0, not obsavestring.
12837 * psymtab.c: Use obstack_copy0, not obsavestring.
12838 * stabsread.c: Use obstack_copy0, not obsavestring.
12839 * xcoffread.c: Use obstack_copy0, not obsavestring.
12840
12841 2013-01-21 Tom Tromey <tromey@redhat.com>
12842
12843 * dwarf2read.c (fixup_go_packaging): Save package name
12844 on objfile obstack.
12845 * gdbtypes.c (init_type): Don't copy name.
12846
12847 2013-01-21 Tom Tromey <tromey@redhat.com>
12848
12849 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12850 const.
12851 (struct attribute) <u.str>: Now const.
12852 (struct fnfieldlist) <name>: Now const.
12853 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12854 (partial_die_parent_scope): Make return type const.
12855 (partial_die_full_name, add_partial_symbol): Update.
12856 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12857 'name' const.
12858 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12859 (read_file_scope, read_func_scope, dwarf2_add_field)
12860 (dwarf2_add_member_fn, read_structure_type)
12861 (process_enumeration_scope, read_array_type, read_module_type)
12862 (read_base_type, read_subrange_type): Update.
12863 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12864 (new_symbol_full, guess_full_die_structure_name): Update.
12865 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12866 (dwarf2_name): Return const type.
12867 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12868 const.
12869
12870 2013-01-21 Tom Tromey <tromey@redhat.com>
12871
12872 * gdbtypes.c (init_type): Make 'name' const.
12873 * gdbtypes.h (init_type): Update.
12874
12875 2013-01-21 Tom Tromey <tromey@redhat.com>
12876
12877 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12878 (start_symtab): Make 'name' and 'dirname' const. Use
12879 set_last_source_file.
12880 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12881 (last_source_file): Define. Now static.
12882 (set_last_source_file, get_last_source_file): New functions.
12883 * buildsym.h (last_source_file): Don't declare.
12884 (start_symtab): Update.
12885 (set_last_source_file, get_last_source_file): Declare.
12886 * coffread.c (complete_symtab): Use set_last_source_file.
12887 (coff_end_symtab): Likewise.
12888 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12889 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12890 set_last_source_file.
12891 (process_one_symbol): Use get_last_source_file.
12892 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12893 (psymtab_to_symtab_1): Use get_last_source_file.
12894 * xcoffread.c (process_linenos): Use get_last_source_file.
12895 (complete_symtab): Use set_last_source_file.
12896 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12897 (scan_xcoff_symtab): Use set_last_source_file.
12898
12899 2013-01-21 Tom Tromey <tromey@redhat.com>
12900
12901 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12902 (symbol_set_names): Remove casts. Handle field const-ness.
12903
12904 2013-01-21 Tom Tromey <tromey@redhat.com>
12905
12906 * dwarf2read.c (new_symbol_full): Remove cast.
12907 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12908 * symtab.h (symbol_set_demangled_name): Update.
12909
12910 2013-01-21 Tom Tromey <tromey@redhat.com>
12911
12912 * main.c (captured_main): Call bfd_init.
12913
12914 2013-01-21 Tom Tromey <tromey@redhat.com>
12915
12916 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12917 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12918 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12919 * NEWS: Update.
12920
12921 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12922
12923 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12924
12925 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12926
12927 Fix gdb.fortran/common-block.exp crash in PIE mode.
12928 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12929 LOC_COMMON_BLOCK.
12930 * f-valprint.c (info_common_command_for_block): Expect
12931 LOC_COMMON_BLOCK in gdb_assert.
12932 * symtab.h (struct general_symbol_info): Update comment for the
12933 common_block member.
12934 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12935 (enum address_class): New member LOC_COMMON_BLOCK.
12936
12937 2013-01-18 David Blaikie <dblaikie@gmail.com>
12938
12939 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12940
12941 2013-01-18 Tom Tromey <tromey@redhat.com>
12942
12943 PR c++/14999:
12944 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12945 Call require_rvalue.
12946
12947 2013-01-18 Yao Qi <yao@codesourcery.com>
12948
12949 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12950 (dbx_read_symtab): New declaration.
12951 (dbx_psymtab_to_symtab): Delete.
12952 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12953 Rename parameter PST to SELF. Exchanged two parameters.
12954 (start_psymtab): Caller update.
12955 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12956 (dwarf2_read_symtab): New declaration.
12957 (dwarf2_psymtab_to_symtab): Delete.
12958 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12959 Rename parameter PST to SELF. Exchanged two parameters.
12960 (create_partial_symtab): Caller update.
12961 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12962 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12963 Rename parameter PST to SELF. Exchanged two parameters.
12964 (parse_partial_symbols, new_psymtab): Caller update.
12965 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12966 two parameters.
12967 * psymtab.c (psymtab_to_symtab): Caller update.
12968 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12969 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12970 Rename parameter PST to SELF. Exchanged two parameters.
12971 (xcoff_start_psymtab): Caller update.
12972
12973 2013-01-18 Yao Qi <yao@codesourcery.com>
12974
12975 * infrun.c (proceed): Rename local variable 'oneproc' to
12976 'force_step'.
12977
12978 2013-01-17 Doug Evans <dje@google.com>
12979
12980 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12981 (dw2_build_type_unit_groups): Delete. All uses updated.
12982
12983 * symtab.h (struct symbol_search): Add comment.
12984
12985 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12986
12987 * symtab.c (compare_filenames_for_search): New comment for
12988 HAS_DRIVE_SPEC.
12989
12990 2013-01-17 Tom Tromey <tromey@redhat.com>
12991
12992 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12993
12994 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12995
12996 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12997 initialize it by existing make_cleanup. Call new do_cleanups.
12998
12999 2013-01-17 Tom Tromey <tromey@redhat.com>
13000
13001 * cp-abi.c (cp_abi_completer): New function.
13002 (_initialize_cp_abi): Set completer for "set cp-abi".
13003
13004 2013-01-17 Tom Tromey <tromey@redhat.com>
13005
13006 * mem-break.c: Remove obsolete comment.
13007 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
13008
13009 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13010
13011 * jit.c (jit_reader_load_command): Interpret the jit reader name
13012 as an absolute path if it begins with a forward slash.
13013
13014 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
13015
13016 PR gdb/14550
13017
13018 * jit.c (finalize_symtab): Ensure that only the global block has a
13019 NULL superblock.
13020
13021 2013-01-17 Pedro Alves <palves@redhat.com>
13022
13023 * acinclude.m4: Include ../config/plugins.m4,
13024 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
13025 * Makefile.in (aclocal_m4_deps): Update.
13026 * aclocal.m4: Renegerate.
13027
13028 2013-01-16 Doug Evans <dje@google.com>
13029
13030 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
13031
13032 2013-01-16 Pedro Alves <palves@redhat.com>
13033 Tom Tromey <tromey@redhat.com>
13034
13035 PR cli/7221:
13036 * NEWS: Add "catch signal".
13037 * breakpoint.c (base_breakpoint_ops): No longer static.
13038 (bpstat_explains_signal): New function.
13039 (init_catchpoint): No longer static.
13040 (base_breakpoint_explains_signal): New function.
13041 (base_breakpoint_ops): Initialize new field.
13042 * breakpoint.h (enum bpstat_signal_value): New.
13043 (struct breakpoint_ops) <explains_signal>: New field.
13044 (bpstat_explains_signal): Remove macro, declare as function.
13045 (base_breakpoint_ops, init_catchpoint): Declare.
13046 * break-catch-sig.c: New file.
13047 * inferior.h (signal_catch_update): Declare.
13048 * infrun.c (signal_catch): New global.
13049 (handle_syscall_event): Update for change to
13050 bpstat_explains_signal.
13051 (handle_inferior_event): Likewise. Always handle random signals
13052 via bpstats.
13053 (signal_cache_update): Check signal_catch.
13054 (signal_catch_update): New function.
13055 (_initialize_infrun): Initialize signal_catch.
13056 * Makefile.in (SFILES): Add break-catch-sig.c.
13057 (COMMON_OBS): Add break-catch-sig.o.
13058
13059 2013-01-16 Tom Tromey <tromey@redhat.com>
13060
13061 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
13062 (print_one_catch_solib, print_one_catch_syscall)
13063 (print_one_catch_exec, print_one_exception_catchpoint): Emit
13064 "catch-type".
13065
13066 2013-01-16 Yao Qi <yao@codesourcery.com>
13067
13068 * printcmd.c (current_display_number): Make it static.
13069
13070 2013-01-16 Yao Qi <yao@codesourcery.com>
13071
13072 * infcmd.c (step_once): Don't check '!single_inst' as it was
13073 checked before.
13074
13075 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13076
13077 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13078
13079 2013-01-14 Tom Tromey <tromey@redhat.com>
13080
13081 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13082 set command.
13083 * command.h (add_setshow_string_noescape_cmd): Update.
13084 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13085 (complete_set_gnutarget): New function.
13086 (_initialize_core): Set the "set gnutarget" completer.
13087
13088 2013-01-14 Tom Tromey <tromey@redhat.com>
13089
13090 PR symtab/14442:
13091 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13092 (c_type_print_modifier): Likewise.
13093 * dwarf2read.c (read_tag_restrict_type): New function.
13094 (read_type_die_1): Handle DW_TAG_restrict_type.
13095 * gdbtypes.c (make_restrict_type): New function.
13096 (recursive_dump_type): Handle TYPE_RESTRICT.
13097 * gdbtypes.h (enum type_flag_values): Renumber.
13098 (enum type_instance_flag_value): Add
13099 TYPE_INSTANCE_FLAG_RESTRICT.
13100 (TYPE_RESTRICT): New macro.
13101 (make_restrict_type): Declare.
13102
13103 2013-01-14 Tom Tromey <tromey@redhat.com>
13104
13105 PR symtab/14931:
13106 * psymtab.c (struct psymtab_state): New.
13107 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13108 functions.
13109 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13110 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13111
13112 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13113 Pedro Alves <palves@redhat.com>
13114
13115 PR remote/14786
13116
13117 * remote.c (remote_threads_info): Make a copy of the reply from
13118 qfThreadInfo and use that instead of rs->buf.
13119
13120 2013-01-14 Yao Qi <yao@codesourcery.com>
13121
13122 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13123 (dbx_psymtab_to_symtab): Likewise.
13124 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13125 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13126 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13127
13128 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13129
13130 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13131 make_cleanup_restore_current_language. Call set_language. Move
13132 OLD_CHAIN and INNER_CHAIN cleanups.
13133 * utils.c (do_restore_current_language)
13134 (make_cleanup_restore_current_language): New functions.
13135 * utils.h (make_cleanup_restore_current_language): New declaration.
13136
13137 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13138
13139 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13140 non-existing files.
13141
13142 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13143 non-existing files if FILENAME is already absolute.
13144
13145 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13146
13147 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13148 fputs_filtered. Append trailing newline.
13149
13150 2013-01-11 Yao Qi <yao@codesourcery.com>
13151 Stan Shebs <stan@codesourcery.com>
13152
13153 * psymtab.c (init_psymbol_list): Clarify the comment.
13154
13155 2013-01-11 Yao Qi <yao@codesourcery.com>
13156
13157 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13158 (update_dprintf_command_list): Assert that 'printf_line' is
13159 non-null. Remove condition check.
13160
13161 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13162
13163 Code cleanup.
13164 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13165 type const char *.
13166 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13167 const char *.
13168 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13169
13170 2013-01-09 Anthony Green <green@moxielogic.com>
13171
13172 * cp-abi.c (cplus_print_vtable): Don't return value from void
13173 function.
13174 * ada-lang.c (re_set_catch_assert): Ditto.
13175
13176 2013-01-09 Doug Evans <dje@google.com>
13177
13178 * symfile.h (quick_symbol_functions): Delete member
13179 pre_expand_symtabs_matching. All uses removed.
13180 * dwarf2read.c (dw2_lookup_symbol): Implement.
13181 (dw2_do_expand_symtabs_matching): Delete.
13182 (dw2_pre_expand_symtabs_matching): Delete.
13183 (struct dw2_symtab_iterator): New type.
13184 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13185 (dw2_expand_symtabs_for_function): Rewrite.
13186 (dwarf2_gdb_index_functions): Update.
13187 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13188 (psym_functions): Update.
13189
13190 2013-01-09 Tom Tromey <tromey@redhat.com>
13191
13192 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13193 * configure: Rebuild.
13194 * configure.ac: Add somread.o to the build if BFD has SOM
13195 support.
13196 * somread.c: Include som/aout.h, not syms.h.
13197 (som_symtab_read): Use som_external_symbol_dictionary_record.
13198 Unpack records manually.
13199 (_initialize_somread): Declare.
13200
13201 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13202
13203 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13204 Cast return_address to 64bits.
13205
13206 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13207
13208 * printcmd.c: Remove define of function output_command.
13209 * tracepoint.c: Remove extern of function output_command.
13210 * valprint.h: (output_command): New extern.
13211
13212 2013-01-07 Tom Tromey <tromey@redhat.com>
13213
13214 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13215 Remove.
13216 (objc_language_defn): Use c_printchar, c_printstr,
13217 c_emit_char.
13218
13219 2013-01-07 Tom Tromey <tromey@redhat.com>
13220
13221 PR cli/7719:
13222 * NEWS: Update.
13223 * ada-valprint.c (printstr, print_field_values): Remove
13224 "inspect_it" code.
13225 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13226 code.
13227 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13228 code.
13229 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13230 * main.c (captured_main): Remove "epoch" argument.
13231 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13232 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13233 * p-valprint.c (pascal_object_print_value_fields): Remove
13234 "inspect_it" code.
13235 * printcmd.c (print_command_1): Remove 'inspect' argument.
13236 (print_command, call_command): Update.
13237 (inspect_command): Remove.
13238 (_initialize_printcmd): Make "inspect" an alias for "print".
13239 * top.c (epoch_interface): Remove.
13240 * top.h (epoch_interface): Remove.
13241 * valprint.c (user_print_options): Update.
13242 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13243 * valprint.h (struct value_print_options) <inspect_it>: Remove
13244 field.
13245
13246 2013-01-04 Tom Tromey <tromey@redhat.com>
13247
13248 * valprint.h (read_string): Add 'extern'.
13249
13250 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13251
13252 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13253 used to decide whether to define darwin_read_dyld_info or not.
13254
13255 2013-01-03 Pierre Muller <muller@sourceware.org>
13256
13257 * main.c (relocate_gdb_directory): Avoid calling stat function
13258 if DIR is empty.
13259
13260 2013-01-03 Yao Qi <yao@codesourcery.com>
13261
13262 * psymtab.c (fixup_psymbol_section): Update declaration.
13263 (fixup_psymbol_section): Remove code returning value.
13264
13265 2013-01-03 Yao Qi <yao@codesourcery.com>
13266
13267 * symtab.h: Remove some out of date comments.
13268 (enum exception_event_kind): Move it ...
13269 * breakpoint.c: ... here.
13270
13271 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13272
13273 PR gdb/14405
13274 * darwin-nat.c (darwin_read_dyld_info): Only build if
13275 TASK_DYLD_INFO_COUNT is defined.
13276 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13277 TASK_DYLD_INFO_COUNT is defined.
13278
13279 2013-01-02 Tom Tromey <tromey@redhat.com>
13280
13281 * symfile.h (struct ecoff_debug_hack): Remove.
13282 * objfiles.c: Don't include mdebugread.h.
13283
13284 2013-01-02 Tom Tromey <tromey@redhat.com>
13285
13286 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13287 * configure.ac: Check for Mach-O support in BFD. Update
13288 CONFIG_OBS.
13289 * configure: Rebuild.
13290
13291 2013-01-02 Tom Tromey <tromey@redhat.com>
13292
13293 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13294 * configure.ac: Use GDB_AC_CHECK_BFD.
13295 * configure: Rebuild.
13296
13297 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13298
13299 * MAINTAINERS: Update my email.
13300
13301 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13302
13303 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13304
13305 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13306
13307 * rs6000-nat.c (bss_data_overlap): New function.
13308 (vmap_symtab): Use it to adjust the .bss section's offset.
13309
13310 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13311
13312 Update year range in copyright notice of all files.
13313
13314 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13315
13316 * top.c (print_gdb_version): Update copyright year.
13317
13318 For older changes see ChangeLog-2012.
13319 \f
13320 Local Variables:
13321 mode: change-log
13322 left-margin: 8
13323 fill-column: 74
13324 version-control: never
13325 coding: utf-8
13326 End:
This page took 0.310604 seconds and 4 git commands to generate.