wrong dimension found in ada-lang.c:ada_array_bound_from_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12013-12-13 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_array_bound_from_type): Move the declaration
4 and assignment of variable "elt_type" inside the else block
5 where it is used. Add two missing check_typedef calls.
6 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
7 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
8
92013-12-13 Joel Brobecker <brobecker@adacore.com>
10
11 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
12 between 'struct type *' and 'arr_type'.
13
142013-12-12 Siva Chandra Reddy <sivachandra@google.com>
15
16 PR python/16113
17 * NEWS (Python Scripting): Add entry for the new feature and the
18 new attribute of gdb.Field objects.
19 * python/py-type.c (gdbpy_is_field): New function
20 (convert_field): Add 'parent_type' attribute to gdb.Field
21 objects.
22 * python/py-value.c (valpy_getitem): Allow subscript value to be
23 a gdb.Field object.
24 (value_has_field): New function
25 (get_field_flag): New function
26 * python/python-internal.h (gdbpy_is_field): Add declaration.
27
282013-12-12 Pedro Alves <palves@redhat.com>
29
30 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
31 const, and remove casts.
32
332013-12-12 Pedro Alves <palves@redhat.com>
34
35 * cli/cli-cmds.c (source_script_from_stream) Use have_python
36 instead of catching UNSUPPORTED_ERROR.
37 * exceptions.h (UNSUPPORTED_ERROR): Delete.
38 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
39 error if called.
40 * python/python.h (have_python): New static inline function.
41
422013-12-11 Doug Evans <dje@google.com>
43
44 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
45 "can't find DWO" warning.
46
472013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
48
49 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
50 to get_probe_argument_count and evaluate_probe_argument.
51 * probe.c (get_probe_argument_count): Adjust declaration to accept
52 frame. Pass frame to probe_ops's get_probe_argument_count.
53 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
54 (probe_safe_evaluate_at_pc): Pass frame to
55 get_probe_argument_count and evaluate_probe_argument.
56 * probe.h (struct probe_ops) <get_probe_argument_count,
57 evaluate_probe_argument>: Adjust declarations to accept frame.
58 (get_probe_argument_count, evaluate_probe_argument): Likewise.
59 * solib-svr4.c (solib_event_probe_action): Get current frame.
60 Pass it to get_probe_argument_count.
61 (svr4_handle_solib_event): Get current frame. Pass it to
62 get_probe_argument_count and evaluate_probe_argument.
63 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
64 accept gdbarch. Do not obtain it from the probe's objfile.
65 (stap_get_probe_argument_count): Adjust declaration to accept
66 frame. Obtain gdbarch from the frame. Call generic
67 can_evaluate_probe_arguments. Pass gdbarch to
68 stap_parse_probe_arguments.
69 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
70 stap_parse_probe_arguments.
71 (stap_evaluate_probe_argument): Adjust declaration to accept
72 frame. Obtain gdbarch from the frame. Pass gdbarch to
73 stap_get_arg.
74 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
75 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
76 get_probe_argument_count and evaluate_probe_argument.
77
782013-12-10 Doug Evans <dje@google.com>
79
80 PR 16286
81 * c-lang.c (c_get_string): Ignore the declared size of the object
82 if a specific length is requested.
83
842013-12-10 Doug Evans <dje@google.com>
85
86 * interps.h (interp_exec_p): Delete.
87 * interps.c (interp_exec_p): Delete.
88 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
89 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
90
912013-12-10 Yao Qi <yao@codesourcery.com>
92
93 * amd64-tdep.c (amd64_analyze_stack_align): Call
94 target_read_code instead of target_read_memory.
95 (amd64_analyze_prologue): Call read_code_unsigned_integer
96 instead of read_memory_unsigned_integer. Call read_code
97 instead of read_memory.
98 (amd64_skip_xmm_prologue): Likewise.
99
1002013-12-10 Yao Qi <yao@codesourcery.com>
101
102 * corefile.c (read_code): New function.
103 (read_code_integer): New function.
104 (read_code_unsigned_integer): New function.
105 * gdbcore.h (read_code): Declare.
106 (read_code_integer): Declare.
107 (read_code_unsigned_integer): Declare.
108 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
109 of target_read_memory. Call read_code_unsigned_integer instead
110 of read_memory_unsigned_integer.
111 (i386_analyze_struct_return): Likewise.
112 (i386_skip_probe): Likewise.
113 (i386_analyze_stack_align): Likewise.
114 (i386_match_pattern): Likewise.
115 (i386_skip_noop): Likewise.
116 (i386_analyze_frame_setup): Likewise.
117 (i386_analyze_register_saves): Likewise.
118 (i386_skip_prologue): Likewise.
119 (i386_skip_main_prologue): Likewise.
120 (i386_frame_cache_1): Likewise.
121
1222013-12-10 Yao Qi <yao@codesourcery.com>
123
124 * infrun.c: Include "target-dcache.h".
125 (prepare_for_detach): Call target_dcache_invalidate.
126 (wait_for_inferior): Likewise.
127 (fetch_inferior_event): Likewise.
128 (infrun_thread_stop_requested_callback): Likewise. Set
129 overlay_cache_invalid to 1.
130
1312013-12-10 Joel Brobecker <brobecker@adacore.com>
132
133 * symtab.c (symbol_find_demangled_name): Add handling of
134 Ada symbols.
135
1362013-12-10 Joel Brobecker <brobecker@adacore.com>
137
138 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
139 * NEWS: Expand the entry documenting the new -exec-run --start
140 option to mention the corresponding new entry in the output of
141 "-list-features".
142
1432013-12-10 Joel Brobecker <brobecker@adacore.com>
144
145 * windows-nat.c (handle_load_dll): Add comments.
146 (windows_ensure_ntdll_loaded): New function.
147 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
148 Add FIXME comment.
149
1502013-12-08 Joel Brobecker <brobecker@adacore.com>
151
152 GDB 7.6.2 released.
153
1542013-12-08 Yao Qi <yao@codesourcery.com>
155
156 * stack.c (frame_info): Initialize variable caller_pc.
157
1582013-12-06 Pedro Alves <palves@redhat.com>
159
160 * frame.c (enum cached_copy_status): New enum.
161 (struct frame_info) <prev_pc.p>: Change type to enum
162 cached_copy_status.
163 (fprint_frame): Handle not saved and unavailable prev_pc values.
164 (frame_unwind_pc_if_available): Delete and merge contents into ...
165 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
166 to use enum cached_copy_status.
167 (frame_unwind_caller_pc_if_available): Delete.
168 (create_new_frame): Adjust.
169 * frame.h (frame_unwind_caller_pc_if_available): Delete
170 declaration.
171 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
172 frame_unwind_caller_pc_if_available, and handle
173 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
174 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
175 (val_print_not_saved): New function.
176 * valprint.h (val_print_not_saved): Declare.
177
1782013-12-06 Andrew Burgess <aburgess@broadcom.com>
179 Pedro Alves <palves@redhat.com>
180
181 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
182 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
183 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
184 * spu-tdep.c (spu_software_single_step): Throw
185 OPTIMIZED_OUT_ERROR.
186 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
187
1882013-12-06 Tom Tromey <tromey@redhat.com>
189
190 * objfiles.c (free_objfile): Update comment.
191
1922013-12-06 Tom Tromey <tromey@redhat.com>
193
194 * objfiles.h (objfile_to_front): Remove.
195 * objfiles.c (objfile_to_front): Remove.
196
1972013-12-06 Tom Tromey <tromey@redhat.com>
198
199 * minsyms.c (get_symbol_leading_char): Remove unnecessary
200 declaration.
201
2022013-12-06 Tom Tromey <tromey@redhat.com>
203
204 * psympriv.h (struct partial_symtab) <user>: Move earlier.
205
2062013-12-06 Tom Tromey <tromey@redhat.com>
207
208 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
209 (list_command): Likewise.
210
2112013-12-06 Tom Tromey <tromey@redhat.com>
212
213 * psymtab.c (allocate_psymtab): Put the filename in the filename
214 bcache.
215
2162013-12-06 Tom Tromey <tromey@redhat.com>
217
218 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
219 * symtab.h (struct symtab) <dirname>: Now const.
220
2212013-12-06 Tom Tromey <tromey@redhat.com>
222
223 * symfile.c (allocate_symtab): Remove cast.
224 * symtab.h (struct symtab) <filename>: Now const.
225
2262013-12-06 Tom Tromey <tromey@redhat.com>
227
228 * break-catch-throw.c (fetch_probe_arguments): Use
229 get_probe_argument_count and evaluate_probe_argument.
230 * elfread.c (elf_get_probe_argument_count)
231 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
232 (elf_compile_to_ax): Remove.
233 (elf_probe_fns): Update.
234 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
235 (evaluate_probe_argument): Call method on probe, not via sym
236 functions.
237 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
238 evaluate_probe_argument.
239 (compile_probe_arg): Use get_probe_argument_count. Call method on
240 probe, not via sym functions.
241 * symfile-debug.c (debug_sym_get_probe_argument_count)
242 (debug_can_evaluate_probe_arguments)
243 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
244 Remove.
245 (debug_sym_probe_fns): Remove.
246 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
247 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
248 sym_compile_to_ax>: Remove fields.
249
2502013-12-06 Pierre Muller <muller@sourceware.org>
251
252 Fix completion for pascal language.
253 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
254 (exp : field_exp name COMPLETE): New rule.
255 (exp : SIZEOF): Set correct current_type.
256 (last_was_structop): Remove static variable.
257 (yylex): Remove saw_structop local variable.
258 Adapt code to removal of variables above.
259
2602013-12-06 Joel Brobecker <brobecker@adacore.com>
261
262 * frame.c (get_prev_frame_1): Delete variable "this_id".
263 Replace its use by a call to get_frame_id.
264
2652013-12-05 Anthony Green <green@moxielogic.com>
266
267 * moxie-tdep.c (moxie_software_single_step): New function.
268 (INST2OFFSET): New helper macro.
269 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
270 (moxie_process_readu): Move this up in the file.
271
2722013-12-05 Doug Evans <xdje42@gmail.com>
273
274 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
275
2762013-12-05 Joel Brobecker <brobecker@adacore.com>
277 Tristan Gingold <gingold@adacore.com>
278
279 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
280 Accept version 2. Ignore operations using opcode 6.
281
2822013-12-05 Joel Brobecker <brobecker@adacore.com>
283
284 * ada-lex.l (find_dot_all): Fix coding style violations.
285
2862013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
287
288 * NEWS: Add section for Intel(R) Architecture Instructions
289 Extesions mentioning MPX.
290
2912013-12-03 Joel Brobecker <brobecker@adacore.com>
292
293 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
294
2952013-12-03 Joel Brobecker <brobecker@adacore.com>
296
297 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
298 when parse_exp_1 threw an error. Add comment.
299
3002013-12-03 Joel Brobecker <brobecker@adacore.com>
301
302 * NEWS: Mention "-list-features" in the entry documenting
303 the support for the "--language" option.
304
3052013-12-03 Tom Tromey <tromey@redhat.com>
306 Jan Kratochvil <jan.kratochvil@redhat.com>
307 Doug Evans <dje@google.com>
308 Samuel Bronson <naesten@gmail.com>
309
310 Bring back gdb-add-index as a contrib script.
311 * contrib/gdb-add-index.sh: New file.
312 * NEWS: Note the addition.
313
3142013-12-03 Samuel Bronson <naesten@gmail.com>
315
316 * MAINTAINERS (Write After Approval): Add myself to the list.
317
3182013-12-03 Joel Brobecker <brobecker@adacore.com>
319
320 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
321
3222013-12-03 Joel Brobecker <brobecker@adacore.com>
323
324 * mi/mi-main.c: Remove trailing spaces throughout.
325
3262013-12-03 Pedro Alves <palves@redhat.com>
327 Joel Brobecker <brobecker@adacore.com>
328
329 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
330 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
331 of a regular error when the GDB/MI command does not exist.
332 * mi/mi-main.c (mi_cmd_list_features): Add
333 "undefined-command-error-code".
334 (mi_print_exception): Print an "undefined-command"
335 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
336 * NEWS: Add entry documenting the new "code" variable in
337 "^error" result records.
338
3392013-12-03 Joel Brobecker <brobecker@adacore.com>
340
341 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
342 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
343 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
344 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
345 field to output of "-list-features".
346
347 * NEWS: Add entry for new -info-gdb-mi-command.
348
3492013-12-02 Doug Evans <dje@google.com>
350 Jan Kratochvil <jan.kratochvil@redhat.com>
351
352 * objfiles.c (allocate_objfile): Save original_name as an absolute
353 path.
354 * objfiles.h (struct objfile): Expand comment on original_name.
355 * source.c (openp): Call gdb_abspath.
356 * utils.c (gdb_abspath): New function.
357 * utils.h (gdb_abspath): Declare.
358
3592013-12-02 Pedro Alves <palves@redhat.com>
360
361 * dcache.c (dcache_read_line): Use target_read_raw_memory.
362 * target.c (target_read_raw_memory): New function.
363 (target_read_stack, target_write_memory, target_write_raw_memory):
364 Update comment.
365 (target_read_code): Add comment.
366 * target.h (target_read_raw_memory): Declare.
367
3682013-12-02 Pedro Alves <palves@redhat.com>
369
370 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
371 unconditionally.
372
3732013-12-02 Pedro Alves <pedro@codesourcery.com>
374 Maciej W. Rozycki <macro@codesourcery.com>
375
376 * remote.c (putpkt_for_catch_errors): Remove function.
377 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
378 gracefully.
379
3802013-12-02 Pedro Alves <palves@redhat.com>
381
382 PR remote/15974
383 * remote-notif.c (handle_notification): Return early if no
384 notification is found.
385
3862013-12-02 Joel Brobecker <brobecker@adacore.com>
387
388 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
389 preprocessor check.
390
3912013-12-02 Joel Brobecker <brobecker@adacore.com>
392
393 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
394
3952013-12-02 Joel Brobecker <brobecker@adacore.com>
396
397 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
398 * ctf.c (ctf_start): Remove obsolete comment.
399
4002013-12-02 Joel Brobecker <brobecker@adacore.com>
401
402 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
403
4042013-11-30 Doug Evans <xdje42@gmail.com>
405
406 * auto-load.h (script_language): New members name, auto_load_enabled.
407 Add missing comments on struct members.
408 (auto_load_objfile_script): Delete.
409 * auto-load.c: #include "cli/cli-cmds.h".
410 (auto_load_gdb_scripts_enabled): New function.
411 (script_language_gdb): Update, add new members.
412 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
413 and call to maybe_add_script moved to caller.
414 (auto_load_objfile_script_1): Auto-load safe-checking and
415 call to maybe_add_script moved here.
416 (auto_load_objfile_script): Make static. Early exit if support for
417 scripting language hasn't been compiled in, or auto-loading has been
418 disabled.
419 (source_section_scripts): Argument "source_name" renamed to
420 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
421 with section_name. Skip loading script if support for scripting
422 language hasn't been compiled in, or auto-loading has been disabled.
423 Call language->source_script_for_objfile instead of calling
424 source_python_script_for_objfile directly.
425 (load_auto_scripts_for_objfile): Update.
426 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
427 (gdbpy_load_auto_script_for_objfile): Delete.
428 (auto_load_python_scripts_enabled): New function.
429 (script_language_python): Update, add new members.
430 (gdbpy_script_language_defn): New function.
431 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
432 (gdbpy_script_language_defn): Declare.
433
434 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
435 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
436 (source_section_scripts): Moved here from py-auto-load.c.
437 (auto_load_section_scripts): Ditto.
438 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
439 auto-load.c, renamed AUTO_SECTION_NAME.
440 (source_section_scripts, auto_load_section_scripts): Moved to
441 auto-load.c.
442
4432013-11-30 Yao Qi <yao@codesourcery.com>
444
445 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
446
4472013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
448
449 * gdbarch.sh: Remove include of "gdb_string.h", replace by
450 <string.h>.
451
4522013-11-29 Doug Evans <xdje42@gmail.com>
453
454 * python/py-auto-load.c (source_section_scripts): Move comment to
455 more relevant location.
456
457 Whitespace cleanup.
458 * python/py-breakpoint.c: Remove trailing whitespace.
459 * python/py-cmd.c: Ditto.
460 * python/py-evts.c: Ditto.
461 * python/py-finishbreakpoint.c: Ditto.
462 * python/py-frame.c: Ditto.
463 * python/py-function.c: Ditto.
464 * python/py-inferior.c: Ditto.
465 * python/py-infthread.c: Ditto.
466 * python/py-param.c: Ditto.
467 * python/py-prettyprint.c: Ditto.
468 * python/py-symbol.c: Ditto.
469 * python/py-type.c: Ditto.
470 * python/py-utils.c: Ditto.
471 * python/py-value.c: Ditto.
472 * python/python-internal.h: Ditto.
473 * python/python.c: Ditto.
474
4752013-11-29 Pedro Alves <palves@redhat.com>
476
477 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
478
4792013-11-29 Pedro Alves <palves@redhat.com>
480
481 * breakpoint.c (build_target_condition_list): Release previous
482 conditions.
483 (build_target_command_list): Release previous commands.
484 (bp_location_dtor): Release target conditions and commands.
485 * remote.c (remote_add_target_side_condition): Don't release
486 conditions.
487 (remote_add_target_side_commands): Don't release commands.
488
4892013-11-29 Yao Qi <yao@codesourcery.com>
490 Pedro Alves <palves@redhat.com>
491
492 * dcache.c (dcache_read_line): Use current_target.beneath
493 instead of &current_target.
494 * target.c (memory_xfer_partial_1): Factor code out to ...
495 (raw_memory_xfer_partial): ... it. New function.
496 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
497 is TARGET_OBJECT_RAW_MEMORY.
498
4992013-11-28 Doug Evans <xdje42@gmail.com>
500
501 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
502 breakpoint_object. All uses updated.
503 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
504 breakpoint_object. All uses updated.
505 * python.c (*): All uses of breakpoint_object updated.
506 * python.h (*): All uses of breakpoint_object updated.
507 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
508 * python/py-finishbreakpoint.c (*): Ditto.
509
5102013-11-28 Doug Evans <xdje42@gmail.com>
511
512 * configure.ac: Add comments delineating libpython and libmcheck.
513 * configure: Regenerate.
514
5152013-11-28 Andrew Burgess <aburgess@broadcom.com>
516 Pedro Alves <palves@redhat.com>
517
518 * valprint.c (value_check_printable): If the value is entirely
519 unavailable, print a single "<unavailable>" instead of printing
520 all subfields.
521
5222013-11-28 Pedro Alves <palves@redhat.com>
523
524 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
525 Add "set debug frame" output.
526 (frame_stop_reason_symbol_string): New function.
527
5282013-11-28 Pedro Alves <palves@redhat.com>
529
530 * frame-unwind.c (default_frame_unwind_stop_reason): Return
531 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
532 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
533
5342013-11-28 Pedro Alves <palves@redhat.com>
535
536 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
537 set the unwind stop reason to UNWIND_OUTERMOST, not
538 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
539
5402013-11-28 Pedro Alves <palves@redhat.com>
541
542 * frame.c (frame_unwind_register): Say the register was "not
543 saved" instead of "optimized out".
544
5452013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
546
547 PR 16152
548 * configure: Rebuild.
549 * configure.ac: Tighten cygwin detection check.
550
5512013-11-27 Pedro Alves <palves@redhat.com>
552
553 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
554 register in the previous frame's arch.
555
5562013-11-27 Pedro Alves <palves@redhat.com>
557
558 * frame-unwind.c (frame_unwind_got_optimized): Return
559 an lval_register value instead of a not_lval value.
560
5612013-11-27 Andrew Burgess <aburgess@broadcom.com>
562
563 * frame.c: Include "valprint.h".
564 (frame_unwind_register_value): Use value_optimized_out.
565 * value.c (value_fetch_lazy): Likewise.
566
5672013-11-26 Andrew Burgess <aburgess@broadcom.com>
568
569 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
570
5712013-11-26 Tom Tromey <tromey@redhat.com>
572
573 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
574 2013-11-22.
575
5762013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
577
578 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
579 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
580 (HAS_MPX): New macro.
581 (HAS_AVX): New macro.
582 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
583
5842013-11-25 Keith Seitz <keiths@redhat.com>
585
586 PR c++/14819
587 * c-exp.y (classify_inner_name): If no matching symbol was
588 found, try looking up the token as a base class.
589 Likewise if a constructor was found.
590 * cp-namespace.c (find_type_baseclass_by_name): New function.
591 * cp-support.h (find_type_baseclass_by_name): Declare.
592 * valops.c (value_struct_elt_for_reference): If we get
593 a non-static field, try to get a value based on the
594 current instance, if any.
595
5962013-11-24 Yao Qi <yao@codesourcery.com>
597
598 * disasm.c (dis_asm_read_memory): Call target_read_code
599 instead of target_read_memory.
600
6012013-11-24 Yao Qi <yao@codesourcery.com>
602
603 * NEWS: Add note on new "set code-cache" option.
604 * target-dcache.c (code_cache_enabled_1): New variable.
605 (code_cache_enabled): New variable.
606 (show_code_cache, set_code_cache): New function.
607 (code_cache_enabled_p): New function.
608 (_initialize_target_dcache): Register command.
609 * target-dcache.h (code_cache_enabled_p): Declare.
610 * target.c (memory_xfer_partial_1):Handle
611 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
612 (target_read_code): New function.
613 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
614 New.
615 (target_read_code): Declare.
616
6172013-11-24 Yao Qi <yao@codesourcery.com>
618
619 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
620 (stack_cache_enabled_1): ... this. New variable.
621 (stack_cache_enabled_p): Rename to ...
622 (stack_cache_enabled): ... this. New variable.
623 (set_stack_cache_enabled_p): Rename to ...
624 (set_stack_cache): ... this. Update caller.
625 (show_stack_cache_enabled_p): Rename to ...
626 (show_stack_cache): ... this. Update caller.
627 (stack_cache_enabled): Rename to ...
628 (stack_cache_enabled_p): ... this. Update caller.
629 (_initialize_target_dcache): Replace "data cache" with
630 "target memory cache".
631 * target-dcache.h (stack_cache_enabled): Remove declaration.
632 (stack_cache_enabled_p): Add declaration.
633
6342013-11-23 Doug Evans <xdje42@gmail.com>
635
636 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
637 superfluous.
638
6392013-11-23 Doug Evans <xdje42@gmail.com>
640
641 * python/py-frame.c (frapy_block): Fix error message text.
642
6432013-11-23 Doug Evans <xdje42@gmail.com>
644
645 * cli/cli-script.c (multi_line_command_p): New function.
646 (recurse_read_control_structure, read_command_lines_1): Call it.
647 (execute_control_command): Consistently have a blank line between
648 each case.
649
6502013-11-22 Sterling Augustine <saugustine@google.com>
651
652 PR gdb/16196:
653 * valprint.c (read_string): Set new variable fetchlen based on
654 fetchlimit and size. Use it in call to partial_memory_read.
655 Update comment.
656
6572013-11-22 Tom Tromey <tromey@redhat.com>
658
659 PR backtrace/16155:
660 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
661 the return address column is unspecified.
662
6632013-11-22 Tom Tromey <tromey@redhat.com>
664 Pedro Alves <palves@redhat.com>
665
666 PR backtrace/16155
667 * value.c (value_fetch_lazy): Internal error if
668 get_frame_register_value returns the same register.
669
6702013-11-22 Pedro Alves <palves@redhat.com>
671 Tom Tromey <tromey@redhat.com>
672
673 * frame.c (frame_stash_add): Now returns whether a frame with the
674 same ID was already known.
675 (compute_frame_id): New function, factored out from get_frame_id.
676 (get_frame_id): No longer lazilly compute the frame id here.
677 (get_prev_frame_if_no_cycle): New function. Detects wider stack
678 cycles.
679 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
680 and checking for stack cycles here.
681
6822013-11-22 Pedro Alves <palves@redhat.com>
683
684 PR 16155
685 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
686 this frame and the new previous frame, not between this frame and
687 the next frame.
688
6892013-11-22 Pedro Alves <palves@redhat.com>
690
691 PR 16155
692 * dwarf2-frame.c (struct dwarf2_frame_cache)
693 <checked_tailcall_bottom, entry_cfa_sp_offset,
694 entry_cfa_sp_offset_p>: New fields.
695 (dwarf2_frame_cache): Adjust to use the new cache fields instead
696 of locals. Don't call dwarf2_tailcall_sniffer_first here.
697 (dwarf2_frame_prev_register): Call it here, but only once.
698
6992013-11-21 Doug Evans <xdje42@gmail.com>
700
701 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
702 (type_equality_entry): Move here from python/py-type.c.
703 (type_equality_entry_d): Ditto.
704 (compare_maybe_null_strings, check_types_equal): Ditto.
705 (check_types_worklist, types_deeply_equal): Ditto.
706 * gdbtypes.h (types_deeply_equal): Declare.
707 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
708 (typy_richcompare): Update.
709
7102013-11-20 Joel Brobecker <brobecker@adacore.com>
711
712 * python/py-value.c (is_intlike): Delete.
713 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
714 by use of is_integral_type.
715 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
716 by use of is_integral_type and check for TYPE_CODE_PTR.
717
7182013-11-20 Tom Tromey <tromey@redhat.com>
719
720 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
721 strerror module.
722 * gnulib/aclocal.m4: Update.
723 * gnulib/config.in: Update.
724 * gnulib/configure: Update.
725 * gnulib/import/Makefile.am: Update.
726 * gnulib/import/Makefile.in: Update.
727 * gnulib/import/errno.in.h: Remove.
728 * gnulib/import/intprops.h: Remove.
729 * gnulib/import/m4/errno_h.m4: Remove.
730 * gnulib/import/m4/gnulib-cache.m4: Update.
731 * gnulib/import/m4/gnulib-comp.m4: Update.
732 * gnulib/import/m4/strerror.m4: Remove.
733 * gnulib/import/m4/sys_socket_h.m4: Remove.
734 * gnulib/import/strerror-override.c: Remove.
735 * gnulib/import/strerror-override.h: Remove.
736 * gnulib/import/strerror.c: Remove.
737 * gnulib/update-gnulib.sh: Update.
738
7392013-11-20 Yao Qi <yao@codesourcery.com>
740
741 * target-dcache.c (target_dcache_get_or_init): Call
742 set_address_space_data if 'dcache' is NULL.
743
7442013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
745
746 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
747
7482013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
749
750 * python/lib/gdb/command/bound_register.py: New file.
751 * data-directory/Makefile.in: Copy bond_register.py to the right path
752 to be initialized at gdb startup.
753
7542013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
755
756 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
757 Add MPX registers.
758 (amd64_linux_read_description): Add initialization for MPX and
759 AVX independently.
760 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
761 (amd64_linux_gregset_reg_offset): Add MPX registers.
762 (amd64_linux_core_read_description): Add initialization for MPX
763 registers.
764 (_initialize_amd64_linux_tdep): Initialize MPX targets.
765 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
766 register on the list.
767 (tdesc_amd64_mpx_linux) Add new target for MPX.
768 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
769 (amd64_mpx_names): MPX register names.
770 (amd64_init_abi): Add MPX register while initializing the ABI.
771 (_initialize_amd64_tdep): Initialize MPX targets.
772 * amd64-tdep.h (amd64_regnum): Add MPX registers.
773 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
774
7752013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
776
777 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
778 registers on the range of registers to be read from
779 xsave buffer.
780 (i386_linux_read_description): Add case for MPX.
781 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
782 (i386_linux_gregset_reg_offset): Add MPX registers.
783 (i386_linux_core_read_description): Initialize also MPX.
784 (_initialize_i386_linux_tdep): Add mpx initialization.
785 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
786 mpx_register_names.
787 (i386_regnum): Add MPX registers.
788 (I386_MPX_NUM_REGS): New macro.
789 (i386_bnd_regnum_p): New function.
790 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
791 number of registers to be the number of BNDSTATUS.
792 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
793 * i386-tdep.c: Include features/i386/i386-mpx.c.
794 (i386_mpx_names): Add MPX register names array.
795 (i386_bnd_names): Add bnd pseudo register names array.
796 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
797 registers.
798 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
799 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
800 registers.
801 (i386_bnd_type): New function.
802 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
803 register types.
804 (i386_pseudo_register_read_into_value): Add bnd case.
805 (i386_pseudo_register_write): Add bnd pseudo registers.
806 (i386_register_reggroup_p): Add MPX register to the group all.
807 (i386_validate_tdesc_p): Add MPX to the target description
808 validation.
809 (i386_pseudo_register_name): Add bnd pseudo registers.
810 (i386_gdbarch_init): Add MPX for architecture initialization.
811 (_initia_initialize_i386_tdep): Add mpx initialization.
812 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
813 XSAVE buffer.
814 (XSAVE_MPX_ADDR): New macro.
815 (i387_supply_xsave): Add MPX case.
816 (i387_collect_xsave): Add MPX case.
817 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
818 (I387_BNDCFGU_REGNUM): New macro.
819 (I387_NUM_MPX_REGS): New macro.
820 (I387_NUM_BND_REGS): New macro.
821 (I387_NUM_MPX_CTRL_REGS): New macro.
822 (I387_MPXEND_REGNUM): New macro.
823 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
824 (I386_XSTATE_BNDCFG): Likewise.
825 (I386_XSTATE_MPX_MASK): Likewise.
826 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
827 (I386_XSTATE_BNDREGS_SIZE): New macro.
828 (I386_XSTATE_BNDCFG_SIZE): Likewise.
829 (I386_XSTATE_SIZE): Adapt for MPX.
830 (I386_XSTATE_MAX_SIZE): Likewise.
831
8322013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
833
834 * features/i386/Makefile: Adapts for using MPX registers.
835 * features/i386/32bit-mpx.xml: New file.
836 * features/i386/64bit-mpx.xml: Likewise.
837 * features/i386/amd64-mpx-linux.c: Likewise.
838 * features/i386/amd64-mpx-linux.xml: Likewise.
839 * features/i386/amd64-mpx.c: Likewise.
840 * features/i386/amd64-mpx.xml: Likewise.
841 * features/i386/i386-mpx-linux.c: Likewise.
842 * features/i386/i386-mpx-linux.xml: Likewise.
843 * features/i386/i386-mpx.c: Likewise.
844 * features/i386/i386-mpx.xml: Likewise.
845 * regformats/i386/amd64-mpx-linux.dat: New file.
846 * regformats/i386/amd64-mpx.dat: Likewise.
847 * regformats/i386/i386-mpx-linux.dat: Likewise.
848 * regformats/i386/i386-mpx.dat: Likewise.
849
8502013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
851
852 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
853 Modified logic of creating a bitfield to be in sync with
854 tdesc_gdb_type.
855
8562013-11-20 Will Newton <will.newton@linaro.org>
857
858 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
859 error message.
860
8612013-11-20 Yao Qi <yao@codesourcery.com>
862
863 * progspace.h (struct address_space_data): Declare.
864 * target-dcache.c: Include "progspace.h".
865 (target_dache): Remove.
866 (target_dcache_aspace_key): New.
867 (target_dcache_cleanup): New function.
868 (target_dcache_init_p): Get data through
869 target_dcache_aspace_key.
870 (target_dcache_invalidate): Likewise.
871 (target_dcache_get): Likewise.
872 (target_dcache_get_or_init): Likewise.
873 (_initialize_target_dcache): Initialize
874 target_dcache_aspace_key.
875
8762013-11-20 Yao Qi <yao@codesourcery.com>
877
878 * progspace.c (struct address_space): Update comments.
879 <REGISTRY_FIELDS>: New fields.
880 DEFINE_REGISTRY for address_space.
881 (new_address_space): Call address_space_alloc_data.
882 (free_address_space): Call address_space_free_data.
883 * progspace.h: Use DECLARE_REGISTRY.
884
8852013-11-20 Yao Qi <yao@codesourcery.com>
886
887 * Makefile.in (SFILES):Add target-dcache.c.
888 (HFILES_NO_SRCDIR): Add target-dcache.h.
889 (COMMON_OBS): Add target-dcache.o.
890 * dcache.c: Remove inclusion to "target.h". Include
891 "target-dcache.h".
892 * memattr.c: Include "target-dcache.h".
893 * top.c: Likewise.
894 * tracepoint.c: Likewise.
895 * target.c: (stack_cache_enabled_p_1): Move to
896 target-dcache.c.
897 (stack_cache_enabled_p): Likewise.
898 (set_stack_cache_enabled_p): Likewise.
899 (show_stack_cache_enabled_p): Likewise.
900 (target_dcache, target_dcache_init_p): Likewise.
901 (target_dcache_invalidate): Likewise.
902 (target_dcache_get, target_dcache_get_or_init): Likewise.
903 (memory_xfer_partial_1): Call function stack_cache_enabled.
904 (initialize_target): Move code to target-dcache.c.
905 * target.h (target_dcache_invalidate): Move to
906 target-dcache.h.
907 (target_dcache_get): Likewise.
908 * target-dcache.c: New.
909 * target-dcache.h: New.
910
9112013-11-20 Yao Qi <yao@codesourcery.com>
912
913 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
914 it is initialized.
915
9162013-11-20 Yao Qi <yao@codesourcery.com>
917
918 * dcache.c (last_cache): Remove.
919 (dcache_free, dcache_init): Update.
920 (dcache_update):
921 (dcache_print_line): Add parameter 'dcache'. Replace
922 'target_dcache' with 'dcache'.
923 (dcache_info): Move code to dcache_info_1. Call
924 'dcache_info_1'.
925 (dcache_info_1): New function.
926 (set_dcache_size): Call target_dcache_invalidate.
927 (set_dcache_line_size): Call target_dcache_invalidate.
928 * target.c (target_dcache_init_p): New function.
929 (target_dcache_invalidate): Check target_dcache_init_p first.
930 (target_dcache_get, target_dcache_get_or_init): New function.
931 (memory_xfer_partial_1): Adjust.
932 (initialize_target): Don't initialize 'target_dcache'.
933 * target.h (struct dcache_struct): Declare.
934 (target_dcache_get): Declare.
935
9362013-11-19 Yao Qi <yao@codesourcery.com>
937
938 * varobj.c (varobj_get_type): Fix typo.
939
9402013-11-19 Joel Brobecker <brobecker@adacore.com>
941
942 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
943
9442013-11-19 Joel Brobecker <brobecker@adacore.com>
945
946 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
947 "stat.h".
948
9492013-11-18 Tom Tromey <tromey@redhat.com>
950
951 * common/gdb_stat.h: Remove.
952 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
953 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
954 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
955 * corefile.c: Use sys/stat.h, not gdb_stat.h.
956 * ctf.c: Use sys/stat.h, not gdb_stat.h.
957 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
958 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
959 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
960 * exec.c: Use sys/stat.h, not gdb_stat.h.
961 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
962 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
963 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
964 * jit.c: Use sys/stat.h, not gdb_stat.h.
965 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
966 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
967 * main.c: Use sys/stat.h, not gdb_stat.h.
968 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
969 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
970 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
971 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
972 * procfs.c: Use sys/stat.h, not gdb_stat.h.
973 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
974 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
975 * remote.c: Use sys/stat.h, not gdb_stat.h.
976 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
977 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
978 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
979 * source.c: Use sys/stat.h, not gdb_stat.h.
980 * symfile.c: Use sys/stat.h, not gdb_stat.h.
981 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
982 * symtab.c: Use sys/stat.h, not gdb_stat.h.
983 * top.c: Use sys/stat.h, not gdb_stat.h.
984 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
985
9862013-11-18 Tom Tromey <tromey@redhat.com>
987
988 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
989 sys_stat.
990 * gnulib/aclocal.m4: Update.
991 * gnulib/config.in: Update.
992 * gnulib/configure: Update.
993 * gnulib/import/Makefile.am: Update.
994 * gnulib/import/Makefile.in: Update.
995 * gnulib/import/m4/gnulib-cache.m4: Update.
996 * gnulib/import/m4/gnulib-comp.m4: Update.
997 * gnulib/import/m4/sys_stat_h.m4: New.
998 * gnulib/import/m4/time_h.m4: New.
999 * gnulib/import/sys_stat.in.h: New.
1000 * gnulib/import/time.in.h: New.
1001
10022013-11-18 Tom Tromey <tromey@redhat.com>
1003
1004 * configure: Rebuild.
1005 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1006
10072013-11-18 Tom Tromey <tromey@redhat.com>
1008
1009 * configure: Rebuild.
1010 * configure.ac: Don't check for unistd.h.
1011
10122013-11-18 Tom Tromey <tromey@redhat.com>
1013
1014 * configure: Rebuild.
1015 * configure.ac: Don't check for stdlib.h
1016 * defs.h: Include stdlib.h unconditionally.
1017
10182013-11-18 Tom Tromey <tromey@redhat.com>
1019
1020 * config.in: Rebuild.
1021 * configure: Rebuild.
1022 * configure.ac: Don't check for stddef.h.
1023 * defs.h: Unconditionally include stddef.h. Remove duplicate
1024 inclusion.
1025
10262013-11-18 Tom Tromey <tromey@redhat.com>
1027
1028 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1029 * common/gdb_dirent.h: Remove.
1030 * common/filestuff.c: Use dirent.h.
1031 * common/linux-osdata.c: Use dirent.h.
1032 (NAMELEN): Define.
1033 * config.in: Rebuild.
1034 * configure: Rebuild.
1035 * configure.ac: Don't use AC_HEADER_DIRENT.
1036 * linux-fork.c: Use dirent.h
1037 * linux-nat.c: Use dirent.h.
1038 * nto-procfs.c: Use dirent.h.
1039 * procfs.c: Use dirent.h.
1040
10412013-11-18 Tom Tromey <tromey@redhat.com>
1042
1043 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1044 * gnulib/aclocal.m4: Update.
1045 * gnulib/config.in: Update.
1046 * gnulib/configure: Update.
1047 * gnulib/import/Makefile.am: Update.
1048 * gnulib/import/Makefile.in: Update.
1049 * gnulib/import/dirent.in.h: New.
1050 * gnulib/import/m4/dirent_h.m4: New.
1051 * gnulib/import/m4/gnulib-cache.m4: Update.
1052 * gnulib/import/m4/gnulib-comp.m4: Update.
1053
10542013-11-18 Tom Tromey <tromey@redhat.com>
1055
1056 * configure: Rebuild.
1057 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1058 strings.h.
1059
10602013-11-18 Tom Tromey <tromey@redhat.com>
1061
1062 * common/gdb_string.h: Remove.
1063 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1064 * ada-exp.y: Use string.h, not gdb_string.h.
1065 * ada-lang.c: Use string.h, not gdb_string.h.
1066 * ada-lex.l: Use string.h, not gdb_string.h.
1067 * ada-typeprint.c: Use string.h, not gdb_string.h.
1068 * ada-valprint.c: Use string.h, not gdb_string.h.
1069 * aix-thread.c: Use string.h, not gdb_string.h.
1070 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1071 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1072 * alpha-nat.c: Use string.h, not gdb_string.h.
1073 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1074 * alpha-tdep.c: Use string.h, not gdb_string.h.
1075 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1076 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1077 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1078 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1079 * amd64-nat.c: Use string.h, not gdb_string.h.
1080 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1081 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1082 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1083 * arch-utils.c: Use string.h, not gdb_string.h.
1084 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1085 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1086 * arm-tdep.c: Use string.h, not gdb_string.h.
1087 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1088 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1089 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1090 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1091 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1092 * avr-tdep.c: Use string.h, not gdb_string.h.
1093 * ax-gdb.c: Use string.h, not gdb_string.h.
1094 * ax-general.c: Use string.h, not gdb_string.h.
1095 * bcache.c: Use string.h, not gdb_string.h.
1096 * bfin-tdep.c: Use string.h, not gdb_string.h.
1097 * breakpoint.c: Use string.h, not gdb_string.h.
1098 * build-id.c: Use string.h, not gdb_string.h.
1099 * buildsym.c: Use string.h, not gdb_string.h.
1100 * c-exp.y: Use string.h, not gdb_string.h.
1101 * c-lang.c: Use string.h, not gdb_string.h.
1102 * c-typeprint.c: Use string.h, not gdb_string.h.
1103 * c-valprint.c: Use string.h, not gdb_string.h.
1104 * charset.c: Use string.h, not gdb_string.h.
1105 * cli-out.c: Use string.h, not gdb_string.h.
1106 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1107 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1108 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1109 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1110 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1111 * cli/cli-script.c: Use string.h, not gdb_string.h.
1112 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1113 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1114 * coffread.c: Use string.h, not gdb_string.h.
1115 * common/common-utils.c: Use string.h, not gdb_string.h.
1116 * common/filestuff.c: Use string.h, not gdb_string.h.
1117 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1118 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1119 * common/signals.c: Use string.h, not gdb_string.h.
1120 * common/vec.h: Use string.h, not gdb_string.h.
1121 * core-regset.c: Use string.h, not gdb_string.h.
1122 * corefile.c: Use string.h, not gdb_string.h.
1123 * corelow.c: Use string.h, not gdb_string.h.
1124 * cp-abi.c: Use string.h, not gdb_string.h.
1125 * cp-support.c: Use string.h, not gdb_string.h.
1126 * cp-valprint.c: Use string.h, not gdb_string.h.
1127 * cris-tdep.c: Use string.h, not gdb_string.h.
1128 * d-lang.c: Use string.h, not gdb_string.h.
1129 * dbxread.c: Use string.h, not gdb_string.h.
1130 * dcache.c: Use string.h, not gdb_string.h.
1131 * demangle.c: Use string.h, not gdb_string.h.
1132 * dicos-tdep.c: Use string.h, not gdb_string.h.
1133 * disasm.c: Use string.h, not gdb_string.h.
1134 * doublest.c: Use string.h, not gdb_string.h.
1135 * dsrec.c: Use string.h, not gdb_string.h.
1136 * dummy-frame.c: Use string.h, not gdb_string.h.
1137 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1138 * dwarf2loc.c: Use string.h, not gdb_string.h.
1139 * dwarf2read.c: Use string.h, not gdb_string.h.
1140 * elfread.c: Use string.h, not gdb_string.h.
1141 * environ.c: Use string.h, not gdb_string.h.
1142 * eval.c: Use string.h, not gdb_string.h.
1143 * event-loop.c: Use string.h, not gdb_string.h.
1144 * exceptions.c: Use string.h, not gdb_string.h.
1145 * exec.c: Use string.h, not gdb_string.h.
1146 * expprint.c: Use string.h, not gdb_string.h.
1147 * f-exp.y: Use string.h, not gdb_string.h.
1148 * f-lang.c: Use string.h, not gdb_string.h.
1149 * f-typeprint.c: Use string.h, not gdb_string.h.
1150 * f-valprint.c: Use string.h, not gdb_string.h.
1151 * fbsd-nat.c: Use string.h, not gdb_string.h.
1152 * findcmd.c: Use string.h, not gdb_string.h.
1153 * findvar.c: Use string.h, not gdb_string.h.
1154 * fork-child.c: Use string.h, not gdb_string.h.
1155 * frame.c: Use string.h, not gdb_string.h.
1156 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1157 * frv-tdep.c: Use string.h, not gdb_string.h.
1158 * gdb.c: Use string.h, not gdb_string.h.
1159 * gdb_bfd.c: Use string.h, not gdb_string.h.
1160 * gdbarch.c: Use string.h, not gdb_string.h.
1161 * gdbtypes.c: Use string.h, not gdb_string.h.
1162 * gnu-nat.c: Use string.h, not gdb_string.h.
1163 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1164 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1165 * go-exp.y: Use string.h, not gdb_string.h.
1166 * go-lang.c: Use string.h, not gdb_string.h.
1167 * go32-nat.c: Use string.h, not gdb_string.h.
1168 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1169 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1170 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1171 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1172 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1173 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1174 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1175 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1176 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1177 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1178 * i386-tdep.c: Use string.h, not gdb_string.h.
1179 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1180 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1181 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1182 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1183 * i387-tdep.c: Use string.h, not gdb_string.h.
1184 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1185 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1186 * inf-child.c: Use string.h, not gdb_string.h.
1187 * inf-ptrace.c: Use string.h, not gdb_string.h.
1188 * inf-ttrace.c: Use string.h, not gdb_string.h.
1189 * infcall.c: Use string.h, not gdb_string.h.
1190 * infcmd.c: Use string.h, not gdb_string.h.
1191 * inflow.c: Use string.h, not gdb_string.h.
1192 * infrun.c: Use string.h, not gdb_string.h.
1193 * interps.c: Use string.h, not gdb_string.h.
1194 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1195 * irix5-nat.c: Use string.h, not gdb_string.h.
1196 * jv-exp.y: Use string.h, not gdb_string.h.
1197 * jv-lang.c: Use string.h, not gdb_string.h.
1198 * jv-typeprint.c: Use string.h, not gdb_string.h.
1199 * jv-valprint.c: Use string.h, not gdb_string.h.
1200 * language.c: Use string.h, not gdb_string.h.
1201 * linux-fork.c: Use string.h, not gdb_string.h.
1202 * linux-nat.c: Use string.h, not gdb_string.h.
1203 * lm32-tdep.c: Use string.h, not gdb_string.h.
1204 * m2-exp.y: Use string.h, not gdb_string.h.
1205 * m2-typeprint.c: Use string.h, not gdb_string.h.
1206 * m32c-tdep.c: Use string.h, not gdb_string.h.
1207 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1208 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1209 * m32r-rom.c: Use string.h, not gdb_string.h.
1210 * m32r-tdep.c: Use string.h, not gdb_string.h.
1211 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1212 * m68k-tdep.c: Use string.h, not gdb_string.h.
1213 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1214 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1215 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1216 * m88k-tdep.c: Use string.h, not gdb_string.h.
1217 * macrocmd.c: Use string.h, not gdb_string.h.
1218 * main.c: Use string.h, not gdb_string.h.
1219 * mdebugread.c: Use string.h, not gdb_string.h.
1220 * mem-break.c: Use string.h, not gdb_string.h.
1221 * memattr.c: Use string.h, not gdb_string.h.
1222 * memory-map.c: Use string.h, not gdb_string.h.
1223 * mep-tdep.c: Use string.h, not gdb_string.h.
1224 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1225 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1226 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1227 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1228 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1229 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1230 * mi/mi-console.c: Use string.h, not gdb_string.h.
1231 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1232 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1233 * mi/mi-main.c: Use string.h, not gdb_string.h.
1234 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1235 * microblaze-rom.c: Use string.h, not gdb_string.h.
1236 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1237 * mingw-hdep.c: Use string.h, not gdb_string.h.
1238 * minidebug.c: Use string.h, not gdb_string.h.
1239 * minsyms.c: Use string.h, not gdb_string.h.
1240 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1241 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1242 * mips-tdep.c: Use string.h, not gdb_string.h.
1243 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1244 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1245 * mipsread.c: Use string.h, not gdb_string.h.
1246 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1247 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1248 * monitor.c: Use string.h, not gdb_string.h.
1249 * moxie-tdep.c: Use string.h, not gdb_string.h.
1250 * mt-tdep.c: Use string.h, not gdb_string.h.
1251 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1252 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1253 * nto-procfs.c: Use string.h, not gdb_string.h.
1254 * nto-tdep.c: Use string.h, not gdb_string.h.
1255 * objc-lang.c: Use string.h, not gdb_string.h.
1256 * objfiles.c: Use string.h, not gdb_string.h.
1257 * opencl-lang.c: Use string.h, not gdb_string.h.
1258 * osabi.c: Use string.h, not gdb_string.h.
1259 * osdata.c: Use string.h, not gdb_string.h.
1260 * p-exp.y: Use string.h, not gdb_string.h.
1261 * p-lang.c: Use string.h, not gdb_string.h.
1262 * p-typeprint.c: Use string.h, not gdb_string.h.
1263 * parse.c: Use string.h, not gdb_string.h.
1264 * posix-hdep.c: Use string.h, not gdb_string.h.
1265 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1266 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1267 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1268 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1269 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1270 * printcmd.c: Use string.h, not gdb_string.h.
1271 * procfs.c: Use string.h, not gdb_string.h.
1272 * prologue-value.c: Use string.h, not gdb_string.h.
1273 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1274 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1275 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1276 * regcache.c: Use string.h, not gdb_string.h.
1277 * registry.c: Use string.h, not gdb_string.h.
1278 * remote-fileio.c: Use string.h, not gdb_string.h.
1279 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1280 * remote-mips.c: Use string.h, not gdb_string.h.
1281 * remote-sim.c: Use string.h, not gdb_string.h.
1282 * remote.c: Use string.h, not gdb_string.h.
1283 * reverse.c: Use string.h, not gdb_string.h.
1284 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1285 * ser-base.c: Use string.h, not gdb_string.h.
1286 * ser-go32.c: Use string.h, not gdb_string.h.
1287 * ser-mingw.c: Use string.h, not gdb_string.h.
1288 * ser-pipe.c: Use string.h, not gdb_string.h.
1289 * ser-tcp.c: Use string.h, not gdb_string.h.
1290 * ser-unix.c: Use string.h, not gdb_string.h.
1291 * serial.c: Use string.h, not gdb_string.h.
1292 * sh-tdep.c: Use string.h, not gdb_string.h.
1293 * sh64-tdep.c: Use string.h, not gdb_string.h.
1294 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1295 * skip.c: Use string.h, not gdb_string.h.
1296 * sol-thread.c: Use string.h, not gdb_string.h.
1297 * solib-dsbt.c: Use string.h, not gdb_string.h.
1298 * solib-frv.c: Use string.h, not gdb_string.h.
1299 * solib-osf.c: Use string.h, not gdb_string.h.
1300 * solib-spu.c: Use string.h, not gdb_string.h.
1301 * solib-target.c: Use string.h, not gdb_string.h.
1302 * solib.c: Use string.h, not gdb_string.h.
1303 * somread.c: Use string.h, not gdb_string.h.
1304 * source.c: Use string.h, not gdb_string.h.
1305 * sparc-nat.c: Use string.h, not gdb_string.h.
1306 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1307 * sparc-tdep.c: Use string.h, not gdb_string.h.
1308 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1309 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1310 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1311 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1312 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1313 * spu-multiarch.c: Use string.h, not gdb_string.h.
1314 * spu-tdep.c: Use string.h, not gdb_string.h.
1315 * stabsread.c: Use string.h, not gdb_string.h.
1316 * stack.c: Use string.h, not gdb_string.h.
1317 * std-regs.c: Use string.h, not gdb_string.h.
1318 * symfile.c: Use string.h, not gdb_string.h.
1319 * symmisc.c: Use string.h, not gdb_string.h.
1320 * symtab.c: Use string.h, not gdb_string.h.
1321 * target.c: Use string.h, not gdb_string.h.
1322 * thread.c: Use string.h, not gdb_string.h.
1323 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1324 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1325 * top.c: Use string.h, not gdb_string.h.
1326 * tracepoint.c: Use string.h, not gdb_string.h.
1327 * tui/tui-command.c: Use string.h, not gdb_string.h.
1328 * tui/tui-data.c: Use string.h, not gdb_string.h.
1329 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1330 * tui/tui-file.c: Use string.h, not gdb_string.h.
1331 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1332 * tui/tui-out.c: Use string.h, not gdb_string.h.
1333 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1334 * tui/tui-source.c: Use string.h, not gdb_string.h.
1335 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1336 * tui/tui-win.c: Use string.h, not gdb_string.h.
1337 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1338 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1339 * typeprint.c: Use string.h, not gdb_string.h.
1340 * ui-file.c: Use string.h, not gdb_string.h.
1341 * ui-out.c: Use string.h, not gdb_string.h.
1342 * user-regs.c: Use string.h, not gdb_string.h.
1343 * utils.c: Use string.h, not gdb_string.h.
1344 * v850-tdep.c: Use string.h, not gdb_string.h.
1345 * valarith.c: Use string.h, not gdb_string.h.
1346 * valops.c: Use string.h, not gdb_string.h.
1347 * valprint.c: Use string.h, not gdb_string.h.
1348 * value.c: Use string.h, not gdb_string.h.
1349 * varobj.c: Use string.h, not gdb_string.h.
1350 * vax-tdep.c: Use string.h, not gdb_string.h.
1351 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1352 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1353 * windows-nat.c: Use string.h, not gdb_string.h.
1354 * xcoffread.c: Use string.h, not gdb_string.h.
1355 * xml-support.c: Use string.h, not gdb_string.h.
1356 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1357 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1358
13592013-11-18 Tom Tromey <tromey@redhat.com>
1360
1361 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1362 and strstr.
1363 * gnulib/aclocal.m4: Update.
1364 * gnulib/config.in: Update.
1365 * gnulib/configure: Update.
1366 * gnulib/import/Makefile.am: Update.
1367 * gnulib/import/Makefile.in: Update.
1368 * gnulib/import/errno.in.h: New.
1369 * gnulib/import/intprops.h: New.
1370 * gnulib/import/m4/errno_h.m4: New.
1371 * gnulib/import/m4/gnulib-cache.m4: Update.
1372 * gnulib/import/m4/gnulib-comp.m4: Update.
1373 * gnulib/import/m4/strerror.m4: New.
1374 * gnulib/import/m4/strstr.m4: New.
1375 * gnulib/import/m4/sys_socket_h.m4: New.
1376 * gnulib/import/strerror-override.c: New.
1377 * gnulib/import/strerror-override.h: New.
1378 * gnulib/import/strerror.c: New.
1379 * gnulib/import/strstr.c: New.
1380
13812013-11-18 Tom Tromey <tromey@redhat.com>
1382
1383 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1384 multiple lines.
1385
13862013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1387
1388 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1389 * sparc-tdep.h: And its prototype.
1390
1391 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1392 function.
1393 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1394
13952013-11-18 Pedro Alves <palves@redhat.com>
1396
1397 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1398 use unpack_pointer.
1399
14002013-11-18 Joel Brobecker <brobecker@adacore.com>
1401
1402 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1403 to -list-features output.
1404
14052013-11-17 Joel Brobecker <brobecker@adacore.com>
1406
1407 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1408 <read_addr_from_reg>: Renames "read_reg".
1409 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1410 Adjust comment.
1411 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1412 Use read_addr_from_reg in place of read_reg.
1413 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1414 in place of read_reg.
1415 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1416 dwarf_expr_read_reg.
1417 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1418 with dwarf_expr_read_addr_from_reg.
1419 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1420 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1421 needs_frame_read_addr_from_reg.
1422
14232013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1424
1425 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1426
14272013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1428
1429 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1430 NULL.
1431
14322013-11-15 Tom Tromey <tromey@redhat.com>
1433
1434 PR c++/16117:
1435 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1436 (classify_name): Likewise. Prefer a field of "this" over a
1437 filename.
1438 (classify_inner_name, yylex): Update.
1439
14402013-11-15 Joel Brobecker <brobecker@adacore.com>
1441
1442 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1443 Extend the documentation a bit.
1444 <get_reg_value>: New field.
1445 * dwarf2loc.c (dwarf_expr_get_reg_value)
1446 (needs_frame_get_reg_value): New functions.
1447 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1448 callback.
1449 * dwarf2-frame.c (get_reg_value): New function.
1450 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1451 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1452 Use new callback to compute result_val.
1453
14542013-11-15 Alan Modra <amodra@gmail.com>
1455
1456 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1457 (ppc64_desc_entry_point): ..this. Update comments here and at
1458 call points.
1459 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1460 ppc64_standard_linkage3): Update comments.
1461 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1462 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1463 patterns.
1464 (ppc64_standard_linkage4_target): New function.
1465 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1466 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1467 nop match. Fix comment wrap.
1468
14692013-11-14 Pedro Alves <palves@redhat.com>
1470
1471 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1472 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1473
14742013-11-14 Pedro Alves <palves@redhat.com>
1475
1476 * infrun.c (struct execution_control_state)
1477 <stepped_after_stopped_by_watchpoint>: New field.
1478 (get_inferior_stop_soon): New function.
1479 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1480 moved to struct execution_control_state -- adjust. Use
1481 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1482 new function.
1483 (handle_signal_stop): New function, factored out from
1484 handle_inferior_event.
1485
14862013-11-14 Pedro Alves <palves@redhat.com>
1487
1488 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1489 return a boolean.
1490 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1491 boolean.
1492 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1493 Adjust to return a boolean.
1494 * breakpoint.h (enum bpstat_signal_value): Delete.
1495 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1496 (bpstat_explains_signal): Likewise.
1497 * infrun.c (handle_inferior_event) <random signal checks>:
1498 bpstat_explains_signal now returns a boolean - adjust. No longer
1499 consider hiding signals.
1500
15012013-11-14 Pedro Alves <palves@redhat.com>
1502
1503 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1504 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1505 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1506 BPSTAT_SIGNAL_HIDE.
1507 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1508 instead of BPSTAT_SIGNAL_HIDE.
1509 * infrun.c (handle_inferior_event): Rework random signal checks.
1510
15112013-11-14 Pedro Alves <palves@redhat.com>
1512
1513 * infrun.c (struct execution_control_state): Remove
1514 'random_signal' field.
1515 (handle_syscall_event): Use bpstat_causes_stop instead of
1516 bpstat_explains_signal. Don't set ecs->random_signal.
1517 (handle_inferior_event): New 'random_signal' local.
1518 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1519 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1520 bpstat_explains_signal. Don't set ecs->random_signal.
1521 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1522 ecs->random_signal.
1523
15242013-11-14 Pedro Alves <palves@redhat.com>
1525
1526 * infrun.c (handle_inferior_event): Move comment from the
1527 function's body to the function's description, adjusted.
1528
15292013-11-14 Pedro Alves <palves@redhat.com>
1530
1531 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1532 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1533 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1534 case.
1535
15362013-11-14 Tom Tromey <tromey@redhat.com>
1537
1538 * python/py-linetable.c (ltpy_has_line)
1539 (ltpy_get_all_source_lines): Fix loop termination condition.
1540
15412013-11-14 Joel Brobecker <brobecker@adacore.com>
1542
1543 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1544 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1545 PARSE->LANGUAGE during command execution, if set.
1546 * mi/mi-parse.c: Add "language.h" #include.
1547 (mi_parse): Add parsing of "--language" command option.
1548
1549 * NEWS: Add entry mentioning the new "--language" command option.
1550
15512013-11-14 Pedro Alves <palves@redhat.com>
1552 Joel Brobecker <brobecker@adacore.com>
1553
1554 * cli/cli-utils.h (extract_arg_const): Add declaration.
1555 * cli/cli-utils.c (extract_arg_const): New function.
1556 (extract_arg): Reimplement using extract_arg_const.
1557
15582013-11-14 Joel Brobecker <brobecker@adacore.com>
1559
1560 * language.h: Add "symtab.h" #include.
1561
15622013-11-13 Doug Evans <xdje42@gmail.com>
1563
1564 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1565 specific breakpoints, don't evaluate breakpoint condition if
1566 different thread.
1567
15682013-11-13 Keith Seitz <keiths@redhat.com>
1569
1570 PR c++/7935
1571 PR c++/10541
1572 * cp-support.c (insepct_type): Add support for substituting
1573 namespace aliases, too.
1574 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1575 for DW_TAG_imported_declaration.
1576 (add_partial_symbol): Likewise.
1577 (process_die): Handle namespace aliases with
1578 read_namespace_alias.
1579 (die_needs_namespace): Add DW_TAG_imported_declaration.
1580 (read_namespace_alias): New function.
1581 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1582 (new_symbol_full): Handle DW_TAG_imported_declaration.
1583
15842013-11-13 Keith Seitz <keiths@redhat.com>
1585
1586 * p-exp.y (uptok): Make first parameter const.
1587 (yylex): Make `tokstart' and `tokptr' const.
1588 Don't copy the lexer input to a temporary buffer.
1589 Make `p' const.
1590 Remove const workaround for parse_escape.
1591 Create a temporary buffer for a convenience variable instead
1592 of doing in-place modification of the input.
1593 If a match is found with a different case from the input,
1594 do not change the input at all.
1595 Use `tmp' to construct the resultant stoken instead of
1596 `tokstart'.
1597
15982013-11-13 Doug Evans <xdje42@gmail.com>
1599
1600 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1601
16022013-11-13 Joel Brobecker <brobecker@adacore.com>
1603
1604 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1605 entry with "ada-exceptions".
1606
16072013-11-13 Joel Brobecker <brobecker@adacore.com>
1608
1609 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1610 after re-initialization of OBJFILE's obstack.
1611
16122013-11-12 Doug Evans <xdje42@gmail.com>
1613
1614 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1615 bs->stop != 0 on entry. Update function comment. Simplify early
1616 exit for frame mismatch. Reindent rest of function.
1617
16182013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1619
1620 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1621 NULL.
1622
16232013-11-12 Doug Evans <dje@google.com>
1624
1625 Work around gold/15646.
1626 * dwarf2read.c (read_index_from_section): Update comment.
1627 (struct dw2_symtab_iterator): New member global_seen.
1628 (dw2_symtab_iter_init): Initialize it.
1629 (dw2_symtab_iter_next): Skip duplicate global symbols.
1630 (dw2_expand_symtabs_matching): Ditto.
1631
16322013-11-12 Joel Brobecker <brobecker@adacore.com>
1633
1634 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1635 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1636 command.
1637 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1638 (mi_cmd_info_ada_exceptions): New function.
1639 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1640
16412013-11-12 Joel Brobecker <brobecker@adacore.com>
1642
1643 * ada-lang.h: #include "vec.h".
1644 (struct ada_exc_info): New.
1645 (ada_exc_info): New typedef.
1646 (DEF_VEC_O(ada_exc_info)): New vector.
1647 (ada_exceptions_list): Add declaration.
1648 * ada-lang.c (ada_is_exception_sym)
1649 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1650 (sort_remove_dups_ada_exceptions_list)
1651 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1652 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1653 (ada_exceptions_list_1, ada_exceptions_list)
1654 (info_exceptions_command): New function.
1655 (_initialize_ada_language): Add "info exception" command.
1656
16572013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1658
1659 PR python/15629
1660 * NEWS: Add linetable feature.
1661 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1662 * python/py-linetable.c: New file.
1663 * python/py-symtab.c (stpy_get_linetable): New function.
1664 * python/python-internal.h (symtab_to_linetable_object): Declare.
1665 (gdbpy_initialize_linetable): Ditto.
1666 * python/python.c (_initialize_python): Call
1667 gdbpy_initialize_linetable.
1668
16692013-11-11 Joel Brobecker <brobecker@adacore.com>
1670
1671 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1672 the documentation of fields "except_string" and "condition".
1673 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1674 CONDITION on the heap before passing it to
1675 create_ada_exception_catchpoint.
1676 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1677 CONDITION.
1678
16792013-11-11 Tom Tromey <tromey@redhat.com>
1680
1681 * config.in, configure: Rebuild.
1682 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1683
16842013-11-11 Joel Brobecker <brobecker@adacore.com>
1685
1686 * remote-sim.c (gdbsim_detach): Break declaration into
1687 shorter lines. No code change.
1688
16892013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1690
1691 * remote-sim.c (gdbsim_detach): Fix prototype.
1692
16932013-11-08 Doug Evans <dje@google.com>
1694
1695 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1696 (create_debug_types_hash_table): Only print debugging messages for
1697 each TU if dwarf2-read >= 2.
1698 (process_queue): Ditto.
1699 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1700 Update doc string.
1701
17022013-11-08 Tom Tromey <tromey@redhat.com>
1703
1704 * configure: Rebuild.
1705 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1706
17072013-11-08 Tom Tromey <tromey@redhat.com>
1708
1709 * configure, config.in: Rebuild.
1710 * configure.ac: Remove unused configury.
1711
17122013-11-08 Tom Tromey <tromey@redhat.com>
1713
1714 * m32c-tdep.c: Use gdb_string.h.
1715
17162013-11-08 Tom Tromey <tromey@redhat.com>
1717
1718 * configure, config.in: Rebuild.
1719 * configure.ac: Remove all link.h-related checks.
1720
17212013-11-08 Tom Tromey <tromey@redhat.com>
1722
1723 * acinclude.m4: Include common.m4.
1724 * common/common.m4: New file.
1725 * configure, config.in: Rebuild.
1726 * configure.ac: Use GDB_AC_COMMON.
1727
17282013-11-08 Doug Evans <dje@google.com>
1729
1730 * NEWS: Mention that "set debug symtab-create" now accepts a
1731 verbosity level.
1732 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1733 to set the symtab's primary flag.
1734 * jit.c (finalize_symtab): Ditto.
1735 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1736 * symfile.c (allocate_symtab): Only print debugging messages for
1737 symtab_create_debug levels 2 and higher.
1738 * symtab.c (symtab_create_debug): Change type to unsigned int.
1739 (set_symtab_primary): New function.
1740 (_initialize_symtab): Change "set debug symtab-create" to a
1741 zuinteger option.
1742 * symtab.h (set_symtab_primary): Declare.
1743 (symtab_create_debug): Update decl.
1744
17452013-11-08 Tom Tromey <tromey@redhat.com>
1746
1747 * aix-thread.c (aix_thread_detach): Update.
1748 * corelow.c (core_detach): Update.
1749 * darwin-nat.c (darwin_detach): Update.
1750 * dec-thread.c (dec_thread_detach): Update.
1751 * gnu-nat.c (gnu_detach): Update.
1752 * go32-nat.c (go32_detach): Update.
1753 * inf-ptrace.c (inf_ptrace_detach): Update.
1754 * inf-ttrace.c (inf_ttrace_detach): Update.
1755 * linux-fork.c (linux_fork_detach): Update.
1756 * linux-fork.h (linux_fork_detach): Update.
1757 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1758 local for const-correctness.
1759 * linux-thread-db.c (thread_db_detach): Update.
1760 * monitor.c (monitor_detach): Update.
1761 * nto-procfs.c (procfs_detach): Update.
1762 * procfs.c (procfs_detach): Update.
1763 * record.c (record_detach): Update.
1764 * record.h (record_detach): Update.
1765 * remote-m32r-sdi.c (m32r_detach): Update.
1766 * remote-mips.c (mips_detach): Update.
1767 * remote-sim.c (gdbsim_detach): Update.
1768 * remote.c (remote_detach_1, remote_detach)
1769 (extended_remote_detach): Update.
1770 * sol-thread.c (sol_thread_detach): Update.
1771 * target.c (target_detach): Make "args" const.
1772 (init_dummy_target): Update.
1773 * target.h (struct target_ops) <to_detach>: Make argument const.
1774 (target_detach): Likewise.
1775 * windows-nat.c (windows_detach): Update.
1776
17772013-11-07 Doug Evans <dje@google.com>
1778
1779 PR 11786
1780 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1781 and align fields for PT_GNU_RELRO segments.
1782
17832013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1784
1785 PR python/15747
1786 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1787
17882013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1789
1790 * NEWS: Document Python temporary breakpoint support.
1791 * python/py-breakpoint.c (bppy_get_temporary): New function.
1792 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1793 to temporary if True.
1794
17952013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1796
1797 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1798 removed to allow analyzing unconditional branch instructions
1799 with PC-relative offsets of zero.
1800
18012013-11-07 Yao Qi <yao@codesourcery.com>
1802
1803 * mi/mi-cmd-var.c: Include "language.h".
1804 (mi_cmd_var_info_expression): Get language name from
1805 language_defn.
1806 * varobj.c (varobj_language_string): Remove.
1807 (variable_language): Remove declaration.
1808 (languages): Remove.
1809 (varobj_get_language): Change the type of return value.
1810 (variable_language): Remove.
1811 * varobj.h (enum varobj_languages): Remove.
1812 (varobj_language_string): Remove declaration.
1813 (varobj_get_language): Update declaration.
1814
18152013-11-07 Yao Qi <yao@codesourcery.com>
1816
1817 * language.h (struct language_defn) <la_natural_name>: New
1818 field.
1819 * ada-lang.c (ada_language_defn): Initialize field
1820 'la_natural_name'.
1821 * c-lang.c (c_language_defn): Likewise.
1822 (cplus_language_defn, asm_language_defn): Likewise.
1823 * d-lang.c (d_language_defn): Likewise.
1824 * f-lang.c (f_language_defn): Likewise.
1825 * go-lang.c (go_language_defn): Likewise.
1826 * jv-lang.c (java_language_defn): Likewise.
1827 * language.c (unknown_language_defn ): Likewise.
1828 (auto_language_defn): Likewise.
1829 * m2-lang.c (m2_language_defn): Likewise.
1830 * objc-lang.c (objc_language_defn): Likewise.
1831 * opencl-lang.c (opencl_language_defn): Likewise.
1832 * p-lang.c (pascal_language_defn): Likewise.
1833
18342013-11-07 Yao Qi <yao@codesourcery.com>
1835
1836 * language.c (language_str): Return const char *.
1837 (add_language): Add const to 'language_names'
1838 * language.h (struct language_defn) <la_name>: Add const.
1839 (language_str: Update declaration.
1840
18412013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1842
1843 * s390-linux-nat.c (s390_read_description): Consider the TE field
1844 in the HWCAP for determining 'have_regset_tdb'.
1845
18462013-11-06 Will Newton <will.newton@linaro.org>
1847
1848 PR gdb/12866
1849 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1850 values. (read_partial_die): Likewise.
1851
18522013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1853
1854 PR cli/16122
1855 * top.c (command_line_input): Unify interactivity tests to use
1856 input_from_terminal_p.
1857 * event-top.c (command_line_handler): Likewise.
1858
18592013-11-06 Yao Qi <yao@codesourcery.com>
1860
1861 * Makefile.in (check-perf): New target.
1862
18632013-11-05 Will Newton <will.newton@linaro.org>
1864
1865 PR gdb/7670
1866 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1867 (arm_print_float_info): Likewise.
1868
18692013-11-04 Anton Blanchard <anton@samba.org>
1870
1871 * target.c (memory_xfer_partial): Cap write to 4KB.
1872
18732013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1874
1875 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1876 probe scan even when the arch provides no get_longjmp_target.
1877
18782013-10-31 Pedro Alves <palves@redhat.com>
1879
1880 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1881 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1882 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1883 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1884 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1885 <bpstat handling>: If the bpstat chain wants the signal to be
1886 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1887 GDB_SIGNAL_TRAP.
1888
18892013-10-31 Andrew Burgess <aburgess@broadcom.com>
1890
1891 * breakpoint.c (update_watchpoint): Update error message and add
1892 an additional error message.
1893
18942013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1895
1896 * s390-tdep.h: Rename to...
1897 * s390-linux-tdep.h: ...here.
1898 * s390-tdep.c: Rename to...
1899 * s390-linux-tdep.c: ...here. Adjust #include.
1900 * s390-nat.c: Rename to...
1901 * s390-linux-nat.c: ...here. Adjust #include.
1902 * config/s390/s390.mh: Rename to...
1903 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1904 s390-linux-nat.o.
1905 * configure.host: Reflect host rename "s390" -> "linux".
1906 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1907 * Makefile.in (ALL_TARGET_OBS): Likewise.
1908 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1909 s390-linux-tdep.h.
1910 (ALLDEPFILES): Reflect rename of .c files.
1911
19122013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1913
1914 * s390-nat.c: Whitespace cleanup.
1915 * s390-tdep.c: Likewise.
1916 * s390-tdep.h: Remove empty line at end of file.
1917
19182013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1919
1920 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1921 siginfo_size.
1922
19232013-10-29 Tom Tromey <tromey@redhat.com>
1924
1925 * utils.c (reg): Move undefinition...
1926 * gdb_curses.h: ... here. Update comment to mention AIX.
1927
19282013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1929
1930 * exec.h (add_target_sections_of_objfile): New declaration.
1931 * exec.c (add_target_sections_of_objfile): New function.
1932 * symfile.c (add_symbol_file_command): Update current target sections.
1933 (remove_symbol_file_command): New command.
1934 (symfile_free_objfile): New function.
1935 (_initialize_symfile): Register observer for free_objfile events.
1936 * NEWS: Add description of the remove-symbol-file command.
1937 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1938 * objfiles.c (free_objfile): Notify free_objfile.
1939 (is_addr_in_objfile): New function.
1940 * objfiles.h (is_addr_in_objfile): New declaration.
1941 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1942 events instead of solib_unloaded events.
1943 (_initialize_printcmd): Register observer for free_objfile instead
1944 of solib_unloaded notifications.
1945 * solib.c (remove_user_added_objfile): New function.
1946 (_initialize_symfile): Add remove-symbol-file.
1947
19482013-10-29 Andrew Burgess <aburgess@broadcom.com>
1949
1950 * infcmd.c (default_print_one_register_info): Use val_print to
1951 print all values even optimized out or unavailable ones. Don't
1952 try to print a raw form of optimized out or unavailable values.
1953
19542013-10-29 Yao Qi <yao@codesourcery.com>
1955
1956 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1957 parameter 'arg' instead of from program_space_data.
1958 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1959 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1960 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1961 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1962 * inflow.c (inflow_inferior_data_cleanup): Get data from
1963 parameter 'arg' instead of inferior_data.
1964 * registry.h: Add comments.
1965
19662013-10-28 Pedro Alves <palves@redhat.com>
1967
1968 * breakpoint.c (watchpoints_triggered)
1969 <!target_stopped_data_address>: Hardcode return 1.
1970
19712013-10-28 Pedro Alves <palves@redhat.com>
1972
1973 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1974 level and reindent.
1975
19762013-10-28 Pedro Alves <palves@redhat.com>
1977
1978 * infrun.c (process_event_stop_test): New function, factored out
1979 from handle_inferior_event.
1980 (handle_inferior_event): 'process_event_stop_test' is now a
1981 function instead of a goto label -- adjust.
1982
19832013-10-28 Pedro Alves <palves@redhat.com>
1984
1985 * infrun.c (handle_inferior_event): Move process_event_stop_test
1986 goto label to the else branch of the ecs->random_signal check,
1987 along with FRAME and GDBARCH re-fetching.
1988
19892013-10-28 Pedro Alves <palves@redhat.com>
1990
1991 * infrun.c (switch_back_to_stepped_thread): New function, factored
1992 out from handle_inferior_event.
1993 (handle_inferior_event): Adjust to call
1994 switch_back_to_stepped_thread. Call it also at the tail of the
1995 random signal handling, and return, instead of also handling
1996 random signals just before the stepping tests.
1997
19982013-10-28 Pedro Alves <palves@redhat.com>
1999
2000 * infrun.c (clear_stop_func): Delete.
2001 (handle_inferior_event): Don't call clear_stop_func and don't
2002 clear 'ecs->random_signal'.
2003
20042013-10-27 Yao Qi <yao@codesourcery.com>
2005
2006 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2007 (varobj_create, varobj_get_path_expr): Update.
2008 (varobj_value_has_mutated, varobj_update): Likewise.
2009 (create_child_with_value, new_root_variable): Likewise.
2010 (number_of_children, name_of_variable): Likewise.
2011 (value_of_child, my_value_of_variable): Likewise.
2012 (varobj_value_is_changeable_p): Likewise.
2013
20142013-10-25 Yao Qi <yao@codesourcery.com>
2015
2016 * language.h (struct lang_varobj_ops): Declare.
2017 (struct language_defn) <la_varobj_ops>: New field.
2018 * ada-lang.c: Include "varobj.h"
2019 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2020 ada_varobj_ops.
2021 * c-lang.c: Include "varobj.h"
2022 (c_language_defn): Initialize field 'la_varobj_ops' with
2023 c_varobj_ops.
2024 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2025 cplus_varobj_ops.
2026 (asm_language_defn): Initialize field 'la_varobj_ops' with
2027 default_varobj_ops.
2028 (minimal_language_defn): Likewise.
2029 * d-lang.c (d_language_defn): Likewise.
2030 * f-lang.c (f_language_defn): Likewise.
2031 * go-lang.c (go_language_defn): Likewise.
2032 * m2-lang.c (m2_language_defn): Likewise.
2033 * objc-lang.c (objc_language_defn): Likewise.
2034 * opencl-lang.c (opencl_language_defn): Likewise.
2035 * p-lang.c (pascal_language_defn): Likewise.
2036 * language.c (unknown_language_defn): Likewise.
2037 (auto_language_defn): Likewise.
2038 (local_language_defn): Likewise.
2039 * jv-lang.c (java_language_defn): Initialize field
2040 'la_varobj_ops' with java_varobj_ops.
2041 * varobj.c (varobj_create): Update.
2042 * varobj.h (default_varobj_ops): Define macro.
2043
20442013-10-25 Pedro Alves <palves@redhat.com>
2045
2046 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2047 static field value.
2048 (cp_print_static_field): If the value is entirely optimized out,
2049 print <optimized out> here.
2050 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2051 static field value.
2052 * p-valprint.c (pascal_object_print_static_field): If the value is
2053 entirely optimized out, print <optimized out> here.
2054 * valops.c (do_search_struct_field)
2055 (value_struct_elt_for_reference): No longer handle a NULL static
2056 field value.
2057 * value.c (value_static_field): Return an optimized out value
2058 instead of NULL.
2059
20602013-10-25 Yao Qi <yao@codesourcery.com>
2061
2062 * remote.c (remote_traceframe_info): Return early if
2063 traceframe is not selected.
2064
20652013-10-25 Yao Qi <yao@codesourcery.com>
2066
2067 * tracepoint.c (traceframe_fun): Remove.
2068 (traceframe_sal): Remove.
2069 (set_traceframe_context): Add local variables.
2070
20712013-10-25 Joel Brobecker <brobecker@adacore.com>
2072
2073 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2074 and parameter name.
2075
20762013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2077
2078 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2079 failure from register information collection.
2080
20812013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2082
2083 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2084 member.
2085 (linux_corefile_thread_callback): Update accordingly.
2086 (linux_make_corefile_notes): Likewise.
2087
20882013-10-24 Pedro Alves <palves@redhat.com>
2089
2090 * NEWS (New options): Mention set/show startup-with-shell.
2091 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2092 instead of 3.
2093 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2094 startup-with-shell'.
2095 (show_startup_with_shell): New function.
2096 (_initialize_fork_child): Register the set/show startup-with-shell
2097 commands.
2098 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2099 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2100 * procfs.c (procfs_init_inferior): Remove comment.
2101 * infcmd.c (startup_with_shell): New global.
2102 * inferior.h (startup_with_shell): Declare global.
2103 (STARTUP_WITH_SHELL): Delete.
2104 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2105
21062013-10-23 Pedro Alves <palves@redhat.com>
2107
2108 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2109 * common/signals.c: Include "gdb_assert.h".
2110 (signals): New field 'symbol'.
2111 (SET): Use the 'symbol' parameter.
2112 (gdb_signal_to_symbol_string): New function.
2113 * infrun.c (handle_inferior_event) <random signal>: In debug
2114 output, print the random signal enum as string in addition to its
2115 number.
2116 * target/waitstatus.c (target_waitstatus_to_string): Print the
2117 signal's enum value as string instead of the (POSIX) signal name.
2118
21192013-10-23 Gary Benson <gbenson@redhat.com>
2120
2121 PR 16013
2122 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2123 from 32 to 18. Adjusted fscanf format string accordingly.
2124 (Avoids leaving cmd unterminated.)
2125 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2126 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2127 that local_address and remote_address will not overflow.
2128 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2129 leaving dependencies unterminated. Parse size as "%u" to match
2130 definition.
2131
21322013-10-22 Pedro Alves <palves@redhat.com>
2133
2134 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2135 set ecs->random signal.
2136
21372013-10-22 Pedro Alves <palves@redhat.com>
2138
2139 * infrun.c (keep_going): Update comments.
2140
21412013-10-22 Pedro Alves <palves@redhat.com>
2142
2143 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2144 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2145
21462013-10-22 Pedro Alves <palves@redhat.com>
2147
2148 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2149 GDB_EXC_BAD_ACCESS.
2150 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2151 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2152 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2153 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2154 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2155 (GDB_SIGNAL_LAST): Change description string.
2156 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2157 Adjust to signal renaming.
2158 * darwin-nat.c (darwin_decode_message): Likewise.
2159
21602013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2161
2162 * MAINTAINERS (Write After Approval): Add myself to the list.
2163
21642013-10-18 Andrew Burgess <aburgess@broadcom.com>
2165
2166 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2167 forced off, downgrade them to software watchpoints if possible,
2168 and error out if not possible.
2169 (watch_command_1): Move watchpoint type selection closer to
2170 watchpoint creation, and extend the comments.
2171
21722013-10-18 Pedro Alves <palves@redhat.com>
2173
2174 PR gdb/16062
2175 * infrun.c (handle_inferior_event): Keep going if we got a random
2176 signal we should not stop for, instead of falling through to the
2177 step tests.
2178
21792013-10-18 Yao Qi <yao@codesourcery.com>
2180
2181 * c-varobj.c (cplus_number_of_children): Fix indentation.
2182
21832013-10-17 Tom Tromey <tromey@redhat.com>
2184
2185 PR gdb/15995:
2186 * printcmd.c (printcmd): Call gdb_flush.
2187
21882013-10-17 Tom Tromey <tromey@redhat.com>
2189
2190 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2191 (elf_locate_sections): Update.
2192
21932013-10-17 Yao Qi <yao@codesourcery.com>
2194
2195 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2196 * ada-varobj.c: Remove the include of ada-varobj.h.
2197 (ada_varobj_get_number_of_children): Declare.
2198 (ada_varobj_get_name_of_child): Make it static.
2199 (ada_varobj_get_path_expr_of_child): Likewise.
2200 (ada_varobj_get_value_of_child): Likewise.
2201 (ada_varobj_get_type_of_child): Likewise.
2202 (ada_varobj_get_value_of_array_variable): Likewise.
2203 * ada-varobj.h: Remove.
2204
22052013-10-17 Yao Qi <yao@codesourcery.com>
2206
2207 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2208 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2209 * ada-varobj.c: Include "varobj.h".
2210 (ada_number_of_children): New. Moved from varobj.c.
2211 (ada_name_of_variable, ada_name_of_child): Likewise.
2212 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2213 (ada_type_of_child, ada_value_of_variable): Likewise.
2214 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2215 (ada_varobj_ops): New.
2216 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2217 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2218 * gdbtypes.h (get_target_type): Declare.
2219 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2220 "ada-lang.h".
2221 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2222 (ANONYMOUS_UNION_NAME): Likewise.
2223 (get_type, get_value_type, get_target_type): Remove declarations.
2224 (value_get_print_value, varobj_value_get_print_value): Likewise.
2225 (c_number_of_children, c_name_of_variable): Likewise.
2226 (c_name_of_child, c_path_expr_of_child): Likewise.
2227 (c_value_of_child, c_type_of_child): Likewise.
2228 (c_value_of_variable, cplus_number_of_children): Likewise.
2229 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2230 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2231 (cplus_value_of_child, cplus_type_of_child): Likewise.
2232 (cplus_value_of_variable, java_number_of_children): Likewise.
2233 (java_name_of_variable, java_name_of_child): Likewise.
2234 (java_path_expr_of_child, java_value_of_child): Likewise.
2235 (java_type_of_child, java_value_of_variable): Likewise.
2236 (ada_number_of_children, ada_name_of_variable): Likewise.
2237 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2238 (ada_value_of_child, ada_type_of_child): Likewise.
2239 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2240 (ada_value_has_mutated): Likewise.
2241 (struct language_specific): Move it to varobj.h.
2242 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2243 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2244 Callers update.
2245 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2246 Make it extern.
2247 (is_anonymous_child): Move it to c-varobj.c and rename to
2248 varobj_is_anonymous_child. Caller update.
2249 (get_type): Move it to c-varobj.c.
2250 (get_value_type): Rename it varobj_get_value_type. Make it
2251 extern.
2252 (get_target_type): Move it gdbtypes.c.
2253 (varobj_formatted_print_options): New function.
2254 (value_get_print_value): Rename it to
2255 varobj_value_get_print_value and make it extern.
2256 (varobj_value_is_changeable_p): Make it extern.
2257 (adjust_value_for_child_access): Move it to c-varobj.c.
2258 (default_value_is_changeable_p): Rename it to
2259 varobj_default_value_is_changeable_p. Make it extern.
2260 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2261 (c_name_of_child, c_path_expr_of_child): Likewise.
2262 (c_value_of_child, c_type_of_child): Likewise.
2263 (c_value_of_variable, cplus_number_of_children): Likewise.
2264 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2265 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2266 (cplus_value_of_child, cplus_type_of_child): Likewise.
2267 (cplus_value_of_variable): Likewise.
2268 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2269 (java_name_of_child, java_path_expr_of_child): Likewise.
2270 (java_value_of_child, java_type_of_child): Likewise.
2271 (java_value_of_variable): Likewise.
2272 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2273 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2274 (ada_value_of_child, ada_type_of_child): Likewise.
2275 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2276 (ada_value_has_mutated): Likewise.
2277 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2278 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2279 (c_varobj_ops, cplus_varobj_ops): Declare.
2280 (java_varobj_ops, ada_varobj_ops): Declare.
2281 (varobj_default_value_is_changeable_p): Declare.
2282 (varobj_value_is_changeable_p): Declare.
2283 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2284 (varobj_get_path_expr_parent): Declare.
2285 (varobj_value_get_print_value): Declare.
2286 (varobj_formatted_print_options): Declare.
2287 (varobj_restrict_range): Declare.
2288
22892013-10-17 Luis Machado <lgustavo@codesourcery.com>
2290
2291 * target/waitstatus.h (target_waitkind): Remove spurious
2292 character from the comments.
2293
22942013-10-17 Joel Brobecker <brobecker@adacore.com>
2295
2296 * gdbarch.sh (get_longjmp_target): Add method documentation.
2297 * gdbarch.h: Regenerate.
2298
22992013-10-16 Tom Tromey <tromey@redhat.com>
2300
2301 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2302 label.
2303
23042013-10-16 Luis Machado <lgustavo@codesourcery.com>
2305
2306 * gcore.in: Call GDB using the full path to the gcore script.
2307 Error out if the GDB binary is not found.
2308
23092013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2310
2311 PR gdb/16014
2312 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2313 sizeof.
2314
23152013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2316
2317 PR gdb/16042
2318 * target.c (target_disable_btrace): Fix invalid return value for
2319 void function.
2320 (target_teardown_btrace): Likewise.
2321
23222013-10-14 Yao Qi <yao@codesourcery.com>
2323
2324 * varobj.c (struct varobj): Move most of the fields to
2325 varobj.h.
2326 (struct varobj_dynamic): New struct.
2327 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2328 (varobj_has_more): Likewise.
2329 (dynamic_varobj_has_child_method): Likewise.
2330 (update_dynamic_varobj_children): Likewise.
2331 (varobj_get_num_children): Likewise.
2332 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2333 (install_new_value_visualizer): Likewise.
2334 (install_new_value_visualizer, install_new_value): Likewise.
2335 (varobj_update, new_variable, free_variable): Likewise.
2336 (my_value_of_variable, value_get_print_value): Likewise.
2337 (install_visualizer): Change the type of parameter 'var' to
2338 'struct varobjd_dynamic *'. Callers update.
2339 * varobj.h (struct varobj): Moved from varobj.c.
2340 (struct varobj) <dynamic>: New field.
2341
23422013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2343
2344 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2345 as the preferred name of r30.
2346 * nios2-linux-tdep.c (reg_offsets): Likewise.
2347 * features/nios2-cpu.xml: Likewise.
2348 * features/nios2-linux.c: Regenerated.
2349 * features/nios2.c: Regenerated.
2350 * regformats/nios2-linux.dat: Regenerated.
2351
23522013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2353
2354 Canonicalize directories for EXEC_FILENAME.
2355 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2356 exec_filename.
2357 * utils.c (gdb_realpath_keepfile): New function.
2358 * utils.h (gdb_realpath_keepfile): New declaration.
2359
23602013-10-11 Doug Evans <dje@google.com>
2361
2362 * Makefile.in (GDBFLAGS): New variable.
2363 (run): New rule.
2364
23652013-10-11 Joel Brobecker <brobecker@adacore.com>
2366
2367 * NEWS: Add entry documenting the new "-catch-assert" and
2368 "-catch-exception" GDB/MI commands.
2369
23702013-10-11 Joel Brobecker <brobecker@adacore.com>
2371
2372 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2373 "enabled".
2374 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2375 "enabled". Set B->ENABLE_STATE accordingly.
2376 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2377 ada-lang.c.
2378 (create_ada_exception_catchpoint): Add declaration.
2379 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2380 (create_ada_exception_catchpoint): Make non-static. Add new
2381 parameter "disabled". Use it in call to
2382 init_ada_exception_breakpoint.
2383 (catch_ada_exception_command): Add parameter "enabled" in call
2384 to create_ada_exception_catchpoint.
2385 (catch_assert_command): Likewise.
2386
2387 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2388 Add declarations.
2389 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2390 "catch-exception" commands.
2391 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2392 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2393
23942013-10-11 Joel Brobecker <brobecker@adacore.com>
2395
2396 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2397 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2398 of all its enumerates with "ada_". Update the rest of this
2399 file throughout.
2400
24012013-10-11 Joel Brobecker <brobecker@adacore.com>
2402
2403 * ada-lang.c (ada_decode_exception_location): Delete.
2404 (create_ada_exception_catchpoint): Remove arguments "sal",
2405 "addr_string" and "ops". Add argument "ex_kind" instead.
2406 Adjust implementation accordingly, calling ada_exception_sal
2407 to get the entities it no longer gets passed as arguments.
2408 Document the function's arguments.
2409 (catch_ada_exception_command): Use catch_ada_exception_command_split
2410 instead of ada_decode_exception_location, and update call to
2411 create_ada_exception_catchpoint.
2412 (catch_ada_assert_command_split): Renames
2413 ada_decode_assert_location. Remove parameters "addr_string" and
2414 "ops", and now returns void. Adjust implementation accordingly.
2415 Update the function documentation.
2416 (catch_assert_command): Use catch_ada_assert_command_split
2417 instead of ada_decode_assert_location. Update call to
2418 create_ada_exception_catchpoint.
2419
24202013-10-11 Joel Brobecker <brobecker@adacore.com>
2421
2422 * utils.h (perror_warning_with_name): Add declaration.
2423 * utils.c (perror_warning_with_name): New function.
2424 * cli/cli-cmds.c (source_script_with_search): Add call to
2425 perror_warning_with_name if from_tty is nul.
2426
24272013-10-11 Joel Brobecker <brobecker@adacore.com>
2428
2429 * utils.c (perror_string): New function, extracted out of
2430 throw_perror_with_name.
2431 (throw_perror_with_name): Rework to use perror_string.
2432
24332013-10-11 Yao Qi <yao@codesourcery.com>
2434
2435 * remote.c (discard_pending_stop_replies_in_queue): Update
2436 declaration.
2437 (struct stop_reply) <rs>: New field.
2438 (remove_stop_reply_of_remote_state): New function.
2439 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2440 Callers update. Pass remove_stop_reply_of_remote_state to
2441 QUEUE_iterate.
2442 (remote_parse_stop_reply): Initialize field 'rs'.
2443
24442013-10-10 Will Newton <will.newton@linaro.org>
2445
2446 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2447 linux_init_abi.
2448
24492013-10-10 Joel Brobecker <brobecker@adacore.com>
2450
2451 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2452 serial_baud_show_cmd.
2453 (_initialize_cli_cmds): Delete the code creating the
2454 "set/show remotebaud" commands.
2455 * serial.c (baud_rate): Move here from top.c.
2456 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2457 (_initialize_serial): Create "set/show serial baud" commands.
2458 Add "set/show remotebaud" command aliases.
2459 * top.c (baud_rate): Moved to serial.c.
2460 * NEWS: Document the new "set/show serial baud" commands,
2461 replacing "set/show remotebaud".
2462
24632013-10-09 Pedro Alves <palves@redhat.com>
2464
2465 * breakpoint.c (insert_bp_location): Use memory_error_message to
2466 build the memory error string.
2467 * c-lang.c: Include "gdbcore.h".
2468 (c_get_string): Use memory_error to throw error.
2469 (target_xfer_memory_error): Delete.
2470 (memory_error_message): New, factored out from
2471 target_xfer_memory_error.
2472 (memory_error): Change parameter type to target_xfer_error.
2473 Rewrite.
2474 (read_memory): Use memory_error instead of
2475 target_xfer_memory_error.
2476 * gdbcore.h: Include "target.h".
2477 (memory_error): Change parameter type to target_xfer_error.
2478 (memory_error_message): Declare function.
2479 * target.c (target_read_memory, target_read_stack)
2480 (target_write_memory, target_write_raw_memory): Return
2481 TARGET_XFER_E_IO on error. Adjust comments.
2482 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2483 instead of EIO.
2484 * target.h (target_read, target_insert_breakpoint)
2485 (target_remove_breakpoint): Adjust comments.
2486 * valprint.c (partial_memory_read): Rename parameter, and adjust
2487 comment.
2488 (val_print_string): Use memory_error_message to build the memory
2489 error string.
2490
24912013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2494 result variable. Rename variable fopen_e_ever_failed to
2495 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2496
24972013-10-09 Pedro Alves <palves@redhat.com>
2498
2499 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2500 (monitor_write_memory_longlongs, monitor_write_memory_block):
2501 Constify 'myaddr' parameter.
2502 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2503 helper.
2504 (monitor_xfer_partial): New function.
2505 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2506 hook. Install a to_xfer_partial hook.
2507
25082013-10-09 Tom Tromey <tromey@redhat.com>
2509
2510 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2511 bfd_get_alt_debug_link_info.
2512
25132013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2514
2515 New flag OBJF_NOT_FILENAME.
2516 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2517 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2518 allocate_objfile.
2519 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2520 symbol_file_add_from_bfd.
2521 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2522 allocate_objfile.
2523 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2524 NULL.
2525 * objfiles.h (OBJF_NOT_FILENAME): New.
2526
25272013-10-08 Tom Tromey <tromey@redhat.com>
2528
2529 * Makefile.in (SFILES): Add build-id.c.
2530 (HFILES_NO_SRCDIR): Add build-id.h.
2531 * build-id.c: New file, largely from elfread.c. Modified
2532 most functions.
2533 * build-id.h: New file.
2534 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2535 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2536 Search for dwz file using build-id.
2537 * elfread.c (build_id_bfd_get, build_id_verify)
2538 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2539
25402013-10-08 Joel Brobecker <brobecker@adacore.com>
2541
2542 * ada-lang.c (compare_names_with_case): Renamed from
2543 compare_names, adding a new parameter "casing" and its handling.
2544 New function documentation.
2545 (compare_names): New function, implemented using
2546 compare_names_with_case.
2547
25482013-10-08 Joel Brobecker <brobecker@adacore.com>
2549
2550 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2551
25522013-10-07 Tom Tromey <tromey@redhat.com>
2553
2554 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2555 demangled_names_hash.
2556 (free_objfile): Don't delete the demangled_names_hash.
2557 * objfiles.h (struct objfile_per_bfd_storage)
2558 <demangled_names_hash>: New field.
2559 (struct objfile) <demangled_names_hash>: Move to
2560 objfile_per_bfd_storage.
2561 * symfile.c (reread_symbols): Don't delete the
2562 demangled_names_hash.
2563 * symtab.c (create_demangled_names_hash): Update.
2564 (symbol_set_names): Update.
2565
25662013-10-07 Tom Tromey <tromey@redhat.com>
2567
2568 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2569 needs_relocations>: New fields.
2570 (gdb_bfd_requires_relocations): New function.
2571 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2572 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2573 the BFD needs relocations applied.
2574
25752013-10-07 Pedro Alves <palves@redhat.com>
2576
2577 PR breakpoints/11568
2578 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2579 the thread list" instead of "gone".
2580
25812013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2582
2583 * NEWS: Mention new convenience variable $_exitsignal.
2584 * corelow.c (core_open): Reset exit convenience variables. Set
2585 $_exitsignal to the uncaught signal which generated the corefile.
2586 * infrun.c (handle_inferior_event): Reset exit convenience
2587 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2588 (clear_exit_convenience_vars): New function.
2589 * inferior.h (clear_exit_convenience_vars): New prototype.
2590
25912013-10-06 Yao Qi <yao@codesourcery.com>
2592
2593 * varobj.h: Add comments to enum varobj_languages.
2594
25952013-10-04 Doug Evans <dje@google.com>
2596
2597 Add support for DWP file format version 2.
2598 * NEWS: Mention support for DWP file format version 2.
2599 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2600 union of asection, containing_section. New fields virtual_offset
2601 and is_virtual. Change type of readin filed from int to char.
2602 (dwo_sections, dwo_file): Tweak comments.
2603 (dwp_v2_section_ids): New enum.
2604 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2605 str_offsets, types.
2606 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2607 All uses updated.
2608 (virtual_v2_dwo_sections): New struct.
2609 (dwp_hash_table): New fields version, nr_columns. Change type of
2610 section_pool field to a union.
2611 (dwp_file): New field version.
2612 (dwarf2_has_info): Check for virtual sections.
2613 (get_containing_section): New function.
2614 (get_section_bfd_owner, get_section_bfd_section): Call it.
2615 (dwarf2_locate_sections): Update.
2616 (dwarf2_section_empty_p): Update.
2617 (dwarf2_read_section): Handle virtual sections.
2618 (locate_dwz_sections): Update.
2619 (create_dwp_hash_table): Document and handle V2 format.
2620 (locate_v1_virtual_dwo_sections): Renamed from
2621 locate_virtual_dwo_sections and update. All callers updated.
2622 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2623 Delete arg htab. Rename arg section_index to unit_index.
2624 All callers updated.
2625 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2626 All uses updated.
2627 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2628 (lookup_dwo_unit_in_dwp): Add V2 support.
2629 (dwarf2_locate_dwo_sections): Update.
2630 (dwarf2_locate_common_dwp_sections): Renamed from
2631 dwarf2_locate_dwp_sections and update. All callers updated.
2632 (dwarf2_locate_v2_dwp_sections): New function.
2633 (open_and_init_dwp_file): Add V2 support.
2634 (read_str_index): New locals str_section, str_offsets_section.
2635
26362013-10-04 Pedro Alves <palves@redhat.com>
2637
2638 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2639 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2640 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2641 describing comments with references to ptid.h.
2642 * common/ptid.h: Remove intro description of constructors,
2643 accessors and predicates.
2644 (struct ptid): Reformat.
2645 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2646 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2647 describing comments.
2648
26492013-10-04 Joel Brobecker <brobecker@adacore.com>
2650
2651 * aix-thread.c (sync_threadlists): Add missing ')' in call
2652 to ptid_build.
2653
26542013-10-04 Joel Brobecker <brobecker@adacore.com>
2655
2656 * procfs.c (procfs_init_inferior): Fix typo causing the build
2657 to fail.
2658
26592013-10-04 Joel Brobecker <brobecker@adacore.com>
2660
2661 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2662
26632013-10-04 Joel Brobecker <brobecker@adacore.com>
2664
2665 * mi/mi-main.c (run_one_inferior): Add function description.
2666 Make ARG a pointer to an integer whose value determines whether
2667 we should "run" or "start" the program.
2668 (mi_cmd_exec_run): Add handling of the "--start" option.
2669 Reject all other command-line options.
2670 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2671
26722013-10-04 Yao Qi <yao@codesourcery.com>
2673
2674 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2675 (struct notif_client) <pending_event>: Moved
2676 to struct remote_notif_state.
2677 <id>: New field.
2678 (struct remote_notif_state) <pending_event>: New field.
2679 (notif_event_xfree): Declare.
2680 * remote-notif.c (handle_notification): Adjust.
2681 (notif_event_xfree): New function.
2682 (do_notif_event_xfree): Call notif_event_xfree.
2683 (remote_notif_state_xfree): Call notif_event_xfree to free
2684 each element in field pending_event.
2685 * remote.c (discard_pending_stop_replies): Remove declaration.
2686 (discard_pending_stop_replies_in_queue): Declare.
2687 (remote_close): Call discard_pending_stop_replies_in_queue
2688 instead of discard_pending_stop_replies.
2689 (remote_start_remote): Adjust.
2690 (stop_reply_xfree): Call notif_event_xfree.
2691 (notif_client_stop): Adjust initialization.
2692 (remote_notif_remove_all): Rename it to ...
2693 (remove_stop_reply_for_inferior): ... this. Update comments.
2694 Don't check INF is NULL.
2695 (discard_pending_stop_replies): Return early if notif_state is
2696 NULL. Adjust. Don't check INF is NULL.
2697 (remote_notif_get_pending_events): Adjust.
2698 (discard_pending_stop_replies_in_queue): New function.
2699 (remote_wait_ns): Likewise.
2700
27012013-10-04 Yao Qi <yao@codesourcery.com>
2702
2703 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2704 (notif_queue): Remove.
2705 (remote_notif_process): Add one parameter 'notif_queue'.
2706 Update comments. Callers update.
2707 (remote_async_get_pending_events_token): Remove.
2708 (remote_notif_register_async_event_handler): Remove.
2709 (remote_notif_unregister_async_event_handler): Remove.
2710 (handle_notification): Add parameter 'notif_queue'. Update
2711 comments. Callers update.
2712 (notif_xfree): Remove.
2713 (remote_notif_state_allocate): New function.
2714 (remote_notif_state_xfree): New function.
2715 (_initialize_notif): Remove code to allocate queue.
2716 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2717 (struct remote_notif_state): New.
2718 (handle_notification): Update declaration.
2719 (remote_notif_process): Likewise.
2720 (remote_notif_register_async_event_handler): Remove.
2721 (remote_notif_unregister_async_event_handler): Remove.
2722 (remote_notif_state_allocate): Declare.
2723 (remote_notif_state_xfree): Declare.
2724 * remote.c (struct remote_state) <notif_state>: New field.
2725 (remote_close): Don't call
2726 remote_notif_unregister_async_event_handler. Call
2727 remote_notif_state_xfree.
2728 (remote_open_1): Don't call
2729 remote_notif_register_async_event_handler. Call
2730 remote_notif_state_allocate.
2731
27322013-10-04 Yao Qi <yao@codesourcery.com>
2733
2734 * varobj.c (create_child_with_value): Remove 'const' from the
2735 type of parameter 'name'.
2736 (varobj_add_child): Likewise.
2737 (install_dynamic_child): Remove 'const' from the type of
2738 parameter 'name'.
2739 (varobj_add_child): Likewise.
2740 (create_child_with_value): Likewise. Update comments. Don't
2741 duplicate 'name'.
2742 (update_dynamic_varobj_children): Duplicate 'name'
2743 and pass it to install_dynamic_child.
2744
27452013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2746
2747 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2748 conversion logic to occur after PyLong_Check. Comment on order
2749 change significance.
2750 * python/py-arch.c (archpy_disassemble): Comment on order of
2751 conversion for integers and longs.
2752
27532013-10-03 Pedro Alves <palves@redhat.com>
2754
2755 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2756 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2757 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2758 PTRACE_O_TRACEFORK is not supported.
2759 (linux_test_for_tracesysgood): New function.
2760 (linux_test_for_tracefork): New function, factored out from
2761 linux_check_ptrace_features, and also don't kill child_pid here.
2762
27632013-10-03 Tristan Gingold <gingold@adacore.com>
2764
2765 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2766 Remove verbose error reporting. Use detected state to
2767 thread_set_state call.
2768 (i386_darwin_dr_get): Fix return type. Remove verbose error
2769 report.
2770 Remove trailing spaces.
2771
27722013-10-02 Pedro Alves <palves@redhat.com>
2773
2774 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2775 val_print_optimized_out.
2776 * jv-valprint.c (java_print_value_fields): Likewise.
2777 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2778 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2779 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2780 new optimized out value.
2781 * findvar.c (address_from_register): Likewise.
2782 * frame.c (put_frame_register): Tweak error string to say the
2783 register was not saved, rather than optimized out.
2784 * infcmd.c (default_print_one_register_info): Adjust call to
2785 val_print_optimized_out. Use value_of_register instead of
2786 get_frame_register_value.
2787 * mi/mi-main.c (output_register): Use value_of_register instead of
2788 get_frame_register_value.
2789 * valprint.c (valprint_check_validity): Likewise.
2790 (val_print_optimized_out): New value parameter. If the value is
2791 lval_register, print <not saved> instead.
2792 (value_check_printable, val_print_scalar_formatted): Adjust calls
2793 to val_print_optimized_out.
2794 * valprint.h (val_print_optimized_out): New value parameter.
2795 * value.c (struct value) <optimized_out>: Extend comment.
2796 (error_value_optimized_out): New function.
2797 (require_not_optimized_out): Use it. Use a different string for
2798 lval_register values.
2799 * value.h (error_value_optimized_out): New declaration.
2800 * NEWS: Mention <not saved>.
2801
28022013-10-02 Joel Brobecker <brobecker@adacore.com>
2803
2804 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2805 strcmp to compare two symtab filenames.
2806
28072013-10-02 Joel Brobecker <brobecker@adacore.com>
2808
2809 * symtab.c (search_symbols_equal): Delete.
2810 (sort_search_symbols_remove_dups): Replace call to
2811 search_symbols_equal by call to compare_search_syms,
2812 adjusting as necessary.
2813
28142013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2815
2816 PR python/15579
2817 * python/python.c: Document gdb.execute command in Python help.
2818
28192013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2820
2821 * python/py-frame.c (frame_info_to_frame_object): Use
2822 gdbpy_convert_exception. Clean up Python object on failure.
2823
28242013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2825
2826 * python/lib/gdb/command/frame_filters.py
2827 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2828 (ShowFrameFilterPriority.invoke): Ditto.
2829
28302013-10-01 Keith Seitz <keiths@redhat.com>
2831
2832 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2833 (parse_linespec): Make 'argptr' const.
2834 Remove temporary cast of 'argptr' to const char **.
2835 (decode_line_full): Pass const pointer to parse_linespec.
2836 (decode_line_1): Likewise.
2837 (decode_objc): Make local variable 'new_argptr' const.
2838 (find_function_symbols): Remove temporary cast to char *
2839 to find_imps.
2840 * objc-lang.c (find_imps): Make argument 'method' const.
2841 Return const.
2842 * objc-lang.h (find_imps): Likewise.
2843
28442013-10-01 Keith Seitz <keiths@redhat.com>
2845
2846 * completer.c (skip_quoted_chars): Make all arguments const.
2847 Return const.
2848 (skip_quoted): Likewise.
2849 * completer.h (skip_quoted_chars): Likewise.
2850 (skip_quoted): Likewise.
2851 * defs.h (skip_quoted): Remove duplicate declaration.
2852 * jv-exp.y: Include completer.h.
2853 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2854 * p-exp.y: Include completer.h.
2855
28562013-10-01 Keith Seitz <keiths@redhat.com>
2857
2858 * c-exp.y (parse_number): Make first argument const.
2859 Make a copy of the input to manipulate.
2860 (c_parse_escape): Make first argument const.
2861 Make local variable 'tokptr' const.
2862 (parse_string_or_char): Make first two arguments const.
2863 (macro_original_text): Make const.
2864 (lex_one_token): Make local variable 'tokstart' const.
2865 Likewise for local variables named 'p'.
2866 Cast away const for struct stoken (temporary).
2867 * c-lang.h (c_parse_escpae): Make first argument const.
2868 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2869 const.
2870 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2871 var_string case.
2872 * f-exp.y (parse_number): Make first argument const.
2873 (match_string_literal): Make local variable 'tokstart'
2874 const.
2875 (yylex): Make local variable 'p' const.
2876 Cast away const for struct stoken (temporary).
2877 * go-exp.y (parse_number): Make first argument const.
2878 (parse_string_or_char): Likewise.
2879 Make local variable 'tokstart' const.
2880 (lex_one_token): Likewise for numerous locals called 'p'.
2881 Cast away const for struct stoken (temporary).
2882 * jv-exp.y (parse_number): Make first argument const.
2883 Make local variables 'tokstart' and 'tokptr' const.
2884 Cast away const for call to skip_quoted (temporary).
2885 (yylex): Make local variable 'p' const.
2886 Cast away const for struct stoken (temporary).
2887 * m2-exp.y (parse_number): Make local variable 'p' const.
2888 (yylex): Likewise for 'tokstart'.
2889 Cast away const for struct stoken (temporary).
2890 Make local variable 'p' const.
2891 * macroexp.c (get_character_constant): Pass a const string
2892 to c_parse_escape.
2893 (get_string_literal): Likewise.
2894 (macro_expand_next): Make first argument const.
2895 Cast away const for init_shared_buffer.
2896 * macroexp.h (macro_expand_next): Make first argument const.
2897 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2898 Pass a const string to c_parse_escape.
2899 Make local variables 'p' and 'namestart' const.
2900 * parse.c (lexptr): Make const.
2901 (prev_lexptr): Likewise.
2902 (find_template_name_end): Return const.
2903 Make argument const, too.
2904 (parse_exp_in_context): Make first argument const.
2905 Remove the entire const_hack.
2906 (parse_exp_in_context_1): Make first argument const.
2907 * parser-defs.h (find_template_name_end): Return const.
2908 Make argument const, too.
2909 (lexptr): Make const.
2910 (prev_lexptr): Likewise.
2911 * utils.c (parse_escape): Make second argument const.
2912 * utils.h (parse_escape): Likewise.
2913
29142013-10-01 Keith Seitz <keiths@redhat.com>
2915
2916 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2917 is now const.
2918 (block_lookup): Make 'raw_name' and 'name' const.
2919 * ada-lex.l (processString): Update for struct stoken.ptr.
2920 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2921 (operator_stoken): Likewise.
2922 (lex_one_token): Remove temporary cast to char * for
2923 'yylval.sval.ptr'.
2924 * f-exp.y (yylex): Likewise.
2925 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2926 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2927 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2928 'yylval.sval.ptr'.
2929 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2930 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2931 * linespec.c (struct ls_parser): Make 'stream' const.
2932 (find_parameter_list_end): Make argument 'input' and local
2933 variable 'p' const.
2934 (linespec_lexer_lex_string): Make local variables 'start' and
2935 'p' const.
2936 Use skip_spaces_const instead of skip_spaces.
2937 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2938 const.
2939 (parse_linespec): Temporarily cast 'argptr' to const for
2940 'parser->lexer.stream'.
2941 * m2-exp.y (yylex): Remove temporary cast to char * for
2942 'yylval.sval.ptr'.
2943 * objc-lang.c (add_msglist): Make local variable 'p' const.
2944 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2945 (exp : STRING): Make 'sp' const.
2946 (parse_number): Make argument 'p' const.
2947 * parser-defs.h (struct stoken): Make 'ptr' const.
2948
29492013-10-01 Doug Evans <dje@google.com>
2950
2951 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2952
29532013-10-01 Yao Qi <yao@codesourcery.com>
2954
2955 * varobj.c (c_value_of_root): Remove declaration.
2956 (cplus_value_of_root, java_value_of_root): Likewise.
2957 (ada_value_of_root): Likewise.
2958 (struct language_specific) <value_of_root>: Remove.
2959 (languages): Update initialization.
2960 (check_scope): Move earlier.
2961 (c_value_of_root): Move earlier and rename to ...
2962 (value_of_root_1): ... this.
2963 (value_of_root): Caller update.
2964 (cplus_value_of_root, java_value_of_root): Remove.
2965 (ada_value_of_root): Remove.
2966
29672013-10-01 Yao Qi <yao@codesourcery.com>
2968
2969 * varobj.c (varobj_format_string): Remove "unknown".
2970 (languages): Remove the first element.
2971 * varobj.h (enum varobj_languages): Remove vlang_c.
2972
29732013-10-01 Yao Qi <yao@codesourcery.com>
2974
2975 * varobj.c (struct language_specific) <language>: Remove.
2976 (languages): Update the initialization.
2977
29782013-10-01 Yao Qi <yao@codesourcery.com>
2979
2980 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2981 "solib-target.h". Include "windows-tdep.h".
2982 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2983 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2984 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2985 windows-tdep.o to gdb_target_obs.
2986
29872013-10-01 Yao Qi <yao@codesourcery.com>
2988
2989 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
2990 "solib-target.h".
2991 (amd64_windows_init_abi): Don't call set_solib_ops and
2992 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2993 windows_init_abi instead.
2994 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
2995 "solib-target.h".
2996 (i386_cygwin_init_abi): Don't call set_solib_ops,
2997 set_gdbarch_has_dos_based_file_system and
2998 set_gdbarch_iterate_over_objfiles_in_search_order. Call
2999 windows_init_abi instead.
3000 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3001 (windows_init_abi): New function.
3002 (windows_iterate_over_objfiles_in_search_order): Make it
3003 static.
3004 * windows-tdep.h (windows_init_abi): Declare.
3005 (windows_iterate_over_objfiles_in_search_order): Remove
3006 declaration.
3007
30082013-10-01 Jerome Guitton <guitton@adacore.com>
3009
3010 Checked in by Joel Brobecker <brobecker@adacore.com>
3011 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3012 incomplete dictionnary instead of None in case of missing
3013 environment variables.
3014 (elinos_init): in case of an incomplete environment, best
3015 effort to load system libraries instead of abort.
3016
30172013-10-01 Joel Brobecker <brobecker@adacore.com>
3018
3019 * ada-lang.c (ada_has_this_exception_support): Ignore
3020 mst_solib_trampoline minimal symbols.
3021
30222013-09-30 Tristan Gingold <gingold@adacore.com>
3023
3024 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3025 hardware watchpoint.
3026 (i386_darwin_dr_set): Support 32 and 64 bit states.
3027 (i386_darwin_dr_get): Likewise.
3028 (i386_darwin_dr_set_control): Make static.
3029 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3030 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3031
30322013-09-30 Luis Machado <lgustavo@codesourcery.com>
3033
3034 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3035 Replace TIDGET with ptid_get_lwp.
3036 Replace GET_LWP with ptid_get_lwp.
3037 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3038 Replace BUILD_THREAD with ptid_build.
3039 Replace BUILD_LWP with ptid_build.
3040 Replace PIDGET with ptid_get_pid.
3041 Replace TIDGET with ptid_get_lwp.
3042 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3043 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3044 Replace TIDGET with ptid_get_lwp.
3045 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3046 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3047 Replace TIDGET with ptid_get_lwp.
3048 Replace GET_LWP with ptid_get_lwp.
3049 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3050 * auxv.c: Likewise.
3051 * breakpoint.c: Likewise.
3052 * common/ptid.c (ptid_is_pid): Condense check for
3053 null_ptid and minus_one_ptid.
3054 (ptid_lwp_p): New function.
3055 (ptid_tid_p): New function.
3056 * common/ptid.h: Update comments for accessors.
3057 (ptid_lwp_p): New prototype.
3058 (ptid_tid_p): New prototype.
3059 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3060 * gcore.c: Replace PIDGET with ptid_get_pid.
3061 * gdbthread.h: Likewise.
3062 * gnu-nat.c: Likewise.
3063 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3064 Replace TIDGET with ptid_get_lwp.
3065 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3066 * hppanbsd-nat.c: Likewise.
3067 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3068 Replace TIDGET with ptid_get_lwp.
3069 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3070 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3071 * infcmd.c: Likewise.
3072 * inferior.h: Likewise.
3073 * inflow.c: Likewise.
3074 * infrun.c: Likewise.
3075 * linux-fork.c: Likewise.
3076 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3077 Replace GET_PID with ptid_get_pid.
3078 Replace is_lwp with ptid_lwp_p.
3079 Replace GET_LWP with ptid_get_lwp.
3080 Replace BUILD_LWP with ptid_build.
3081
30822013-09-28 Mike Frysinger <vapier@gentoo.org>
3083
3084 * common/linux-btrace.c: Move sys/syscall.h out of the
3085 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3086 Also check for SYS_perf_event_open before attempting to buid.
3087
30882013-09-27 Doug Evans <dje@google.com>
3089
3090 * dwarf2read.c (dwarf2_section_info): Add comment.
3091 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3092 All uses updated.
3093 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3094 (dwarf2_read_section): Delete unused local "header". Add section
3095 name to error message.
3096 (create_dwo_in_dwp): Tweak comment.
3097 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3098
3099 * dwarf2read.c (die_reader_specs): Tweak comment.
3100 (get_section_bfd_owner, get_section_bfd_section): New functions.
3101 (get_section_name, get_section_file_name): New functions.
3102 (get_section_id, get_section_flags): New functions.
3103 (*): Use new functions to access section fields.
3104
3105 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3106 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3107 arg "htab". All callers updated.
3108 (create_debug_types_hash_table): Remove redundant copy of
3109 abbrev_section.
3110 (create_dwo_in_dwp): Tweak comments.
3111 (read_str_index): Tweak comment. Record dwarf form name in static
3112 local.
3113
31142013-09-27 Pedro Alves <palves@redhat.com>
3115
3116 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3117 (remote_filename_p): Add comment.
3118 * remote.c (remote_filename_p): Adjust to use
3119 REMOTE_SYSROOT_PREFIX.
3120 * solib.c (solib_find): When deciding whether we need to add a
3121 directory separator, check whether the sysroot is "remote:"
3122 instead of checking whether the patch has a drive spec. Add
3123 comments.
3124
31252013-09-27 Pedro Alves <palves@redhat.com>
3126
3127 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3128 Delete fields.
3129 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3130 directly.
3131
31322013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3133
3134 Fix set debug frame output.
3135 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3136 SENTINEL_FRAME entry lower to match enum frame_type order.
3137
31382013-09-26 Pierre Muller <muller@sourceware.org>
3139
3140 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3141 AMD64_R15_REGNUM when a register index is expected.
3142 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3143 Substitute in array.
3144 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3145 (amd64_push_arguments): Substitute in integer_regnum array.
3146
31472013-09-25 Doug Evans <dje@google.com>
3148
3149 * objfiles.c (allocate_objfile): Move comment to better place.
3150
3151 New option "set debug symfile on".
3152 * NEWS: Mention "set debug symfile".
3153 * Makefile.in (SFILES): Add symfile-debug.c.
3154 (COMMON_OBS): Add symfile-debug.o.
3155 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3156 objfile's symbol functions.
3157 * objfiles.h (objfile_set_sym_fns): Declare.
3158 * symfile-debug.c: New file.
3159 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3160 objfile's symbol functions.
3161 (reread_symbols): Ditto.
3162
3163 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3164 All uses updated.
3165 (add_symtab_fns): Update prototype.
3166 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3167 (registered_sym_fns): ... this.
3168 (symtab_fns): Update.
3169 (add_symtab_fns): New arg "flavour". All callers updated.
3170 (find_sym_fns): Rewrite to use new sym_fns registry.
3171
3172 * symfile.h (struct sym_fns): Add "objfile" argument to
3173 sym_read_linetable. All uses updated.
3174
3175 * symtab.c (domain_name, search_domain_name): New functions.
3176 * symtab.h (domain_name, search_domain_name): Declare.
3177
3178 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3179 map_matching_symbols so objfile is first. All uses updated.
3180 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3181 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3182
31832013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3184
3185 PR shlibs/8882
3186 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3187 link map entries.
3188
31892013-09-24 Doug Evans <dje@google.com>
3190
3191 * objfiles.c (free_objfile): Move comment.
3192
31932013-09-24 Joel Brobecker <brobecker@adacore.com>
3194
3195 * ada-exp.y (string_to_operator): Delete.
3196 (dummy_string_to_ada_operator): Delete.
3197
31982013-09-24 Joel Brobecker <brobecker@adacore.com>
3199
3200 Revert:
3201 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3202 amd64-tdep.c.
3203 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3204 call_dummy_integer_regs, and classify.
3205 * amd64-tdep.h (amd64_classify): Add declaration.
3206 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3207 (amd64_reg_class): Delete, moved to i386-tdep.h.
3208 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3209 Replace call to amd64_classify by call to tdep->classify.
3210 (amd64_push_arguments): Get the list of registers to use for
3211 passing integer parameters from the gdbarch tdep structure,
3212 rather than using a hardcoded one. Replace calls to amd64_classify
3213 by calls to tdep->classify.
3214 (amd64_push_dummy_call): Get the register number used for
3215 the "hidden" argument from tdep->call_dummy_integer_regs.
3216 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3217 and tdep->call_dummy_integer_regs. Set tdep->classify.
3218
32192013-09-24 Joel Brobecker <brobecker@adacore.com>
3220
3221 Revert:
3222 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3223 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3224 where tdep->memory_args_by_pointer is non-zero.
3225
32262013-09-24 Joel Brobecker <brobecker@adacore.com>
3227
3228 Revert:
3229 * i386-tdep.h (struct gdbarch_tdep): Add new field
3230 integer_param_regs_saved_in_caller_frame.
3231 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3232 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3233
32342013-09-24 Joel Brobecker <brobecker@adacore.com>
3235
3236 * amd64-windows-tdep.c: #include "value.h"
3237 (amd64_windows_classify): Delete.
3238 (amd64_windows_passed_by_integer_register)
3239 (amd64_windows_passed_by_xmm_register)
3240 (amd64_windows_passed_by_pointer)
3241 (amd64_windows_adjust_args_passed_by_pointer)
3242 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3243 (amd64_windows_push_dummy_call): New functions.
3244 (amd64_windows_init_abi): Remove setting of
3245 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3246 tdep->classify, tdep->memory_args_by_pointer and
3247 tdep->integer_param_regs_saved_in_caller_frame.
3248 Add call to set_gdbarch_push_dummy_call.
3249
32502013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3253 objfile->original_name.
3254
32552013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3256
3257 Pass down original filename for objfile.
3258 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3259 * elfread.c (elf_symfile_read): Likewise.
3260 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3261 longer set ORIGINAL_NAME.
3262 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3263 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3264 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3265 symbol_file_add_from_bfd call.
3266 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3267 (macho_check_dsym): Add parameter filenamep. Change function comment.
3268 Set *filenamep.
3269 (macho_symfile_read): New variable dsym_filename. Update
3270 macho_check_dsym call. Use it for symbol_file_add_separate.
3271 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3272 it. Use it for objfile->original_name.
3273 (objfile_name): Return OBFD's filename, if available.
3274 * objfiles.h (allocate_objfile): Add new parameter name.
3275 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3276 * symfile-mem.c (symbol_file_add_from_memory): Update
3277 symbol_file_add_from_bfd call.
3278 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3279 comment for it.
3280 (symbol_file_add_with_addrs): New parameter name, add function comment
3281 for it. Remove variable name. Update allocate_objfile call.
3282 (symbol_file_add_separate): New parameter name, add function comment
3283 for it. Update symbol_file_add_with_addrs call.
3284 (symbol_file_add_from_bfd): New parameter name. Update
3285 symbol_file_add_with_addrs call.
3286 (symbol_file_add): Update symbol_file_add_from_bfd call.
3287 (reread_symbols): New variable original_name. Save
3288 objfile->original_name by it.
3289 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3290 second parameter.
3291
32922013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 Code cleanup: Add objfile_name accessor function.
3295 * ada-lang.c (is_known_support_routine): Use objfile_name.
3296 * auto-load.c (source_gdb_script_for_objfile)
3297 (auto_load_objfile_script): Likewise.
3298 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3299 * dbxread.c (dbx_symfile_read): Likewise.
3300 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3301 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3302 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3303 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3304 (lookup_dwp_signatured_type, lookup_dwo_unit)
3305 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3306 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3307 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3308 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3309 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3310 (read_subrange_type, load_partial_dies, read_partial_die)
3311 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3312 (die_containing_type, build_error_marker_type, lookup_die_type)
3313 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3314 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3315 (get_DW_AT_signature_type, write_psymtabs_to_index)
3316 (save_gdb_index_command): Likewise.
3317 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3318 Likewise.
3319 * expprint.c (dump_subexp_body_standard): Likewise.
3320 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3321 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3322 original_name.
3323 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3324 obj_name, use objfile_name for it, use the variable.
3325 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3326 Use objfile_name.
3327 * machoread.c (macho_symtab_read, macho_check_dsym)
3328 (macho_symfile_relocate): Likewise.
3329 * maint.c (maintenance_translate_address): Likewise.
3330 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3331 * minsyms.c (install_minimal_symbols): Likewise.
3332 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3333 original_name.
3334 (filter_overlapping_sections): Use objfile_name.
3335 (objfile_name): New function.
3336 * objfiles.h (struct objfile): Rename field name to original_name.
3337 (objfile_name): New prototype.
3338 * printcmd.c (sym_info, address_info): Use objfile_name.
3339 * probe.c (parse_probes, collect_probes, compare_probes)
3340 (info_probes_for_ops): Likewise.
3341 * progspace.c (clone_program_space): Likewise.
3342 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3343 (maintenance_info_psymtabs): Likewise.
3344 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3345 (source_section_scripts): Likewise.
3346 * python/py-objfile.c (objfpy_get_filename): Likewise.
3347 * python/py-progspace.c (pspy_get_filename): Likewise.
3348 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3349 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3350 * solib.c (solib_read_symbols): Likewise.
3351 * stabsread.c (scan_file_globals): Likewise.
3352 * stap-probe.c (handle_stap_probe): Likewise.
3353 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3354 (find_separate_debug_file_by_debuglink): Likewise.
3355 (reread_symbols): Likewise. Use the objfile field name renamed to
3356 original_name.
3357 (allocate_symtab): Use objfile_name.
3358 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3359 (dump_objfile, dump_msymbols, dump_symtab_1)
3360 (maintenance_print_msymbols, maintenance_print_objfiles)
3361 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3362 * target.c (target_translate_tls_address, target_info): Likewise.
3363 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3364 objfile_name.
3365
33662013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 Code cleanup.
3369 * probe.c (parse_probes): Rename variable objfile_name to
3370 objfile_namestr.
3371
33722013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3373
3374 Remove solib-sunos.c.
3375 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3376 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3377 * objfiles.c (rt_common_objfile): Remove.
3378 (free_objfile): Remove rt_common_objfile comparison.
3379 * objfiles.h (rt_common_objfile): Remove.
3380 * solib-sunos.c: Remove.
3381 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3382
33832013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3384
3385 Remove a.out NetBSD and OpenBSD hosts.
3386 * NEWS (Removed native configurations): New.
3387 * config/arm/nbsdaout.mh: Remove.
3388 * config/i386/nbsdaout.mh: Remove.
3389 * config/i386/obsdaout.mh: Remove.
3390 * config/m68k/nbsdaout.mh: Remove.
3391 * config/sparc/nbsdaout.mh: Remove.
3392 * config/vax/nbsdaout.mh: Remove.
3393 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3394 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3395 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3396 error.
3397 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3398 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3399 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3400
34012013-09-23 Tom Tromey <tromey@redhat.com>
3402
3403 * linespec.c (struct minsym_and_objfile): Remove.
3404 (minsym_and_objfile_d): Remove.
3405 (struct linespec, struct collect_info, linespec_parse_basic)
3406 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3407 (compare_msymbols, find_method, find_function_symbols)
3408 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3409 (add_minsym, search_minsyms_for_name): Update.
3410
34112013-09-23 Andrew Burgess <aburgess@broadcom.com>
3412
3413 * regcache.c: Add include of valprint.h.
3414 (dump_endian_bytes): Delete.
3415 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3416
34172013-09-23 Andrew Burgess <aburgess@broadcom.com>
3418
3419 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3420
34212013-09-19 Pedro Alves <palves@redhat.com>
3422
3423 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3424 breakpoints.
3425
34262013-09-19 Pedro Alves <palves@redhat.com>
3427 Thomas Schwinge <thomas@codesourcery.com>
3428 Yue Lu <hacklu.newborn@gmail.com>
3429
3430 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3431 Take a gdb_byte pointer instead of a char pointer.
3432
3433 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3434 gnu_xfer_partial helper.
3435 (gnu_xfer_partial): New function.
3436 (gnu_target): Don't install a deprecated_xfer_memory hook.
3437 Install a to_xfer_partial hook.
3438
34392013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3440
3441 Constification.
3442 * main.c (captured_main): Replace catch_command_errors by
3443 catch_command_errors_const. Twice.
3444 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3445 (symbol_file_add): Make name parameter const.
3446 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3447 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3448 variable name. Change their usage accordingly.
3449 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3450 const.
3451 (symbol_file_add_main): Make args parameter const.
3452
34532013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3454 Ulrich Weigand <uweigand@de.ibm.com>
3455
3456 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3457 of c_value member.
3458 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3459
34602013-09-18 Pedro Alves <palves@redhat.com>
3461 Yue Lu <hacklu.newborn@gmail.com>
3462
3463 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3464 (gnu_create_inferior)
3465 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3466 (set_sig_thread_cmd): Use the lwpid field of ptids to
3467 store/extract thread ids instead of the tid field.
3468 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3469
34702013-09-18 Andrew Burgess <aburgess@broadcom.com>
3471
3472 * infcmd.c (default_print_one_register_info): Add detection of
3473 optimized out values.
3474 (default_print_registers_info): Switch to using
3475 get_frame_register_value.
3476
34772013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3478
3479 * infrun.c (handle_inferior_event): Check if we know the
3480 function start address before setting a resume breakpoint.
3481
34822013-09-18 Pedro Alves <palves@redhat.com>
3483
3484 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3485 minus_one_ptid instead of looking at the ptid's tid field and
3486 comparing that to -1.
3487
34882013-09-18 Andrew Burgess <aburgess@broadcom.com>
3489
3490 * main.h (get_gdb_program_name): Remove extra whitespace.
3491
34922013-09-18 Andrew Burgess <aburgess@broadcom.com>
3493
3494 * main.h (get_gdb_program_name): Add declaration.
3495 * main.c (get_gdb_program_name): Add definition.
3496
34972013-09-17 Doug Evans <dje@google.com>
3498
3499 * dwarf2read.c: Move definitions of complaint functions to after
3500 forward declarations of local functions.
3501
35022013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3503 Pedro Alves <palves@redhat.com>
3504
3505 PR gdb/11568
3506 * breakpoint.c (remove_threaded_breakpoints): New function.
3507 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3508 as thread_exit observer.
3509
35102013-09-17 Pedro Alves <palves@redhat.com>
3511
3512 PR gdb/15911
3513 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3514 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3515 * corelow.c (core_open):
3516 * frame.h (print_stack_frame, print_frame_info): New
3517 'set_current_sal' parameter.
3518 * infcmd.c (finish_command, kill_command): Adjust call to
3519 print_stack_frame.
3520 * inferior.c (inferior_command): Likewise.
3521 * infrun.c (normal_stop): Likewise.
3522 * linux-fork.c (linux_fork_context): Likewise.
3523 * record-full.c (record_full_goto_entry, record_full_restore):
3524 Likewise.
3525 * remote-mips.c (common_open): Likewise.
3526 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3527 Use it.
3528 (print_frame_info): New 'set_current_sal' parameter. Set the last
3529 displayed sal depending on the new paremeter instead of looking at
3530 print_what.
3531 (backtrace_command_1, select_and_print_frame, frame_command)
3532 (current_frame_command, up_command, down_command): Adjust call to
3533 print_stack_frame.
3534 * thread.c (print_thread_info, restore_selected_frame)
3535 (do_captured_thread_select): Adjust call to print_stack_frame.
3536 * tracepoint.c (tfind_1): Likewise.
3537 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3538 (mi_cmd_stack_info_frame): Likewise.
3539 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3540 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3541
35422013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3543
3544 * value.c (isvoid_internal_fn): Replace "parameter" with
3545 "argument".
3546
35472013-09-16 Stan Shebs <stan@codesourcery.com>
3548
3549 * README: Update references to writing code for GDB.
3550 * configure.ac (build_warnings): Remove obsolete comment.
3551 * configure: Regenerate.
3552 * gdbarch.sh: Remove references to gdbint.texinfo.
3553 * gdbarch.h: Regenerate.
3554 * gdbtypes.c (objfile_type): Remove comments referencing internals
3555 manual and D10V.
3556
35572013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 * NEWS: Mention new convenience function $_isvoid.
3560 * value.c (isvoid_internal_fn): New function.
3561 (_initialize_values): Add new convenience function $_isvoid.
3562
35632013-09-16 Pierre Muller <muller@sourceware.org>
3564
3565 * arm-linux-tdep.c: Add "elf/common.h" header.
3566 Remove AT_HWCAP macro definintion as it is provided in
3567 added include file.
3568 * s390-tdep.c: Remove system header <elf.h>
3569 Add "elf/common.h" header for AT_HWCAP definition.
3570 (s390_core_read_description): Use correct CORE_ADDR
3571 for hwcap local variable used as third parameter
3572 of function target_auxv_search.
3573
35742013-09-14 Pierre Muller <muller@sourceware.org>
3575 Tom Tromey <tromey@redhat.com>
3576 Pedro Alves <palves@redhat.com>
3577
3578 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3579 mode if operating system doesn't know O_CLOEXEC.
3580
35812013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3582
3583 Code cleanup.
3584 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3585 inner block.
3586
35872013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3588
3589 * NEWS: Mention TDB support.
3590 * features/s390-tdb.xml: New file.
3591 * features/s390-te-linux64.xml: New file.
3592 * features/s390x-te-linux64.xml: New file.
3593 * features/Makefile (WHICH): Add new tdescs above.
3594 (s390-te-linux64-expedite): Set.
3595 (s390x-te-linux64-expedite): Set.
3596 * features/s390-te-linux64.c: New file (generated).
3597 * features/s390x-te-linux64.c: New file (generated).
3598 * regformats/s390-te-linux64.dat: New file (generated).
3599 * regformats/s390x-te-linux64.dat: New file (generated).
3600 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3601 (HWCAP_S390_TE): Likewise.
3602 (S390_TDB_DWORD0_REGNUM): Likewise.
3603 (S390_TDB_DWORD0_REGNUM): Likewise.
3604 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3605 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3606 (S390_TDB_ATIA_REGNUM): Likewise.
3607 (S390_TDB_R0_REGNUM): Likewise.
3608 (S390_TDB_R1_REGNUM): Likewise.
3609 (S390_TDB_R2_REGNUM): Likewise.
3610 (S390_TDB_R3_REGNUM): Likewise.
3611 (S390_TDB_R4_REGNUM): Likewise.
3612 (S390_TDB_R5_REGNUM): Likewise.
3613 (S390_TDB_R6_REGNUM): Likewise.
3614 (S390_TDB_R7_REGNUM): Likewise.
3615 (S390_TDB_R8_REGNUM): Likewise.
3616 (S390_TDB_R9_REGNUM): Likewise.
3617 (S390_TDB_R10_REGNUM): Likewise.
3618 (S390_TDB_R11_REGNUM): Likewise.
3619 (S390_TDB_R12_REGNUM): Likewise.
3620 (S390_TDB_R13_REGNUM): Likewise.
3621 (S390_TDB_R14_REGNUM): Likewise.
3622 (S390_TDB_R15_REGNUM): Likewise.
3623 (S390_NUM_REGS): Increase.
3624 (S390_IS_TDBREGSET_REGNUM): New macro.
3625 (s390_regmap_tdb): Declare.
3626 (s390_sizeof_tdbregset): Define.
3627 (tdesc_s390_te_linux64): Declare.
3628 (tdesc_s390x_te_linux64): Likewise.
3629 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3630 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3631 (s390_regmap_tdb): New regmap.
3632 (s390_supply_tdb_regset): New function.
3633 (s390_tdb_regset): New regset.
3634 (s390_linux64v2_regset_sections): Add TDB regset to list.
3635 (s390x_linux64v2_regset_sections): Likewise.
3636 (s390_regset_from_core_section): Recognize TDB core note section.
3637 (s390_core_read_description): If HWCAP indicates TE support,
3638 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3639 (s390_gdbarch_init): Handle TDB regset.
3640 (_initialize_s390_tdep): Initialize new tdescs.
3641 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3642 (have_regset_tdb): New variable.
3643 (s390_native_supply): Support register invalidation.
3644 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3645 (check_regset): Treat ENODATA as "regset exists".
3646 (s390_linux_fetch_inferior_registers): Add TDB.
3647 (s390_read_description): Check for TDB existence and select
3648 appropriate tdesc.
3649 * gdbserver/Makefile.in (clean): Add removal of new makefile
3650 targets.
3651 (s390-te-linux64.c): New makefile target.
3652 (s390x-te-linux64.c): Likewise.
3653 * gdbserver/configure.srv (srv_regobj): Append new objects
3654 s390-te-linux64.o and s390x-te-linux64.o.
3655 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3656 s390x-te-linux64.xml, and s390-tdb.xml.
3657 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3658 declaration.
3659 (tdesc_s390_te_linux64): Likewise.
3660 (init_registers_s390x_te_linux64): Likewise.
3661 (tdesc_s390x_te_linux64): Likewise.
3662 (s390_check_regset): Treat ENODATA as "regset exists".
3663 (s390_arch_setup): Add TDB regset support.
3664 (initialize_low_arch): Initialize registers for new tdescs.
3665
36662013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3667
3668 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3669 (S390_IS_FPREGSET_REGNUM): New macro.
3670 * s390-tdep.c (s390_dwarf_regmap): Make const.
3671 (regnum_is_gpr_full): New function for replacing repeated code.
3672 (s390_pseudo_register_name): Use it.
3673 (s390_pseudo_register_type): Likewise.
3674 (s390_pseudo_register_read): Likewise.
3675 (s390_pseudo_register_write): Likewise.
3676 (s390_unwind_pseudo_register): Likewise.
3677 (s390_regmap_gregset): New format for regmap.
3678 (s390x_regmap_gregset): Likewise.
3679 (s390_regmap_fpregset): Likewise.
3680 (s390_regmap_upper): Likewise.
3681 (s390_regmap_last_break): Likewise.
3682 (s390_regmap_system_call): Likewise.
3683 (s390_supply_regset): Adjust to new regmap format.
3684 (s390_collect_regset): Likewise.
3685 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3686 (s390_native_collect): Likewise.
3687 (supply_gregset): Likewise.
3688 (fill_gregset): Likewise.
3689 (supply_fpregset): Likewise.
3690 (fill_fpregset): Likewise.
3691 (fetch_regset): Likewise.
3692 (store_regset): Likewise.
3693 (s390_linux_fetch_inferior_registers): Likewise.
3694 (s390_linux_fetch_inferior_registers): Likewise.
3695
36962013-09-12 Andrew Pinski <apinski@cavium.com>
3697
3698 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3699
37002013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3701
3702 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3703
37042013-09-09 Andrew Burgess <aburgess@broadcom.com>
3705
3706 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3707
37082013-09-06 Pedro Alves <palves@redhat.com>
3709
3710 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3711 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3712 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3713 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3714 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3715 gdb_stdlog.
3716
37172013-09-06 Pedro Alves <palves@redhat.com>
3718
3719 * remote-sim.c (dump_mem): Constify buf parameter.
3720 gdbsim_xfer_inferior_memory): Rename to ...
3721 (gdbsim_xfer_memory): ... this. Adjust interface as
3722 target_xfer_partial helper.
3723 (gdbsim_xfer_partial): New function.
3724 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3725 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3726
37272013-09-06 Pedro Alves <palves@redhat.com>
3728
3729 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3730 host_address_to_string, and send debug output to gdb_stdlog.
3731
37322013-09-06 Ricard Wanderlof <ricardw@axis.com>
3733
3734 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3735 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3736 gdb_target_obs for cris target.
3737 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3738 (cris_gdbarch_init): Move calls to
3739 set_gdbarch_fetch_tls_load_module_address and
3740 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3741 Add call to gdbarch_init_osabi.
3742 * cris-linux-tdep.c: New file.
3743 * cris-tdep.h: New file.
3744
37452013-09-06 Andrew Burgess <aburgess@broadcom.com>
3746
3747 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3748 to deprecated_init_ui_hook.
3749
37502013-09-06 Andrew Burgess <aburgess@broadcom.com>
3751
3752 * cli/cli-interp.c (_initialize_cli_interp): Add a
3753 command_loop_proc to interp_procs.
3754 * event-top.c (cli_command_loop): Change signature to match
3755 interp_command_loop_ftype.
3756 * event-top.h (cli_command_loop): Same.
3757 * interps.c (interp_new): Require every interpreter to have a
3758 command_loop_proc.
3759 (current_interp_command_loop): Just call the command_loop_proc on
3760 the current interpreter.
3761 * tui/tui-interp.c (_initialize_tui_interp): Add a
3762 command_loop_proc to interp_procs.
3763
37642013-09-06 Ricard Wanderlof <ricardw@axis.com>
3765
3766 * cris-tdep.c (cris_gdbarch_init): Add call to
3767 get_gdbarch_fetch_tls_load_module_address.
3768
37692013-09-06 Ricard Wanderlof <ricardw@axis.com>
3770
3771 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3772 (cris_elf_gregset_t): Rename from elf_gregset_t.
3773 (crisv32_elf_gregset_t): Adjust.
3774 (cris_supply_gregset, fetch_core_registers): Adjust.
3775
37762013-09-06 Ricard Wanderlof <ricardw@axis.com>
3777
3778 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3779
37802013-09-05 Andrew Burgess <aburgess@broadcom.com>
3781
3782 * defs.h (deprecated_command_loop_hook): Remove, including
3783 references in comments.
3784 * interps.c (current_interp_command_loop): No longer use
3785 deprecated_command_loop_hook.
3786 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3787 setup.
3788 * top.c (deprecated_command_loop_hook): Remove.
3789
37902013-09-05 Pedro Alves <palves@redhat.com>
3791
3792 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3793 local is now int instead of ULONGEST. Print it with %d
3794 instead of paddress.
3795
37962013-09-05 Tristan Gingold <gingold@adacore.com>
3797
3798 * MAINTAINERS: Remove avr maintainership.
3799
38002013-09-05 Pedro Alves <palves@redhat.com>
3801
3802 * findvar.c (value_of_register): Rework in terms of
3803 value_of_register_lazy.
3804
38052013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3806
3807 * symfile.c (add_symbol_file_command): Remove trailing
3808 whitespaces and blank line after comment.
3809
38102013-09-05 Pedro Alves <palves@redhat.com>
3811
3812 * tui/tui-regs.c (tui_register_format): Don't look at the
3813 register's name here. Return string representing register
3814 value instead of storing it in the data element.
3815 (tui_get_register): Compare register string representations
3816 instead of register value states and contents.
3817
38182013-09-05 Pedro Alves <palves@redhat.com>
3819
3820 PR tui/15933
3821 * tui/tui-regs.c (tui_show_registers): Show registers of the
3822 selected frame, not the current frame.
3823
38242013-09-05 Ricard Wanderlof <ricardw@axis.com>
3825
3826 * MAINTAINERS (Write After Approval): Add myself to the list.
3827
38282013-09-04 Doug Evans <dje@google.com>
3829
3830 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3831 (queue_and_load_dwo_tu): New function.
3832 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3833 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3834 Make dependent_cu optional.
3835 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3836 and an older .gdb_index is in use, queue and load all its TUs too.
3837
38382013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3839
3840 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3841 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3842 variable search_flags.
3843 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3844 (OPF_RETURN_REALPATH): ... here.
3845 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3846 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3847 call. Twice.
3848 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3849 openp call.
3850 * solib.c (solib_find): Likewise. Four times.
3851 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3852 in the function comment and for the realpath_fptr variable.
3853 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3854 (find_and_open_source): Likewise. Twice.
3855 * symfile.c (symfile_bfd_open): Likewise, also twice.
3856
38572013-09-04 Doug Evans <dje@google.com>
3858
3859 * progspace.c (save_current_space_and_thread): Remove unnecessary
3860 call to save_current_inferior.
3861
38622013-09-04 Andrew Burgess <aburgess@broadcom.com>
3863
3864 * sh64-tdep.c (sh64_do_register): Return after printing message
3865 about unavailable register contents.
3866
38672013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3868 Pedro Alves <palves@redhat.com>
3869
3870 * symfile.c (add_symbol_file_command): Error out on unknown
3871 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3872 options and collapse into single conditional branch.
3873
38742013-09-03 Luis Machado <lgustavo@codesourcery.com>
3875
3876 * inf-child.c (inf_child_follow_fork): New parameter
3877 detach_fork.
3878 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3879 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3880 * inferior.h (detach_fork): Remove.
3881 * infrun.c (detach_fork): Adjust comment and make it
3882 static.
3883 (follow_fork): Pass detach_fork parameter to
3884 target_follow_fork.
3885 * linux-nat.c (linux_child_follow_fork): New parameter
3886 detach_fork.
3887 * target.c (target_follow_fork): New parameter detach_fork.
3888 Pass detach_fork as parameter and print its value.
3889 * target.h (struct target_ops) <to_follow_fork>: New int
3890 parameter.
3891 (target_follow_fork): New parameter detach_fork.
3892
38932013-09-03 Joel Brobecker <brobecker@adacore.com>
3894
3895 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3896 Replace sec->bfd by sec->the_bfd_section->owner.
3897
38982013-09-03 Yao Qi <yao@codesourcery.com>
3899
3900 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3901 from linux_has_shared_address_space.
3902 (linux_has_shared_address_space): Call linux_is_uclinux.
3903 * linux-tdep.h (linux_is_uclinux): Declare.
3904 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3905 linux_is_uclinux.
3906
39072013-09-03 Yao Qi <yao@codesourcery.com>
3908
3909 * config/djgpp/fnchange.lst: Remove entry of
3910 i386-interix-nat.c and i386-interix-tdep.c.
3911 * configure.ac: Remove '*-*-interix*'.
3912 * configure: Re-generated.
3913 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3914 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3915 obsolete comments.
3916 * osabi.c (gdb_osabi_names): Remove "Interix".
3917
39182013-09-03 Yao Qi <yao@codesourcery.com>
3919
3920 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3921
39222013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3923
3924 * record.h (record_print_flag) <record_print_src_line,
3925 record_print_insn_range>: Rename into ...
3926 (record_print_flag) <record_print_src_line,
3927 record_print_insn_range>: ... this. Update all users.
3928
39292013-09-02 Pierre Muller <muller@sourceware.org>
3930
3931 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3932 error code.
3933
39342013-09-02 Pierre Muller <muller@sourceware.org>
3935
3936 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3937 by use of plongest function.
3938
39392013-09-02 Tristan Gingold <gingold@adacore.com>
3940
3941 * NEWS: Add entry mentioning support for native Windows x64
3942 SEH data.
3943
3944 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3945 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3946 (struct amd64_windows_frame_cache): New struct.
3947 (amd64_windows_w2gdb_regnum): New global.
3948 (pc_in_range, amd64_windows_frame_decode_epilogue)
3949 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3950 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3951 (amd64_windows_frame_this_id): New functions.
3952 (amd64_windows_frame_unwind): New static global.
3953 (amd64_windows_skip_prologue): New function.
3954 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3955 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3956 with amd64_windows_skip_prologue.
3957
39582013-08-30 Joel Brobecker <brobecker@adacore.com>
3959
3960 GDB 7.6.1 released.
3961
39622013-08-30 Pedro Alves <palves@redhat.com>
3963
3964 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3965 SRC_AND_LOC.
3966
39672013-08-30 Pedro Alves <palves@redhat.com>
3968
3969 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3970 warning text.
3971
39722013-08-30 Pedro Alves <palves@redhat.com>
3973
3974 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3975 Adjust arguments to print_stack_frame.
3976
39772013-08-30 Pedro Alves <palves@redhat.com>
3978
3979 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3980
39812013-08-30 Pedro Alves <palves@redhat.com>
3982
3983 * frame.h (show_and_print_stack_frame): Delete declaration.
3984
39852013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3986
3987 PR python/15461
3988 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
3989 (archpy_name): Check for valid architecture.
3990 (archpy_disassemble): Ditto.
3991
39922013-08-29 Joel Brobecker <brobecker@adacore.com>
3993
3994 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
3995 instead of "long long" in call to ptrace64.
3996
39972013-08-29 Andrew Burgess <aburgess@broadcom.com>
3998
3999 * mi/mi-interp.c (mi_command_loop): Change signature to match
4000 interp_command_loop_ftype.
4001 (mi1_command_loop): Remove.
4002 (mi2_command_loop): Remove.
4003 (mi3_command_loop): Remove.
4004 (mi_interpreter_resume): Remove setting of
4005 deprecated_command_loop_hook.
4006 (_initialize_mi_interp): Set mi_command_loop as the command loop
4007 callback.
4008
40092013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4010
4011 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4012 value_type.
4013
40142013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4015
4016 * value.c (allocate_value_contents): Make static.
4017 * value.h (allocate_value_contents): Remove prototype.
4018
40192013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4020
4021 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4022 of assembling value via allocate_value_lazy and attribute setter.
4023 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4024 assembling value via allocate_value_lazy and attribute setter.
4025 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4026 assembling value via allocate_value_lazy and attribute setter.
4027
40282013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4029
4030 * value.c (value_from_contents_and_address): Replace allocate_value and
4031 memcpy with value_from_contents.
4032
40332013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4034
4035 * python/py-framefilter.c (py_print_frame): Remove usage of
4036 PyString_AsString. Use python_string_to_host_string instead.
4037 Refactor function to work with a string as a new allocation
4038 instead of a pointer.
4039 (py_print_frame): Ditto.
4040 * python/lib/gdb/frames.py (return_list): Cain iterators together
4041 instead of adding them as a list.
4042 (_sort_list): Call return_list, and remove duplicate code.
4043 (execute_frame_filters): Convert iterator to a list with list().
4044 * python/lib/gdb/command/frame_filters.py
4045 (SetFrameFilterPriority._set_filter_priority): Convert priority
4046 attribute to an integer.
4047 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4048 wrapper function __next__.
4049 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4050 define as "str".
4051
40522013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4053
4054 PR python/15752
4055 * python/py-framefilter.c (apply_frame_filter): Check
4056 gdb_python_initialized. Exit if the Python frame-filter code
4057 cannot be initialized.
4058
40592013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4060
4061 PR cli/15842
4062 * top.c (print_gdb_version): Remove erroneous newline after help
4063 text.
4064
40652013-08-29 Yao Qi <yao@codesourcery.com>
4066
4067 * varobj.c (install_dynamic_child): Remove trailing space.
4068 Add one blank line after variable declaration.
4069
40702013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4071
4072 PR gdb/15415
4073 * corefile.c (get_exec_file): Use exec_filename.
4074 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4075 * exec.c (exec_close): Free EXEC_FILENAME.
4076 (exec_file_attach): New variable canonical_pathname. Use
4077 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4078 EXEC_FILENAME.
4079 * exec.h (exec_filename): New.
4080 * inferior.c (print_inferior, inferior_command): Use
4081 PSPACE_EXEC_FILENAME.
4082 * mi/mi-main.c (print_one_inferior): Likewise.
4083 * progspace.c (clone_program_space, print_program_space): Likewise.
4084 * progspace.h (struct program_space): New field pspace_exec_filename.
4085 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4086 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4087
40882013-08-28 Will Newton <will.newton@linaro.org>
4089
4090 * common/linux-ptrace.c: Include stdint.h unconditionally.
4091
40922013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4093
4094 Code cleanup.
4095 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4096
40972013-08-28 Yao Qi <yao@codesourcery.com>
4098 Pedro Alves <palves@redhat.com>
4099
4100 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4101 instead of stdio_fileopen.
4102 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4103 .Call stderr_fileopen instead of stdio_fileopen.
4104 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4105 [__MINGW32__] (stderr_file_fputs): New function.
4106 (stderr_fileopen): New function.
4107 * ui-file.h (stderr_fileopen): Declare.
4108
41092013-08-27 Doug Evans <dje@google.com>
4110
4111 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4112 (struct dwarf2_per_cu_data): Ditto.
4113 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4114 (process_imported_unit_die): Ditto.
4115 (follow_die_sig_1): Simplify assert.
4116
41172013-08-27 Pedro Alves <palves@redhat.com>
4118
4119 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4120 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4121 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4122 windows_xfer_memory directly.
4123 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4124
41252013-08-27 Pedro Alves <palves@redhat.com>
4126
4127 * darwin-nat.c (darwin_xfer_memory): Delete.
4128 (_initialize_darwin_inferior): Don't install a
4129 deprecated_xfer_memory method.
4130
41312013-08-27 Pedro Alves <pedro@codesourcery.com>
4132 Yao Qi <yao@codesourcery.com>
4133
4134 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4135 (parse_no_frames_option): Remove.
4136 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4137 (mi_cmd_stack_list_args): Adjust.
4138 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4139 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4140 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4141 Caller update.
4142 (list_args_or_locals): New parameter 'skip_unavailable'.
4143 Handle it.
4144 * valprint.c (scalar_type_p): Rename to ...
4145 (val_print_scalar_type_p): ... this. Make extern.
4146 (val_print, value_check_printable): Adjust.
4147 * valprint.h (val_print_scalar_type_p): Declare.
4148 * value.c (value_entirely_unavailable): New function.
4149 * value.h (value_entirely_unavailable): Declare.
4150
4151 * NEWS: Mention the new option "--skip-unavailable" to MI
4152 commands '-stack-list-locals', '-stack-list-arguments' and
4153 '-stack-list-variables'.
4154
41552013-08-27 Yao Qi <yao@codesourcery.com>
4156
4157 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4158 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4159 options.
4160 * mi/mi-getopt.c (mi_getopt): Remove.
4161 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4162 'error_on_unknown'.
4163 (mi_getopt): Call mi_getopt_1.
4164 (mi_getopt_silent): New.
4165 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4166
41672013-08-26 Doug Evans <dje@google.com>
4168
4169 PR symtab/15885
4170 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4171 .gdb_index is in use.
4172 * symfile.c (reread_symbols): Reset objfile->sf.
4173
4174 * NEWS: Document "mt print objfiles" now takes optional regexp.
4175 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4176 regexp of objfiles to print.
4177 (_initialize_symmisc): Update doc string for "mt print objfiles".
4178
4179 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4180 missing debug info checks.
4181
41822013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4183 Ulrich Weigand <uweigand@de.ibm.com>
4184
4185 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4186 line tables generated by XLC compiled binaries.
4187
41882013-08-23 Doug Evans <dje@google.com>
4189
4190 * symmisc.c (dump_symtab): Delete prototype.
4191 (dump_msymbols, dump_objfile): Ditto.
4192 (maintenance_info_symtabs): Mark as dont_repeat.
4193 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4194
4195 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4196 debugging printf to better location.
4197
41982013-08-23 Pedro Alves <palves@redhat.com>
4199
4200 * target.c (target_read_live_memory): Change type of 'ret' local
4201 to LONGEST.
4202
42032013-08-23 Pedro Alves <palves@redhat.com>
4204
4205 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4206 (remote_read_bytes): Change return type to LONGEST, and adjust to
4207 return a target_xfer_error on error.
4208 (remote_xfer_memory): Delete.
4209 (remote_flash_write): Change type of 'ret' local to LONGEST.
4210 (remote_xfer_partial, remote_xfer_partial): Adjust.
4211 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4212
42132013-08-23 Pierre Muller <muller@sourceware.org>
4214
4215 ARI fix: Push # directives to start of line.
4216 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4217
42182013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4219
4220 PR gdb/15501
4221 * breakpoint.c (enable_command, disable_command): Iterate over
4222 all specified breakpoint locations.
4223
42242013-08-22 Luis Machado <lgustavo@codesourcery.com>
4225
4226 * common/linux-ptrace.c (linux_fork_to_function): Push #
4227 directives to the start of the line.
4228 (linux_check_ptrace_features): Fix warning message to use
4229 the "_" markup.
4230
42312013-08-22 Luis Machado <lgustavo@codesourcery.com>
4232
4233 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4234 nat/linux-waitpid.h.
4235 (linux-waitpid.o): New object file rule.
4236 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4237 (current_ptrace_options): Moved from linux-nat.c.
4238 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4239 parameters.
4240 (linux_fork_to_function): New function.
4241 (linux_grandchild_function): Likewise.
4242 (linux_child_function): Likewise.
4243 (linux_check_ptrace_features): New function, heavily
4244 based on linux-nat.c:linux_test_for_tracefork.
4245 (linux_enable_event_reporting): New function.
4246 (ptrace_supports_feature): Likewise.
4247 (linux_supports_tracefork): Likewise.
4248 (linux_supports_traceclone): Likewise.
4249 (linux_supports_tracevforkdone): Likewise.
4250 (linux_supports_tracesysgood): Likewise.
4251 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4252 gdbserver/linux-low.c.
4253 (linux_enable_event_reporting): New declaration.
4254 (linux_supports_tracefork): Likewise.
4255 (linux_supports_traceclone): Likewise.
4256 (linux_supports_tracevforkdone): Likewise.
4257 (linux_supports_tracesysgood): Likewise.
4258 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4259 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4260 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4261 * config/arm/linux.mh (NATDEPFILES): Likewise.
4262 * config/i386/linux.mh (NATDEPFILES): Likewise.
4263 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4264 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4265 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4266 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4267 * config/mips/linux.mh (NATDEPFILES): Likewise.
4268 * config/pa/linux.mh (NATDEPFILES): Likewise..
4269 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4270 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4271 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4272 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4273 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4274 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4275 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4276 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4277 ptrace's 4th argument's types.
4278 Check the type of PTRACE_TYPE_ARG4.
4279 * configure: Regenerate.
4280 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4281 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4282 (linux_supports_tracefork_flag): Remove.
4283 (linux_supports_tracesysgood_flag): Likewise.
4284 (linux_supports_tracevforkdone_flag): Likewise.
4285 (current_ptrace_options): Moved to
4286 common/linux-ptrace.c.
4287 (linux_tracefork_child): Remove.
4288 (my_waitpid): Remove.
4289 (linux_test_for_tracefork): Renamed to
4290 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4291 (linux_test_for_tracesysgood): Remove.
4292 (linux_supports_tracesysgood): Remove.
4293 (linux_supports_tracefork): Remove.
4294 (linux_supports_tracevforkdone): Remove.
4295 (linux_enable_tracesysgood): Remove.
4296 (linux_enable_event_reporting): Remove.
4297 (linux_init_ptrace): New function.
4298 (linux_child_post_attach): Call linux_init_ptrace.
4299 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4300 (linux_child_follow_fork): Call linux_supports_tracefork
4301 and linux_supports_tracevforkdone.
4302 (linux_child_insert_fork_catchpoint): Call
4303 linux_supports_tracefork.
4304 (linux_child_insert_vfork_catchpoint): Likewise.
4305 (linux_child_set_syscall_catchpoint): Call
4306 linux_supports_tracesysgood.
4307 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4308 * nat/linux-nat.h: New file.
4309 * nat/linux-waitpid.c: New file.
4310 * nat/linux-waitpid.h: New file.
4311
43122013-08-22 Samuel Bronson <naesten@gmail.com>
4313
4314 ARM Linux support for `catch syscall'.
4315 * syscalls/arm-linux.py: New file.
4316 * syscalls/arm-linux.xml: Likewise.
4317 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4318 (arm_linux_init_abi): Register the new function and syscall xml file.
4319 * data-directory/Makefile.in: Install the new syscall xml file.
4320 * NEWS: Brag about this.
4321
43222013-08-22 Pedro Alves <palves@redhat.com>
4323
4324 PR gdb/15871
4325 * corefile.c (target_xfer_memory_error): New function.
4326 (memory_error): Defer EIO to target_memory_error.
4327 (read_memory): Use target_xfer_partial, and handle finer-grained
4328 target xfer errors.
4329 * target.c (target_xfer_error_to_string): New function.
4330 (memory_xfer_partial_1): If memory is known to be
4331 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4332 (target_xfer_partial): Make extern.
4333 * target.h (enum target_xfer_error): New enum.
4334 (target_xfer_error_to_string): Declare function.
4335 (target_xfer_partial): Declare function.
4336 (struct target_ops) <xfer_partial>: Adjust describing comment.
4337
43382013-08-22 Alan Modra <amodra@gmail.com>
4339
4340 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4341 * configure.tgt: Likewise as targets.
4342
43432013-08-20 Doug Evans <dje@google.com>
4344
4345 * buildsym.c (subfile_stack): Move here from buildsym.h.
4346 (pending_macros): Ditto.
4347 (get_macro_table): New function.
4348 (buildsym_init): Initialize subfile_stack.
4349 * coffread.c (type_vector,type_vector_length): Moved here from
4350 buildsym.h.
4351 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4352 (coff_symtab_read): Use it.
4353 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4354 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4355 with call to get_macro_table.
4356 * stabsread.c (type_vector,type_vector_length): Moved here from
4357 buildsym.h.
4358 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4359 * buildsym.h (get_macro_table): Declare.
4360
43612013-08-20 Tom Tromey <tromey@redhat.com>
4362
4363 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4364 Update.
4365 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4366
43672013-08-20 Doug Evans <dje@google.com>
4368
4369 * blockframe.c: Remove #include "psymtab.h".
4370 * cp-support.c: Ditto.
4371 * source.c: Ditto.
4372 * stack.c: Ditto.
4373
43742013-08-20 Tom Tromey <tromey@redhat.com>
4375
4376 PR python/15816:
4377 * exceptions.h (return_mask): Now an enum.
4378 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4379 enum constants.
4380
43812013-08-20 Tom Tromey <tromey@redhat.com>
4382
4383 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4384 get_objfile_arch.
4385 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4386 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4387 * jit.c (jit_object_close_impl): Update.
4388 * jv-lang.c (get_dynamics_objfile): Update.
4389 * linespec.c (add_minsym): Use get_dynamics_objfile.
4390 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4391 (allocate_objfile): Don't initialize 'gdbarch' field.
4392 (get_objfile_arch): Update.
4393 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4394 moved from...
4395 (struct objfile) <gdbarch>: ... here. Remove.
4396 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4397 get_objfile_arch.
4398 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4399
44002013-08-20 Alan Modra <amodra@gmail.com>
4401
4402 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4403 for IBM long double nan and inf.
4404 (floatformat_is_negative, floatformat_classify,
4405 floatformat_mantissa): Similarly.
4406 (floatformat_ieee_single, floatformat_ieee_double,
4407 floatformat_ieee_quad, floatformat_arm_ext,
4408 floatformat_ia64_spill): Delete unused vars.
4409 (_initialize_doublest): Delete unused function.
4410 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4411 little-endian variants of floatformat_ibm_long_double.
4412
44132013-08-19 Luis Machado <lgustavo@codesourcery.com>
4414
4415 * Makefile.in (SFILES): Remove common/target-common.c and
4416 add target/waitstatus.c.
4417 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4418 target/resume.h, target/wait.h and target/waitstatus.h.
4419 (COMMON_OBS): Remove target-common.o and add
4420 waitstatus.o.
4421 (target-common.o): Remove.
4422 (waitstatus.o): New target object file.
4423 * common/target-common.c: Move contents to
4424 target/waitstatus.c and remove.
4425 * common/target-common.h: Move contents to other files and
4426 remove.
4427 (enum resume_kind: Move to target/resume.h.
4428 (TARGET_WNOHANG): Move to target/wait.h.
4429 (enum target_waitkind): Move to target/waitstatus.h.
4430 (struct target_waitstatus): Likewise.
4431 * target.h: Do not include target-common.h and
4432 include target/resume.h, target/wait.h and
4433 target/waitstatus.h.
4434 * target/resume.h: New file.
4435 * target/wait.h: New file.
4436 * target/waitstatus.h: New file.
4437 * target/waitstatus.c: New file.
4438
44392013-08-19 Pedro Alves <palves@redhat.com>
4440
4441 * linux-nat.c (linux_test_for_tracefork)
4442 (linux_test_for_tracesysgood, linux_child_follow_fork)
4443 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4444 (linux_nat_wait_1): Extend comment.
4445 (linux_async_pipe): Add comment.
4446
44472013-08-15 Kevin Buettner <kevinb@redhat.com>
4448
4449 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4450 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4451 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4452 Update to account for fact that PC is now a pseudo-register.
4453 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4454 cases for RL78_PC_REGNUM.
4455
44562013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4457
4458 PR cli/15841
4459 * top.c (quit_force): Skip writing history file
4460 if input is not from terminal.
4461
44622013-08-14 Tom Tromey <tromey@redhat.com>
4463
4464 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4465 resultthreadlist>: New fields.
4466 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4467 (remote_get_threadlist, remote_threadlist_iterator): Use
4468 new fields. Remove static variables.
4469
44702013-08-14 Tom Tromey <tromey@redhat.com>
4471
4472 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4473 remote_watch_data_address>: New fields.
4474 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4475 (process_stop_reply, remote_wait_as)
4476 (remote_check_watch_resources, remote_stopped_data_address): Update.
4477
44782013-08-14 Tom Tromey <tromey@redhat.com>
4479
4480 * remote.c (struct remote_state) <async_client_callback,
4481 async_client_context>: New fields.
4482 (async_client_callback, async_client_context): Remove.
4483 (remote_async_serial_handler, remote_async): Update.
4484
44852013-08-14 Tom Tromey <tromey@redhat.com>
4486
4487 * remote.c (sizeof_pkt): Remove.
4488 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4489
44902013-08-14 Tom Tromey <tromey@redhat.com>
4491
4492 * remote.c (struct remote_state) <use_threadinfo_query,
4493 use_threadextra_query>: New fields.
4494 (remote_threads_info, remote_threads_extra_info)
4495 (remote_open_1): Update.
4496
44972013-08-14 Tom Tromey <tromey@redhat.com>
4498
4499 * remote.c (struct remote_state) <finished_object,
4500 finished_annex, finished_offset>: New fields.
4501 (remote_read_qxfer): Use remote_state fields; remove static
4502 variables.
4503
45042013-08-14 Tom Tromey <tromey@redhat.com>
4505
4506 * remote.c (struct remote_state) <last_sent_step>:
4507 New field.
4508 (last_sent_step): Remove.
4509 (remote_resume, remote_wait_as): Update.
4510
45112013-08-14 Tom Tromey <tromey@redhat.com>
4512
4513 * remote.c (struct remote_state) <last_sent_signal>:
4514 New field.
4515 (last_sent_signal): Remove.
4516 (new_remote_state, remote_resume, remote_wait_as): Update.
4517
45182013-08-14 Tom Tromey <tromey@redhat.com>
4519
4520 * remote.c (struct remote_state) <last_program_signals_packet>:
4521 New field.
4522 (last_program_signals_packet): Remove.
4523 (remote_program_signals, remote_open_1): Update.
4524
45252013-08-14 Tom Tromey <tromey@redhat.com>
4526
4527 * remote.c (struct remote_state) <last_pass_packet>:
4528 New field.
4529 (last_pass_packet): Remove.
4530 (remote_pass_signals, remote_open_1): Update.
4531
45322013-08-14 Tom Tromey <tromey@redhat.com>
4533
4534 * remote.c (struct remote_state) <remote_traceframe_number>:
4535 New field.
4536 (remote_traceframe_number): Remove.
4537 (new_remote_state, remote_open_1, set_remote_traceframe)
4538 (remote_trace_find): Update.
4539
45402013-08-14 Tom Tromey <tromey@redhat.com>
4541
4542 * remote.c (struct remote_state) <general_thread, continue_thread>:
4543 New fields.
4544 (general_thread, continue_thread): Remove.
4545 (record_currthread, set_thread, set_general_process)
4546 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4547 (extended_remote_mourn_1): Update.
4548
45492013-08-14 Tom Tromey <tromey@redhat.com>
4550
4551 * remote.c (struct remote_state) <remote_desc>: New field.
4552 (remote_desc): Remove.
4553 (remote_threads_info, remote_threads_extra_info, remote_close)
4554 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4555 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4556 (remote_hostio_send_command, remote_file_put, remote_file_get)
4557 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4558 (remote_async, remote_new_objfile, set_range_stepping): Update.
4559
45602013-08-14 Tom Tromey <tromey@redhat.com>
4561
4562 * remote.c (remote_state): Now a pointer.
4563 (get_remote_state_raw): Update.
4564 (new_remote_state): New function.
4565 (_initialize_remote): Use new_remote_state.
4566
45672013-08-14 Tom Tromey <tromey@redhat.com>
4568
4569 * remote.c (remote_protocol_features): Now const.
4570
45712013-08-14 Tom Tromey <tromey@redhat.com>
4572
4573 * remote.c (crc32_table, crc32): Remove.
4574 (remote_verify_memory): Use xcrc32.
4575
45762013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4577
4578 * value.h (create_internalvar_type_lazy): Adjust prototype
4579 declaration.
4580
45812013-08-13 Andrew Burgess <aburgess@broadcom.com>
4582
4583 * common/format.c (parse_format_string): Don't allow '#' flag for
4584 pointer arguments in format string.
4585
45862013-08-13 Pierre Muller <muller@sourceware.org>
4587
4588 * utils.c (init_page_info): Only call tgetnum function
4589 if rl_get_screen_size did not return useful values.
4590
45912013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4592
4593 PR breakpoints/15117
4594 * linespec.c (linespec_parse_basic): Check for convenience
4595 variable or history value while parsing.
4596
45972013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4598
4599 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4600 AVR.
4601 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4602 different signals between the generic Linux kernel implementation
4603 and AVR's.
4604 (avr_linux_gdb_signal_from_target): Delete.
4605 (avr_linux_gdb_signal_to_target): Delete.
4606 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4607
46082013-08-09 Doug Evans <dje@google.com>
4609
4610 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4611 entries.
4612
46132013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4614
4615 * linux-tdep.c: Define enum with generic signal numbers.
4616 (linux_gdb_signal_from_target): New function.
4617 (linux_gdb_signal_to_target): Likewise.
4618 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4619 methods to the functions above.
4620 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4621 (linux_gdb_signal_to_target): Likewise.
4622 * alpha-linux-tdep.c: Define new enum with signals different
4623 from generic Linux kernel.
4624 (alpha_linux_gdb_signal_from_target): New function.
4625 (alpha_linux_gdb_signal_to_target): Likewise.
4626 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4627 with the functions mentioned above.
4628 * avr-tdep.c: Define enum with differences between Linux kernel
4629 and AVR signals.
4630 (avr_linux_gdb_signal_from_target): New function.
4631 (avr_linux_gdb_signal_to_target): Likewise.
4632 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4633 the functions mentioned above.
4634 * sparc-linux-tdep.c: Define enum with differences between SPARC
4635 and generic Linux kernel signal numbers.
4636 (sparc32_linux_gdb_signal_from_target): New function.
4637 (sparc32_linux_gdb_signal_to_target): Likewise.
4638 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4639 to the functions defined above.
4640 * xtensa-linux-tdep.c: Define enum with differences between
4641 Xtensa and Linux kernel generic signals.
4642 (xtensa_linux_gdb_signal_from_target): New function.
4643 (xtensa_linux_gdb_signal_to_target): Likewise.
4644 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4645 to the functions defined above.
4646 * mips-linux-tdep.c: Define enum with differences between
4647 signals in MIPS and Linux kernel generic ones.
4648 (mips_gdb_signal_to_target): New function.
4649 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4650 only different signals from the Linux kernel generic.
4651 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4652 the functions defined above.
4653 * mips-linux-tdep.h (enum mips_signals): Remove.
4654
46552013-08-09 Pedro Alves <palves@redhat.com>
4656
4657 * avr-tdep.c (XMALLOC): Delete macro.
4658 * cli/cli-dump.c (XMALLOC): Delete macro.
4659
46602013-08-09 Pedro Alves <palves@redhat.com>
4661
4662 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4663 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4664 (fopen_with_cleanup, add_dump_command): Make static.
4665 * cli/cli-dump.h: Delete file.
4666 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4667 cli/cli-dump.h.
4668
46692013-08-09 Pedro Alves <palves@redhat.com>
4670
4671 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4672 error message.
4673
46742013-08-09 Pedro Alves <palves@redhat.com>
4675
4676 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4677 error message.
4678
46792013-08-09 Pedro Alves <palves@redhat.com>
4680
4681 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4682 (gcore_command): Use tilde_expand here, and when showing the
4683 filename to the user, show the expanded version.
4684
46852013-08-09 Yao Qi <yao@codesourcery.com>
4686
4687 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4688 'entryval' is set.
4689
46902013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4691
4692 * gcore.c (create_gcore_bfd): Use tilde_expand.
4693
46942013-08-08 Yao Qi <yao@codesourcery.com>
4695
4696 * frame.h (read_frame_local): Declare.
4697 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4698 read_frame_local.
4699 * stack.c (read_frame_local): New.
4700
47012013-08-08 Yao Qi <yao@codesourcery.com>
4702
4703 * mi/mi-cmd-stack.c: Update comments to function
4704 list_args_or_locals.
4705
47062013-08-07 Tom Tromey <tromey@redhat.com>
4707
4708 PR symtab/15028:
4709 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4710 (process_psymtab_comp_unit_reader): Use it.
4711 (process_psymtab_comp_unit): Update. Add "pretend_language"
4712 argument.
4713 (dwarf2_build_psymtabs_hard): Update.
4714 (scan_partial_symbols): Pass CU's language to
4715 process_psymtab_comp_unit.
4716
47172013-08-07 Tom Tromey <tromey@redhat.com>
4718
4719 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4720 (dwarf2_gdb_index_functions): Update.
4721 * psymtab.c (find_symbol_file_from_partial): Remove.
4722 (psym_functions): Update.
4723 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4724 Remove.
4725
47262013-08-07 Tom Tromey <tromey@redhat.com>
4727
4728 * symfile.c (set_initial_language): Look up "main" symbol
4729 and use its language.
4730 * symtab.c (find_main_filename): Remove.
4731 * symtab.h (find_main_filename): Remove.
4732
47332013-08-07 Tom Tromey <tromey@redhat.com>
4734
4735 * dwarf2read.c (recursively_compute_inclusions): Add
4736 "immediate_parent" argument. Set symtab's "user" field
4737 if not set.
4738 (compute_symtab_includes): Update.
4739
47402013-08-07 Tom Tromey <tromey@redhat.com>
4741
4742 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4743 when adding label symbols.
4744
47452013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4746 Ulrich Weigand <uweigand@de.ibm.com>
4747
4748 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4749 * configure.host (powerpc64-*-aix*): Likewise.
4750
47512013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4752 Ulrich Weigand <uweigand@de.ibm.com>
4753
4754 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4755 is defined.
4756 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4757 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4758 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4759 * configure.ac: Check for ptrace64.
4760 * configure, config.in: Regenerate.
4761
47622013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4763 Ulrich Weigand <uweigand@de.ibm.com>
4764
4765 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4766 Call ptrace64 instead of ptrace if defined.
4767 Add macro addr_ptr to take care of ptrace address argument.
4768 (pdc_read_regs): Likewise.
4769 (pdc_write_regs): Likewise.
4770 (aix_thread_resume): Likewise.
4771 (fetch_regs_kernel_thread): Likewise.
4772 (store_regs_kernel_thread): Likewise.
4773
47742013-08-07 Anton Blanchard <anton@samba.org>
4775
4776 * MAINTAINERS: Add myself to Write After Approval.
4777
47782013-08-05 Tom Tromey <tromey@redhat.com>
4779
4780 * aix-thread.c (_initialize_aix_thread): Use
4781 complete_target_initialization.
4782 * bsd-uthread.c (_initialize_bsd_uthread): Use
4783 complete_target_initialization.
4784 * dec-thread.c (_initialize_dec_thread): Use
4785 complete_target_initialization.
4786 * ravenscar-thread.c (_initialize_ravenscar): Use
4787 complete_target_initialization.
4788 * sol-thread.c (_initialize_sol_thread): Use
4789 complete_target_initialization.
4790 * spu-multiarch.c (_initialize_spu_multiarch): Use
4791 complete_target_initialization.
4792
47932013-08-05 Tom Tromey <tromey@redhat.com>
4794
4795 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4796 * ada-lang.c (ada_lookup_simple_minsym): Return
4797 bound_minimal_symbol.
4798 * ada-lang.h (ada_lookup_simple_minsym): Update.
4799 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4800 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4801 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4802 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4803 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4804 * minsyms.c (msymbol_objfile): Remove.
4805 (lookup_minimal_symbol_internal): New function, from
4806 lookup_minimal_symbol.
4807 (lookup_minimal_symbol): Rewrite using
4808 lookup_minimal_symbol_internal.
4809 (lookup_bound_minimal_symbol): New function.
4810 * minsyms.h (msymbol_objfile): Remove.
4811 (lookup_bound_minimal_symbol): Declare.
4812 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4813 * parse.c (write_exp_msymbol): Change parameter to a
4814 bound_minimal_symbol.
4815 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4816 * parser-defs.h (write_exp_msymbol): Update.
4817 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4818 * symfile.c (simple_read_overlay_table): Use
4819 lookup_bound_minimal_symbol.
4820 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4821 (search_symbols): Likewise.
4822 (print_msymbol_info): Take a bound_minimal_symbol argument.
4823 (symtab_symbol_info, rbreak_command): Update.
4824 * symtab.h (struct symbol_search) <msymbol>: Change type
4825 to bound_minimal_symbol.
4826 * valops.c (find_function_in_inferior): Use
4827 lookup_bound_minimal_symbol.
4828 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4829
48302013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 Code cleanup.
4833 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4834 to ...
4835 (async_cleanup_sigint_signal_handler): ... this.
4836 (initialize_sigint_signal_handler): Remove declaration.
4837 (handle_remote_sigint): Rename the declaration to ...
4838 (async_handle_remote_sigint): ... this.
4839 (handle_remote_sigint_twice): Rename the declaration to ...
4840 (async_handle_remote_sigint_twice): ... this.
4841 (async_remote_interrupt, async_remote_interrupt_twice)
4842 (remote_interrupt): Remove the declarations.
4843 (remote_interrupt_twice): Rename the declaration ...
4844 (sync_remote_interrupt_twice): ... this.
4845 (sigint_remote_twice_token): Rename the variable to ...
4846 (async_sigint_remote_twice_token): ... this.
4847 (sigint_remote_token): Rename the variable to ...
4848 (async_sigint_remote_token): ... this.
4849 (initialize_sigint_signal_handler): Rename the function to ...
4850 (async_initialize_sigint_signal_handler): ... this. Update the name
4851 inside.
4852 (handle_remote_sigint): Rename the function to ...
4853 (async_handle_remote_sigint): ... this. Update the names inside.
4854 (handle_remote_sigint_twice): Rename the function to ...
4855 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4856 (cleanup_sigint_signal_handler): Rename the function to ...
4857 (async_cleanup_sigint_signal_handler): ... this.
4858 (remote_interrupt): Rename the function to ...
4859 (sync_remote_interrupt): this. Update the names inside.
4860 (remote_interrupt_twice): Rename the function to ...
4861 (sync_remote_interrupt_twice): this. Update the names inside.
4862 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4863 (_initialize_remote): Update the names inside.
4864
48652013-08-02 Tom Tromey <tromey@redhat.com>
4866
4867 PR symtab/15719:
4868 * breakpoint.c (update_watchpoint, watchpoint_check)
4869 (watch_command_1): Update.
4870 * eval.c (fetch_subexp_value): Add "preserve_errors"
4871 parameter.
4872 * ppc-linux-nat.c (check_condition): Update.
4873 * value.h (fetch_subexp_value): Update.
4874
48752013-08-02 Andrew Burgess <aburgess@broadcom.com>
4876
4877 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4878 add_file_handler.
4879
48802013-08-01 Doug Evans <dje@google.com>
4881
4882 PR symtab/15691
4883 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4884 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4885 Add assert of sig_entry->dwo_unit == NULL.
4886 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4887 had already been read.
4888 (read_signatured_type): Set per_cu.tu_read.
4889
4890 PR symtab/15695
4891 * valops.c (value_struct_elt): Add missing call to check_typedef.
4892 (value_find_oload_method_list): Ditto.
4893
4894 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4895 effectively, struct symbol_search **.
4896 (make_cleanup_free_search_symbols): Change arg to struct
4897 symbol_search **. All callers updated.
4898 (compare_search_syms): Compare symtab file name and block as well.
4899 (search_symbols_equal): New function.
4900 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4901 New args new_head, new_tail. Result is now void. Remove dups after
4902 sorting the symbols.
4903 (search_symbols): Sort all found symbols once, after all have been
4904 found, and remove duplicates. Simplify cleanup tracking of result.
4905 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4906
4907 Further workarounds for binutils/15021.
4908 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4909 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4910 Watch for duplicate symtabs coming from type units.
4911 (compute_symtab_includes): Update call to
4912 recursively_compute_inclusions. Build vector of included symtabs
4913 instead of per_cus.
4914 * symtab.h (symtab_ptr): New typedef.
4915 (DEF_VEC_P (symtab_ptr)): New VEC type.
4916 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4917 instead.
4918
49192013-08-01 Andrew Burgess <aburgess@broadcom.com>
4920
4921 * cli/cli-script.c (script_from_file): Remove use of
4922 error_pre_print.
4923 * main.c (captured_main): Remove use of error_pre_print and
4924 quit_pre_print.
4925 * utils.c (error_pre_print, quit_pre_print): Remove.
4926 * utils.h (error_pre_print, quit_pre_print): Likewise.
4927
49282013-08-01 Yao Qi <yao@codesourcery.com>
4929
4930 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4931 with mi_getopt.
4932 (mi_cmd_stack_list_variables): Likewise.
4933
49342013-07-31 Andrew Burgess <aburgess@broadcom.com>
4935
4936 * exceptions.c (deprecated_throw_reason): Remove.
4937 * exceptions.h (deprecated_throw_reason): Remove.
4938
49392013-07-31 Andrew Burgess <aburgess@broadcom.com>
4940
4941 * remote-mips.c (mips_error): Replace use of
4942 deprecated_throw_reason with throw_verror. Use the error message
4943 passed to mips_error as the error message for throw_verror.
4944
49452013-07-31 Andrew Burgess <aburgess@broadcom.com>
4946
4947 * monitor.c (monitor_interrupt_query): Replace use of
4948 deprecated_throw_reason with quit.
4949 * nto-procfs.c (interrupt_query): Likewise.
4950 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4951 * remote-mips.c (mips_kill): Likewise.
4952 * remote.c (interrupt_query): Likewise.
4953
49542013-07-31 Andrew Burgess <aburgess@broadcom.com>
4955
4956 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4957 with call to fatal.
4958
49592013-07-31 Pedro Alves <pedro@codesourcery.com>
4960 Yao Qi <yao@codesourcery.com>
4961
4962 * tracepoint.c (trace_dump_command): Select the current frame.
4963
49642013-07-30 Doug Evans <dje@google.com>
4965
4966 * dwarf2read.c (process_queue): Add type signature to debug output.
4967
49682013-07-30 Andrew Burgess <aburgess@broadcom.com>
4969
4970 * value.c (value_fetch_lazy): Mark optimized out values as such
4971 rather than raising an error.
4972
49732013-07-30 Andrew Burgess <aburgess@broadcom.com>
4974
4975 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4976 before checking which bits of the parent, not the child, value are
4977 valid.
4978
49792013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4980
4981 PR gdb/15715
4982 * top.c: Include "filenames.h".
4983 (set_history_filename): New function.
4984 (init_main): Install it as set hook of the "set history filename"
4985 command.
4986
49872013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
4988
4989 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
4990 attribute parameter.
4991 (dwarf2_const_value_data): Constify struct attribute parameter.
4992 (dwarf2_const_value): Constify struct attribute parameter.
4993 (dwarf2_const_value_attr): Constify struct attribute parameter.
4994 (lookup_die_type): Constify struct attribute parameter.
4995 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
4996 (follow_die_ref_or_sig): Constify struct attribute parameter.
4997 (follow_die_ref): Constify struct attribute parameter.
4998 (follow_die_sig): Constify struct attribute parameter.
4999 (get_DW_AT_signature_type): Constify struct attribute parameter.
5000 (get_type_unit_group): Constify struct attribute parameter.
5001 (fill_in_loclist_baton): Constify struct attribute parameter.
5002 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5003 (type_unit_group): Constify struct attribute parameter.
5004
50052013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5006
5007 * dwarf2read.c (attr_form_is_block): Make argument const.
5008 (attr_form_is_section_offset): Make argument const.
5009 (attr_form_is_constant): Make argument const.
5010 (attr_form_is_ref): Make argument const.
5011
50122013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5013
5014 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5015 All uses updated.
5016 (attr_form_is_ref): Moved below attr_form_is_constant.
5017
50182013-07-29 Doug Evans <dje@google.com>
5019
5020 * main.c (captured_command_loop): Tweak comment.
5021
5022 * target.c (target_async_permitted_1): Fix comment.
5023
5024 * symtab.c (iterate_over_some_symtabs): Add comment.
5025
5026 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5027
50282013-07-27 Yao Qi <yao@codesourcery.com>
5029
5030 * NEWS: Mention that GDBserver now supports hardware
5031 watchpoints on the MIPS GNU/Linux target.
5032
50332013-07-27 Yao Qi <yao@codesourcery.com>
5034
5035 * Makefile.in (HFILES_NO_SRCDIR): Add
5036 common/mips-linux-watch.h.
5037 (mips-linux-watch.o): New rule.
5038 * common/mips-linux-watch.c: New.
5039 * common/mips-linux-watch.h: New.
5040 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5041 * mips-linux-nat.c: Include mips-linux-watch.h.
5042 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5043 to common/mips-linux-watch.h.
5044 (MAX_DEBUG_REGISTER): Likewise.
5045 (enum pt_watch_style): Likewise.
5046 (struct mips32_watch_regs): Likewise.
5047 (struct mips64_watch_regs): Likewise.
5048 (struct pt_watch_regs): Likewise.
5049 (struct mips_watchpoint): Likewise.
5050 (mips_linux_watch_get_irw_mask): Move to
5051 common/mips-linux-watch.c.
5052 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5053 (mips_linux_watch_get_watchlo): Likewise.
5054 (mips_linux_watch_set_watchlo): Likewise.
5055 (mips_linux_watch_get_watchhi): Likewise.
5056 (mips_linux_watch_set_watchhi): Likewise.
5057 (mips_linux_read_watch_registers): Likewise.
5058 (mips_linux_watch_type_to_irw): Likewise.
5059 (mips_linux_stopped_data_address, fill_mask): Likewise.
5060 (mips_linux_watch_try_one_watch): Likewise.
5061 (mips_linux_watch_populate_regs): Likewise.
5062
50632013-07-27 Yao Qi <yao@codesourcery.com>
5064
5065 * mips-linux-nat.c (get_irw_mask): Rename to ...
5066 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5067 'set' to 'n'. Update function comment. All callers changed.
5068 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5069 function comment. All callers changed.
5070 (get_num_valid): Rename to ...
5071 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5072 'set' to 'n'. Update function comment. All callers changed.
5073 (get_watchlo): Rename to ...
5074 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5075 'set' to 'n'. Update function comment. All callers changed.
5076 (set_watchlo): Rename to ...
5077 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5078 'set' to 'n'. Update function comment. All callers changed.
5079 (get_watchhi): Rename to ...
5080 (mips_linux_watch_get_watchhi): ... this. Update function
5081 comment. All callers changed.
5082 (set_watchhi): Rename to ...
5083 (mips_linux_watch_set_watchhi): ... this. Update function
5084 comment. All callers changed.
5085 (mips_linux_read_watch_registers): Update function comment.
5086 Add new parameters 'lwpid', 'watch_readback', and
5087 'watch_readback_valid'. Update.
5088 (type_to_irw): Rename to ...
5089 (mips_linux_watch_type_to_irw): ... this. Update function
5090 comment. All callers changed.
5091 (fill_mask): Update function comment.
5092 (try_one_watch): Rename to ...
5093 (mips_linux_watch_try_one_watch): ... this. Change the type
5094 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5095 (populate_regs_from_watches): Rename to ...
5096 (mips_linux_watch_populate_regs): ... this. Add parameter
5097 'current_watches'. All callers changed.
5098
50992013-07-27 Yao Qi <yao@codesourcery.com>
5100
5101 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5102 the code.
5103 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5104 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5105 (struct pt_watch_regs): Likewise.
5106 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5107 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5108 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5109 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5110 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5111
51122013-07-27 Yao Qi <yao@codesourcery.com>
5113
5114 * breakpoint.h: Include break-common.h.
5115 (enum target_hw_bp_type): Move to ...
5116 * common/break-common.h: ... here. New.
5117
51182013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5119
5120 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5121 process group regardless of having tty on stdin.
5122
51232013-07-25 Doug Evans <dje@google.com>
5124
5125 * linux-fork.h (detach_fork): Delete.
5126
51272013-07-25 Tom Tromey <tromey@redhat.com>
5128
5129 PR remote/15256, PR remote/15266:
5130 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5131 * monitor.c (monitor_detach): Use unpush_target.
5132 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5133 * remote-mips.c (mips_detach): Use unpush_target. Don't
5134 call mips_close.
5135 * remote-sim.c (gdbsim_detach): Use unpush_target.
5136 * target.c (pop_target): Remove.
5137 (pop_all_targets_above): Don't call target_close.
5138 (target_close): Assert that the target is unpushed.
5139 * target.h (pop_target): Don't declare.
5140 * tracepoint.c (tfile_open): Use unpush_target.
5141
51422013-07-25 Tom Tromey <tromey@redhat.com>
5143
5144 * linux-thread-db.c (init_thread_db_ops): Call
5145 complete_target_initialization.
5146 (_initialize_thread_db): Don't call add_target.
5147 * target.c (complete_target_initialization): New function.
5148 (add_target_with_completer): Call it.
5149 * target.h (complete_target_initialization): Declare.
5150
51512013-07-25 Mark Kettenis <kettenis@gnu.org>
5152
5153 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5154 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5155 (HPPANBSD_SIZEOF_GREGS): New define.
5156 (hppaobsd_supply_gregset): Handle additional registers.
5157 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5158 we provide more registers now.
5159 (hppabsd_supply_gregset): Supply additional registers.
5160 (hppabsd_collect_gregset): Collect additional registers.
5161
51622013-07-25 Mark Kettenis <kettenis@gnu.org>
5163
5164 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5165 (hppabsd_dwarf2_frame_init_reg): New function.
5166 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5167
51682013-07-25 Andrew Burgess <aburgess@broadcom.com>
5169
5170 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5171 'z' format code. Remove error for optimized out values, standard
5172 code will handle these fine.
5173
51742013-07-25 Andrew Burgess <aburgess@broadcom.com>
5175
5176 * NEWS: Mention new 'z' formatter.
5177 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5178 (_initialize_printcmd): Mention 'z' formatter in help text of the
5179 'x' command.
5180
51812013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5182
5183 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5184 formatting.
5185
51862013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5187
5188 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5189 interface can evaluate arguments. Fallback to the old mode if it
5190 cannot.
5191 (create_exception_master_breakpoint): Likewise.
5192 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5193 (struct sym_probe_fns elf_probe_fns): Export function above to the
5194 probe interface.
5195 * probe.c (can_evaluate_probe_arguments): New function.
5196 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5197 function pointer.
5198 (can_evaluate_probe_arguments): New function prototype.
5199 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5200 probe interface can evaluate arguments. Fallback to the old mode
5201 if it cannot.
5202 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5203 interface can evaluate arguments. Warning the user if it cannot.
5204 (stap_can_evaluate_probe_arguments): New function.
5205 (struct probe_ops stap_probe_ops): Export function above to the
5206 probe interface.
5207 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5208 New function pointer.
5209
52102013-07-24 Luis Machado <lgustavo@codesourcery.com>
5211
5212 * Makefile.in (SFILES): Add common/target-common.c.
5213 Add common/target-common.h to headers.
5214 (COMMON_OBS): Add target-common.o.
5215 (target-common.o): New target.
5216 * linux-nat.h (resume_kind): Move to common/target-common.h.
5217 * target.c (target_waitstatus_to_string): Move to
5218 common/target-common.c.
5219 * target.h: Include target-common.h.
5220 (target_waitkind): Move to common/target-common.h.
5221 (target_waitstatus): Likewise.
5222 (TARGET_WNOHANG): Likewise.
5223 * common/target-common.c: New file.
5224 * common/target-common.h: New file.
5225
52262013-07-24 Doug Evans <dje@google.com>
5227
5228 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5229 a warning.
5230
52312013-07-23 Yao Qi <yao@codesourcery.com>
5232
5233 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5234 parameter 'gdbarch'.
5235 (i386_stack_tramp_frame_sniffer): Caller update.
5236 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5237 parameter 'gdbarch' and 'target'.
5238 (i386_linux_core_read_description): Caller update.
5239 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5240 Likewise.
5241 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5242 declaration.
5243
52442013-07-23 Tom Tromey <tromey@redhat.com>
5245
5246 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5247 2013-07-22.
5248
52492013-07-22 Doug Evans <dje@google.com>
5250
5251 * exec.h (remove_target_sections): Delete arg abfd.
5252 * exec.c (exec_close): Update call to remove_target_sections.
5253 (remove_target_sections): Delete arg abfd.
5254 * solib.c (update_solib_list): Ditto.
5255 (reload_shared_libraries_1): Ditto.
5256 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5257 * target.h (struct target_section): Rename key to owner.
5258 All uses updated.
5259
52602013-07-22 Tom Tromey <tromey@redhat.com>
5261
5262 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5263
52642013-07-22 Tom Tromey <tromey@redhat.com>
5265
5266 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5267 Simplify cleanup handling.
5268
52692013-07-22 Tom Tromey <tromey@redhat.com>
5270
5271 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5272 on all return paths.
5273
52742013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5275
5276 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5277 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5278 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5279
52802013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5281
5282 * top.c (print_gdb_version): Add help, apropos description and
5283 url to online documentation.
5284
52852013-07-19 Hui Zhu <hui@codesourcery.com>
5286
5287 PR gdb/15692
5288 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5289
52902013-07-19 Yao Qi <yao@codesourcery.com>
5291
5292 * target.c (update_current_target): Change the default action
5293 of 'to_traceframe_info' from tcomplain to return_zero.
5294 * target.h (struct target_ops) <to_traceframe_info>: Add more
5295 comments.
5296 * valops.c (read_value_memory): Call
5297 traceframe_available_memory unconditionally.
5298
52992013-07-18 Yao Qi <yao@codesourcery.com>
5300
5301 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5302 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5303 symbol without prefix. If found, set its type to
5304 'mst_solib_trampoline'.
5305
53062013-07-17 Doug Evans <dje@google.com>
5307
5308 * NEWS: Mention "set print raw frame-arguments".
5309 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5310 * stack.c (print_raw_frame_arguments): New static global.
5311 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5312 (_initialize_stack): New command "set/show print raw frame-arguments".
5313 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5314 (set_print_raw, show_print_raw): New functions.
5315 (_initialize_valprint): New prefix command "set/show print raw".
5316 * valprint.h (value_print_options): Improve comments.
5317
5318 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5319 of all *list variables.
5320
5321 * gdbcmd.h (togglelist): Delete.
5322 * cli/cli-cmds.c (togglelist): Delete.
5323 (init_cmd_lists): Update.
5324 * cli/cli-cmds.h (togglelist): Delete.
5325
53262013-07-17 Tom Tromey <tromey@redhat.com>
5327
5328 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5329 dwarf2_per_objfile.
5330
53312013-07-16 Doug Evans <dje@google.com>
5332
5333 * nto-tdep.c (nto_relocate_section_addresses): Update,
5334 target_section.bfd deleted.
5335 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5336 * s390-tdep.c (s390_load): Ditto.
5337 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5338
53392013-07-16 Andrew Burgess <aburgess@broadcom.com>
5340
5341 * common/format.c (parse_format_string): Add checks for NULL
5342 character before calling strchr.
5343
53442013-07-16 Doug Evans <dje@google.com>
5345
5346 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5347 temp_pathname argument.
5348 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5349 when opening the file fails.
5350
5351 * target.h (struct target_section): Delete member bfd.
5352 All users updated to use the_bfd_section->owner instead.
5353 * exec.c (add_to_section_table): Assert bfd is expected value.
5354 Remove initialization of target_section.bfd.
5355 (remove_target_sections): Update.
5356 (section_table_available_memory): Update.
5357 (section_table_xfer_memory_partial): Update.
5358 (print_section_info): Update.
5359 (exec_set_section_address): Update.
5360 * record-full.c (record_full_core_xfer_partial): Update.
5361 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5362 * solib-target.c (solib_target_relocate_section_addresses): Update.
5363 * symfile.c (build_section_addr_info_from_section_table): Update.
5364 * target.c (memory_xfer_live_readonly_partial): Update.
5365 (memory_xfer_partial_1): Update.
5366
53672013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5368
5369 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5370 now available for embedded (BookE) and server (BookS) processors,
5371 correct mentions of 'booke' and adjust comments accordingly in order to
5372 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5373 (have_ptrace_booke_interface): Rename function and variable
5374 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5375 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5376 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5377 'hwdebug_point_cmp'. Update all uses.
5378 (booke_find_thread_points_by_tid): Rename function
5379 'booke_find_thread_points_by_tid' to
5380 'hwdebug_find_thread_points_by_tid'. Update all uses.
5381 (booke_insert_point): Rename function 'booke_insert_point' to
5382 'hwdebug_insert_point'. Update all uses.
5383 (booke_remove_point): Rename function 'booke_remove_point' to
5384 'hwdebug_remove_point'. Update all uses.
5385
53862013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5387
5388 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5389 numbers with enum values.
5390
53912013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5392
5393 PR threads/13217
5394 * thread.c (thread_apply_all_command): Check for valid threads
5395 and thread count.
5396 (thread_array_cleanup): New struct.
5397 (set_thread_refcount): New function.
5398
53992013-07-11 Andrew Burgess <aburgess@broadcom.com>
5400
5401 * infcmd.c (default_print_one_register_info): Reuse function
5402 print_hex_chars.
5403
54042013-07-10 Tom Tromey <tromey@redhat.com>
5405
5406 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5407 (ada-exp.o): New target.
5408
54092013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5410
5411 * mt-tdep.c (mt_registers_info): Call
5412 get_no_prettyformat_print_options instead of
5413 get_raw_print_options (regression by last patch from Doug
5414 Evans).
5415
54162013-07-09 Pedro Alves <palves@redhat.com>
5417
5418 Checked in by Joel Brobecker <brobecker@adacore.com>.
5419 * ada-lang.c (coerce_unspec_val_to_type): Use
5420 value_optimized_out_const.
5421 * value.c (value_optimized_out_const): New function.
5422 * value.h (value_optimized_out_const): New declaration.
5423
54242013-07-09 Doug Evans <dje@google.com>
5425
5426 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5427 Enum values rename as well. All uses updated.
5428 * valprint.h (value_print_options): Rename member pretty to
5429 pretty format. Rename member prettyprint_arrays to
5430 prettyformat_arrays. Rename member prettyprint_structs to
5431 prettyformat_structs. All uses updated.
5432 (get_no_prettyformat_print_options): Renamed from
5433 get_raw_print_options.
5434 * valprint.c (get_no_prettyformat_print_options): Renamed from
5435 get_raw_print_options. All callers updated.
5436 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5437 All callers updated.
5438 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5439 All callers updated.
5440 (_initialize_valprint): Improve help text for "set print pretty" and
5441 "set print arrays".
5442
54432013-07-09 Andrew Burgess <aburgess@broadcom.com>
5444
5445 * value.c (value_bits_valid): Revert previous change, and change
5446 by Pedro on 2013-07-04, due to regressions in
5447 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5448
54492013-07-08 Andrew Burgess <aburgess@broadcom.com>
5450 Pedro Alves <palves@redhat.com>
5451
5452 * value.c (value_bits_valid): If the value is not lval_computed
5453 or has no check validity handler then the answer is the
5454 optimized_out flag, otherwise defer to the handler.
5455
54562013-07-06 Eli Zaretskii <eliz@gnu.org>
5457
5458 * top.c (print_gdb_configuration): Explain in output of
5459 --configuration what does "relocatable" mean.
5460
5461 * main.c (print_gdb_help): Regroup options in the --help text.
5462 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5463 the relevant discussions.
5464
54652013-07-06 Yao Qi <yao@codesourcery.com>
5466
5467 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5468 Remove parameter 'lsal'.
5469 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5470 to inner block. Caller update.
5471 (base_breakpoint_create_breakpoints_sal): Update.
5472 (bkpt_create_breakpoints_sal): Likewise.
5473 (tracepoint_create_breakpoints_sal): Likewise.
5474 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5475 element 0 of vector 'canonical->sals'.
5476
54772013-07-05 Luis Machado <lgustavo@codesourcery.com>
5478
5479 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5480 register number instead of the pseudo register one.
5481 (rs6000_dwarf2_reg_to_regnum): Likewise.
5482
54832013-07-04 Pedro Alves <palves@redhat.com>
5484
5485 * findvar.c (value_of_register): Use allocate_optimized_out_value
5486 if the register has been optimized out, instead of
5487 set_value_optimized_out.
5488 * frame-unwind.c (frame_unwind_got_optimized): Use
5489 allocate_optimized_out_value.
5490
54912013-07-04 Pedro Alves <palves@redhat.com>
5492
5493 * value.c (value_bits_valid): If the value is not lval_computed,
5494 or doesn't have a check_validity hook, assume the value is entirely
5495 valid.
5496
54972013-07-04 Andrew Burgess <aburgess@broadcom.com>
5498
5499 * stack.c (read_frame_arg): No longer fetch lazy values.
5500 * value.c (value_optimized_out): If the value is not already
5501 marked optimized out, and is lazy then fetch it.
5502 (value_primitive_field): Move optimized out check to later in the
5503 function, after we have loaded any lazy values.
5504 (value_fetch_lazy): Use optimized out flag directly rather than
5505 calling optimized_out method.
5506
55072013-07-04 Andrew Burgess <aburgess@broadcom.com>
5508
5509 * valops.c: Don't include "user-regs.h".
5510 (value_fetch_lazy): Moved to value.c.
5511 * value.c: Include "user-regs.h".
5512 (value_fetch_lazy): Moved from valops.c.
5513
55142013-07-04 Yao Qi <yao@codesourcery.com>
5515
5516 Revert:
5517 2013-06-27 Yao Qi <yao@codesourcery.com>
5518
5519 * common/create-version.sh: Update comments. Handle the case
5520 that TARGET_ALIAS is empty.
5521
55222013-07-03 Pedro Alves <palves@redhat.com>
5523
5524 * Makefile.in (config.status): Depend on development.sh.
5525 (aclocal_m4_deps): Add libmcheck.m4.
5526 * acinclude.m4: Include libmcheck.m4.
5527 * configure.ac: Source development.sh instead of setting
5528 'development' here. --enable-libmcheck/--disable-libmcheck code
5529 factored out to GDB_AC_LIBMCHECK. Run it.
5530 * development.sh: New file.
5531 * libmcheck.m4: New file.
5532 * configure: Regenerate.
5533
55342013-07-02 Tom Tromey <tromey@redhat.com>
5535
5536 * contrib/ari/update-web-ari.sh: Update for version.in change.
5537
55382013-07-02 Tom Tromey <tromey@redhat.com>
5539
5540 * common/ptid.h: Comment fixes.
5541
55422013-07-01 Tom Tromey <tromey@redhat.com>
5543
5544 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5545 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5546 (dwarf2_read_index, create_all_comp_units): Update.
5547
55482013-07-01 Tom Tromey <tromey@redhat.com>
5549
5550 * configure.ac (build_warnings): Add -Wold-style-definition.
5551 * configure: Rebuild.
5552 * machoread.c (_initialize_machoread): Use "(void)".
5553 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5554 use "(void)".
5555
55562013-07-01 Tom Tromey <tromey@redhat.com>
5557
5558 * configure.ac (build_warnings): Add -Wold-style-declaration.
5559 * configure: Rebuild.
5560 * dsrec.c (make_srec): Use "static const", not "const static".
5561 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5562 not "const static".
5563 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5564 Use "static const", not "const static".
5565 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5566 not "const static".
5567 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5568 not "const static".
5569 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5570 not "const static".
5571 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5572 not "const static".
5573 (v850_dbtrap_breakpoint_from_pc): Likewise.
5574 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5575 not "const static".
5576
55772013-07-01 Tom Tromey <tromey@redhat.com>
5578
5579 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5580 * configure: Rebuild.
5581
55822013-07-01 Pedro Alves <palves@redhat.com>
5583
5584 * defs.h: Include "pathmax.h".
5585 * utils.c: Don't include sys/param.h.
5586 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5587 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5588 instead of MAXPATHLEN.
5589 * solib-sunos.c: Don't include sys/param.h.
5590 * xcoffread.c: Don't include sys/param.h.
5591 * bsd-kvm.c: Don't include sys/param.h.
5592 * darwin-nat.c: Don't include sys/param.h.
5593 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5594 * darwin-nat-info.c: Don't include sys/param.h.
5595 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5596 MAXPATHLEN.
5597 * i386obsd-nat.c: Don't include sys/param.h.
5598 * inf-child.c: Don't include sys/param.h.
5599 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5600 * linux-fork.c: Don't include sys/param.h.
5601 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5602 * linux-nat.c: Don't include sys/param.h.
5603 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5604 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5605 * m68klinux-nat.c: Don't include sys/param.h.
5606 * nbsd-nat.c: Don't include sys/param.h.
5607 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5608 * ppc-linux-nat.c: Don't include sys/param.h.
5609 * rs6000-nat.c: Don't include sys/param.h.
5610 * spu-linux-nat.c. Don't include sys/param.h.
5611 * windows-nat.c: Don't include sys/param.h.
5612 * xtensa-linux-nat.c: Don't include sys/param.h.
5613 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5614
56152013-07-01 Pedro Alves <palves@redhat.com>
5616
5617 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5618 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5619 * gnulib/aclocal.m4: Regenerate.
5620 * gnulib/config.in: Regenerate.
5621 * gnulib/configure: Regenerate.
5622 * gnulib/import/pathmax.h: New file.
5623 * gnulib/import/Makefile.am: Regenerate.
5624 * gnulib/import/Makefile.in: Regenerate.
5625 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5626 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5627 * gnulib/import/m4/pathmax.m4: New file.
5628
56292013-07-01 Pedro Alves <palves@redhat.com>
5630
5631 * configure.ac (GDBINIT): Define, depending on host.
5632 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5633 * top.c (PATH_MAX): Delete fallback definition.
5634 (GDBINIT_FILENAME): Delete.
5635 (gdbinit): Reimplement as const char array set to the GDBINIT
5636 string constant.
5637 * top.h (gdbinit): Make const.
5638 * configure, config.in: Regenerate.
5639
56402013-07-01 Pedro Alves <palves@redhat.com>
5641
5642 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5643 * cli/cli-cmds.h (source_script): Likewise.
5644 * exceptions.c (catch_command_errors_const): New function.
5645 * exceptions.h (catch_command_errors_const): Declare.
5646 * main.c (get_init_files): Make parameters const, and adjust.
5647 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5648 'local_gdbinit' locals const. Adjust to use
5649 catch_command_errors_const.
5650 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5651 'local_gdbinit' locals const.
5652
56532013-07-01 Pedro Alves <palves@redhat.com>
5654
5655 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5656 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5657 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5658 <unistd.h>.
5659
56602013-07-01 Pedro Alves <palves@redhat.com>
5661
5662 Import the "unistd" gnulib module.
5663 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5664 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5665 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5666 import/m4/unistd_h.m4.
5667 * gnulib/aclocal.m4: Renenerate.
5668 * gnulib/config.in: Renenerate.
5669 * gnulib/configure: Renenerate.
5670 * gnulib/import/Makefile.am: Renenerate.
5671 * gnulib/import/Makefile.in: Renenerate.
5672 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5673 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5674 * gnulib/import/m4/off_t.m4: New file.
5675 * gnulib/import/m4/ssize_t.m4: New file.
5676 * gnulib/import/m4/sys_types_h.m4: New file.
5677 * gnulib/import/m4/unistd_h.m4: New file.
5678 * gnulib/import/sys_types.in.h: New file.
5679 * gnulib/import/unistd.c: New file.
5680 * gnulib/import/unistd.in.h: New file.
5681
56822013-07-01 Pedro Alves <palves@redhat.com>
5683
5684 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5685 defined instead of checking HAVE_UNISTD_H.
5686
56872013-07-01 Pedro Alves <palves@redhat.com>
5688
5689 Reimport gnulib from scratch.
5690 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5691 import/m4/onceonly.m4.
5692 * gnulib/aclocal.m4: Renegerate.
5693 * gnulib/config.in: Renegerate.
5694 * gnulib/configure: Renegerate.
5695 * gnulib/import/Makefile.in: Renegerate.
5696 * gnulib/import/extra/update-copyright: Renegerate.
5697 * gnulib/import/m4/onceonly.m4: Delete.
5698
56992013-07-01 Pedro Alves <palves@redhat.com>
5700
5701 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5702
57032013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5704
5705 Code cleanup.
5706 * remote.c (async_remote_interrupt_twice): Make it static.
5707 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5708
57092013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5710
5711 * ia64-linux-tdep.c: Include <ctype.h>.
5712 (ia64_linux_stap_is_single_operand): New function.
5713 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5714
57152013-06-28 Tom Tromey <tromey@redhat.com>
5716
5717 * Makefile.in (version.c): Use version.in, not
5718 common/version.in.
5719 * common/create-version.sh: Likewise.
5720 * common/version.in: Move...
5721 * version.in: ...here.
5722
57232013-06-28 Pedro Alves <palves@redhat.com>
5724
5725 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5726 here.
5727 * utils.h (pagination_enabled): Declare.
5728
57292013-06-28 Pedro Alves <palves@redhat.com>
5730
5731 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5732 Move higher up in file.
5733
57342013-06-28 Tom Tromey <tromey@redhat.com>
5735
5736 * tracepoint.c (deprecated_readline_begin_hook)
5737 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5738 declare.
5739
57402013-06-28 Pedro Alves <palves@redhat.com>
5741
5742 PR tui/14880
5743 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5744 checking if they're available.
5745 * value.c (value_available_contents_eq): Change comment.
5746 * value.h (value_available_contents_eq): Expand comment.
5747
57482013-06-27 Tom Tromey <tromey@redhat.com>
5749
5750 * target.c (find_run_target): Remove.
5751 * target.h (find_run_target): Remove.
5752
57532013-06-27 Tom Tromey <tromey@redhat.com>
5754
5755 * corelow.c (core_gdbarch): Now static.
5756
57572013-06-27 Tom Tromey <tromey@redhat.com>
5758
5759 * target.c (target_struct_index): Remove.
5760
57612013-06-27 Pedro Alves <palves@redhat.com>
5762
5763 * infrun.c: Remove comment describing the 'stepping over runtime
5764 loader dynamic symbol resolution code' mechanism; moved to
5765 gdbint.texinfo.
5766
57672013-06-27 Pedro Alves <palves@redhat.com>
5768
5769 * exceptions.c (catch_command_errors): Remove spurious space.
5770 * exceptions.h (catch_command_errors): Second parameter is "arg",
5771 not "command".
5772
57732013-06-27 Yao Qi <yao@codesourcery.com>
5774
5775 * common/create-version.sh: Update comments. Handle the case
5776 that TARGET_ALIAS is empty.
5777
57782013-06-26 Pedro Alves <palves@redhat.com>
5779
5780 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5781 comment.
5782
57832013-06-26 Pedro Alves <palves@redhat.com>
5784
5785 * infrun.c: Update comments on stepping over runtime loader
5786 dynamic symbol resolution code.
5787
57882013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5789
5790 * ax-gdb.h (union exp_element): Forward declare.
5791 * parser-defs.h: Include expression.h.
5792
57932013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5794
5795 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5796
57972013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5798
5799 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5800
58012013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5802
5803 Fix trace-status to output proper start-time and stop-time.
5804 * tracepoint.c (trace_status_command): Fix type of printf arg to
5805 prevent improper type conversion.
5806 (trace_status_mi): Likewise.
5807
58082013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5809
5810 * mips-tdep.c (mips_next_pc): Fix a typo.
5811
58122013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5813
5814 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5815
58162013-06-26 Pedro Alves <pedro@codesourcery.com>
5817 Yao Qi <yao@codesourcery.com>
5818
5819 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5820 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5821 * mi/mi-main.c (print_variable_or_computed): New function.
5822 (mi_cmd_trace_frame_collected): New function.
5823 * tracepoint.c (find_trace_state_variable_by_number): New.
5824 (struct traceframe_info): Move to tracepoint.h
5825 (struct collection_list): Likewise.
5826 (do_collect_symbol): Include locals and arguments in the
5827 collected variables list.
5828 (clear_collection_list): Clear wholly collected variables list
5829 and computed variables list.
5830 (append_exp): New function.
5831 (encode_actions_1): Include variables in the wholly
5832 collected variables list. Include memory ranges and
5833 full-fledged expressions in the computed expressions list.
5834 (encode_actions): Move some code to ...
5835 Return the cleanup chain.
5836 (encode_actions_rsp): ... here. New function.
5837 (get_traceframe_location, get_traceframe_info): Remove static.
5838 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5839 (struct collection_list): Moved from tracepoint.c. Add two
5840 new fields 'wholly_collected' and 'computed'.
5841 (find_trace_state_variable_by_number): Declare.
5842 (encode_actions): Adjust declaration.
5843 (encode_actions_rsp): Declare.
5844 (get_traceframe_info, get_traceframe_location): Declare.
5845
5846 * NEWS: Mention new MI command -trace-frame-collected.
5847
58482013-06-26 Pedro Alves <pedro@codesourcery.com>
5849 Yao Qi <yao@codesourcery.com>
5850
5851 * ctf.c (ctf_traceframe_info): Push trace state variables
5852 present in the trace data into the traceframe info object.
5853 * breakpoint.c (DEF_VEC_I): Remove.
5854 * common/filestuff.c (DEF_VEC_I): Likewise.
5855 * dwarf2loc.c (DEF_VEC_I): Likewise.
5856 * mi/mi-main.c (DEF_VEC_I): Likewise.
5857 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5858 * features/traceframe-info.dtd: Add tvar element and its
5859 attributes.
5860 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5861 (build_traceframe_info): Push trace state variables present in
5862 the trace data into the traceframe info object.
5863 (traceframe_info_start_tvar): New function.
5864 (tvar_attributes): New.
5865 (traceframe_info_children): Add "tvar" element.
5866 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5867
5868 * NEWS: Mention the change in GDB and GDBserver.
5869
58702013-06-26 Pedro Alves <pedro@codesourcery.com>
5871 Yao Qi <yao@codesourcery.com>
5872
5873 * tracepoint.c (trace_dump_command): Move code to ...
5874 (get_traceframe_location): ... here. New.
5875
58762013-06-26 Pedro Alves <pedro@codesourcery.com>
5877 Yao Qi <yao@codesourcery.com>
5878
5879 * tracepoint.c (trace_dump_command): GDB emits an error
5880 instead of a warning when a traceframe is not selected.
5881
58822013-06-26 Pedro Alves <pedro@codesourcery.com>
5883 Yao Qi <yao@codesourcery.com>
5884
5885 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5886 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5887 in collection_list.
5888 (do_clear_collection_list, init_collection_list): New.
5889 (encode_actions): Add local variables 'tracepoint_list' and
5890 'stepping_list'. Call init_collection_list and make cleanup
5891 which calls do_clear_collection_list. Don't call
5892 clear_collection_list.
5893 (_initialize_tracepoint): Delete references to
5894 'tracepoint_list' and 'stepping_list'.
5895
58962013-06-25 Tom Tromey <tromey@redhat.com>
5897
5898 * common/create-version.sh (date): Use "$", not "$$" in sed
5899 expression.
5900
59012013-06-25 Kevin Buettner <kevinb@redhat.com>
5902
5903 * NEWS (New targets): Add entry for TI MSP430.
5904
59052013-06-25 Yao Qi <yao@codesourcery.com>
5906
5907 * remote.c (remote_start_remote): Move code to upload tsv
5908 earlier.
5909
59102013-06-25 Yao Qi <yao@codesourcery.com>
5911 Hui Zhu <hui@codesourcery.com>
5912 Pedro Alves <palves@redhat.com>
5913
5914 PR breakpoints/15075
5915 PR breakpoints/15434
5916 * breakpoint.c (bpstat_stop_status): Call
5917 b->ops->after_condition_true.
5918 (update_dprintf_command_list): Don't append "continue" command
5919 to the command list of dprintf breakpoint.
5920 (base_breakpoint_after_condition_true): New function.
5921 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5922 (dprintf_after_condition_true): New function.
5923 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5924 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5925
59262013-06-24 Kevin Buettner <kevinb@redhat.com>
5927
5928 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5929 (ALLDEPFILES): Add msp430-tdep.c.
5930 * configure.tgt (msp430*-*-elf): New target.
5931 * msp430-tdep.c: New file.
5932
59332013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5934
5935 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5936 microMIPS synthetic symbols.
5937
59382013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5939
5940 * objfiles.h (pc_in_section): New prototype.
5941 (in_plt_section): Remove name argument, replace prototype with
5942 static inline function.
5943 * mips-tdep.h: Include "objfiles.h".
5944 (in_mips_stubs_section): New function.
5945 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5946 in_solib_call_trampoline member.
5947 (hppa_in_solib_call_trampoline): Remove name argument.
5948 * objfiles.c (pc_in_section): New function.
5949 (in_plt_section): Remove function.
5950 * mips-linux-tdep.c: Include "objfiles.h".
5951 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5952 name argument. Return 1 rather than the low 16-bit halfword of
5953 any instruction examined.
5954 (mips_linux_in_dynsym_resolve_code): Update
5955 mips_linux_in_dynsym_stub call accordingly.
5956 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5957 rather than an equivalent hand-coded sequence.
5958 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5959 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5960 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5961 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5962 in_opd_section.
5963 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5964 on call to tdep->in_solib_call_trampoline.
5965 (hppa_in_solib_call_trampoline): Remove name argument, update
5966 according to in_plt_section change.
5967 (hppa_skip_trampoline_code): Update according to in_plt_section
5968 change.
5969 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5970 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5971 Likewise.
5972 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5973 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5974 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5975 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5976 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5977 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5978 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5979 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5980 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5981 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5982 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5983 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5984 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5985
59862013-06-24 Joel Brobecker <brobecker@adacore.com>
5987
5988 * common/create-version.sh: Fix expansion of $host_alias
5989 and $target_alias in generation of HOST_NAME and TARGET_NAME
5990 (resp.).
5991
59922013-06-24 Tom Tromey <tromey@redhat.com>
5993
5994 * common/create-version.sh: New file.
5995 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
5996 create-version.sh.
5997 (HFILES_NO_SRCDIR): Use common/version.h.
5998 * version.in: Move to ...
5999 * common/version.in: ... here. Replace date with "DATE".
6000 * version.h: Move to ...
6001 * common/version.h: ... here.
6002
60032013-06-21 Joel Brobecker <brobecker@adacore.com>
6004
6005 * gdb/gnulib/Makefile.in: Update date in copyright header.
6006 * gdb/gnulib/configure.ac: Ditto.
6007 * gdb/gnulib/update-gnulib.sh: Ditto.
6008
60092013-06-21 Joel Brobecker <brobecker@adacore.com>
6010
6011 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6012 "gdb/gnulib/import".
6013
60142013-06-21 Will Newton <will.newton@linaro.org>
6015
6016 * doublest.c (ldfrexp): Remove function.
6017 (convert_doublest_to_floatformat): Call frexpl instead of
6018 ldfrexp.
6019
60202013-06-21 Will Newton <will.newton@linaro.org>
6021
6022 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6023 * gnulib/aclocal.m4: Regenerate.
6024 * gnulib/config.in: Regenerate.
6025 * gnulib/configure: Regenerate.
6026 * gnulib/import/Makefile.am: Update.
6027 * gnulib/import/Makefile.in: Update.
6028 * gnulib/import/m4/gnulib-cache.m4: Update.
6029 * gnulib/import/m4/gnulib-comp.m4: Update.
6030 * gnulib/import/float+.h: Import.
6031 * gnulib/import/float.c: Import.
6032 * gnulib/import/float.in.h: Import.
6033 * gnulib/import/fpucw.h: Import.
6034 * gnulib/import/frexp.c: Import.
6035 * gnulib/import/frexpl.c: Import.
6036 * gnulib/import/isnan.c: Import.
6037 * gnulib/import/isnand-nolibm.h: Import.
6038 * gnulib/import/isnand.c: Import.
6039 * gnulib/import/isnanl-nolibm.h: Import.
6040 * gnulib/import/isnanl.c: Import.
6041 * gnulib/import/itold.c: Import.
6042 * gnulib/import/m4/exponentd.m4: Import.
6043 * gnulib/import/m4/exponentl.m4: Import.
6044 * gnulib/import/m4/float_h.m4: Import.
6045 * gnulib/import/m4/fpieee.m4: Import.
6046 * gnulib/import/m4/frexp.m4: Import.
6047 * gnulib/import/m4/frexpl.m4: Import.
6048 * gnulib/import/m4/isnand.m4: Import.
6049 * gnulib/import/m4/isnanl.m4: Import.
6050 * gnulib/import/m4/math_h.m4: Import.
6051 * gnulib/import/math.c: Import.
6052 * gnulib/import/math.in.h: Import.
6053
60542013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6055
6056 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6057 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6058 signature_INTEL_edx comparisons.
6059
60602013-06-20 Doug Evans <dje@google.com>
6061
6062 symtab/15652
6063 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6064 All callers updated.
6065 (open_dwp_file): If we can't find the dwp file, search the basename
6066 in debug-file-directory.
6067
6068 * dwarf2read.c (struct dwp_file): Fix comment.
6069 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6070
6071 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6072 better.
6073
60742013-06-20 Yao Qi <yao@codesourcery.com>
6075
6076 * breakpoint.c (create_breakpoint): Fix code indentation.
6077
60782013-06-20 Yao Qi <yao@codesourcery.com>
6079
6080 * breakpoint.c (create_breakpoints_sal_default): Remove
6081 parameter 'lsal'. Update declaration.
6082 (bkpt_create_breakpoints_sal): Caller update.
6083 (tracepoint_create_breakpoints_sal): Likewise.
6084
60852013-06-20 Pedro Alves <pedro@codesourcery.com>
6086 Yao Qi <yao@codesourcery.com>
6087
6088 * NEWS: Mention the new option '--skip-unavailable' of command
6089 -data-list-register-values.
6090 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6091 --skip-unavailable option. Adjust to use output_register.
6092 (output_register): Add new 'skip_unavailable' parameter.
6093 Handle it.
6094
60952013-06-19 Mike Frysinger <vapier@gentoo.org>
6096
6097 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6098 common/i386-gcc-cpuid.h.
6099 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6100 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6101 Copy the latest version from upstream gcc.
6102 * common/linux-btrace.c: Include i386-cpuid.h.
6103 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6104 call to i386_cpuid.
6105 (cpu_supports_btrace): Likewise.
6106 * go32-nat.c: Include i386-cpuid.h.
6107 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6108
61092013-06-19 Doug Evans <dje@google.com>
6110
6111 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6112 (get_section_index): Ditto.
6113
61142013-06-19 Tom Tromey <tromey@redhat.com>
6115
6116 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6117 "dprintf" help.
6118
61192013-06-18 Doug Evans <dje@google.com>
6120
6121 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6122 before using it.
6123 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6124 Move test of cu_index closer to use. Print complaint if cu_index
6125 is bad.
6126
61272013-06-18 Joel Brobecker <brobecker@adacore.com>
6128
6129 * machoread.c (oso_vector): Delete this global.
6130 (macho_register_oso): Add new parameter "oso_vector_ptr".
6131 Use it instead of the "oso_vector" global.
6132 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6133 (macho_symfile_read): Use a local oso_vector, to be free'ed
6134 at the end of this function, in place of the old "oso_vector"
6135 global. Update various function calls accordingly. Use one
6136 single cleanup chain for the entire function.
6137
61382013-06-18 Joel Brobecker <brobecker@adacore.com>
6139
6140 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6141 DWARF2_PER_OBJFILE by uses of DATA instead.
6142
61432013-06-18 Tom Tromey <tromey@redhat.com>
6144
6145 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6146 argument.
6147 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6148 Special case signals other than GDB_SIGNAL_TRAP.
6149 (explains_signal_watchpoint): New function.
6150 (base_breakpoint_explains_signal): Add 'sig' argument.
6151 (initialize_breakpoint_ops): Set 'explains_signal' method for
6152 watchpoints.
6153 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6154 signal argument.
6155 (bpstat_explains_signal): Likewise.
6156 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6157
61582013-06-18 Tom Tromey <tromey@redhat.com>
6159
6160 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6161
61622013-06-18 Tom Tromey <tromey@redhat.com>
6163
6164 * python/python.c (finish_python_initialization): Decref
6165 'pythondir' on failure path as well.
6166
61672013-06-18 Tom Tromey <tromey@redhat.com>
6168
6169 PR symtab/15391:
6170 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6171 after taking bits_to_skip into account. Sign extend byte_offset.
6172 * utils.h (gdb_sign_extend): Declare.
6173 * utils.c (gdb_sign_extend): New function.
6174
61752013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6176
6177 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6178
61792013-06-17 Pierre Muller <muller@sourceware.org>
6180
6181 * corelow.c (core_open): Print GDB signal name instead of target
6182 signal number.
6183
61842013-06-17 Mike Frysinger <vapier@gentoo.org>
6185
6186 * .gitignore: Add /gcore.
6187
61882013-06-13 Doug Evans <dje@google.com>
6189
6190 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6191 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6192
61932013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6194
6195 * stack.c (backtrace_command_1): Fix indentation.
6196
61972013-06-11 Joel Brobecker <brobecker@adacore.com>
6198
6199 * window-nat.c (thread_rec): Add missing empty line after
6200 local variable declaration.
6201
62022013-06-11 Joel Brobecker <brobecker@adacore.com>
6203
6204 * windows-nat.c (thread_rec): Revert format used to print
6205 error code returned by SuspendThread from %d back to %u.
6206
62072013-06-11 Joel Brobecker <brobecker@adacore.com>
6208
6209 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6210 ID in debug trace.
6211 (get_windows_debug_event): Likewise, for all debug traces.
6212
62132013-06-11 Joel Brobecker <brobecker@adacore.com>
6214
6215 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6216 warning message.
6217
62182013-06-08 Pedro Alves <pedro@codesourcery.com>
6219 Yao Qi <yao@codesourcery.com>
6220
6221 * mi/mi-main.c (get_register): Remove declaration.
6222 (output_register): Declare.
6223 (mi_cmd_data_list_register_values): Remove local variable
6224 'tuple_cleanup'. Move some code into output_register.
6225 (get_register): Renamed to ...
6226 (output_register): ... this. Output the register's
6227 "number" ui_out tuple here.
6228
62292013-06-07 Pedro Alves <palves@redhat.com>
6230
6231 * darwin-nat.c: Fix formating in copyright header.
6232 * darwin-nat.h: Likewise.
6233 * gnu-nat.c: Likewise.
6234 * machoread.c: Likewise.
6235
62362013-06-07 Pedro Alves <palves@redhat.com>
6237
6238 PR server/14823
6239 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6240 static. Output a global target description pointer.
6241 (init_registers_${name}): Adjust to initialize a
6242 target description structure.
6243
62442013-06-07 Will Newton <will.newton@linaro.org>
6245
6246 * printcmd.c (build_address_symbolic): Call
6247 gdbarch_addr_bits_remove for text minimal symbols.
6248
62492013-06-07 Will Newton <will.newton@linaro.org>
6250
6251 * MAINTAINERS: Add myself to Write After Approval.
6252
62532013-06-07 Yao Qi <yao@codesourcery.com>
6254
6255 * tracepoint.c (start_tracing): Move code to ...
6256 (trace_reset_local_state): ... here. New.
6257 (disconnect_tracing): Don't call set_current_traceframe,
6258 set_tracepoint_num, and set_traceframe_context. Call
6259 trace_reset_local_state instead.
6260 (tfile_close): Call trace_reset_local_state.
6261 * ctf.c (ctf_close): Likewise.
6262 * remote.c (remote_close): Likewise.
6263 * tracepoint.h (trace_reset_local_state): Declare.
6264
62652013-06-06 Doug Evans <dje@google.com>
6266
6267 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6268 and fix header docs.
6269
62702013-06-05 Doug Evans <dje@google.com>
6271 Keith Seitz <keiths@redhat.com>
6272
6273 PR 15519
6274 * cp-namespace.c (find_symbol_in_baseclass): Call
6275 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6276 Check result of call to lookup_symbol_static.
6277 Call lookup_static_symbol_aux unconditionally.
6278 Call check_typedef on base types before accessing them.
6279 (cp_lookup_nested_symbol): Fix comment.
6280
62812013-06-05 Luis Machado <lgustavo@codesourcery.com>
6282
6283 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6284 minimal symbols pointing to function descriptors.
6285
62862013-06-05 Tom Tromey <tromey@redhat.com>
6287
6288 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6289
62902013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6291 Pedro Alves <palves@redhat.com>
6292
6293 * remote.c (remote_wait_as): Restore signal handler before returning
6294 when GDB gets a notification.
6295
62962013-06-04 Gary Benson <gbenson@redhat.com>
6297
6298 PR 2328
6299 * breakpoint.h (handle_solib_event): Moved function declaration
6300 to solib.h.
6301 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6302 (bpstat_stop_status): Pass new argument to handle_solib_event.
6303 * solib.h (update_solib_breakpoints): New function declaration.
6304 (handle_solib_event): Moved function declaration from
6305 breakpoint.h.
6306 * solib.c (update_solib_breakpoints): New function.
6307 (handle_solib_event): Moved function from breakpoint.c.
6308 Updated to call solib_ops->handle_event if not NULL.
6309 * solist.h (target_so_ops): New fields "update_breakpoints" and
6310 "handle_event".
6311 * infrun.c (set_stop_on_solib_events): New function.
6312 (_initialize_infrun): Use the above for "set
6313 stop-on-solib-events".
6314 (handle_inferior_event): Pass new argument to handle_solib_event.
6315 * solib-svr4.c (probe.h): New include.
6316 (svr4_free_library_list): New forward declaration.
6317 (probe_action): New enum.
6318 (probe_info): New struct.
6319 (probe_info): New static variable.
6320 (NUM_PROBES): New definition.
6321 (svr4_info): New fields "using_xfer", "probes_table" and
6322 "solib_list".
6323 (free_probes_table): New function.
6324 (free_solib_list): New function.
6325 (svr4_pspace_data_cleanup): Free probes table and solib list.
6326 (svr4_copy_library_list): New function.
6327 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6328 (svr4_read_so_list): New parameter "prev_lm".
6329 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6330 (svr4_current_sos): New function.
6331 (probe_and_action): New struct.
6332 (hash_probe_and_action): New function.
6333 (equal_probe_and_action): Likewise.
6334 (register_solib_event_probe): Likewise.
6335 (solib_event_probe_at): Likewise.
6336 (solib_event_probe_action): Likewise.
6337 (solist_update_full): Likewise.
6338 (solist_update_incremental): Likewise.
6339 (disable_probes_interface_cleanup): Likewise.
6340 (svr4_handle_solib_event): Likewise.
6341 (svr4_update_solib_event_breakpoint): Likewise.
6342 (svr4_update_solib_event_breakpoints): Likewise.
6343 (svr4_create_solib_event_breakpoints): Likewise.
6344 (enable_break): Free probes table before creating breakpoints.
6345 Use svr4_create_solib_event_breakpoints to create breakpoints.
6346 (svr4_solib_create_inferior_hook): Free the solib list.
6347 (_initialize_svr4_solib): Initialise
6348 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6349
63502013-06-04 Gary Benson <gbenson@redhat.com>
6351
6352 * target.h (target_ops): New field
6353 "to_augmented_libraries_svr4_read".
6354 (target_augmented_libraries_svr4_read): New macro.
6355 * target.c (update_current_target): Handle
6356 to_augmented_libraries_svr4_read.
6357 * remote.c (remote_state): New field
6358 "augmented_libraries_svr4_read".
6359 (remote_augmented_libraries_svr4_read_feature): New function.
6360 (remote_protocol_features): Add entry for
6361 "augmented-libraries-svr4-read".
6362 (remote_augmented_libraries_svr4_read): New function.
6363 (init_remote_ops): Initialize
6364 remote_ops.to_augmented_libraries_svr4_read.
6365
63662013-06-04 Gary Benson <gbenson@redhat.com>
6367
6368 * NEWS: Update.
6369
63702013-06-04 Gary Benson <gbenson@redhat.com>
6371
6372 * objfiles.h (inhibit_section_map_updates): New function
6373 declaration.
6374 (resume_section_map_updates): Likewise.
6375 (resume_section_map_updates_cleanup): Likewise.
6376 * objfiles.c (objfile_pspace_info): Removed field
6377 "objfiles_changed_p". New fields "new_objfiles_available",
6378 "section_map_dirty" and "inhibit_updates".
6379 (allocate_objfile): Set new_objfiles_available.
6380 (free_objfile): Set section_map_dirty.
6381 (objfile_relocate1): Likewise.
6382 (in_plt_section): Likewise.
6383 (find_pc_section): Update the conditions under which the
6384 section map will be updated.
6385 (inhibit_section_map_updates): New function.
6386 (resume_section_map_updates): Likewise.
6387 (resume_section_map_updates_cleanup): Likewise.
6388
63892013-06-04 Gary Benson <gbenson@redhat.com>
6390
6391 * probe.h (get_probe_argument_count): New declaration.
6392 (evaluate_probe_argument): Likewise.
6393 * probe.c (get_probe_argument_count): New function.
6394 (evaluate_probe_argument): Likewise.
6395 (probe_safe_evaluate_at_pc): Use the above new functions.
6396
63972013-06-04 Alan Modra <amodra@gmail.com>
6398
6399 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6400 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6401 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6402 target mem reads on optional insns.
6403 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6404 ppc_insns_match_pattern calls.
6405 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6406 Add match for power7 thread safety insns, and new order of
6407 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6408 invocation in comment, and update rest of comment.
6409 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6410 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6411 (ppc64_standard_linkage2_target): Update insn offsets.
6412 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6413 stubs first. Update calls.
6414
64152013-06-04 Yao Qi <yao@codesourcery.com>
6416
6417 * solib.c (solib_find): Don't need dir separator if path has
6418 drive spec.
6419
64202013-06-03 Joel Brobecker <brobecker@adacore.com>
6421
6422 Revert (indirectly causes a SIGSEGV):
6423 * machoread.c (macho_symfile_read): Assign first cleanup to
6424 'back_to'.
6425
64262013-06-03 Yao Qi <yao@codesourcery.com>
6427
6428 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6429 mi-parse.c. Make them static.
6430 (mi_all_values): Likewise.
6431 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6432 mi_parse_print_values. Make it external.
6433 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6434 Remove the declarations.
6435 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6436 * mi/mi-parse.h (mi_parse_print_values): Declare.
6437 * mi/mi-cmd-stack.c: Include mi-parse.h.
6438 (parse_print_values): Remove
6439 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6440 of parse_print_values.
6441 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6442
64432013-05-31 Pedro Alves <pedro@codesourcery.com>
6444 Yao Qi <yao@codesourcery.com>
6445
6446 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6447 (encode_actions): Move code to ...
6448 (all_tracepoint_actions_and_cleanup): ... here. New.
6449 (trace_dump_command): Likewise.
6450
64512013-05-30 Tom Tromey <tromey@redhat.com>
6452
6453 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6454
64552013-05-30 Tom Tromey <tromey@redhat.com>
6456
6457 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6458 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6459 'old_chain' argument. Add 'parser_result' argument.
6460 (gdb_xml_create_parser_and_cleanup): Remove old version.
6461 (gdb_xml_parse_quick): Update.
6462 (xml_process_xincludes): Update.
6463 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6464 declare.
6465
64662013-05-30 Tom Tromey <tromey@redhat.com>
6467
6468 * probe.c (collect_probes): Check arguments for NULL before
6469 calling compile_rx_or_error.
6470 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6471 Remove NULL return.
6472
64732013-05-30 Tom Tromey <tromey@redhat.com>
6474
6475 * infrun.c (adjust_pc_after_break): Introduce an outer null
6476 cleanup.
6477
64782013-05-30 Tom Tromey <tromey@redhat.com>
6479
6480 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6481
64822013-05-30 Tom Tromey <tromey@redhat.com>
6483
6484 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6485 for 'old_chain'. Do not check 'head' before processing
6486 cleanups.
6487
64882013-05-30 Tom Tromey <tromey@redhat.com>
6489
6490 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6491 "cleanup_tuple".
6492
64932013-05-30 Tom Tromey <tromey@redhat.com>
6494
6495 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6496 inner scope. Unconditionally call do_cleanups.
6497
64982013-05-30 Tom Tromey <tromey@redhat.com>
6499
6500 * source.c (find_and_open_source): Call do_cleanups.
6501
65022013-05-30 Tom Tromey <tromey@redhat.com>
6503
6504 * linux-thread-db.c (thread_db_load_search): Unconditionally
6505 call do_cleanups.
6506
65072013-05-30 Tom Tromey <tromey@redhat.com>
6508
6509 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6510 for 'cleanup'; instead use a later one.
6511
65122013-05-30 Tom Tromey <tromey@redhat.com>
6513
6514 * python/py-breakpoint.c (bppy_get_commands): Use
6515 explicit, unconditional return.
6516 * python/py-frame.c (frapy_read_var): Likewise.
6517 * python/python.c (gdbpy_decode_line): Likewise.
6518
65192013-05-30 Tom Tromey <tromey@redhat.com>
6520
6521 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6522 do_cleanups on all return paths.
6523
65242013-05-30 Tom Tromey <tromey@redhat.com>
6525
6526 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6527
65282013-05-30 Tom Tromey <tromey@redhat.com>
6529
6530 * stabsread.c (read_struct_type): Call do_cleanups along
6531 all return paths.
6532
65332013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6534
6535 * mips-linux-tdep.c: Adjust formatting throughout.
6536
65372013-05-30 Tom Tromey <tromey@redhat.com>
6538
6539 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6540 along all return paths.
6541
65422013-05-30 Tom Tromey <tromey@redhat.com>
6543
6544 * symfile.c (find_separate_debug_file): Call do_cleanups
6545 along all return paths.
6546
65472013-05-30 Tom Tromey <tromey@redhat.com>
6548
6549 * symtab.c (search_symbols): Introduce a null cleanup for
6550 'retval_chain'.
6551
65522013-05-30 Tom Tromey <tromey@redhat.com>
6553
6554 * python/py-value.c (valpy_binop): Call do_cleanups before
6555 exiting loop.
6556
65572013-05-30 Tom Tromey <tromey@redhat.com>
6558
6559 * python/py-prettyprint.c (print_children): Remove extra
6560 do_cleanups call.
6561
65622013-05-30 Tom Tromey <tromey@redhat.com>
6563
6564 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6565 all return paths.
6566
65672013-05-30 Tom Tromey <tromey@redhat.com>
6568
6569 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6570 along all return paths.
6571
65722013-05-30 Tom Tromey <tromey@redhat.com>
6573
6574 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6575 call do_cleanups.
6576
65772013-05-30 Tom Tromey <tromey@redhat.com>
6578
6579 * varobj.c (c_value_of_root): Call do_cleanups along all
6580 return paths.
6581
65822013-05-30 Tom Tromey <tromey@redhat.com>
6583
6584 * tracepoint.c (trace_dump_command): Unconditionally call
6585 do_cleanups.
6586
65872013-05-30 Tom Tromey <tromey@redhat.com>
6588
6589 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6590 do_cleanups earlier.
6591
65922013-05-30 Tom Tromey <tromey@redhat.com>
6593
6594 * machoread.c (macho_symfile_read): Assign first cleanup to
6595 'back_to'.
6596
65972013-05-30 Tom Tromey <tromey@redhat.com>
6598
6599 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6600
66012013-05-30 Tom Tromey <tromey@redhat.com>
6602
6603 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6604
66052013-05-30 Tom Tromey <tromey@redhat.com>
6606
6607 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6608 call discard_cleanups.
6609 (inf_ptrace_attach): Likewise.
6610
66112013-05-30 Tom Tromey <tromey@redhat.com>
6612
6613 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6614 return paths.
6615 (mips_initialize): Likewise.
6616 (common_open): Call do_cleanups.
6617
66182013-05-30 Tom Tromey <tromey@redhat.com>
6619
6620 * utils.c (internal_vproblem): Call do_cleanups.
6621
66222013-05-30 Tom Tromey <tromey@redhat.com>
6623
6624 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6625
66262013-05-30 Tom Tromey <tromey@redhat.com>
6627
6628 * cli/cli-script.c (setup_user_args): Don't return after error.
6629
66302013-05-30 Tom Tromey <tromey@redhat.com>
6631
6632 * somread.c (som_symtab_read): Call do_cleanups.
6633
66342013-05-30 Tom Tromey <tromey@redhat.com>
6635
6636 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6637
66382013-05-30 Tom Tromey <tromey@redhat.com>
6639
6640 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6641 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6642 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6643 * source.c (show_substitute_path_command): Call do_cleanups.
6644 (unset_substitute_path_command, set_substitute_path_command):
6645 Likewise.
6646 * symfile.c (load_command): Call do_cleanups.
6647
66482013-05-30 Tom Tromey <tromey@redhat.com>
6649
6650 * contrib/cleanup_check.py: New file.
6651 * contrib/gcc-with-excheck: Add option parsing.
6652
66532013-05-30 Joel Brobecker <brobecker@adacore.com>
6654
6655 * windows-nat.c (windows_delete_thread): Add missing space
6656 in cast expression.
6657
66582013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6659
6660 * inferior.c (top level): Include tilde.h.
6661 (add_inferior_command): Call tilde_expand on the value of 'exec'
6662 argument.
6663
66642013-05-30 Pedro Alves <pedro@codesourcery.com>
6665 Yao Qi <yao@codesourcery.com>
6666
6667 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6668 Caller update.
6669 (encode_actions): Likewise.
6670 * remote.c (remote_download_tracepoint): Caller update.
6671 * tracepoint.h (encode_actions): Update declaration.
6672
66732013-05-30 Pedro Alves <palves@redhat.com>
6674
6675 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6676 pointer.
6677
66782013-05-30 Yao Qi <yao@codesourcery.com>
6679
6680 * remote.c (remote_check_symbols): Remove unused parameter
6681 'objfile'.
6682 Declaration update.
6683 (remote_start_remote, remote_new_objfile): Caller update.
6684
66852013-05-30 Yao Qi <yao@codesourcery.com>
6686
6687 * mi/mi-cmds.c (mi_cmds): Define MI command
6688 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6689 DEF_MI_CMD_CLI.
6690
66912013-05-29 Pedro Alves <palves@redhat.com>
6692
6693 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6694 (remote_insert_watchpoint, remote_remove_watchpoint)
6695 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6696 (remote_verify_memory, compare_sections_command)
6697 (remote_search_memory): Set the general process/thread on the
6698 remote side.
6699
67002013-05-29 Pedro Alves <palves@redhat.com>
6701
6702 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6703 (_initialize_aarch64_tdep): Don't call
6704 initialize_tdesc_aarch64_without_fpu.
6705 * features/Makefile (WHICH): Remove reference to
6706 aarch64-without-fpu.
6707 * features/aarch64-without-fpu.c: Delete file.
6708 * regformats/aarch64-without-fpu.dat: Delete file.
6709
67102013-05-28 Yao Qi <yao@codesourcery.com>
6711
6712 * tracepoint.c (stringify_collection_list): Remove parameter
6713 'string'.
6714 (encode_actions): Caller update. Remove local variables.
6715
67162013-05-24 Yao Qi <yao@codesourcery.com>
6717
6718 * tracepoint.c (TFILE_PID): Remove.
6719 (tfile_open): Don't add thread and inferior.
6720 (tfile_close): Don't set 'inferior_ptid'. Don't call
6721 exit_inferior_silent.
6722 (tfile_thread_alive): Remove.
6723 (init_tfile_ops): Don't set field 'to_thread_alive' of
6724 tfile_ops.
6725
67262013-05-23 Doug Evans <dje@google.com>
6727
6728 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6729
67302013-05-23 Pedro Alves <palves@redhat.com>
6731
6732 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6733 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6734 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6735 Only define if HAVE_SOCKETS is defined.
6736 * configure.ac: Check for sys/socket.h.
6737 * config.in, configure: Regenerate.
6738
67392013-05-23 Pedro Alves <palves@redhat.com>
6740
6741 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6742 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6743 printing uint32_t variables.
6744
67452013-05-23 Pedro Alves <palves@redhat.com>
6746
6747 * NEWS: Mention GDBserver range stepping support.
6748
67492013-05-23 Yao Qi <yao@codesourcery.com>
6750 Pedro Alves <palves@redhat.com>
6751
6752 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6753 field.
6754 * infcmd.c (step_once, until_next_command): Enable range stepping.
6755 * infrun.c (displaced_step_prepare): Disable range stepping.
6756 (resume): Disable range stepping if stepping over a breakpoint or
6757 we have software watchpoints. If range stepping is enabled,
6758 assert the thread is in the stepping range.
6759 (clear_proceed_status_thread): Clear may_range_step.
6760 (handle_inferior_event): Disable range stepping as soon as we know
6761 the thread that hit the event. Re-enable it whenever we're going
6762 to step with a step range.
6763 * remote.c (struct vCont_action_support) <r>: New field.
6764 (use_range_stepping): New global.
6765 (remote_vcont_probe): Handle 'r' action.
6766 (append_resumption): Append an 'r' action if the thread may range
6767 step.
6768 (show_range_stepping): New function.
6769 (set_range_stepping): New function.
6770 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6771 'set range-stepping' and 'show range-stepping' commands.
6772 * NEWS: Mention range stepping, the new vCont;r action, and the
6773 new "set/show range-stepping" commands.
6774
67752013-05-23 Yao Qi <yao@codesourcery.com>
6776 Pedro Alves <palves@redhat.com>
6777
6778 * remote.c (struct vCont_action_support): New struct.
6779 (struct remote_state) <support_vCont_t>: Remove field.
6780 <vCont_actions_support>: New field.
6781 (remote_vcont_probe, remote_stop_ns): Update.
6782
67832013-05-23 Yao Qi <yao@codesourcery.com>
6784 Pedro Alves <palves@redhat.com>
6785
6786 * gdbthread.h (pc_in_thread_step_range): New declaration.
6787 * thread.c (pc_in_thread_step_range): New function.
6788 * infrun.c (handle_inferior_event): Use it.
6789
67902013-05-23 Joel Brobecker <brobecker@adacore.com>
6791
6792 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6793 of sprintf.
6794
67952013-05-22 Keith Seitz <keiths@redhat.com>
6796
6797 * ada-lang.c (is_known_support_routine): Add explicit free of
6798 'func_name' from find_frame_funname.
6799 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6800 for func_name from find_frame_funname.
6801 * python/py-frame.c (frapy_name): Add explicit free of
6802 'name' from find_frame_funname.
6803 * stack.c (find_frame_funname): Add comment explaining that
6804 funcp must be freed by the caller.
6805 Return copy of symbol names instead of pointers.
6806 (print_frame): Add a cleanup for 'funname' from
6807 find_frame_funname.
6808 * stack.h (find_frame_funname): Remove "const" from
6809 'funname' parameter.
6810
68112013-05-22 Tom Tromey <tromey@redhat.com>
6812
6813 PR c++/15401:
6814 * c-valprint.c (c_value_print): Use value_addr for
6815 references. Convert back to reference type with value_ref.
6816
68172013-05-22 Eli Zaretskii <eliz@gnu.org>
6818
6819 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6820 unloaded DLL, it will be done by handle_solib_event. See
6821 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6822 details.
6823
68242013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6825
6826 * ui-out.c: Create typedef ui_out_level_p and define vector
6827 operations for that type.
6828 (struct ui_out): Use a vector instead of an array.
6829 (current_level): Return level from a vector.
6830 (push_level): Create a level in a vector.
6831 (pop_level): Delete a level in a vector.
6832 (ui_out_new): Create initial level zero level, and store in a
6833 vector.
6834 (ui_out_destroy): Add vector cleanup.
6835
68362013-05-22 Pedro Alves <palves@redhat.com>
6837
6838 * python/python-internal.h (gdb_Py_DECREF): Tag with
6839 "ARI: editCase function".
6840
68412013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6842
6843 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6844
68452013-05-21 Pedro Alves <palves@redhat.com>
6846
6847 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6848 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6849 * python/py-utils.c (py_decref): Don't check for NULL before
6850 calling Py_DECREF.
6851
68522013-05-21 Pedro Alves <palves@redhat.com>
6853
6854 * python/py-utils.c (py_decref): Remove extra braces.
6855 (gdb_pymodule_addobject): Remove extra braces.
6856 * python-internal.h (gdb_Py_DECREF): New static inline function.
6857 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6858
68592013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6860
6861 * breakpoints.c (detach_breakpoints): Do not
6862 detach breakpoints locations with loc_type bp_loc_other.
6863
68642013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 Workaround Python 2.6.
6867 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6868 a block.
6869
68702013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 Code cleanup: constification.
6873 * solib.c (solib_ops): Make return type and ops variable type const.
6874 (set_solib_ops): Make the new_ops parameter and ops variable const.
6875 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6876 (solib_add, solib_keep_data_in_core, clear_solib)
6877 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6878 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6879 const.
6880 * solib.h (set_solib_ops): Make the new_ops parameter const.
6881
68822013-05-21 Joel Brobecker <brobecker@adacore.com>
6883
6884 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6885 variable.
6886 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6887 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6888 (SYSTEM_GDBINIT_FILES): New variables.
6889 (all): Add stamp-system-gdbinit.
6890 (stamp-system-gdbinit): New rule.
6891 (clean-system-gdbinit, install-system-gdbinit)
6892 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6893 (install-only): Add dependency on install-system-gdbinit.
6894 (uninstall): Add dependency on uninstall-system-gdbinit.
6895 (clean): Add dependency on clean-system-gdbinit.
6896 * system-gdbinit/elinos.py: New file.
6897 * system-gdbinit/wrs-linux.py: New file.
6898
68992013-05-21 Joel Brobecker <brobecker@adacore.com>
6900
6901 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6902
69032013-05-21 Hui Zhu <hui@codesourcery.com>
6904
6905 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6906 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6907 * mi/mi-cmd-break.c (ctype.h): New include.
6908 (gdb_obstack.h): New include.
6909 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6910 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6911 (mi_cmd_dprintf_insert): New.
6912 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6913 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6914
69152013-05-20 Tom Tromey <tromey@redhat.com>
6916
6917 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6918
69192013-05-20 Tom Tromey <tromey@redhat.com>
6920
6921 * python/py-value.c (valpy_get_dynamic_type): Simplify
6922 dynamic_type assignment. Use Py_XINCREF.
6923
69242013-05-20 Tom Tromey <tromey@redhat.com>
6925
6926 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6927
69282013-05-20 Tom Tromey <tromey@redhat.com>
6929
6930 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6931 (gdbpy_selected_frame): Move object-construction code
6932 out of TRY_CATCH.
6933
69342013-05-20 Tom Tromey <tromey@redhat.com>
6935
6936 * python/py-arch.c (gdbpy_initialize_arch): Use
6937 gdb_pymodule_addobject.
6938 * python/py-block.c (gdbpy_initialize_blocks): Use
6939 gdb_pymodule_addobject.
6940 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6941 gdb_pymodule_addobject.
6942 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6943 gdb_pymodule_addobject.
6944 * python/py-event.c (gdbpy_initialize_event_generic): Use
6945 gdb_pymodule_addobject.
6946 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6947 gdb_pymodule_addobject.
6948 * python/py-evts.c (add_new_registry): Use
6949 gdb_pymodule_addobject.
6950 (gdbpy_initialize_py_events): Likewise.
6951 * python/py-finishbreakpoint.c
6952 (gdbpy_initialize_finishbreakpoints): Use
6953 gdb_pymodule_addobject.
6954 * python/py-frame.c (gdbpy_initialize_frames): Use
6955 gdb_pymodule_addobject.
6956 * python/py-function.c (gdbpy_initialize_functions): Use
6957 gdb_pymodule_addobject.
6958 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6959 gdb_pymodule_addobject.
6960 * python/py-infthread.c (gdbpy_initialize_thread): Use
6961 gdb_pymodule_addobject.
6962 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6963 gdb_pymodule_addobject.
6964 * python/py-param.c (gdbpy_initialize_parameters): Use
6965 gdb_pymodule_addobject.
6966 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6967 gdb_pymodule_addobject.
6968 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6969 gdb_pymodule_addobject.
6970 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6971 gdb_pymodule_addobject.
6972 * python/py-type.c (gdbpy_initialize_types): Use
6973 gdb_pymodule_addobject.
6974 * python/py-utils.c (gdb_pymodule_addobject): New function.
6975 * python/py-value.c (gdbpy_initialize_values): Use
6976 gdb_pymodule_addobject.
6977 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6978 * python/python.c (_initialize_python): Use
6979 gdb_pymodule_addobject.
6980
69812013-05-20 Tom Tromey <tromey@redhat.com>
6982
6983 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6984 * python/py-param.c (get_set_value, get_show_value): Use
6985 explicit decrefs.
6986 * python/python.c (start_type_printers, apply_type_printers):
6987 Use explicit decrefs.
6988
69892013-05-20 Tom Tromey <tromey@redhat.com>
6990
6991 * python/py-evts.c (gdbpy_initialize_py_events): Don't
6992 incref the module.
6993
69942013-05-20 Tom Tromey <tromey@redhat.com>
6995
6996 * python/python.c (gdbpy_run_events): Decref the result
6997 of PyObject_CallObject.
6998
69992013-05-20 Tom Tromey <tromey@redhat.com>
7000
7001 * python/py-symtab.c (set_sal): Use
7002 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7003 (symtab_and_line_to_sal_object): Update.
7004
70052013-05-20 Tom Tromey <tromey@redhat.com>
7006
7007 * python/py-param.c (compute_enum_values): Decref 'item'.
7008
70092013-05-20 Tom Tromey <tromey@redhat.com>
7010
7011 * mi/mi-main.c: Include python-internal.h.
7012 (mi_cmd_list_features): Check gdb_python_initialized.
7013 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7014 (python_inferior_exit, python_new_objfile, add_thread_object)
7015 (delete_thread_object, py_free_inferior): Check
7016 gdb_python_initialized.
7017 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7018 gdb_python_initialized.
7019 * python/py-type.c (save_objfile_types): Check
7020 gdb_python_initialized.
7021 * python/python-internal.h (gdb_python_initialized): Declare.
7022 * python/python.c (ensure_python_env): Throw exception if
7023 Python not initialized.
7024 (before_prompt_hook, source_python_script_for_objfile)
7025 (start_type_printers, apply_type_printers,
7026 free_type_printers): Check gdb_python_initialized.
7027 * varobj.c (varobj_get_display_hint)
7028 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7029 (install_new_value_visualizer, varobj_set_visualizer)
7030 (value_get_print_value): Check gdb_python_initialized.
7031
70322013-05-20 Tom Tromey <tromey@redhat.com>
7033
7034 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7035 Check errors.
7036 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7037 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7038 Check errors.
7039 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7040 Check errors.
7041 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7042 Check errors.
7043 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7044 Check errors.
7045 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7046 init function to return 'int'.
7047 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7048 Return 'int'. Check errors.
7049 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7050 Check errors.
7051 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7052 Return 'int'. Check errors.
7053 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7054 Check errors.
7055 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7056 Check errors.
7057 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7058 Check errors.
7059 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7060 Check errors.
7061 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7062 Check errors.
7063 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7064 Check errors.
7065 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7066 Check errors.
7067 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7068 Check errors.
7069 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7070 Check errors.
7071 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7072 Check errors.
7073 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7074 Check errors.
7075 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7076 Check errors.
7077 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7078 Check errors.
7079 * python/python-internal.h (gdbpy_initialize_auto_load,
7080 gdbpy_initialize_values, gdbpy_initialize_frames,
7081 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7082 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7083 gdbpy_initialize_blocks, gdbpy_initialize_types,
7084 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7085 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7086 gdbpy_initialize_finishbreakpoints,
7087 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7088 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7089 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7090 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7091 gdbpy_initialize_signal_event,
7092 gdbpy_initialize_breakpoint_event,
7093 gdbpy_initialize_continue_event,
7094 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7095 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7096 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7097 * python/python.c (gdb_python_initialized): New global.
7098 (gdbpy_initialize_events): Return 'int'. Check errors.
7099 (_initialize_python): Check errors. Set
7100 gdb_python_initialized.
7101
71022013-05-20 Tom Tromey <tromey@redhat.com>
7103
7104 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7105 Decref the reslut of PyObject_CallMethod.
7106
71072013-05-20 Tom Tromey <tromey@redhat.com>
7108
7109 * python/py-event.c (gdbpy_initialize_event_generic): Return
7110 early if PyType_Ready fails.
7111
71122013-05-20 Tom Tromey <tromey@redhat.com>
7113
7114 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7115 as 'default' in the switch.
7116
71172013-05-20 Tom Tromey <tromey@redhat.com>
7118
7119 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7120 get_addr_from_python calls out of TRY_CATCH.
7121 (infpy_write_memory, infpy_search_memory): Likewise.
7122 * python/py-utils.c (get_addr_from_python): Return negative
7123 value on error. Use TRY_CATCH.
7124 * python/python-internal.h (get_addr_from_python): Use
7125 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7126
71272013-05-20 Tom Tromey <tromey@redhat.com>
7128
7129 * python/py-event.c (evpy_emit_event): Decref the
7130 result of PyObject_CallFunctionObjArgs.
7131
71322013-05-20 Tom Tromey <tromey@redhat.com>
7133
7134 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7135 Correctly decref.
7136
71372013-05-20 Tom Tromey <tromey@redhat.com>
7138
7139 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7140
71412013-05-20 Tom Tromey <tromey@redhat.com>
7142
7143 * python/py-event.h (gdbpy_initialize_event_generic): Use
7144 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7145 * python/py-evts.c (add_new_registry): Use
7146 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7147 * python/python-internal.h
7148 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7149
71502013-05-20 Tom Tromey <tromey@redhat.com>
7151
7152 * python/py-arch.c (archpy_disassemble): Update.
7153 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7154 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7155 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7156 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7157 macro.
7158 (GDB_PY_HANDLE_EXCEPTION): Update.
7159 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7160
71612013-05-20 Tom Tromey <tromey@redhat.com>
7162
7163 * python/python-internal.h (events_object_type): Remove.
7164
71652013-05-20 Tom Tromey <tromey@redhat.com>
7166
7167 * python/py-event.h (evpy_emit_event): Use
7168 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7169 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7170 New macro.
7171
71722013-05-20 Tom Tromey <tromey@redhat.com>
7173
7174 * py-evtregistry.c (create_event_object): Decref
7175 eventregistry_object if PyList_New fails.
7176
71772013-05-20 Tom Tromey <tromey@redhat.com>
7178
7179 * py-cmd.c (gdbpy_string_to_argv): Check result of
7180 PyList_New.
7181
71822013-05-20 Tom Tromey <tromey@redhat.com>
7183
7184 * python/python.c (before_prompt_hook): Add cleanup to
7185 decref 'hook'.
7186
71872013-05-20 Tom Tromey <tromey@redhat.com>
7188
7189 * python/py-function.c (fnpy_init): Decref result of
7190 PyObject_GetAttrString.
7191
71922013-05-20 Tom Tromey <tromey@redhat.com>
7193
7194 * python/py-threadevent.c (get_event_thread): Use
7195 CPYCHECKER_RETURNS_BORROWED_REF.
7196 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7197 New define.
7198 (pspace_to_pspace_object, objfile_to_objfile_object)
7199 (find_thread_object): Use it.
7200
72012013-05-20 Tom Tromey <tromey@redhat.com>
7202
7203 * python/py-arch.c (arch_object_type): Use
7204 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7205 * python/py-block.c (block_syms_iterator_object_type):
7206 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7207 * python/py-bpevent.c (breakpoint_event_object_type):
7208 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7209 * python/py-cmd.c (cmdpy_object_type): Use
7210 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7211 * python/py-continueevent.c (continue_event_object_type):
7212 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7213 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7214 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7215 * python/py-events.h (thread_event_object_type):
7216 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7217 * python/py-evtregistry.c (eventregistry_object_type): Use
7218 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7219 * python/py-exitedevent.c (exited_event_object_type):
7220 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7221 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7222 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7223 * python/py-function.c (fnpy_object_type): Use
7224 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7225 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7226 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7227 * python/py-infthread.c (thread_object_type): Use
7228 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7229 * python/py-lazy-string.c (lazy_string_object_type):
7230 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7231 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7232 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7233 * python/py-objfile.c (objfile_object_type): Use
7234 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7235 * python/py-param.c (parmpy_object_type):
7236 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237 * python/py-progspace.c (pspace_object_type):
7238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7239 * python/py-signalevent.c (signal_event_object_type):
7240 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7241 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7242 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7243 * python/py-type.c (type_object_type, field_object_type)
7244 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7245 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7246 define.
7247 (value_object_type, block_object_type, symbol_object_type)
7248 (event_object_type, stop_event_object_type, breakpoint_object_type)
7249 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7250
72512013-05-20 Andreas Tobler <andreas@fgznet.ch>
7252
7253 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7254 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7255
72562013-05-20 Doug Evans <dje@google.com>
7257
7258 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7259 For Fission.
7260 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7261 reading_dwo_directly.
7262 (struct signatured_type): New member dwo_unit.
7263 (struct die_reader_specs): New member comp_dir.
7264 (create_signatured_type_table_from_index): Use malloc for
7265 all_type_units instead of objfile's obstack.
7266 (create_all_type_units): Ditto.
7267 (fill_in_sig_entry_from_dwo_entry): New function.
7268 (add_type_unit): New function.
7269 (lookup_dwo_signatured_type): New function.
7270 (lookup_dwp_signatured_type): New function.
7271 (lookup_signatured_type): New arg cu. All callers updated.
7272 (init_cu_die_reader): Initialize comp_dir.
7273 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7274 Change assert of matching type signatures to call error on mismatch.
7275 (lookup_dwo_unit): Add assert.
7276 (init_tu_and_read_dwo_dies): New function.
7277 (init_cutu_and_read_dies): Call it.
7278 (build_type_unit_groups): Handle case of no type unit groups created.
7279 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7280 (lookup_dwo_cutu): Tweak complaint.
7281 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7282 (dwarf2_per_objfile_free): Free all_type_units.
7283
72842013-05-20 Joel Brobecker <brobecker@adacore.com>
7285
7286 * windows-nat.c (handle_unload_dll): Add missing empty line.
7287
72882013-05-20 Joel Brobecker <brobecker@adacore.com>
7289
7290 * dwarf2read.c (prototyped_function_p): New function.
7291 (read_subroutine_type): Use it.
7292
72932013-05-20 Joel Brobecker <brobecker@adacore.com>
7294
7295 * rs6000-aix-tdep.c: De-indent some example code provided
7296 as a comment.
7297
72982013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7299
7300 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7301 region is ok for a hardware watchpoint using the new ptrace interface
7302 on Power servers.
7303
73042013-05-17 Doug Evans <dje@google.com>
7305
7306 * NEWS: Mention new maintenance commands check-symtabs, and
7307 expand-symtabs, and renamed check-psymtabs.
7308 * psymtab.c (maintenance_check_psymtabs): Renamed from
7309 maintenance_check_symtabs. Only process already-expanded symbol
7310 tables.
7311 (_initialize_psymtab): Update.
7312 * symmisc.c (maintenance_check_symtabs): New function.
7313 (maintenance_expand_name_matcher): New function
7314 (maintenance_expand_file_matcher): New function
7315 (maintenance_expand_symtabs): New function.
7316 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7317 commands.
7318
73192013-05-17 Tom Tromey <tromey@redhat.com>
7320
7321 * python/py-inferior.c (infpy_read_memory): Don't call
7322 PyErr_SetString if PyObject_New fails.
7323 * python/py-frame.c (frame_info_to_frame_object): Don't call
7324 PyErr_SetString if PyObject_New fails.
7325
73262013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7327
7328 * acinclude.m4: Add check for dlopen in libdl.
7329 * configure.ac: Ditto.
7330 * configure: Regenerate.
7331
73322013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7333
7334 * frame.c (frame_stash): Convert to htab.
7335 (frame_addr_hash): New function.
7336 (frame_addr_hash_eq): New function.
7337 (frame_stash_create): Convert function to create
7338 a hash table.
7339 (frame_stash_add): Convert function to add an entry to a hash
7340 table.
7341 (frame_stash_find): Convert function to search the hash table.
7342 (frame_stash_invalidate): Convert function to empty the hash
7343 table.
7344 (get_frame_id): Only add to stash if a frame_id is created.
7345 (_initialize_frame): Call frame_stash_create.
7346
73472013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7348
7349 * configure.ac: Ensure MIG is available when building for GNU Hurd
7350 hosts.
7351 * configure: Regenerate.
7352
73532013-05-16 Joel Brobecker <brobecker@adacore.com>
7354
7355 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7356
73572013-05-16 Joel Brobecker <brobecker@adacore.com>
7358
7359 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7360 all cleanups are done before returning from this function.
7361
73622013-05-15 Joel Brobecker <brobecker@adacore.com>
7363
7364 * utils.h: #include "exceptions.h".
7365 (enum errors): Remove partial declaration.
7366
73672013-05-15 Joel Brobecker <brobecker@adacore.com>
7368
7369 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7370 * gdbarch.h, gdbarch.c: Regenerate.
7371 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7372 handling.
7373
7374 * rs6000-aix-tdep.h: New file.
7375 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7376 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7377 "xml-utils.h".
7378 (struct field_info, struct ld_info_desc): New types.
7379 (ld_info32_desc, ld_info64_desc): New static constants.
7380 (struct ld_info): New type.
7381 (rs6000_aix_extract_ld_info): New function.
7382 (rs6000_aix_shared_library_to_xml): Likewise.
7383 (rs6000_aix_ld_info_to_xml): Likewise.
7384 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7385 (rs6000_aix_init_osabi): Add call to
7386 set_gdbarch_core_xfer_shared_libraries_aix.
7387 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7388 Remove "xml-utils.h" include.
7389 (LdInfo): Delete typedef.
7390 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7391 Delete macros.
7392 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7393 Adjust code accordingly.
7394 (rs6000_core_ldinfo): Delete, folded into
7395 rs6000_aix_core_xfer_shared_libraries_aix.
7396 (rs6000_xfer_shared_library): Delete.
7397 (rs6000_xfer_shared_libraries): Reimplement.
7398
73992013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7400
7401 * record.c (record_goto_cmdlist): New.
7402 (cmd_record_goto): Split into this ...
7403 (cmd_record_goto_begin): ... this
7404 (cmd_record_goto_end): ... and this.
7405 (_initialize_record): Change "record goto" to prefix command.
7406 Add commands for "record goto begin" and "record goto end".
7407 Add an alias for "record goto start" to "record goto begin".
7408
74092013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7410
7411 * linespec.c (convert_linespec_to_sals): New comment for
7412 SOURCE_FILENAME assignment.
7413
74142013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7415
7416 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7417 internal_warning.
7418
74192013-05-14 Tom Tromey <tromey@redhat.com>
7420
7421 * eval.c (parse_and_eval_long): Make 'exp' const.
7422 * value.h (parse_and_eval_long): Update.
7423
74242013-05-14 Tom Tromey <tromey@redhat.com>
7425
7426 * ui-file.c (gdb_fopen): Make arguments const.
7427 * ui-file.h (gdb_fopen): Make arguments const.
7428
74292013-05-14 Tom Tromey <tromey@redhat.com>
7430
7431 * remote.c (remote_set_trace_notes): Make arguments const.
7432 * target.c (update_current_target): Update cast.
7433 * target.h (to_set_trace_notes): Make arguments const.
7434
74352013-05-14 Tom Tromey <tromey@redhat.com>
7436
7437 * go32-nat.c (go32_terminal_info): Make 'args' const.
7438 * inferior.h (child_terminal_info): Update.
7439 * inflow.c (child_terminal_info): Make 'args' const.
7440 * target.c (default_terminal_info): Make 'args' const.
7441 (debug_to_terminal_save_ours): Likewise.
7442 * target.h (struct target_ops) <to_terminal_info>: Make argument
7443 const.
7444
74452013-05-13 Tom Tromey <tromey@redhat.com>
7446
7447 * gcore.c (create_gcore_bfd): Make 'filename' const.
7448 * gcore.h (create_gcore_bfd): Make 'filename' const.
7449 * record-full.c (record_full_save): Make 'recfilename' const.
7450 * target.c (target_save_record): Make 'filename' const.
7451 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7452 const.
7453 (target_save_record): Likewise.
7454
74552013-05-13 Tom Tromey <tromey@redhat.com>
7456
7457 PR gdb/15338:
7458 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7459 ranges section has been read.
7460
74612013-05-13 Tom Tromey <tromey@redhat.com>
7462
7463 PR exp/15364:
7464 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7465 STRUCTOP_PTR>: Return a not_lval value for
7466 EVAL_AVOID_SIDE_EFFECTS.
7467 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7468 for EVAL_AVOID_SIDE_EFFECTS.
7469
74702013-05-13 Joel Brobecker <brobecker@adacore.com>
7471
7472 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7473 floating point registers to register type before storing
7474 value.
7475 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7476 Likewise.
7477
74782013-05-10 Joel Brobecker <brobecker@adacore.com>
7479 Tom Tromey <tromey@redhat.com>
7480
7481 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7482 New functions.
7483 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7484 Declare.
7485 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7486 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7487 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7488 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7489
74902013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7491 Tom Tromey <tromey@redhat.com>
7492
7493 PR build/15414:
7494 * configure: Rebuild.
7495 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7496 with -Wno-format.
7497
74982013-05-10 Pedro Alves <palves@redhat.com>
7499
7500 * remote.c (_initialize_remote): Fix spelling of
7501 qXfer:traceframe-info:read packet in packet config command.
7502
75032013-05-10 David Taylor <dtaylor@emc.com>
7504
7505 PR remote/15455
7506
7507 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7508 "QTro" at start of packet.
7509
75102013-05-10 Joel Brobecker <brobecker@adacore.com>
7511
7512 * solib-aix.c (solib_aix_relocate_section_addresses):
7513 For the .bss section action, apply the same offset as
7514 the .data section.
7515
75162013-05-10 Joel Brobecker <brobecker@adacore.com>
7517
7518 * solib-aix.c (solib_aix_relocate_section_addresses):
7519 Remove FIXME comment.
7520
75212013-05-10 Joel Brobecker <brobecker@adacore.com>
7522
7523 PR tdep/15420:
7524 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7525 New functions, directly copied from sparc-sol-thread.c.
7526 * sparc-sol-thread.c: Delete.
7527 * configure.ac: Remove code handling sparc-solaris-thread.c.
7528 * configure: Regenerate.
7529
75302013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7531
7532 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7533 filter logic.
7534 (backtrace_command): Add "no-filters" option parsing.
7535 (_initialize_stack): Alter help to reflect "no-filters" option.
7536 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7537 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7538 (py-frame.o): Add target
7539 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7540 filter files.
7541 * python/python.h: Add new frame filter constants, and flag enum.
7542 (apply_frame_filter): Add definition.
7543 * python/python.c (apply_frame_filter): New non-Python
7544 enabled function.
7545 * python/py-utils.c (py_xdecref): New function.
7546 (make_cleanup_py_xdecref): Ditto.
7547 * python/py-objfile.c: Declare frame_filters dictionary.
7548 (objfpy_dealloc): Add frame_filters dealloc.
7549 (objfpy_new): Initialize frame_filters attribute.
7550 (objfile_to_objfile_object): Ditto.
7551 (objfpy_get_frame_filters): New function.
7552 (objfpy_set_frame_filters): New function.
7553 * python/py-progspace.c: Declare frame_filters dictionary.
7554 (pspy_dealloc): Add frame_filters dealloc.
7555 (pspy_new): Initialize frame_filters attribute.
7556 (pspacee_to_pspace_object): Ditto.
7557 (pspy_get_frame_filters): New function.
7558 (pspy_set_frame_filters): New function.
7559 * python/py-framefilter.c: New file.
7560 * python/lib/gdb/command/frame_filters.py: New file.
7561 * python/lib/gdb/frames.py: New file.
7562 * python/lib/gdb/__init__.py: Initialize global frame_filters
7563 dictionary
7564 * python/lib/gdb/FrameDecorator.py: New file.
7565 * python/lib/gdb/FrameIterator.py: New file.
7566 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7567 * mi/mi-cmds.h: Declare.
7568 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7569 --no-frame-filter logic, and Python frame filter logic.
7570 (stack_enable_frame_filters): New function.
7571 (parse_no_frame_option): Ditto.
7572 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7573 filter logic.
7574 (mi_cmd_stack_list_locals): Ditto.
7575 (mi_cmd_stack_list_args): Ditto.
7576 (mi_cmd_stack_list_variables): Ditto.
7577 * NEWS: Add frame filter note.
7578
75792013-05-09 Doug Evans <dje@google.com>
7580
7581 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7582 All callers updated.
7583 (syms_from_objfile): Ditto. Make static.
7584 (symbol_file_add_with_addrs): Renamed from
7585 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7586 num_offsets. All callers updated.
7587 * symfile.h (syms_from_objfile): Delete.
7588
7589 * symfile.c (decrement_reading_symtab): Add assert.
7590 (increment_reading_symtab): Ditto.
7591
75922013-05-09 Joel Brobecker <brobecker@adacore.com>
7593
7594 * source.c (forward_search_command): Replace call to getc
7595 by call to fgetc.
7596 (reverse_search_command): Likewise.
7597
75982013-05-08 Doug Evans <dje@google.com>
7599
7600 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7601 matching test.
7602
76032013-05-08 Joel Brobecker <brobecker@adacore.com>
7604
7605 * sol-thread.c (info_cb): Factorize the code a little.
7606
76072013-05-08 Joel Brobecker <brobecker@adacore.com>
7608
7609 * sol-thread.c (info_cb): Rework the output of the "maintenance
7610 info sol-threads" command a bit.
7611
76122013-05-08 Joel Brobecker <brobecker@adacore.com>
7613
7614 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7615 Replace ti.ti_startfunc by ti.ti_pc.
7616
76172013-05-08 Joel Brobecker <brobecker@adacore.com>
7618
7619 * solib-aix.c (solib_aix_free_library_list): New function
7620 for the case where HAVE_LIBEXPAT is not defined.
7621
76222013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7623
7624 PR breakpoints/15413:
7625 * breakpoint.c (condition_completer): Simplify the code to
7626 disconsider multiple locations of breakpoints when completing the
7627 "condition" command.
7628
76292013-05-07 Pierre Muller <muller@sourceware.org>
7630
7631 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7632 instead of <sys/wait.h>.
7633
76342013-05-07 Pierre Muller <muller@sourceware.org>
7635
7636 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7637 trailing new line from warning message.
7638
76392013-05-07 Pierre Muller <muller@sourceware.org>
7640
7641 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7642 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7643
76442013-05-07 Joel Brobecker <brobecker@adacore.com>
7645
7646 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7647 error message (ARI fix).
7648
76492013-05-07 Joel Brobecker <brobecker@adacore.com>
7650
7651 * features/library-list-aix.dtd: Replace library-list by
7652 library-list-aix.
7653 * rs6000-nat.c: Replace library-list by library-list-aix
7654 throughout.
7655 * solib-aix.c: Likewise.
7656
76572013-05-07 Joel Brobecker <brobecker@adacore.com>
7658
7659 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7660 Renames TARGET_OBJECT_AIX_LIBRARIES.
7661 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7662 TARGET_OBJECT_LIBRARIES_AIX throughout.
7663 * solib-aix.c: Likwise.
7664
76652013-05-07 Yao Qi <yao@codesourcery.com>
7666
7667 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7668 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7669
76702013-05-07 Yao Qi <yao@codesourcery.com>
7671
7672 * solib-dsbt.c (enable_break): Declare.
7673 (dsbt_current_sos): Remove call to enable_break2.
7674 (enable_break2): Rename to enable_break. Set solib breakpoint
7675 on '_dl_debug_state'.
7676 (enable_break): Remove.
7677
76782013-05-07 Luis Machado <lgustavo@codesourcery.com>
7679
7680 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7681 debug state prior to replicating existing hardware watchpoints or
7682 breakpoints.
7683
76842013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 * gcore.c (gcore_create_callback): Ignore sections with
7687 separate_debug_objfile_backlink != NULL.
7688
76892013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7690 Andrew Jenner <andrew@codesourcery.com>
7691 Chung-Lin Tang <cltang@codesourcery.com>
7692 Julian Brown <julian@codesourcery.com>
7693
7694 Based on the nios2-elf port from Altera Corporation.
7695
7696 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7697 nios2-linux-tdep.o.
7698 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7699 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7700 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7701 * nios2-tdep.h: New.
7702 * nios2-tdep.c: New.
7703 * nios2-linux-tdep.c: New.
7704 * features/Makefile (WHICH): Add nios2-linux.
7705 (nios2-linux-expedite): Set.
7706 * features/nios2-cpu.xml: New.
7707 * features/nios2.xml: New.
7708 * features/nios2-linux.xml: New.
7709 * features/nios2.c: New (autogenerated).
7710 * features/nios2-linux.c: New (autogenerated).
7711 * regformats/nios2-linux.dat: New (autogenerated).
7712 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7713 and commands.
7714
77152013-05-06 Doug Evans <dje@google.com>
7716
7717 * symfile.c: Whitespace cleanup.
7718
7719 * solist.h (struct target_so_ops): New member clear_so.
7720 * solib-svr4.c (svr4_clear_so): New function.
7721 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7722 * solib.c (clear_so): Renamed from free_so_symbols.
7723 All callers updated. Call target clear_so if it exists.
7724
77252013-05-06 Tom Tromey <tromey@redhat.com>
7726
7727 * ada-lang.c (ada_value_primitive_packed_val): Don't
7728 call value_incref.
7729 * value.c (set_value_parent): Incref the new parent and decref
7730 the old parent.
7731 (value_copy, value_primitive_field): Use set_value_parent.
7732
77332013-05-06 Tom Tromey <tromey@redhat.com>
7734
7735 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7736 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7737 if needed.
7738 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7739 * dwarf2read.c (write_constant_as_bytes)
7740 (dwarf2_fetch_constant_bytes): New functions.
7741
77422013-05-06 Tom Tromey <tromey@redhat.com>
7743
7744 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7745 parameters.
7746 (dwarf2_const_value_attr): Update.
7747
77482013-05-06 Tom Tromey <tromey@redhat.com>
7749
7750 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7751 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7752 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7753 Remove declaration.
7754
77552013-05-06 Tom Tromey <tromey@redhat.com>
7756
7757 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7758 objfile's obstack.
7759
77602013-05-06 Doug Evans <dje@google.com>
7761
7762 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7763 * stabsread.h (process_one_symbol): Update declaration.
7764 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7765 * elfread.c (elf_symfile_relocate_probe): Ditto.
7766 * psymtab.c (relocate_psymtabs): Ditto.
7767 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7768 (objfile_relocate): Ditto.
7769 * objfiles.h (objfile_relocate): Update declaration.
7770 * symfile.c (relative_addr_info_to_section_offsets): Constify
7771 addrs parameter.
7772 (default_symfile_offsets): Ditto.
7773 (syms_from_objfile_1): Constify offsets parameter.
7774 (syms_from_objfile): Ditto.
7775 (symbol_file_add_with_addrs_or_offsets): Ditto.
7776 (symfile_map_offsets_to_segments): Constify data parameter.
7777 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7778 delta parameters of member relocate.
7779 (struct sym_probe_fns): Constify new_offsets,
7780 delta parameters of member sym_relocate_probe.
7781 (struct sym_fns): Constify section_addr_info parameter of member
7782 sym_offsets.
7783 (relative_addr_info_to_section_offsets): Update declaration.
7784 (default_symfile_offsets): Ditto.
7785 (syms_from_objfile): Ditto.
7786 (symfile_map_offsets_to_segments): Ditto.
7787
7788 * symfile.c (syms_from_objfile_1): Use correct section count when
7789 objfile->sf == NULL.
7790
77912013-05-06 Mike Frysinger <vapier@gentoo.org>
7792
7793 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7794
77952013-05-06 Doug Evans <dje@google.com>
7796
7797 * psympriv.h (struct partial_symtab): Augment comment for member
7798 section_offsets.
7799
78002013-05-06 Joel Brobecker <brobecker@adacore.com>
7801
7802 Reimplement shared library support on ppc-aix...
7803 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7804 * features/library-list-aix.dtd: New file.
7805 * solib-aix.h, solib-aix.c: New file.
7806 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7807 (rs6000_find_toc_address_hook): Delete.
7808 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7809 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7810 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7811 "xml-utils.h".
7812 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7813 (vmap_symtab, fixup_breakpoints): Delete.
7814 (rs6000_xfer_shared_libraries): New function.
7815 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7816 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7817 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7818 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7819 (rs6000_xfer_shared_library): New function.
7820 (find_toc_address): Delete.
7821 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7822 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7823 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7824 before creating minimal symbol. Adjust function description
7825 accordingly.
7826 (scan_xcoff_symtab): Replace call to
7827 prim_record_minimal_symbol_and_info by call to
7828 record_minimal_symbol.
7829 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7830 around default_symfile_offsets.
7831 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7832 powerpc-aix targets.
7833 * config/rs6000/nm-rs6000.h: Delete.
7834 * config/powerpc/aix.mh (NAT_FILE): Delete.
7835 (NATDEPFILES): Remove xcoffsolib.o.
7836 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7837 (ALL_TARGET_OBS): Add solib-aix.o.
7838 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7839 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7840 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7841 * xcoffsolib.h, xcoffsolib.c: Delete.
7842
7843 * solib.c (reload_shared_libraries): Remove reference to
7844 SOLIB_CREATE_INFERIOR_HOOK.
7845 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7846 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7847 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7848 comment.
7849 * corelow.c (deprecated_core_resize_section_table): Delete.
7850 * exec.c: Remove include of xcoffsolib.h".
7851 (map_vmap, vmap): Delete.
7852 (exec_close_1): Remove references to vmap.
7853 (exec_file_attach): Remove vmap handling code, and reference
7854 to DEPRECATED_IBM6000_TARGET.
7855 (bfdsec_to_vmap): Delete.
7856 (exec_files_info): Remove block of code handling VMAP.
7857 * infcmd.c (post_create_inferior): Remove reference to
7858 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7859 * infrun.c (follow_exec): Remove reference to
7860 SOLIB_CREATE_INFERIOR_HOOK.
7861 * stack.c (print_frame): Remove reference to PC_SOLIB.
7862 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7863 (dsbt_relocate_main_executable): Likewise.
7864 * solib-frv.c (frv_current_sos): Likewise.
7865
78662013-05-06 Joel Brobecker <brobecker@adacore.com>
7867
7868 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7869 to target_write_memory and target_read_memory.
7870
78712013-05-06 Joel Brobecker <brobecker@adacore.com>
7872
7873 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7874 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7875
78762013-05-06 Joel Brobecker <brobecker@adacore.com>
7877
7878 * darwin-nat.c: Replace all "%x" instances in format strings
7879 into "0x%x" throughout.
7880
78812013-05-06 Joel Brobecker <brobecker@adacore.com>
7882
7883 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7884 gdb_assert by call to MACH_CHECK_ERROR.
7885 (darwin_attach_pid): Raise an error rather than a failed
7886 assertion when various system calls failed. Report a warning
7887 instead of raising a failed assertion when PREV_NOT is not NULL
7888 after call to mach_port_request_notification.
7889 (darwin_ptrace_me): Raise an error rather than a failed
7890 assertion when read returns nonzero.
7891
78922013-05-06 Joel Brobecker <brobecker@adacore.com>
7893
7894 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7895
78962013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7897
7898 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7899
79002013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7901
7902 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7903 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7904 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7905 a stale cleanup. Fix double free of NAME.
7906
79072013-05-04 Eli Zaretskii <eliz@gnu.org>
7908
7909 * windows-nat.c (windows_delete_thread): Accept an additional
7910 argument, the thread's exit code, and announce thread death when
7911 print_thread_events is non-zero and we are deleting a thread that
7912 is not the main thread.
7913 (get_windows_debug_event): Pass thread exit code to
7914 windows_delete_thread.
7915
79162013-05-03 Kevin Buettner <kevinb@redhat.com>
7917
7918 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7919 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7920 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7921 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7922 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7923 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7924 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7925 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7926 (gdbarch_tdep): New struct.
7927 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7928 E_NUM_REGS.
7929 (v850e3v5_register_name): New function.
7930 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7931 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7932 code handling the struct return conventions for the RH850 ABI.
7933 Update all callers.
7934 (v850_eight_byte_align_p): New function.
7935 (v850_push_call_dummy): Push structs by value, not by reference
7936 for the RH850 ABI. Add support for eight byte alignment.
7937 (v850_dbtrap_breakpoint_from_pc): New function.
7938 (v850_gdbarch_init): Add ABI detection code. Register
7939 v850e3v5_register_name for the v850e3v5 architecture. Set the
7940 number of registers for v850e3v5. Register
7941 v850_dbtrap_breakpoint_from_pc as appropriate.
7942 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7943
79442013-05-03 Doug Evans <dje@google.com>
7945
7946 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7947 of bfd_count_sections.
7948 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7949 * symfile.c (default_symfile_offsets): Ditto.
7950 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7951 one entry, not bfd_count_sections entries.
7952
79532013-05-03 Kevin Buettner <kevinb@redhat.com>
7954
7955 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7956 `save' and `restore' register groups. Don't include SPL
7957 or SPH in these groups.
7958 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7959 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7960 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7961 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7962 dwarf2_append_unwinders().
7963
79642013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7965
7966 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7967 ignore SIGINT and SIGTRAP in case these internal signals are
7968 caught explicitely.
7969
79702013-05-01 Joel Brobecker <brobecker@adacore.com>
7971
7972 * darwin-nat.c (darwin_read_write_inferior): Change types
7973 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7974 of copy_count to "mach_msg_type_number_t".
7975 (darwin_read_dyld_info): Change type of parameter
7976 rdaddr to "gdb_byte *".
7977
79782013-05-01 Joel Brobecker <brobecker@adacore.com>
7979
7980 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7981 of &info->load_map from "char *" to "gdb_byte *".
7982
79832013-05-01 Joel Brobecker <brobecker@adacore.com>
7984
7985 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7986 from "char *" to "gdb_byte *".
7987 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
7988
79892013-04-30 Doug Evans <dje@google.com>
7990
7991 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
7992 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
7993 DWO stub. If DWO isn't found, just use stub.
7994 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
7995
7996 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
7997 calling init_cutu_and_read_dies.
7998
79992013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8000
8001 * target-descriptions.c (maint_print_c_tdesc_cmd):
8002 Add case to parse structures as register types and
8003 bitfields.
8004
80052013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8006
8007 * MAINTAINERS (Write After Approval): Add myself to the list.
8008
80092013-04-30 Joel Brobecker <brobecker@adacore.com>
8010
8011 * sol-thread.c (rw_common): Change type of parameter "buf"
8012 to "gdb_byte *".
8013 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8014 rw_common to "gdb_byte *" instead of "char *".
8015
80162013-04-30 Joel Brobecker <brobecker@adacore.com>
8017
8018 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8019 of local variable msym to const struct bound_minimal_symbol.
8020 Adjust use accordingly.
8021 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8022
80232013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8024
8025 * i386gnu-nat.c (CREG_OFFSET): New macro.
8026 (creg_offset): New array.
8027 (CREG_ADDR): Use creg_offset instead of reg_offset.
8028
80292013-04-30 Joel Brobecker <brobecker@adacore.com>
8030
8031 * mep-tdep.c (mep_write_pc): Delete.
8032 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8033 Add call to set_gdbarch_pc_regnum.
8034
80352013-04-30 Joel Brobecker <brobecker@adacore.com>
8036
8037 * common/filestuff.c: Replace #include <dirent.h> by
8038 #include "gdb_dirent.h".
8039
80402013-04-30 Joel Brobecker <brobecker@adacore.com>
8041
8042 * common/filestuff.c: Replace #include <sys/stat.h> by
8043 #include "gdb_stat.h".
8044
80452013-04-29 Pierre Muller <muller@sourceware.org>
8046
8047 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8048 editCase function rule.
8049 (get_DW_AT_signature_type): Likewise.
8050
80512013-04-29 Joel Brobecker <brobecker@adacore.com>
8052
8053 * m32r-tdep.c (m32r_write_pc): Delete.
8054 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8055 Add call to set_gdbarch_pc_regnum.
8056
80572013-04-29 Pierre Muller <muller@sourceware.org>
8058
8059 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8060
80612013-04-29 Joel Brobecker <brobecker@adacore.com>
8062
8063 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8064
80652013-04-28 Yao Qi <yao@codesourcery.com>
8066
8067 * solib-dsbt.c (fetch_loadmap): Re-indent.
8068 (displacement_from_map, enable_break2): Likewise.
8069 (dsbt_relocate_section_addresses): Likewise.
8070
80712013-04-26 Joel Brobecker <brobecker@adacore.com>
8072
8073 GDB 7.6 released.
8074
80752013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8076
8077 PR corefiles/14983:
8078 * dwarf2read.c (process_full_comp_unit): Always create a static
8079 block.
8080
80812013-04-25 Hui Zhu <hui@codesourcery.com>
8082
8083 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8084 to loc->cmd_bytecode.
8085
80862013-04-24 Doug Evans <dje@google.com>
8087
8088 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8089
80902013-04-22 Keith Seitz <keiths@redhat.com>
8091
8092 * tracepoint.c (trace_save): Call the writer's start method.
8093
80942013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8095
8096 PR gdb/10462
8097 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8098 before argument.
8099
81002013-04-23 Tom Tromey <tromey@redhat.com>
8101
8102 * common/filestuff.c: Check USE_WIN32API before including
8103 sys/socket.h.
8104 (HAVE_F_GETFD): New define.
8105 (mark_cloexec): Check HAVE_F_GETFD.
8106 (gdb_open_cloexec): Change 'mode' to unsigned long.
8107 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8108 (gdb_pipe_cloexec): Check HAVE_PIPE.
8109 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8110 long.
8111
81122013-04-23 Hui Zhu <hui@codesourcery.com>
8113
8114 PR gdb/15293
8115 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8116
81172013-04-23 Hui Zhu <hui@codesourcery.com>
8118
8119 PR gdb/15165
8120 * breakpoint.c (dprintf_print_recreate): New.
8121 (save_breakpoints): Let it not save dprintf commands.
8122 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8123
81242013-04-22 Tom Tromey <tromey@redhat.com>
8125
8126 PR gdb/7912:
8127 * Makefile.in (SFILES): Add filestuff.c
8128 (COMMON_OBS): Add filestuff.o.
8129 (filestuff.o): New target.
8130 * auto-load.c (auto_load_objfile_script_1): Use
8131 gdb_fopen_cloexec.
8132 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8133 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8134 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8135 * common/agent.c (gdb_connect_sync_socket): Use
8136 gdb_socket_cloexec.
8137 * common/filestuff.c: New file.
8138 * common/filestuff.h: New file.
8139 * common/linux-osdata.c (linux_common_core_of_thread)
8140 (command_from_pid, commandline_from_pid, print_source_lines)
8141 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8142 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8143 gdb_fopen_cloexec.
8144 * common/linux-procfs.c (linux_proc_get_int)
8145 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8146 * config.in, configure: Rebuild.
8147 * configure.ac: Don't check for sys/socket.h. Check for
8148 fdwalk, pipe2.
8149 * corelow.c (core_open): Use gdb_open_cloexec.
8150 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8151 * fork-child.c (fork_inferior): Call close_most_fds.
8152 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8153 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8154 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8155 Use gdb_fopen_cloexec.
8156 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8157 gdb_open_cloexec.
8158 (linux_async_pipe): Use gdb_pipe_cloexec.
8159 * remote-fileio.c (remote_fileio_func_open): Use
8160 gdb_open_cloexec.
8161 * remote.c (remote_file_put, remote_file_get): Use
8162 gdb_fopen_cloexec.
8163 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8164 close_most_fds.
8165 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8166 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8167 * solib.c (solib_find): Use gdb_open_cloexec.
8168 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8169 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8170 (tfile_open): Use gdb_open_cloexec.
8171 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8172 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8173 * xml-support.c (xml_fetch_content_from_file): Use
8174 gdb_fopen_cloexec.
8175 * main.c (captured_main): Call notice_open_fds.
8176
81772013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8178
8179 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8180 'char *' to 'gdb_byte *'.
8181 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8182 'gdb_byte'.
8183
81842013-04-22 Yao Qi <yao@codesourcery.com>
8185
8186 * infrun.c: Fix typo in comment.
8187
81882013-04-22 Andrew Haley <aph@redhat.com>
8189
8190 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8191 instead of "long".
8192
81932013-04-20 Yao Qi <yao@codesourcery.com>
8194
8195 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8196 'char *' to 'gdb_byte *'. Cast the return value of
8197 'bt_ctf_get_char_array' to 'gdb_byte *'.
8198
81992013-04-19 Pedro Alves <palves@redhat.com>
8200
8201 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8202 -Wpointer-sign.
8203 * configure: Regenerate.
8204
82052013-04-19 Pedro Alves <palves@redhat.com>
8206
8207 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8208 'void *'.
8209
82102013-04-19 Pedro Alves <palves@redhat.com>
8211
8212 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8213 Change type of 'myaddr' parameter to gdb_byte pointer.
8214 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8215 to 'long long' pointer instead of to 'unsigned long long'.
8216 (monitor_write_memory_block, monitor_read_memory_single)
8217 (monitor_read_memory): Change type of 'myaddr' parameter to
8218 gdb_byte pointer.
8219
82202013-04-19 Pedro Alves <palves@redhat.com>
8221
8222 * record.c (validate_history_size): Make parameter 'setting'
8223 unsigned.
8224
82252013-04-19 Pedro Alves <palves@redhat.com>
8226
8227 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8228 to 'gdb_byte *'.
8229
82302013-04-19 Pedro Alves <palves@redhat.com>
8231
8232 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8233 local to int.
8234
82352013-04-19 Pedro Alves <palves@redhat.com>
8236
8237 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8238 * ada-tasks.c (read_fat_string_value): Likewise.
8239
82402013-04-19 Pedro Alves <palves@redhat.com>
8241
8242 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8243 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8244 'offset', and adjust.
8245
82462013-04-19 Pedro Alves <palves@redhat.com>
8247
8248 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8249 (read_index_from_section): Add cast to 'char *'.
8250
82512013-04-19 Pedro Alves <palves@redhat.com>
8252
8253 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8254
82552013-04-19 Pedro Alves <palves@redhat.com>
8256
8257 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8258
82592013-04-19 Pedro Alves <palves@redhat.com>
8260
8261 * record-full.c (record_full_get_bookmark): Change local 'ret'
8262 type to char * and add cast to gdb_byte *.
8263 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8264 string.
8265 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8266
82672013-04-19 Pedro Alves <palves@redhat.com>
8268
8269 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8270 * python/py-prettyprint.c (print_string_repr): Change type of
8271 'output' local to char *. Add cast to gdb_byte * in
8272 LA_PRINT_STRING call.
8273 (print_children): Change type of 'output' local to char *.
8274 * python/py-value.c (valpy_string): Add cast to const char * in
8275 PyUnicode_Decode call.
8276
82772013-04-19 Pedro Alves <palves@redhat.com>
8278
8279 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8280 and change its type to 'const char *'. Adjust.
8281 (mips_send_packet): Add cast to 'char *', and remove cast to
8282 'unsigned char *'.
8283 (mips_receive_packet): Remove cast to 'unsigned char *'.
8284 (mips_load_srec): Use bfd_byte.
8285 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8286 (pmon_checkset): Make 'value' parameter unsigned.
8287
82882013-04-19 Pedro Alves <palves@redhat.com>
8289
8290 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8291
82922013-04-19 Pedro Alves <palves@redhat.com>
8293
8294 * remote.c (remote_write_bytes_aux, compare_sections_command)
8295 (remote_read_qxfer)
8296 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8297 (remote_hostio_readlink, remote_bfd_iovec_pread)
8298 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8299 binary buffer, and char when buffer is used as string.
8300 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8301 (trace_save, tfile_open, traceframe_walk_blocks)
8302 (tfile_fetch_registers): Likewise.
8303
83042013-04-19 Pedro Alves <palves@redhat.com>
8305
8306 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8307 buffer and size_t size. Adjust.
8308 * ser-base.h (ser_base_write): Adjust.
8309 * ser-go32.c (cnts): Change type to size_t.
8310 (dos_write): Change prototype -- take 'void *'
8311 buffer and size_t size. Adjust.
8312 (dos_info): Print elements of 'cnts' as unsigned long.
8313 * serial.c (serial_write): Likewise.
8314 * serial.h (serial_write): Adjust.
8315 (struct serial_ops) <write>: Change prototype -- take 'void *'
8316 buffer and size_t size. Adjust.
8317
83182013-04-19 Pedro Alves <palves@redhat.com>
8319
8320 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8321 gdb_byte *.
8322 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8323
83242013-04-19 Pedro Alves <palves@redhat.com>
8325
8326 * alpha-tdep.c (alpha_extract_return_value): Use
8327 regcache_cooked_read_unsigned to read 'v0'.
8328
83292013-04-19 Pedro Alves <palves@redhat.com>
8330
8331 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8332 parameters 'at', 'as' and 'offset' to uint32_t.
8333
83342013-04-19 Pedro Alves <palves@redhat.com>
8335
8336 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8337 'is64' to signed 'int'.
8338
83392013-04-19 Pedro Alves <palves@redhat.com>
8340
8341 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8342 parameter to int *.
8343
83442013-04-19 Pedro Alves <palves@redhat.com>
8345
8346 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8347 'insnbuf' buffer type to unsigned int[].
8348
83492013-04-19 Pedro Alves <palves@redhat.com>
8350
8351 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8352
83532013-04-19 Pedro Alves <palves@redhat.com>
8354
8355 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8356 unsigned long *.
8357
83582013-04-19 Pedro Alves <palves@redhat.com>
8359
8360 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8361 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8362 UINT_MAX.
8363 * mips-tdep.c (heuristic_fence_post): Change type to int.
8364 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8365
83662013-04-19 Pedro Alves <palves@redhat.com>
8367
8368 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8369 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8370 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8371
83722013-04-19 Pedro Alves <palves@redhat.com>
8373
8374 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8375 it to get a string view of the byte buffer.
8376 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8377 type to gdb_byte *. Adjust.
8378 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8379 Change local to char *.
8380 * solib-darwin.c (find_program_interpreter): Change return type to
8381 char *. Adjust.
8382 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8383 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8384 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8385 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8386 * solib-svr4.c (find_program_interpreter): Change return type to
8387 char *. Adjust.
8388 (enable_break): Change local 'interp_name' to char *.
8389 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8390 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8391 (spu_pseudo_register_write_spu): Use char for string buffer.
8392 Adjust.
8393 (info_spu_event_command, info_spu_signal_command): Add casts to
8394 'char *'.
8395
83962013-04-19 Pedro Alves <palves@redhat.com>
8397
8398 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8399 gdb_byte[].
8400 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8401 * ada-lang.c (ada_value_assign): Use gdb_byte.
8402 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8403 (alphanbsd_sigtramp_offset): Use gdb_byte.
8404 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8405 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8406 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8407 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8408 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8409 * arm-tdep.c (arm_stub_unwind_sniffer)
8410 (arm_displaced_init_closure): Use gdb_byte.
8411 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8412 (arm_default_thumb_le_breakpoint)
8413 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8414 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8415 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8416 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8417 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8418 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8419 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8420 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8421 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8422 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8423 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8424 (cris_store_return_value, cris_extract_return_value): Use
8425 gdb_byte.
8426 (constraint): Change type of parameter to char * from signed
8427 char*. Use gdb_byte.
8428 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8429 of local buffer to gdb_byte *.
8430 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8431 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8432 (add_address_entry): Change type of local buffer to gdb_byte[].
8433 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8434 (frv_push_dummy_call): Use gdb_byte.
8435 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8436 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8437 (hppa_hpux_supply_save_state): Use gdb_byte.
8438 * hppa-tdep.c (hppa32_push_dummy_call)
8439 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8440 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8441 (slotN_contents, replace_slotN_contents): Change type of parameter
8442 to gdb_byte *.
8443 (fetch_instruction, ia64_pseudo_register_write)
8444 (ia64_register_to_value, ia64_value_to_register)
8445 (ia64_extract_return_value, ia64_store_return_value)
8446 (ia64_push_dummy_call): Use gdb_byte.
8447 * m32c-tdep.c (m32c_return_value): Remove cast.
8448 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8449 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8450 gdb_byte.
8451 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8452 * mn10300-tdep.c (mn10300_store_return_value)
8453 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8454 gdb_byte.
8455 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8456 (moxie_process_record): Remove casts.
8457 * ppc-ravenscar-thread.c (supply_register_at_address)
8458 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8459 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8460 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8461 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8462 * remote.c (compare_sections_command): Use gdb_byte.
8463 * score-tdep.c (score7_free_memblock): Change type of parameter to
8464 gdb_byte *.
8465 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8466 gdb_byte *. Use gdb_byte.
8467 (sh_push_dummy_call_fpu): Use gdb_byte.
8468 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8469 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8470 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8471 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8472 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8473 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8474 (sh64_store_return_value, sh64_register_convert_to_virtual):
8475 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8476 (sh64_pseudo_register_write): Use gdb_byte.
8477 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8478 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8479 buffer.
8480 (irix_current_sos): Use gdb_byte.
8481 * solib-som.c (som_current_sos): Use gdb_byte.
8482 * sparc-ravenscar-thread.c (supply_register_at_address)
8483 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8484 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8485 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8486 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8487 'gdb_byte *'.
8488 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8489 'gdb_byte *'.
8490 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8491 * xstormy16-tdep.c (xstormy16_extract_return_value)
8492 (xstormy16_store_return_value): Change parameter type to
8493 'gdb_byte *'. Adjust.
8494 (xstormy16_push_dummy_call): Use gdb_byte.
8495 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8496 (call0_analyze_prologue, execute_code): Use gdb_byte.
8497
84982013-04-19 Vladimir Kargov <kargov@gmail.com>
8499 Pedro Alves <palves@redhat.com>
8500
8501 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8502 value contents.
8503
85042013-04-17 Doug Evans <dje@google.com>
8505
8506 * dwarf2read.c (struct signatured_type): New member type.
8507 (struct attribute): Replace member signatured_type with signature.
8508 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8509 (read_call_site_scope): Call follow_die_ref instead of
8510 follow_die_ref_or_sig.
8511 (read_structure_type): Rewrite handling of signatured types.
8512 (read_enumeration_type): Ditto.
8513 (read_attribute_value): Update.
8514 (build_error_marker_type): New function.
8515 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8516 Don't call error for bad types, just build an error marker type.
8517 (dump_die_shallow): Update.
8518 (follow_die_sig_1): Renamed from follow_die_sig.
8519 Don't call error for bad types, instead return NULL.
8520 (follow_die_sig): New function.
8521 (get_signatured_type, get_DW_AT_signature_type): New functions.
8522
85232013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8524
8525 * aarch64-tdep.c (aarch64_write_pc): Removed.
8526 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8527 function.
8528
85292013-04-17 Yao Qi <yao@codesourcery.com>
8530
8531 * top.c (print_gdb_configuration): Print configure-time
8532 parameter on using libbabeltrace or not.
8533
85342013-04-16 Pedro Alves <palves@redhat.com>
8535
8536 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8537
85382013-04-16 Pedro Alves <palves@redhat.com>
8539
8540 * common/glibc_thread_db.h: Update from upstream glibc
8541 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8542
85432013-04-16 Pedro Alves <palves@redhat.com>
8544
8545 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8546 * common/glibc_thread_db.h: ... this new file ...
8547 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8548
85492013-04-16 Will Newton <will.newton@gmail.com>
8550 Pedro Alves <palves@redhat.com>
8551
8552 PR build/11881
8553
8554 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8555 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8556 HAVE_THREAD_DB_H.
8557
85582013-04-16 Pedro Alves <palves@redhat.com>
8559 Eli Zaretskii <eliz@gnu.org>
8560
8561 * NEWS: Mention "set foo unlimited".
8562
85632013-04-15 Doug Evans <dje@google.com>
8564
8565 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8566 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8567 (create_dwo_cu_reader): Renamed from
8568 create_dwo_debug_info_hash_table_reader.
8569 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8570 Remove support for multiple CUs in a DWO file.
8571 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8572
8573 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8574 instead of phex.
8575 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8576 (create_dwo_in_dwp): Ditto.
8577
85782013-04-15 Tom Tromey <tromey@redhat.com>
8579
8580 * NEWS: Move recent entries into "since 7.6" section.
8581
85822013-04-15 Tom Tromey <tromey@redhat.com>
8583
8584 PR c++/13588:
8585 * NEWS: Update.
8586 * break-catch-throw.c (struct exception_catchpoint)
8587 <exception_rx, pattern>: New fields.
8588 (fetch_probe_arguments, dtor_exception_catchpoint)
8589 (check_status_exception_catchpoint)
8590 (print_one_detail_exception_catchpoint): New functions.
8591 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8592 Compile regular expression if needed.
8593 (extract_exception_regexp): New function.
8594 (catch_exception_command_1): Use extract_exception_regexp.
8595 (compute_exception): Use fetch_probe_arguments.
8596 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8597 and check_status fields.
8598 * cp-abi.c (cplus_typename_from_type_info): New function.
8599 * cp-abi.h (cplus_typename_from_type_info): Declare.
8600 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8601 * gdb_regex.h (compile_rx_or_error): Declare.
8602 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8603 comment.
8604 (init_gnuv3_ops): Set get_type_from_type_info field.
8605 * probe.c (compile_rx_or_error): Move...
8606 * utils.c (compile_rx_or_error): ... here.
8607
86082013-04-15 Tom Tromey <tromey@redhat.com>
8609
8610 PR c++/15176:
8611 * NEWS: Update.
8612 * break-catch-throw.c (compute_exception): New function.
8613 (exception_funcs): New global.
8614 (_initialize_break_catch_throw): Create $_exception.
8615 * cp-abi.c (cplus_type_from_type_info): New function.
8616 * cp-abi.h (cplus_type_from_type_info): Declare.
8617 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8618 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8619 (gnuv3_get_type_from_type_info): New functions.
8620 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8621
86222013-04-15 Tom Tromey <tromey@redhat.com>
8623
8624 * break-catch-throw.c (struct exception_names): New.
8625 (exception_functions): Change type.
8626 (re_set_exception_catchpoint): Look for SDT probes.
8627
86282013-04-15 Tom Tromey <tromey@redhat.com>
8629
8630 PR c++/10119:
8631 * break-catch-throw.c (exception_functions): New global.
8632 (gnu_v3_exception_catchpoint_ops): Move earlier.
8633 (struct exception_catchpoint): New.
8634 (classify_exception_breakpoint): Rewrite.
8635 (re_set_exception_catchpoint): New function.
8636 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8637 Allocate a struct exception_catchpoint.
8638 (catch_exception_command_1): Update.
8639 (initialize_throw_catchpoint_ops): Set 're_set' method.
8640
86412013-04-15 Tom Tromey <tromey@redhat.com>
8642
8643 * Makefile.in (SFILES): Add break-catch-throw.c
8644 (COMMON_OBS): Add break-catch-throw.o.
8645 * break-catch-throw.c: New file.
8646 * breakpoint.c: Move exception-catching code to new file.
8647 (ep_parse_optional_if_clause): No longer static.
8648 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8649
86502013-04-15 Tom Tromey <tromey@redhat.com>
8651
8652 PR c++/9065:
8653 * NEWS: Update.
8654 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8655 * c-exp.y (TYPEID): New token.
8656 (exp): Add new TYPEID productions.
8657 (ident_tokens): Add "typeid".
8658 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8659 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8660 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8661 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8662 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8663 case.
8664 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8665 (build_std_type_info_type, gnuv3_get_typeid_type)
8666 (gnuv3_get_typeid): New functions.
8667 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8668 new fields on ABI object.
8669 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8670 * std-operator.def (OP_TYPEID): New.
8671
86722013-04-15 Tom Tromey <tromey@redhat.com>
8673
8674 * elfread.c (elf_symtab_read): Install versioned symbol under
8675 unversioned name as well.
8676
86772013-04-15 Tom Tromey <tromey@redhat.com>
8678
8679 PR c++/11990:
8680 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8681 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8682 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8683 (gdb_demangle): New function.
8684 * cp-support.h (gdb_demangle): Declare.
8685 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8686 (dwarf2_name): Use gdb_demangle.
8687 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8688 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8689 suffixes from name.
8690 (gnuv3_print_method_ptr): Use gdb_demangle.
8691 * jv-lang.c (java_demangle): Use gdb_demangle.
8692 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8693 * language.c (unk_lang_demangle): Use gdb_demangle.
8694 * symtab.c (symbol_find_demangled_name)
8695 (demangle_for_lookup): Use gdb_demangle.
8696
86972013-04-15 Tom Tromey <tromey@redhat.com>
8698
8699 PR c++/12824:
8700 * NEWS: Update.
8701 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8702 New constant.
8703 (classify_exception_breakpoint): New function.
8704 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8705 (print_mention_exception_catchpoint)
8706 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8707 (catch_exception_command_1): Handle "rethrow" catchpoint.
8708 (catch_rethrow_command): New function.
8709 (_initialize_breakpoint): Add "catch rethrow" command.
8710
87112013-04-15 Pierre Muller <muller@sourceware.org>
8712
8713 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8714 set_gdbarch_write_pc as deprecated anymore.
8715
87162013-04-15 Joel Brobecker <brobecker@adacore.com>
8717
8718 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8719 declarations.
8720
87212013-04-13 Yao Qi <yao@codesourcery.com>
8722
8723 * ctf.c (_initialize_ctf): Include "completer.h".
8724 Call add_target_with_completer instead of add_target.
8725
87262013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8727
8728 Fix GDB regression related to PR binutils/14813.
8729 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8730 * minidebug.c (lzma_close): Add return value comment.
8731 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8732 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8733 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8734
87352013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8736
8737 * config.in: Regenerate.
8738
87392013-04-12 Tom Tromey <tromey@redhat.com>
8740
8741 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8742 const.
8743 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8744 (struct die_reader_specs) <buffer>: Likewise.
8745 (die_reader_func_ftype): Make 'info_ptr' const.
8746 (struct line_header) <include_dirs, statement_program_start,
8747 statement_program_end>: Now const.
8748 (struct file_entry) <name>: Likewise.
8749 (struct partial_die_info) <sibling>: Likewise.
8750 (struct dwarf_block) <data>: Likewise.
8751 (dwarf2_read_section): Remove cast.
8752 (dwarf2_get_section_info): Make 'bufp' const.
8753 (read_index_from_section): Constify.
8754 (dw2_get_file_names_reader): Make 'info_ptr' const.
8755 (dw2_get_primary_filename_reader): Likewise.
8756 (read_comp_unit_head): Make 'info_ptr' and return type const.
8757 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8758 Likewise.
8759 (read_abbrev_offset): Constify.
8760 (dwarf2_create_include_psymtab): Make 'name' const.
8761 (create_debug_types_hash_table): Update.
8762 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8763 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8764 Constify.
8765 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8766 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8767 (read_comp_units_from_section): Constify.
8768 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8769 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8770 const.
8771 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8772 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8773 (create_dwp_hash_table, dwarf2_ranges_read)
8774 (dwarf2_record_block_ranges): Constify.
8775 (read_die_and_children, read_die_and_siblings_1)
8776 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8777 const.
8778 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8779 (abbrev_table_read_table): Constify.
8780 (load_partial_dies): Make 'info_ptr' const.
8781 (read_partial_die, read_attribute_value, read_attribute): Make
8782 'info_ptr' and return type const.
8783 (read_address, read_initial_length)
8784 (read_checked_initial_length_and_offset, read_offset)
8785 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8786 const.
8787 (read_direct_string): Make 'buf' and return type const.
8788 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8789 (read_indirect_string): Make return type const.
8790 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8791 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8792 'info_ptr' const.
8793 (read_str_index): Make return type const.
8794 (add_include_dir): Make 'include_dir' const.
8795 (add_file_name): Make 'name' const.
8796 (dwarf_decode_line_header): Constify.
8797 (psymtab_include_file_name): Make return type const.
8798 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8799 (dwarf2_start_subfile): Make 'filename' const.
8800 (dwarf2_const_value_attr): Make 'bytes' const.
8801 (read_signatured_type_reader): Make 'info_ptr' const.
8802 (decode_locdesc): Constify.
8803 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8804 const.
8805 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8806 'mac_end', and return type const.
8807 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8808 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8809 type const.
8810 (per_cu_header_read_in): Constify.
8811 * symfile.h (dwarf2_get_section_info): Update.
8812
88132013-04-12 Tom Tromey <tromey@redhat.com>
8814
8815 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8816
88172013-04-12 Eli Zaretskii <eliz@gnu.org>
8818
8819 * NEWS: Mention "show configuration", --configuration.
8820 * top.c (print_gdb_configuration): New function, displays the
8821 details about GDB configure-time parameters.
8822 (print_gdb_version): Mention "show configuration".
8823 * cli/cli-cmds.c (show_configuration): New function.
8824 (_initialize_cli_cmds): Add the "show configuration" command.
8825 * main.c (captured_main) <print_configuration>: New static var.
8826 <long_options>: Use it.
8827 If --configuration was given, call print_gdb_configuration.
8828
88292013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8830 Pedro Alves <palves@redhat.com>
8831
8832 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8833 (generated_files): Add gcore.
8834 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8835 HAVE_NATIVE_GCORE_HOST.
8836 (gcore): New.
8837 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8838 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8839 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8840 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8841 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8842 Add HAVE_NATIVE_GCORE_HOST.
8843 * configure: Regenerate.
8844 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8845 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8846 AC_CONFIG_FILES for gcore.
8847 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8848 gdb_have_gcore.
8849 * gdb_gcore.sh: Rename to ...
8850 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8851 and GCORE_TRANSFORM_NAME substitutions.
8852
8853 Fix parsing tabs in ${gdb_target_obs}.
8854 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8855
88562013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8857
8858 * remote.c (unpush_and_perror): Add output message final dot.
8859
88602013-04-11 Yao Qi <yao@codesourcery.com>
8861
8862 * tracepoint.c (tfile_interp_line): Fit parameters line and
8863 utpp in one line.
8864
88652013-04-10 Joel Brobecker <brobecker@adacore.com>
8866
8867 * solib.c (solib_map_sections): Remove code overwriting
8868 SO->SO_NAME with the bfd's filename.
8869
88702013-04-10 Pedro Alves <palves@redhat.com>
8871
8872 * cli/cli-decode.c (integer_unlimited_completer): New function.
8873 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8874 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8875 completer.
8876 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8877 (is_unlimited_literal): New function.
8878 (do_set_command): Handle literal "unlimited" arguments.
8879 * frame.c (_initialize_frame) <set backtrace limit>: Document
8880 "unlimited".
8881 * printcmd.c (_initialize_printcmd) <set print
8882 max-symbolic-offset>: Add help text.
8883 * record-full.c (_initialize_record_full) <set record full
8884 insn-number-max>: Likewise.
8885 * record.c (_initialize_record) <set record
8886 instruction-history-size, set record function-call-history-size>:
8887 Add help text.
8888 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8889 help text.
8890 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8891 Likewise.
8892 * source.c (_initialize_source) <set listsize>: Add help text.
8893 * utils.c (initialize_utils) <set height, set width>: Likewise.
8894 <set pagination>: Mention "set height unlimited".
8895 * valprint.c (_initialize_valprint) <set print elements, set print
8896 repeats>: Document "unlimited".
8897
88982013-04-10 Pedro Alves <palves@redhat.com>
8899
8900 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8901 instead of disconnect_tracing.
8902 * infcmd.c (detach_command, disconnect_command): Call
8903 query_if_trace_running. Adjust.
8904 * top.c: Include "tracepoint.h".
8905 (quit_target): Delete. Contents moved ...
8906 (quit_force): ... here. Wrap each stage of teardown in
8907 TRY_CATCH. Call disconnect_tracing before detaching.
8908
89092013-04-10 Hui Zhu <hui@codesourcery.com>
8910 Yao Qi <yao@codesourcery.com>
8911
8912 * configure.ac: Check libbabeltrace is installed.
8913 * config.in: Regenerate.
8914 * configure: Regenerate.
8915 * Makefile.in (LIBBABELTRACE): New.
8916 (CLIBS): Add LIBBABELTRACE.
8917 * ctf.c: Include "exec.h".
8918 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8919 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8920 (ctf_save_metadata_header): Define new type aliases in
8921 metadata.
8922 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8923 in metadata. Start a new faked packet for trace status.
8924 (ctf_write_status): Write trace status to CTF.
8925 (ctf_write_uploaded_tsv): Write TSV to CTF.
8926 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8927 (ctf_write_definition_end): End the faked packet.
8928
8929 (ctx, ctf_iter, trace_dirname): New.
8930 (start_pos): New variable.
8931 (ctf_destroy, ctf_open_dir, ctf_open): New.
8932 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8933 macros.
8934 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8935 (ctf_fetch_registers, ctf_xfer_partial): New.
8936 (ctf_get_trace_state_variable_value): New.
8937 (ctf_get_tpnum_from_frame_event): New.
8938 (ctf_get_traceframe_address): New.
8939 (ctf_trace_find, ctf_has_stack): New.
8940 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8941 (ctf_get_trace_status, ctf_read_status): New.
8942 (_initialize_ctf): New.
8943 * tracepoint.c (get_tracepoint_number): New
8944 (get_uploaded_tsv): Remove 'static'.
8945 (struct traceframe_info, trace_regblock_size): Move it to ...
8946 * tracepoint.h: ... here.
8947 (get_tracepoint_number): Declare it.
8948 (get_uploaded_tsv): Declare it.
8949
8950 * NEWS: Mention new configure option.
8951
89522013-04-10 Pedro Alves <palves@redhat.com>
8953 Hui Zhu <hui@codesourcery.com>
8954
8955 * breakpoint.c (dprintf_re_set): New.
8956 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8957 to dprintf_re_set.
8958
89592013-04-09 Joel Brobecker <brobecker@adacore.com>
8960
8961 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8962 Remove solib-svr4.o from the list.
8963
89642013-04-09 Joel Brobecker <brobecker@adacore.com>
8965
8966 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8967 Use gdb_assert_not_reached instead of invalid boolean expression.
8968
89692013-04-09 Pedro Alves <palves@redhat.com>
8970
8971 * remote.c (unpush_and_perror): New function.
8972 (readchar, remote_serial_write): Use it.
8973
89742013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8975
8976 * NEWS: Mention new btrace RSP packets.
8977
89782013-04-08 Tom Tromey <tromey@redhat.com>
8979
8980 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8981 long.
8982
89832013-04-08 Tom Tromey <tromey@redhat.com>
8984
8985 * maint.c (print_bfd_section_info): Print the section index.
8986 * symmisc.c (dump_msymbols): Print the section index.
8987
89882013-04-08 Tom Tromey <tromey@redhat.com>
8989
8990 PR symtab/8424:
8991 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
8992 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
8993 * breakpoint.c (resolve_sal_pc): Update.
8994 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8995 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
8996 (minsym_lookup_iterator_cb): Use it.
8997 (default_read_var_value): Update.
8998 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
8999 Update.
9000 * infcmd.c (jump_command): Update.
9001 * linespec.c (minsym_found): Update.
9002 * maint.c (maintenance_translate_address): Update.
9003 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9004 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9005 * parse.c (write_exp_msymbol): Update.
9006 * printcmd.c (address_info): Update.
9007 * psymtab.c (find_pc_sect_psymbol): Update.
9008 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9009 SYMBOL_OBJ_SECTION.
9010 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9011 Don't initialize SYMBOL_OBJ_SECTION.
9012 * spu-tdep.c (spu_catch_start): Update.
9013 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9014 * symmisc.c (dump_msymbols, print_symbol): Update.
9015 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9016 how fallback section is computed.
9017 (fixup_symbol_section): Update.
9018 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9019 Update.
9020 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9021 Initialize SYMBOL_SECTION.
9022 * symtab.h (struct general_symbol_info) <section>: Update comment.
9023 <obj_section>: Remove.
9024 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9025 (SYMBOL_OBJFILE): New macro.
9026
90272013-04-08 Tom Tromey <tromey@redhat.com>
9028
9029 * coffread.c (record_minimal_symbol): Update.
9030 * dbxread.c (record_minimal_symbol): Update.
9031 * elfread.c (record_minimal_symbol): Update.
9032 * machoread.c (macho_symtab_add_minsym): Update.
9033 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9034 Update.
9035 * minsyms.c (prim_record_minimal_symbol): Update.
9036 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9037 argument.
9038 (prim_record_minimal_symbol_and_info): Likewise.
9039 * minsyms.h (prim_record_minimal_symbol_full)
9040 (prim_record_minimal_symbol_and_info): Update.
9041 * symtab.c (allocate_symbol, initialize_symbol)
9042 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9043 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9044 Update.
9045
90462013-04-08 Tom Tromey <tromey@redhat.com>
9047
9048 PR symtab/8423:
9049 * solib-som.c (som_solib_section_offsets): Use BFD section
9050 indices. Set offsets for all sections.
9051 * somread.c (som_symtab_read): Compute BFD section for
9052 symbol. Use prim_record_minimal_symbol_and_info.
9053 (som_symfile_read): Fix comment.
9054 (struct find_section_offset_arg): New.
9055 (find_section_offset, set_section_index): New functions.
9056 (som_symfile_offsets): Use set_section_index to compute
9057 section indices.
9058
90592013-04-08 Tom Tromey <tromey@redhat.com>
9060
9061 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9062 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9063 gdb_bfd_section_index.
9064 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9065 New functions.
9066 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9067 Declare.
9068 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9069 Update.
9070 * objfiles.c (add_to_objfile_sections_full): New function.
9071 (add_to_objfile_sections): Use it.
9072 (build_section_table): Rewrite.
9073 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9074 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9075 (struct objfile) <sections>: Update comment.
9076 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9077 is NULL.
9078 (ALL_OBJSECTIONS): Use it.
9079 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9080 * solib-frv.c (frv_relocate_main_executable): Update.
9081 * solib-target.c (solib_target_relocate_section_addresses):
9082 Use gdb_bfd_section_index.
9083 * symfile.c (build_section_addr_info_from_section_table):
9084 Use gdb_bfd_section_index.
9085 (build_section_addr_info_from_bfd, place_section): Likewise.
9086 * symtab.c (fixup_section): Update.
9087 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9088
90892013-04-08 Tom Tromey <tromey@redhat.com>
9090
9091 * minsyms.h (struct bound_minimal_symbol): New.
9092 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9093 Remove objfile argument.
9094 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9095 Return bound_minimal_symbol.
9096 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9097 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9098 Return bound_minimal_symbol.
9099 (in_gnu_ifunc_stub): Update.
9100 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9101 Remove 'objfile_p' argument.
9102 (lookup_solib_trampoline_symbol_by_pc): Update.
9103 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9104 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9105 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9106 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9107 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9108 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9109 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9110 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9111 stack.c, symtab.c, tui/tui-disasm.c: Update.
9112
91132013-04-08 Tom Tromey <tromey@redhat.com>
9114
9115 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9116 Use symbol's obstack, not an objfile.
9117 * coffread.c (process_coff_symbol): Update.
9118 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9119 * jv-lang.c (add_class_symbol): Update.
9120 * mdebugread.c (new_symbol): Update.
9121 * minsyms.c (prim_record_minimal_symbol_full)
9122 (terminate_minimal_symbol_table): Update.
9123 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9124 * stabsread.c (define_symbol, read_enum_type): Update.
9125 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9126 Handle Ada specially.
9127 (symbol_set_language): Add 'obstack' argument.
9128 (symbol_set_names): Update.
9129 (symbol_natural_name, symbol_demangled_name): Always use
9130 ada_decode_symbol.
9131 * symtab.h (struct general_symbol_info)
9132 <language_specific::obstack>: New field.
9133 <ada_mangled>: New field.
9134 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9135 (symbol_set_language): Update.
9136
91372013-04-08 Tom Tromey <tromey@redhat.com>
9138
9139 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9140 Take an obstack, not an objfile.
9141 (symbol_set_names): Update.
9142 * symtab.h (symbol_set_demangled_name): Update.
9143
91442013-04-08 Tom Tromey <tromey@redhat.com>
9145
9146 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9147 allocate_symbol.
9148 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9149 (read_func_scope): Call allocate_template_symbol.
9150 (new_symbol_full): Call allocate_symbol.
9151 * jit.c (finalize_symtab): Call allocate_symbol.
9152 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9153 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9154 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9155 (common_block_end): Call allocate_symbol.
9156 * symtab.c (allocate_symbol, initialize_symbol)
9157 (allocate_template_symbol): New functions.
9158 * symtab.c (allocate_symbol, initialize_symbol)
9159 (allocate_template_symbol): Declare.
9160 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9161
91622013-04-08 Pedro Alves <palves@redhat.com>
9163 Keith Seitz <keiths@redhat.com>
9164
9165 * breakpoint.c (create_breakpoint): Rename
9166 "parse_condition_and_thread" parameter to "parse_arg". Update
9167 describing comment. If !PARSE_ARG, then error out if ARG is not
9168 the empty string after extracting the location.
9169 * breakpoint.h (create_breakpoint): Rename
9170 "parse_condition_and_thread" parameter to "parse_arg".
9171
91722013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9173
9174 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9175
91762013-04-07 Yao Qi <yao@codesourcery.com>
9177
9178 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9179 and 'addr2' to CORE_ADDR.
9180 * target.c (update_current_target): Update.
9181 * target.h (struct target_ops) <to_trace_find>: Change parameter
9182 type to CORE_ADDR.
9183 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9184 'addr2' to CORE_ADDR.
9185 (tfile_trace_find): Likewise.
9186 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9187 Change local variable 'addr' to type CORE_ADDR.
9188 * tracepoint.h (tfind_1): Update declaration.
9189
91902013-04-06 Eli Zaretskii <eliz@gnu.org>
9191
9192 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9193 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9194 Include main.h.
9195
9196 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9197 here...
9198 * main.h (windows_get_absolute_argv0): ...to here.
9199
92002013-04-05 Doug Evans <dje@google.com>
9201
9202 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9203 (read_cutu_die_from_dwo): Add comments.
9204 (read_structure_type): Update comment.
9205 (read_enumeration_type, read_namespace_type): Update comment.
9206 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9207
92082013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9209
9210 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9211 * Makefile.in (gdb.z): Remove.
9212 (install-only): Remove $(man1dir) and gdb.1 installation.
9213 * gdb.1: Remove.
9214
92152013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9216
9217 Fix compatibility with Linux kernel 3.8.3.
9218 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9219 to more inner block. Remove parsing of NUMBER from outer block.
9220 Parse NUMBER only if KEYWORD has been identified.
9221
92222013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9223
9224 Fix variable name shadowing.
9225 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9226 filename to mapsfilename and update its uses.
9227
92282013-04-05 Eli Zaretskii <eliz@gnu.org>
9229
9230 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9231 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9232 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9233 details of the problem.
9234
92352013-04-04 Pedro Alves <palves@redhat.com>
9236 Hui Zhu <hui@codesourcery.com>
9237
9238 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9239 tracepoint, reset its STEP_COUNT and call validate_actionline.
9240
92412013-04-03 Doug Evans <dje@google.com>
9242
9243 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9244 read_die_and_siblings.
9245 (read_die_and_siblings): New function.
9246 (read_cutu_die_from_dwo): Dump die if requested.
9247 (read_die_and_children): Call read_full_die_1 and
9248 read_die_and_siblings_1.
9249 (read_full_die): Dump die if requested.
9250
9251 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9252
9253 * dwarf2read.c (struct dwo_file): New member comp_dir.
9254 Rename member name to dwo_name. All uses updated.
9255 (hash_dwo_file): Include comp_dir in computation.
9256 (eq_dwo_file): Ditto.
9257 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9258 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9259
9260 * psymtab.c (read_psymtabs_with_fullname): Don't call
9261 psymtab_to_fullname if the basenames are different.
9262
92632013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9264
9265 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9266 New entry about "fullname" presence.
9267
92682013-04-03 Pedro Alves <palves@redhat.com>
9269
9270 * NEWS: Mention x86_64/Cygwin as new native configuration.
9271
92722013-04-02 Doug Evans <dje@google.com>
9273
9274 * dwarf2read.c (read_structure_type): Fix typo in comment.
9275
92762013-04-02 Pedro Alves <palves@redhat.com>
9277
9278 * NEWS: Mention "set/show debug aarch64", "set/show debug
9279 coff-pe-read" and "set/show debug mach-o".
9280
92812013-04-02 Pedro Alves <palves@redhat.com>
9282
9283 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9284
92852013-04-02 Eli Zaretskii <eliz@gnu.org>
9286
9287 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9288 gdb_string.h is now in common/.
9289
92902013-04-02 Pedro Alves <palves@redhat.com>
9291
9292 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9293 under "New options".
9294
92952013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 Revert this patch:
9298 PR gdb/15275
9299 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9300
93012013-04-02 Pedro Alves <palves@redhat.com>
9302
9303 PR gdb/15275
9304
9305 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9306 (remote_serial_write): New function.
9307 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9308
93092013-04-01 Jiong Wang <jiwang@tilera.com>
9310
9311 * NEWS: Mention TILE-Gx in "New native configurations" and
9312 "New targets" sections.
9313
93142013-04-01 Doug Evans <dje@google.com>
9315
9316 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9317 (process_enumeration_scope): Simplify.
9318
9319 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9320 type_unit_group ...
9321 (struct signatured_type): ... to here.
9322 (sig_type_ptr): New typedef.
9323 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9324 out of union 't'. All uses updated.
9325 (dw2_get_file_names_reader): Assert not called for a type unit.
9326 (dw2_get_file_names): Assert not called for a type unit or type
9327 unit group.
9328 (build_type_psymtabs_reader): Assert called for a type unit.
9329 (build_type_psymtab_dependencies): Assert called for a type unit group.
9330
9331 * dwarf2read.c (free_dwo_file): Add comment.
9332 (dwarf2_per_objfile_free): Unref dwp bfd.
9333
93342013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9335
9336 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9337 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9338 (read_pe_exported_syms): Remove unused 'exportix'.
9339 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9340 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9341 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9342
93432013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9344
9345 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9346 (print_it_watchpoint): Remove unused 'bl'.
9347 (say_where): Remove unused 'uiout'.
9348 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9349 (bkpt_breakpoint_hit): Remove unused 'b'.
9350 (internal_bkpt_print_it): Remove unused 'uiout'.
9351 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9352
93532013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9354
9355 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9356 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9357
93582013-03-29 Doug Evans <dje@google.com>
9359
9360 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9361 Delete arg is_dwp. All callers updated.
9362 (open_dwp_file): New function.
9363 (open_and_init_dwp_file): Call it.
9364 (get_dwp_file): New function.
9365 (lookup_dwo_cutu): Call it.
9366
9367 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9368 unnecessary, cleanup.
9369
9370 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9371
9372 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9373 (lookup_dwo_unit): New function.
9374 (init_cutu_and_read_dies): Move DWO handling to new functions.
9375
9376 * dwarf2read.c (struct signatured_type): Tweak comment.
9377 (struct dwo_unit): Tweak comment.
9378 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9379 (create_dwo_debug_info_hash_table): Tweak comment.
9380 (dwarf2_per_cu_offset_and_type): Tweak comment.
9381
9382 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9383 missing .debug_types section.
9384
93852013-03-29 Yao Qi <yao@codesourcery.com>
9386
9387 * corelow.c: Include "completer.h".
9388 (_initialize_corelow): Call add_target_with_completer with
9389 argument 'filename_completer'.
9390 * tracepoint.c: Likewise.
9391 * exec.c (_initialize_exec): Likewise.
9392 * target.c (add_target): Rename to ...
9393 (add_target_with_completer): ... this. Call set_cmd_completer
9394 if parameter completer is not NULL.
9395 (add_target): New.
9396 * target.h: Include "command.h".
9397 (add_target_with_completer): Declare it.
9398
93992013-03-28 Joel Brobecker <brobecker@adacore.com>
9400
9401 * coffread.c (is_import_fixup_symbol): New function.
9402 (record_minimal_symbol): Use is_import_fixup_symbol to
9403 detect import fixup symbols, and discard them.
9404
94052013-03-28 Doug Evans <dje@google.com>
9406
9407 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9408 types hash table until we know we need it.
9409
9410 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9411 index numbers.
9412
9413 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9414 All callers updated.
9415 (dw2_print_stats): Print #read CUs too.
9416 (dump_die_shallow): Print signatured types better.
9417
9418 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9419 info_or_types_section to section. All uses updated.
9420 (struct dwo_unit): Ditto.
9421
94222013-03-28 Pedro Alves <palves@redhat.com>
9423
9424 * NEWS (New options): New section.
9425 (New options): Mention set/show remote trace-status-packet.
9426 * remote.c (PACKET_qTStatus): New enumeration value.
9427 (remote_get_trace_status): Skip sending qTStatus if the packet is
9428 disabled. Use packet_ok.
9429 (_initialize_remote): Register a configuration command for
9430 qTStatus packet.
9431
94322013-03-28 Doug Evans <dje@google.com>
9433
9434 * symfile.c (find_separate_debug_file): Add comment.
9435 (terminate_after_last_dir_separator): Tweak comment.
9436
9437 * dwarf2read.c (create_partial_symtab): Add forward decl.
9438 (create_partial_symtab): Move to be closer to other psymtab functions.
9439 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9440
9441 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9442 (compute_symtab_includes): Remove unnecessary forward declaration.
9443 (die_needs_namespace): Add comment marking group of functions for
9444 dwarf2 name computation.
9445
9446 * typeprint.c (_initialize_typeprint): Improve type help text.
9447
9448 * python/python.c (finish_python_initialization): Provide suggestion
9449 for how to tell gdb to find its python files.
9450
94512013-03-28 Pedro Alves <palves@redhat.com>
9452
9453 PR gdb/15294
9454
9455 * source.c (_initialize_source): Change back "set listsize" to an
9456 integer command.
9457
94582013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9459
9460 PR gdb/15275
9461 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9462
94632013-03-27 Pedro Alves <palves@redhat.com>
9464
9465 * top.c (history_size): Rename to ...
9466 (history_size_setshow_var): ... this. Add comment.
9467 (show_commands): Use readline's 'history_length' instead of
9468 computing the history length by calling history_get in a loop.
9469 (set_history_size_command): Error out for sizes over INT_MAX.
9470 Restore previous history size on invalid size.
9471 (init_history): If HISTSIZE is negative, leave the history size as
9472 zero. Add comments.
9473 (init_main): Adjust.
9474
94752013-03-27 Pedro Alves <palves@redhat.com>
9476
9477 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9478 coff_pe_read" command to "set debug coff-pe-read".
9479
94802013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9481
9482 * record.c (command_size_to_target_size): Fix size comparison.
9483 Change parameter type from pointer to integer to integer.
9484 Update all users.
9485
94862013-03-27 Pierre Muller <muller@sourceware.org>
9487
9488 * windows-nat.c (handle_output_debug_string): Avoid typecast
9489 from integer of different size warning.
9490
94912013-03-26 Joel Brobecker <brobecker@adacore.com>
9492
9493 * windows-nat.c (handle_output_debug_string): Add empty line
9494 after local block variable definition.
9495
94962013-03-26 Pedro Alves <palves@redhat.com>
9497
9498 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9499 (net_open): Make 'polls' local unsigned.
9500
95012013-03-26 Pedro Alves <palves@redhat.com>
9502
9503 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9504 a zuinteger command instead of uinteger.
9505
95062013-03-26 Pedro Alves <palves@redhat.com>
9507
9508 * record-full.c (record_full_insn_num): Make it unsigned.
9509 (record_full_check_insn_num, record_full_message)
9510 (record_full_registers_change, record_full_xfer_partial): Remove
9511 record_full_insn_max_num check (it's always != 0).
9512 (record_full_info, record_full_restore): Use %u as format string.
9513 (): Use %u as format string.
9514 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9515 check (it's always != 0).
9516
95172013-03-26 Pedro Alves <palves@redhat.com>
9518
9519 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9520 and "set dcache size" commands zuinteger instead of uinteger.
9521
95222013-03-26 Pedro Alves <palves@redhat.com>
9523
9524 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9525 command zuinteger instead of uinteger.
9526
95272013-03-26 Pedro Alves <palves@redhat.com>
9528
9529 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9530 zuinteger instead of uinteger.
9531
95322013-03-26 Pedro Alves <palves@redhat.com>
9533
9534 * record.c (record_insn_history_size_setshow_var)
9535 (record_call_history_size_setshow_var): New globals.
9536 (command_size_to_target_size): New function.
9537 (cmd_record_insn_history, cmd_record_call_history): Use
9538 command_size_to_target_size instead of cast.
9539 (validate_history_size, set_record_insn_history_size)
9540 (set_record_call_history_size): New functions.
9541 (_initialize_record): Install set_record_insn_history_size and
9542 set_record_call_history_size as "set" hooks of "set record
9543 instruction-history-size" and "set record
9544 function-call-history-size".
9545
95462013-03-26 Pedro Alves <palves@redhat.com>
9547
9548 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9549 use with history_max_entries use. Remove FIXME note.
9550
95512013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9552
9553 * record-btrace.c (record_btrace_close): Call
9554 record_btrace_auto_disable.
9555
95562013-03-25 Joel Brobecker <brobecker@adacore.com>
9557
9558 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9559
95602013-03-25 Doug Evans <dje@google.com>
9561
9562 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9563
95642013-03-25 Tom Tromey <tromey@redhat.com>
9565
9566 PR symtab/11462:
9567 * c-exp.y (exp): Add new productions for destructors after '.' and
9568 '->'.
9569 (write_destructor_name): New function.
9570
95712013-03-25 Tom Tromey <tromey@redhat.com>
9572
9573 PR c++/9197:
9574 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9575 value_struct_elt, not lookup_struct_elt_type.
9576 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9577 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9578 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9579
95802013-03-25 Yao Qi <yao@codesourcery.com>
9581
9582 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9583 instead of '_mkdir'.
9584
95852013-03-23 Eli Zaretskii <eliz@gnu.org>
9586
9587 * windows-nat.c (windows_get_absolute_argv0): New function.
9588 * windows-nat.h: Add its prototype.
9589
9590 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9591 Use IS_DIR_SEPARATOR instead of looking for a character inside
9592 SLASH_STRING. Include filenames.h.
9593 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9594 relocate_gdb_directory works when passed gdb_program_name.
9595 Include windows-nat.h.
9596
95972013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9598
9599 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9600 * remote.c (trace_error): Remove the special handling of '2'.
9601 (readchar) <SERIAL_EOF>
9602 (readchar) <SERIAL_ERROR>
9603 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9604 (remote_get_trace_status): Call throw_exception if EX is
9605 TARGET_CLOSE_ERROR.
9606 * utils.c (perror_with_name): Rename to ...
9607 (throw_perror_with_name): ... here. New parameter errcode, describe it
9608 in the function comment.
9609 (perror_with_name): New function wrapper.
9610 * utils.h (enum errors): New stub declaration.
9611 (throw_perror_with_name): New declaration.
9612
96132013-03-22 Pedro Alves <palves@redhat.com>
9614 Yao Qi <yao@codesourcery.com>
9615 Mark Kettenis <kettenis@gnu.org>
9616
9617 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9618 Don't let the user set the value to UINT_MAX directly.
9619 <var_integer>: Don't let the user set the value to INT_MAX
9620 directly.
9621
96222013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9623
9624 * remote.c (remote_unpush_target): New function.
9625 (remote_open_1): Remove two pop_target calls, update one comment, add
9626 comment to target_preopen call. Replace pop_target call by
9627 remote_unpush_target call.
9628 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9629 pop_target calls by remote_unpush_target calls.
9630
96312013-03-22 Pedro Alves <palves@redhat.com>
9632
9633 * linux-nat.c (linux_child_follow_fork): Don't call
9634 linux_enable_event_reporting.
9635 (linux_handle_extended_wait): Don't call
9636 linux_enable_event_reporting.
9637
96382013-03-22 Pedro Alves <palves@redhat.com>
9639
9640 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9641 use it to rewrite the trampoline buffers with type gdb_byte[], and
9642 undefine the macro. Remove char* cast.
9643
96442013-03-21 Doug Evans <dje@google.com>
9645
9646 New commands "mt set per-command {space,time,symtab} {on,off}".
9647 * NEWS: Add entry.
9648 * event-top.c: #include "maint.h".
9649 * main.c: #include "maint.h".
9650 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9651 timeval-utils.h, maint.h, cli/cli-setshow.h.
9652 (per_command_time, per_command_space): New static globals.
9653 (per_command_symtab): New static global.
9654 (per_command_setlist, per_command_showlist): New static globals.
9655 (struct cmd_stats): Move here from utils.c.
9656 (set_per_command_time): Renamed from set_display_time in utils.c
9657 and moved here. All callers updated.
9658 (set_per_command_space): Renamed from set_display_space in utils.c
9659 and moved here. All callers updated.
9660 (count_symtabs_and_blocks): New function.
9661 (report_command_stats): Moved here from utils.c. Add support for
9662 printing symtab stats. Only print data if enabled before command
9663 executed.
9664 (make_command_stats_cleanup): Ditto.
9665 (sert_per_command_cmd, show_per_command_cmd): New functions.
9666 (_initialize_maint_cmds): Add new commands
9667 mt set per-command {space,time,symtab} {on,off}.
9668 * maint.h: New file.
9669 * top.c: #include "maint.h".
9670 * utils.c (reset_prompt_for_continue_wait_time): New function.
9671 (get_prompt_for_continue_wait_time): New function.
9672 * utils.h (reset_prompt_for_continue_wait_time): Declare
9673 (get_prompt_for_continue_wait_time): Declare.
9674 (make_command_stats_cleanup): Moved to maint.h.
9675 (set_display_time, set_display_space): Moved to maint.h and renamed
9676 to set_per_command_time, set_per_command_space.
9677 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9678 parse_binary_operation and made non-static. Don't call error,
9679 just return an error marker. All callers updated.
9680 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9681
96822013-03-21 Tom Tromey <tromey@redhat.com>
9683
9684 * symfile.c (alloc_section_addr_info): Update header. Don't set
9685 'num_sections' field.
9686 (build_section_addr_info_from_section_table): Set 'num_sections'.
9687 (build_section_addr_info_from_bfd): Likewise.
9688 (build_section_addr_info_from_objfile): Remove dead loop
9689 condition.
9690 (free_section_addr_info): Unconditionally call xfree.
9691 (relative_addr_info_to_section_offsets, addrs_section_sort)
9692 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9693 condition.
9694 (syms_from_objfile_1): Remove dead 'if' condition. Check
9695 'num_sections'.
9696 (add_symbol_file_command): Set 'num_sections'.
9697 * symfile-mem.c (symbol_file_add_from_memory): Set
9698 'num_sections'.
9699 * somread.c (som_symfile_offsets): Remove dead loop condition.
9700 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9701 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9702
97032013-03-21 Tom Tromey <tromey@redhat.com>
9704
9705 * tracepoint.h (decode_agent_options): Add 'trace_string'
9706 argument.
9707 * tracepoint.c (decode_agent_options): Add 'trace_string'
9708 argument.
9709 (validate_actionline): Update.
9710 (collect_symbol): Add 'trace_string' argument.
9711 (struct add_local_symbols_data) <trace_string>: New field.
9712 (do_collect_symbol): Update.
9713 (add_local_symbols): Add 'trace_string' argument.
9714 (encode_actions_1): Update.
9715 (trace_dump_actions): Update.
9716 * dwarf2loc.c (access_memory): Update.
9717 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9718 * ax-general.c (new_agent_expr): Update.
9719 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9720 (gen_trace_for_return_address): Add argument.
9721 (trace_kludge, trace_string_kludge): Remove.
9722 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9723 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9724 (gen_trace_for_var): Add 'trace_string' argument.
9725 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9726 (gen_printf, agent_eval_command_one): Update.
9727
97282013-03-21 Tom Tromey <tromey@redhat.com>
9729
9730 PR exp/15109:
9731 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9732 Handle FILENAME token.
9733
97342013-03-21 Tom Tromey <tromey@redhat.com>
9735
9736 * c-exp.y (YYPRINT): Define.
9737 (c_print_token): New function.
9738
97392013-03-21 Tom Tromey <tromey@redhat.com>
9740
9741 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9742
97432013-03-21 Yao Qi <yao@codesourcery.com>
9744
9745 * ctf.c: Include "gdb_stat.h".
9746 [USE_WIN32API]: New macro 'mkdir'.
9747 (ctf_start): Use permission bits macros if they are defined.
9748
97492013-03-20 Keith Seitz <keiths@redhat.com>
9750
9751 * breakpoint.h (struct breakpoint): Add comment to
9752 extra_string indicating that this member is mallod'd.
9753 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9754
97552013-03-20 Pedro Alves <palves@redhat.com>
9756
9757 PR gdb/15289
9758
9759 * cli/cli-setshow.c (do_set_command)
9760 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9761 the result of parsing the command argument. Throw error if the
9762 value is greater than UINT_MAX. Print the invalid value with
9763 plongest.
9764 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9765 result of parsing the command argument. Throw error if the value
9766 is greater than INT_MAX, not greater or equal. Also throw error
9767 if the value is less than INT_MIN. Print the invalid value with
9768 plongest.
9769 <var_zuinteger_unlimited>: Throw error if the value is greater
9770 than INT_MAX, not greater or equal.
9771 (do_show_command) <var_integer, var_zinteger,
9772 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9773
97742013-03-20 Tom Tromey <tromey@redhat.com>
9775
9776 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9777 if possible.
9778 * dwarf2read.c (read_func_scope): Remove old FIXME.
9779 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9780 not LOC_COMPUTED.
9781 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9782 Unconditionally call via computed ops, if possible.
9783 * printcmd.c (address_info): Unconditionally call via computed ops,
9784 if possible.
9785 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9786 if possible.
9787 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9788 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9789 if possible.
9790
97912013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9792 Tom Tromey <tromey@redhat.com>
9793
9794 PR symtab/8421:
9795 * coffread.c (coff_register_index): New global.
9796 (process_coff_symbol, coff_read_enum_type): Set
9797 SYMBOL_ACLASS_INDEX.
9798 (_initialize_coffread): Initialize new global.
9799 * dwarf2loc.c (locexpr_find_frame_base_location)
9800 (dwarf2_block_frame_base_locexpr_funcs)
9801 (loclist_find_frame_base_location)
9802 (dwarf2_block_frame_base_loclist_funcs): New.
9803 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9804 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9805 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9806 (dwarf2_block_frame_base_loclist_funcs): New.
9807 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9808 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9809 globals.
9810 (read_func_scope): Update.
9811 (fixup_go_packaging, mark_common_block_symbol_computed)
9812 (var_decode_location, new_symbol_full, dwarf2_const_value):
9813 Set SYMBOL_ACLASS_INDEX.
9814 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9815 (_initialize_dwarf2_read): Initialize new globals.
9816 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9817 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9818 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9819 globals.
9820 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9821 (_initialize_mdebugread): Initialize new globals.
9822 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9823 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9824 (stab_register_index, stab_regparm_index): New globals.
9825 (define_symbol, read_enum_type, common_block_end): Set
9826 SYMBOL_ACLASS_INDEX.
9827 (_initialize_stabsread): Initialize new globals.
9828 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9829 globals.
9830 (MAX_SYMBOL_IMPLS): New define.
9831 (register_symbol_computed_impl, register_symbol_block_impl)
9832 (register_symbol_register_impl)
9833 (initialize_ordinary_address_classes): New functions.
9834 (_initialize_symtab): Call initialize_ordinary_address_classes.
9835 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9836 (struct symbol_impl): New.
9837 (SYMBOL_ACLASS_BITS): New define.
9838 (struct symbol) <aclass, ops>: Remove fields.
9839 <aclass_index>: New field.
9840 (symbol_impls): Declare.
9841 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9842 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9843 (register_symbol_computed_impl, register_symbol_block_impl)
9844 (register_symbol_register_impl): Declare.
9845 (struct symbol_computed_ops): Add location_has_loclist.
9846 (struct symbol_block_ops): New.
9847 (SYMBOL_BLOCK_OPS): New.
9848 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9849
98502013-03-20 Tom Tromey <tromey@redhat.com>
9851
9852 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9853 (print_partial_symbols, recursively_search_psymtabs): Use
9854 PSYMBOL_CLASS.
9855
98562013-03-20 Pierre Muller <muller@sourceware.org>
9857
9858 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9859 addtion, subtraction, multiplication and division binary operator.
9860
98612013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9862
9863 Code cleanup.
9864 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9865 * bsd-kvm.c (bsd_kvm_close): Likewise.
9866 * bsd-uthread.c (bsd_uthread_close): Likewise.
9867 * corelow.c (core_close): Likewise.
9868 (core_close_cleanup): Remove parameter quitting from a caller.
9869 * event-top.c (async_disconnect): Likewise.
9870 * exec.c (exec_close_1): Remove parameter quitting.
9871 * go32-nat.c (go32_close): Likewise.
9872 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9873 parameter quitting from a caller.
9874 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9875 variable.
9876 (mips_linux_close): Remove parameter quitting. Remove parameter
9877 quitting from a caller.
9878 * monitor.c (monitor_close): Remove parameter quitting.
9879 * monitor.h (monitor_close): Likewise.
9880 * record-btrace.c (record_btrace_close): Likewise.
9881 * record-full.c (record_full_close): Likewise.
9882 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9883 it also from fprintf_unfiltered.
9884 * remote-mips.c (mips_close): Remove parameter quitting.
9885 (mips_detach): Remove parameter quitting from a caller.
9886 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9887 (gdbsim_close): Remove duplicate function comment. Remove parameter
9888 quitting and remove it also from printf_filtered.
9889 * remote.c (remote_close): Remove parameter quitting.
9890 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9891 * target.c (update_current_target): Remove parameter int from to_close
9892 de_fault.
9893 (push_target, unpush_target, pop_target): Remove parameter quitting from
9894 a caller.
9895 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9896 Remove parameter quitting from a caller.
9897 (target_preopen): Remove parameter quitting from a caller.
9898 (target_close): Remove parameter quitting. Remove parameter quitting
9899 from a caller two times. Remove parameter quitting also from
9900 fprintf_unfiltered.
9901 * target.h (struct target_ops): Remove parameter quitting and as int
9902 from fields to_xclose and to_close.
9903 (extern struct target_ops current_target):
9904 (target_close, pop_all_targets): Remove parameter quitting. Update the
9905 comment.
9906 (pop_all_targets_above): Remove parameter quitting.
9907 * top.c (quit_target): Remove parameter quitting from a caller.
9908 * tracepoint.c (tfile_close): Remove parameter quitting.
9909 * windows-nat.c (windows_close): Remove parameter quitting.
9910
99112013-03-20 Corinna Vinschen <vinschen@redhat.com>
9912
9913 * windows-nat.c (handle_output_debug_string): Replace call
9914 to string_to_core_addr with call to strtoull.
9915
99162013-03-20 Yao Qi <yao@codesourcery.com>
9917
9918 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9919 and write it to CTF metadata.
9920
99212013-03-19 Corinna Vinschen <vinschen@redhat.com>
9922
9923 * windows-nat.c (handle_output_debug_string): Change type of n to
9924 SIZE_T to avoid crash on 64 bit systems.
9925
99262013-03-17 Eli Zaretskii <eliz@gnu.org>
9927
9928 * python/python-internal.h (HAVE_SNPRINTF)
9929 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9930 about redefinition of snprintf by pyerrors.h.
9931
99322013-03-15 Steve Ellcey <sellcey@mips.com>
9933
9934 * remote-sim.c (sim_command_completer): Make char arguments const.
9935
99362013-03-15 Tom Tromey <tromey@redhat.com>
9937
9938 PR c++/15116:
9939 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9940
99412013-03-14 Tom Tromey <tromey@redhat.com>
9942
9943 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9944 New fields.
9945 (get_file_crc): Move from symfile.c.
9946 (gdb_bfd_crc): New function.
9947 * gdb_bfd.h (gdb_bfd_crc): Declare.
9948 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9949 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9950 (separate_debug_file_exists): Use gdb_bfd_crc.
9951
99522013-03-14 Tom Tromey <tromey@redhat.com>
9953
9954 * symfile.c (get_debug_link_info): Remove.
9955 (find_separate_debug_file_by_debuglink): Use
9956 bfd_get_debug_link_info.
9957
99582013-03-14 Tom Tromey <tromey@redhat.com>
9959
9960 * symtab.c (error_in_psymtab_expansion): New function.
9961 (lookup_symbol_aux_quick)
9962 (basic_lookup_transparent_type_quick): Remove "last resort"
9963 code. Use error_in_psymtab_expansion.
9964
99652013-03-14 Doug Evans <dje@google.com>
9966 Jan Kratochvil <jan.kratochvil@redhat.com>
9967
9968 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9969 any successful compare_filenames_for_search or FILENAME_CMP.
9970 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9971 * symtab.c (iterate_over_some_symtabs): Likewise.
9972
99732013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9974
9975 * source.c (print_source_lines_base): Make a local copy of
9976 symtab_to_fullname.
9977
99782013-03-14 Hui Zhu <hui_zhu@mentor.com>
9979 Jan Kratochvil <jan.kratochvil@redhat.com>
9980
9981 * source.c (print_source_lines_base): Suppress "file" for TUI.
9982
99832013-03-14 Keith Seitz <keiths@redhat.com>
9984 Alan Matsuoka <alanm@redhat.com>
9985
9986 PR c++/15203
9987 PR c++/15210
9988 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
9989 TYPE_CODE_METHOD.
9990 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
9991 symbols.
9992
99932013-03-14 Yao Qi <yao@codesourcery.com>
9994
9995 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
9996 status to tfile if trace is stopped by command 'tstop'.
9997
99982013-03-14 Yao Qi <yao@codesourcery.com>
9999
10000 * tracepoint.c (tfile_write_status): Write trace notes and user
10001 name into tfile if they are not NULL.
10002
100032013-03-14 Hui Zhu <hui@codesourcery.com>
10004 Yao Qi <yao@codesourcery.com>
10005
10006 * Makefile.in (REMOTE_OBS): Add ctf.o.
10007 (SFILES): Add ctf.c.
10008 (HFILES_NO_SRCDIR): Add ctf.h.
10009 * ctf.c, ctf.h: New files.
10010 * tracepoint.c: Include 'ctf.h'.
10011 (collect_pseudocommand): Remove static.
10012 (trace_save_command): Parse option "-ctf".
10013 Produce different trace file writers per option.
10014 Adjust output message.
10015 (trace_save_tfile, trace_save_ctf): New.
10016 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10017 * mi/mi-main.c: Include 'ctf.h'.
10018 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10019 trace_save_tfile or trace_save_ctf.
10020 * NEWS: Mention these changes.
10021
100222013-03-14 Yao Qi <yao@codesourcery.com>
10023
10024 * tracepoint.c (trace_file_writer_xfree): New.
10025 (struct tfile_writer_data): New.
10026 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10027 (tfile_write_header, tfile_write_regblock_type): New.
10028 (tfile_write_status, tfile_write_uploaded_tsv): New.
10029 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10030 (tfile_write_raw_data, (tfile_end): New.
10031 (tfile_write_ops): New global variable.
10032 (TRACE_WRITE_R_BLOCK): New macro.
10033 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10034 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10035 (TRACE_WRITE_V_BLOCK): New macro.
10036 (trace_save): Add extra one parameter WRITER. Make it static.
10037 Use WRITER to writer trace.
10038 (tfile_trace_file_writer_new): New.
10039 (trace_save_command): Caller update.
10040 (trace_save_tfile): Write trace data in TFILE format.
10041 * tracepoint.h (struct trace_frame_write_ops): New.
10042 (struct trace_file_write_ops): New.
10043 (struct trace_file_writer): New.
10044 (trace_save): Remove its declaration.
10045 (trace_save_tfile): Declare it.
10046 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10047 instead of trace_save.
10048
100492013-03-13 Pedro Alves <palves@redhat.com>
10050
10051 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10052
100532013-03-13 Pedro Alves <palves@redhat.com>
10054
10055 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10056 commented out code.
10057 * demangle.c (current_demangling_style_string): Make it const.
10058 (set_demangling_command): Assert the demangling style is known.
10059 Remove all handling of unknown styles. Set
10060 'current_demangling_style_string' to an element of the
10061 demangling_style_names array.
10062 (set_demangling_style): Delete.
10063 (_initialize_demangler): Set current_demangling_style_string to the
10064 element of the demangling_style_names array that corresponds to
10065 the default demangling style. Remove FIXME note. Don't call
10066 set_demangling_style.
10067 * gdb-demangle.h (set_demangling_style): Remove declaration.
10068
100692013-03-13 Pedro Alves <palves@redhat.com>
10070
10071 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10072 fields const.
10073 (ada_make_symbol_completion_list): Make "text0" parameter const.
10074 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10075 * breakpoint.c (condition_completer): Make "text" and "word"
10076 parameters const. Adjust.
10077 (check_tracepoint_command): Adjust to validate_actionline
10078 prototype change.
10079 (catch_syscall_completer): Make "text" and "word" parameters
10080 const.
10081 * cli/cli-cmds.c (show_user): Make "comname" local const.
10082 (valid_command_p): Make "command" parameter const.
10083 (alias_command): Make "alias_prefix" and "command_prefix" locals
10084 const.
10085 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10086 (add_alias_cmd): Make "name" and "oldname" parameters const.
10087 Adjust. No longer make copy of OLDNAME.
10088 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10089 (add_setshow_cmd_full, add_setshow_enum_cmd)
10090 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10091 (add_setshow_filename_cmd, add_setshow_string_cmd)
10092 (add_setshow_string_noescape_cmd)
10093 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10094 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10095 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10096 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10097 Make "name" parameter const.
10098 (help_cmd): Rename "command" parameter to "arg". New const local
10099 "command".
10100 (find_cmd): Make "command" parameter const.
10101 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10102 deprecated_cmd_warning prototype change.
10103 (undef_cmd_error): Make "cmdtype" parameter const.
10104 (lookup_cmd): Make "line" parameter const.
10105 (deprecated_cmd_warning): Change type of "text" parameter to
10106 pointer to const char, from pointer to pointer to char. Adjust.
10107 (lookup_cmd_composition): Make "text" parameter const.
10108 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10109 parameters const.
10110 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10111 const.
10112 * cli/cli-script.c (validate_comname): Make "tem" local const.
10113 (define_command): New const local "tem_c". Use it in calls to
10114 lookup_cmd.
10115 (document_command): Make "tem" and "comfull" locals const.
10116 (show_user_1): Make "prefix" and "name" parameters const.
10117 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10118 const.
10119 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10120 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10121 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10122 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10123 (complete_on_enum, add_setshow_enum_cmd)
10124 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10125 (add_setshow_filename_cmd, add_setshow_string_cmd)
10126 (add_setshow_string_noescape_cmd)
10127 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10128 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10129 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10130 Change prototypes, constifying strings.
10131 * completer.c (noop_completer, filename_completer): Make "text"
10132 and "prefix" parameters const.
10133 (location_completer, expression_completer)
10134 (complete_line_internal): Make "text" and "prefix" parameters
10135 const and adjust.
10136 (command_completer, signal_completer): Make "text" and "prefix"
10137 parameters const.
10138 * completer.h (noop_completer, filename_completer)
10139 (expression_completer, location_completer, command_completer)
10140 (signal_completer): Change prototypes.
10141 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10142 parameters const.
10143 * cp-abi.c (cp_abi_completer): Likewise.
10144 * expression.h (parse_expression_for_completion): Change
10145 prototype.
10146 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10147 parameters const.
10148 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10149 * infrun.c (handle_completer): Make "text" and "word" parameters
10150 const.
10151 * interps.c (interpreter_completer): Make "text" and "word"
10152 parameters const.
10153 * language.h (struct language_defn)
10154 <la_make_symbol_completion_list>: Make "text" and "word"
10155 parameters const.
10156 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10157 (parse_exp_in_context): Rename to ...
10158 (parse_exp_in_context_1): ... this.
10159 (parse_exp_in_context): Reimplement, with const hack from
10160 parse_exp_1.
10161 (parse_expression_for_completion): Make "string" parameter const.
10162 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10163 to pointer to const char. Adjust.
10164 (print_command_1): Make "exp" parameter const.
10165 (output_command): Rename to ...
10166 (output_command_const): ... this. Make "exp" parameter const.
10167 (output_command): Reimplement.
10168 (x_command): Adjust.
10169 (display_command): Rename "exp" parameter to "arg". New "exp"
10170 local, const version of "arg".
10171 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10172 "cmd_name" local const.
10173 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10174 call.
10175 (cmdpy_completer): Make "text" and "word" parameters const.
10176 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10177 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10178 const.
10179 * remote.c (_initialize_remote): Make "cmd_name" local const.
10180 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10181 parameters const. Adjust.
10182 (completion_list_add_fields): Make "sym_text", "text" and "word"
10183 parameters const.
10184 (struct add_name_data) <sym_text, text, word>: Make fields const.
10185 (default_make_symbol_completion_list_break_on): Make "text" and
10186 "word" parameters const. Adjust locals.
10187 (default_make_symbol_completion_list)
10188 (make_symbol_completion_list, make_symbol_completion_type)
10189 (make_symbol_completion_list_fn): Make "text" and "word"
10190 parameters const.
10191 (make_file_symbol_completion_list): Make "text", "word" and
10192 "srcfile" parameters const. Adjust locals.
10193 (add_filename_to_list): Make "text" and "word" parameters const.
10194 (struct add_partial_filename_data) <text, word>: Make fields
10195 const.
10196 (make_source_files_completion_list): Make "text" and "word"
10197 parameters const.
10198 * symtab.h (default_make_symbol_completion_list_break_on)
10199 (default_make_symbol_completion_list, make_symbol_completion_list)
10200 (make_symbol_completion_type enum type_code)
10201 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10202 (make_source_files_completion_list): Change prototype.
10203 * top.c (execute_command): Adjust to pass pointer to pointer to
10204 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10205 change.
10206 (set_verbose): Make "cmdname" local const.
10207 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10208 and adjust.
10209 (validate_actionline): Make "line" parameter a pointer to const
10210 char, and adjust.
10211 (encode_actions_1): Make "action_exp" local const, and adjust.
10212 (encode_actions): Adjust.
10213 (replace_comma): Delete.
10214 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10215 const, and adjust. Don't frob the action string while splitting
10216 it at commas. Instead, make a copy of each split substring in
10217 turn.
10218 (trace_dump_command): Adjust to validate_actionline prototype
10219 change.
10220 * tracepoint.h (decode_agent_options, decode_agent_options)
10221 (encode_actions, validate_actionline): Change prototypes.
10222 * valprint.h (output_command): Delete declaration.
10223 (output_command_const): Declare.
10224 * value.c (function_destroyer): Cast const away in xfree call.
10225
102262013-03-13 Pedro Alves <palves@redhat.com>
10227
10228 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10229 rather than casting 'const char * const *' to 'const char **'.
10230 * ada-lex.l (processInt): Make "trailer" local const. Remove
10231 'const char **' cast.
10232 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10233 locals, and use those as strtol output pointer, instead than doing
10234 invalid casts to from 'const char **' to 'char **'.
10235 (_initialize_demangle): Remove cast.
10236 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10237 locals, and use those as strtol output pointer, instead than doing
10238 invalid casts to from 'const char **' to 'char **'.
10239 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10240 casts.
10241 * stap-probe.c (stap_parse_register_operand)
10242 (stap_parse_single_operand): Likewise.
10243
102442013-03-13 Yao Qi <yao@codesourcery.com>
10245
10246 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10247 the last matched 'V' blcok in trace frame.
10248
102492013-03-12 Joel Brobecker <brobecker@adacore.com>
10250
10251 * NEWS: Create a new section for the next release branch.
10252 Rename the section of the current branch, now that it has
10253 been cut.
10254
102552013-03-12 Joel Brobecker <brobecker@adacore.com>
10256
10257 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10258 * version.in: Bump version to 7.6.50.20130312-cvs.
10259
102602013-03-12 Keith Seitz <keiths@redhat.com>
10261
10262 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10263 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10264 Remove temporary copy of input string.
10265 (mi_execute_command_wrapper): Make "cmd" const.
10266 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10267 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10268 Use const strings.
10269 (mi_parse): Make "cmd" const.
10270 Use const strings.
10271 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10272
102732013-03-12 Keith Seitz <keiths@redhat.com>
10274
10275 * ada-lang.c (ada_read_renaming_var_value): Pass const
10276 pointer to expression string to parse_exp_1.
10277 (create_excep_cond_exprs): Likewise.
10278 * ax-gdb.c (agent_eval_command_one): Likewise.
10279 (maint_agent_printf_command): Likewise.
10280 Constify much of the string handling/parsing.
10281 * breakpoint.c (set_breakpoint_condition): Pass const
10282 pointer to expression string to parse_exp_1.
10283 (update_watchpoint): Likewise.
10284 (parse_cmd_to_aexpr): Constify string handling.
10285 Pass const pointer to parse_exp_1.
10286 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10287 (find_condition_and_thread): Likewise.
10288 Make TOK const.
10289 (watch_command_1): Make "arg" const.
10290 Constify string handling.
10291 Copy the expression string instead of changing the input
10292 string.
10293 (update_breakpoint_location): Pass const pointer to
10294 parse_exp_1.
10295 * eval.c (parse_and_eval_address): Make "exp" const.
10296 (parse_to_comma_and_eval): Make "expp" const.
10297 (parse_and_eval): Make "exp" const.
10298 * expression.h (parse_expression): Make argument const.
10299 (parse_exp_1): Make first argument const.
10300 * findcmd.c (parse_find_args): Treat "args" as const.
10301 * linespec.c (parse_linespec): Pass const pointer to
10302 linespec_expression_to_pc.
10303 (linespec_expression_to_pc): Make "exp_ptr" const.
10304 * parse.c (parse_exp_1): Make "stringptr" const.
10305 Make a copy of the expression to pass to parse_exp_in_context until
10306 this whole interface can be constified.
10307 (parse_expression): Make "string" const.
10308 * printcmd.c (ui_printf): Treat "arg" as const.
10309 Handle const strings.
10310 * tracepoint.c (validate_actionline): Pass const pointer to
10311 all calls to parse_exp_1.
10312 (encode_actions_1): Likewise.
10313 * value.h (parse_to_comma_and_eval): Make argument const.
10314 (parse_and_eval_address): Likewise.
10315 (parse_and_eval): Likewise.
10316 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10317 (varobj_set_value): Likewise.
10318 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10319 constify string handling.
10320 Pass const pointers to parse_and_eval_address and
10321 parse_to_comman_and_eval.
10322 * cli/cli-utils.c (skip_to_space): Rename to ...
10323 (skip_to_space_const): ... this. Handle const strings.
10324 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10325 skip_to_space_const.
10326 (skip_to_space_const): Declare.
10327 * common/format.c (parse_format_string): Make "arg" const.
10328 Handle const strings.
10329 * common/format.h (parse_format_string): Make "arg" const.
10330 * gdbserver/ax.c (ax_printf): Make "format" const.
10331 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10332 of the expression string.
10333
103342013-03-12 Hui Zhu <hui@codesourcery.com>
10335
10336 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10337
103382013-03-12 Yao Qi <yao@codesourcery.com>
10339 Hui Zhu <hui@codesourcery.com>
10340
10341 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10342 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10343 DW_OP_deref_size.
10344
103452013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10346
10347 * ada-lex.l (rules): Only recognize 'thread' as a
10348 delimiter when followed by numerals, as for c-exp.y.
10349 Use new rewind_to_char function to rewind the input for
10350 expression-delimiting tokens.
10351 (rewind_to_char): New function.
10352
103532013-03-11 Pedro Alves <palves@redhat.com>
10354 Jan Kratochvil <jan.kratochvil@redhat.com>
10355
10356 * configure: Regenerate.
10357 * configure.ac (check dynamic export flag): Link python test with
10358 $PYTHON_LIBS.
10359
103602013-03-11 Doug Evans <dje@google.com>
10361 Keith Seitz <keiths@redhat.com>
10362
10363 * linespec.c (find_linespec_symbols): Call find_function_symbols
10364 first, and then call lookup_prefix_sym/find_method.
10365
103662013-03-11 Pedro Alves <palves@redhat.com>
10367
10368 * charset.c (convert_between_encodings): Don't cast between
10369 different pointer to pointer types. Instead, make the 'inp' local
10370 be of the type iconv expects.
10371 (wchar_iterate): Don't cast between different pointer to pointer
10372 types. Instead, use new pointer local of the type iconv expects.
10373 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10374 Add new local of type char pointer, and use it to get a
10375 char/string view of the byte buffer, instead of casting between
10376 pointer to pointer types.
10377
103782013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10379
10380 * remote.c (remote_set_trace_buffer_size): Move != operator
10381 to the start of next line to fix an ARI warning.
10382
103832013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10384
10385 * NEWS: Add record changes.
10386
103872013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10388
10389 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10390 the instruction history disassembly.
10391 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10392 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10393
103942013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10395
10396 * Makefile.in (SFILES): Add record-btrace.c
10397 (COMMON_OBS): Add record-btrace.o
10398 * record-btrace.c: New.
10399 * objfiles.c: Include btrace.h.
10400 (free_objfile): call btrace_free_objfile.
10401
104022013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10403
10404 * target.c (target_call_history, target_call_history_from,
10405 target_call_history_range): New.
10406 * target.h (target_ops) <to_call_history, to_call_history_from,
10407 to_call_history_range>: New fields.
10408 (target_call_history, target_call_history_from,
10409 target_call_history_range): New declaration.
10410 * record.c (get_call_history_modifiers, cmd_record_call_history,
10411 record_call_history_size): New.
10412 (_initialize_record): Add the "record function-call-history" command.
10413 Add "set/show record function-call-history-size" commands.
10414 * record.h (record_print_flag): New.
10415
104162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10417
10418 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10419 to_insn_history_range>: New fields.
10420 (target_insn_history): New.
10421 (target_insn_history_from): New.
10422 (target_insn_history_range): New.
10423 * target.c (target_insn_history): New.
10424 (target_insn_history_from): New.
10425 (target_insn_history_range): New.
10426 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10427 (record_insn_history_size): New.
10428 (get_insn_number): New.
10429 (get_context_size): New.
10430 (no_chunk): New.
10431 (get_insn_history_modifiers): New.
10432 (cmd_record_insn_history): New.
10433 (_initialize_record): Add "set/show record instruction-history-size"
10434 command. Add "record instruction-history" command.
10435
104362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10437
10438 * record.h (record_disconnect): New.
10439 (record_detach): New.
10440 (record_mourn_inferior): New.
10441 (record_kill): New.
10442 * record-full.c (record_disconnect, record_detach,
10443 record_mourn_inferior, record_kill): Move to...
10444 * record.c: ...here.
10445 (DEBUG): New.
10446 (record_stop): New.
10447 (record_unpush): New.
10448 (cmd_record_stop): Call record_stop. Replace unpush_target
10449 call with record_unpush call.
10450 (record_disconnect, record_detach): Assert that the target
10451 is of record stratum. Call record_unpush, record_stop, and
10452 DEBUG.
10453 (record_mourn_inferior, record_kill): Assert that the target
10454 is of record stratum. Call record_unpush and DEBUG.
10455
104562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10457
10458 * record-full.h, record-full.c (record_memory_query): Rename
10459 to ...
10460 (record_full_memory_query): ...this. Update all users.
10461 (record_arch_list_add_reg): Rename to ...
10462 (record_full_arch_list_add_reg): ...this. Update all users.
10463 (record_arch_list_add_mem): Rename to ...
10464 (record_full_arch_list_add_mem): ...this. Update all users.
10465 (record_arch_list_add_end): Rename to ...
10466 (record_full_arch_list_add_end): ...this. Update all users.
10467 (record_gdb_operation_disable_set): Rename to ...
10468 (record_full_gdb_operation_disable_set): ...this.
10469 Update all users.
10470
104712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10472
10473 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10474 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10475 (RECORD_IS_REPLAY): Renamed to ...
10476 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10477 (RECORD_FILE_MAGIC): Renamed to ...
10478 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10479 (record_mem_entry): Renamed to ...
10480 (record_full_mem_entry): ... this. Updated all users.
10481 (record_reg_entry): Renamed to ...
10482 (record_full_reg_entry): ... this. Updated all users.
10483 (record_end_entry): Renamed to ...
10484 (record_full_end_entry): ... this. Updated all users.
10485 (record_type) <record_end, record_reg, record_mem>: Renamed
10486 to ...
10487 (record_full_type) <record_full_end, record_full_reg,
10488 record_full_mem>: ... this. Updated all users.
10489 (record_entry): Renamed to ...
10490 (record_full_entry): ... this. Updated all users.
10491 (record_core_buf_entry): Renamed to ...
10492 (record_full_core_buf_entry): ... this. Updated all users.
10493 (record_core_regbuf): Renamed to ...
10494 (record_full_core_regbuf): ... this. Updated all users.
10495 (record_core_start): Renamed to ...
10496 (record_full_core_start): ... this. Updated all users.
10497 (record_core_end): Renamed to ...
10498 (record_full_core_end): ... this. Updated all users.
10499 (record_core_buf_list): Renamed to ...
10500 (record_full_core_buf_list): ... this. Updated all users.
10501 (record_first): Renamed to ...
10502 (record_full_first): ... this. Updated all users.
10503 (record_list): Renamed to ...
10504 (record_full_list): ... this. Updated all users.
10505 (record_arch_list_head): Renamed to ...
10506 (record_full_arch_list_head): ... this. Updated all users.
10507 (record_arch_list_tail): Renamed to ...
10508 (record_full_arch_list_tail): ... this. Updated all users.
10509 (record_stop_at_limit): Renamed to ...
10510 (record_full_stop_at_limit): ... this. Updated all users.
10511 (record_insn_max_num): Renamed to ...
10512 (record_full_insn_max_num): ... this. Updated all users.
10513 (record_insn_num): Renamed to ...
10514 (record_full_insn_num): ... this. Updated all users.
10515 (record_insn_count): Renamed to ...
10516 (record_full_insn_count): ... this. Updated all users.
10517 (record_ops): Renamed to ...
10518 (record_full_ops): ... this. Updated all users.
10519 (record_core_ops): Renamed to ...
10520 (record_full_core_ops): ... this. Updated all users.
10521 (set_record_cmdlist): Renamed to ...
10522 (set_record_full_cmdlist): ... this. Updated all users.
10523 (show_record_cmdlist): Renamed to ...
10524 (show_record_full_cmdlist): ... this. Updated all users.
10525 (record_cmdlist): Renamed to ...
10526 (record_full_cmdlist): ... this. Updated all users.
10527 (record_beneath_to_resume_ops): Renamed to ...
10528 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10529 (record_beneath_to_resume): Renamed to ...
10530 (record_full_beneath_to_resume): ... this. Updated all users.
10531 (record_beneath_to_wait_ops): Renamed to ...
10532 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10533 (record_beneath_to_wait): Renamed to ...
10534 (record_full_beneath_to_wait): ... this. Updated all users.
10535 (record_beneath_to_store_registers_ops): Renamed to ...
10536 (record_full_beneath_to_store_registers_ops): ... this.
10537 Updated all users.
10538 (record_beneath_to_store_registers): Renamed to ...
10539 (record_full_beneath_to_store_registers): ... this.
10540 Updated all users.
10541 (record_beneath_to_xfer_partial_ops): Renamed to ...
10542 (record_full_beneath_to_xfer_partial_ops): ... this.
10543 Updated all users.
10544 (record_beneath_to_xfer_partial): Renamed to ...
10545 (record_full_beneath_to_xfer_partial): ... this.
10546 Updated all users.
10547 (record_beneath_to_insert_breakpoint): Renamed to ...
10548 (record_full_beneath_to_insert_breakpoint): ... this.
10549 Updated all users.
10550 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10551 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10552 Updated all users.
10553 (record_beneath_to_stopped_data_address): Renamed to ...
10554 (record_full_beneath_to_stopped_data_address): ... this.
10555 Updated all users.
10556 (record_beneath_to_async): Renamed to ...
10557 (record_full_beneath_to_async): ... this. Updated all users.
10558 (record_goto_insn): Renamed to ...
10559 (record_full_goto_insn): ... this. Updated all users.
10560 (record_save): Renamed to ...
10561 (record_full_save): ... this. Updated all users.
10562 (record_reg_alloc): Renamed to ...
10563 (record_full_reg_alloc): ... this. Updated all users.
10564 (record_reg_release): Renamed to ...
10565 (record_full_reg_release): ... this. Updated all users.
10566 (record_mem_alloc): Renamed to ...
10567 (record_full_mem_alloc): ... this. Updated all users.
10568 (record_mem_release): Renamed to ...
10569 (record_full_mem_release): ... this. Updated all users.
10570 (record_end_alloc): Renamed to ...
10571 (record_full_end_alloc): ... this. Updated all users.
10572 (record_end_release): Renamed to ...
10573 (record_full_end_release): ... this. Updated all users.
10574 (record_entry_release): Renamed to ...
10575 (record_full_entry_release): ... this. Updated all users.
10576 (record_list_release): Renamed to ...
10577 (record_full_list_release): ... this. Updated all users.
10578 (record_list_release_following): Renamed to ...
10579 (record_full_list_release_following): ... this.
10580 Updated all users.
10581 (record_list_release_first): Renamed to ...
10582 (record_full_list_release_first): ... this. Updated all users.
10583 (record_arch_list_add): Renamed to ...
10584 (record_full_arch_list_add): ... this. Updated all users.
10585 (record_get_loc): Renamed to ...
10586 (record_full_get_loc): ... this. Updated all users.
10587 (record_check_insn_num): Renamed to ...
10588 (record_full_check_insn_num): ... this. Updated all users.
10589 (record_arch_list_cleanups): Renamed to ...
10590 (record_full_arch_list_cleanups): ... this. Updated all users.
10591 (record_message): Renamed to ...
10592 (record_full_message): ... this. Updated all users.
10593 (record_message_wrapper): Renamed to ...
10594 (record_full_message_wrapper): ... this. Updated all users.
10595 (record_message_wrapper_safe): Renamed to ...
10596 (record_full_message_wrapper_safe): ... this. Updated all users.
10597 (record_gdb_operation_disable): Renamed to ...
10598 (record_full_gdb_operation_disable): ... this. Updated all users.
10599 (record_hw_watchpoint): Renamed to ...
10600 (record_full_hw_watchpoint): ... this. Updated all users.
10601 (record_exec_insn): Renamed to ...
10602 (record_full_exec_insn): ... this. Updated all users.
10603 (record_restore): Renamed to ...
10604 (record_full_restore): ... this. Updated all users.
10605 (record_async_inferior_event_token): Renamed to ...
10606 (record_full_async_inferior_event_token): ... this.
10607 Updated all users.
10608 (record_async_inferior_event_handler): Renamed to ...
10609 (record_full_async_inferior_event_handler): ... this.
10610 Updated all users.
10611 (record_core_open_1): Renamed to ...
10612 (record_full_core_open_1): ... this. Updated all users.
10613 (record_open_1): Renamed to ...
10614 (record_full_open_1): ... this. Updated all users.
10615 (record_open): Renamed to ...
10616 (record_full_open): ... this. Updated all users.
10617 (record_close): Renamed to ...
10618 (record_full_close): ... this. Updated all users.
10619 (record_resume_step): Renamed to ...
10620 (record_full_resume_step): ... this. Updated all users.
10621 (record_resumed): Renamed to ...
10622 (record_full_resumed): ... this. Updated all users.
10623 (record_execution_dir): Renamed to ...
10624 (record_full_execution_dir): ... this. Updated all users.
10625 (record_resume): Renamed to ...
10626 (record_full_resume): ... this. Updated all users.
10627 (record_get_sig): Renamed to ...
10628 (record_full_get_sig): ... this. Updated all users.
10629 (record_sig_handler): Renamed to ...
10630 (record_full_sig_handler): ... this. Updated all users.
10631 (record_wait_cleanups): Renamed to ...
10632 (record_full_wait_cleanups): ... this. Updated all users.
10633 (record_wait_1): Renamed to ...
10634 (record_full_wait_1): ... this. Updated all users.
10635 (record_wait): Renamed to ...
10636 (record_full_wait): ... this. Updated all users.
10637 (record_stopped_by_watchpoint): Renamed to ...
10638 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10639 (record_disconnect): Renamed to ...
10640 (record_full_disconnect): ... this. Updated all users.
10641 (record_detach): Renamed to ...
10642 (record_full_detach): ... this. Updated all users.
10643 (record_mourn_inferior): Renamed to ...
10644 (record_full_mourn_inferior): ... this. Updated all users.
10645 (record_kill): Renamed to ...
10646 (record_full_kill): ... this. Updated all users.
10647 (record_stopped_data_address): Renamed to ...
10648 (record_full_stopped_data_address): ... this. Updated all users.
10649 (record_registers_change): Renamed to ...
10650 (record_full_registers_change): ... this. Updated all users.
10651 (record_store_registers): Renamed to ...
10652 (record_full_store_registers): ... this. Updated all users.
10653 (record_xfer_partial): Renamed to ...
10654 (record_full_xfer_partial): ... this. Updated all users.
10655 (record_breakpoint): Renamed to ...
10656 (record_full_breakpoint): ... this. Updated all users.
10657 (record_breakpoint_p): Renamed to ...
10658 (record_full_breakpoint_p): ... this. Updated all users.
10659 (record_breakpoints): Renamed to ...
10660 (record_full_breakpoints): ... this. Updated all users.
10661 (record_sync_record_breakpoints): Renamed to ...
10662 (record_full_sync_record_breakpoints): ... this.
10663 Updated all users.
10664 (record_init_record_breakpoints): Renamed to ...
10665 (record_full_init_record_breakpoints): ... this.
10666 Updated all users.
10667 (record_insert_breakpoint): Renamed to ...
10668 (record_full_insert_breakpoint): ... this. Updated all users.
10669 (record_remove_breakpoint): Renamed to ...
10670 (record_full_remove_breakpoint): ... this. Updated all users.
10671 (record_can_execute_reverse): Renamed to ...
10672 (record_full_can_execute_reverse): ... this. Updated all users.
10673 (record_get_bookmark): Renamed to ...
10674 (record_full_get_bookmark): ... this. Updated all users.
10675 (record_goto_bookmark): Renamed to ...
10676 (record_full_goto_bookmark): ... this. Updated all users.
10677 (record_async): Renamed to ...
10678 (record_full_async): ... this. Updated all users.
10679 (record_can_async_p): Renamed to ...
10680 (record_full_can_async_p): ... this. Updated all users.
10681 (record_is_async_p): Renamed to ...
10682 (record_full_is_async_p): ... this. Updated all users.
10683 (record_execution_direction): Renamed to ...
10684 (record_full_execution_direction): ... this. Updated all users.
10685 (record_info): Renamed to ...
10686 (record_full_info): ... this. Updated all users.
10687 (record_delete): Renamed to ...
10688 (record_full_delete): ... this. Updated all users.
10689 (record_is_replaying): Renamed to ...
10690 (record_full_is_replaying): ... this. Updated all users.
10691 (record_goto_entry): Renamed to ...
10692 (record_full_goto_entry): ... this. Updated all users.
10693 (record_goto_begin): Renamed to ...
10694 (record_full_goto_begin): ... this. Updated all users.
10695 (record_goto_end): Renamed to ...
10696 (record_full_goto_end): ... this. Updated all users.
10697 (record_goto): Renamed to ...
10698 (record_full_goto): ... this. Updated all users.
10699 (init_record_ops): Renamed to ...
10700 (init_record_full_ops): ... this. Updated all users.
10701 (record_core_resume): Renamed to ...
10702 (record_full_core_resume): ... this. Updated all users.
10703 (record_core_kill): Renamed to ...
10704 (record_full_core_kill): ... this. Updated all users.
10705 (record_core_fetch_registers): Renamed to ...
10706 (record_full_core_fetch_registers): ... this. Updated all users.
10707 (record_core_prepare_to_store): Renamed to ...
10708 (record_full_core_prepare_to_store): ... this. Updated all users.
10709 (record_core_store_registers): Renamed to ...
10710 (record_full_core_store_registers): ... this. Updated all users.
10711 (record_core_xfer_partial): Renamed to ...
10712 (record_full_core_xfer_partial): ... this. Updated all users.
10713 (record_core_insert_breakpoint): Renamed to ...
10714 (record_full_core_insert_breakpoint): ... this. Updated all users.
10715 (record_core_remove_breakpoint): Renamed to ...
10716 (record_full_core_remove_breakpoint): ... this. Updated all users.
10717 (record_core_has_execution): Renamed to ...
10718 (record_full_core_has_execution): ... this. Updated all users.
10719 (init_record_core_ops): Renamed to ...
10720 (init_record_full_core_ops): ... this. Updated all users.
10721 (cmd_record_restore): Renamed to ...
10722 (cmd_record_full_restore): ... this. Updated all users.
10723 (record_save_cleanups): Renamed to ...
10724 (record_full_save_cleanups): ... this. Updated all users.
10725 (cmd_record_start): Renamed to ...
10726 (cmd_record_full_start): ... this. Updated all users.
10727 (set_record_insn_max_num): Renamed to ...
10728 (set_record_full_insn_max_num): ... this. Updated all users.
10729 (set_record_command): Renamed to ...
10730 (set_record_full_command): ... this. Updated all users.
10731 (show_record_command): Renamed to ...
10732 (show_record_full_command): ... this. Updated all users.
10733 (_initialize_record): Renamed to ...
10734 (_initialize_record_full): ... this. Updated all users.
10735
107362013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10737
10738 * record.h: Split into this and ...
10739 * record-full.h: ... this.
10740 * record.c: Split into this and ...
10741 * record-full.c: ... this.
10742 * target.h (target_ops): Add new fields to_info_record,
10743 to_save_record, to_delete_record, to_record_is_replaying,
10744 to_goto_record_begin, to_goto_record_end, to_goto_record.
10745 (target_info_record): New.
10746 (target_save_record): New.
10747 (target_supports_delete_record): New.
10748 (target_delete_record): New.
10749 (target_record_is_replaying): New.
10750 (target_goto_record_begin): New.
10751 (target_goto_record_end): New.
10752 (target_goto_record): New.
10753 * target.c (target_info_record): New.
10754 (target_save_record): New.
10755 (target_supports_delete_record): New.
10756 (target_delete_record): New.
10757 (target_record_is_replaying): New.
10758 (target_goto_record_begin): New.
10759 (target_goto_record_end): New.
10760 (target_goto_record): New.
10761 * record.h: Declare struct cmd_list_element.
10762 (record_cmdlist): New declaration.
10763 (set_record_cmdlist): New declaration.
10764 (show_record_cmdlist): New declaration.
10765 (info_record_cmdlist): New declaration.
10766 (cmd_record_goto): New declaration.
10767 * record.c: Remove unnecessary includes.
10768 Include inferior.h.
10769 (cmd_record_goto): Remove declaration.
10770 (record_cmdlist): Now extern. Initialize.
10771 (set_record_cmdlist): Now extern. Initialize.
10772 (show_record_cmdlist): Now extern. Initialize.
10773 (info_record_cmdlist): Now extern. Initialize.
10774 (find_record_target): New.
10775 (require_record_target): New.
10776 (cmd_record_start): Update.
10777 (cmd_record_delete): Remove target-specific code.
10778 Call target_delete_record.
10779 (cmd_record_stop): Unpush any record target.
10780 (set_record_insn_max_num): Move to record-full.c
10781 (set_record_command): Add comment.
10782 (show_record_command): Add comment.
10783 (info_record_command): Update comment.
10784 Remove target-specific code.
10785 Call the record target's to_info_record.
10786 (cmd_record_start): New.
10787 (cmd_record_goto): Now extern.
10788 Remove target-specific code.
10789 Call target_goto_begin, target_goto_end, or target_goto.
10790 (_initialize_record): Move record target ops initialization to
10791 record-full.c.
10792 Change "record" command help text.
10793 Move "record restore", "record set", and "record show" commands to
10794 record-full.c.
10795 * Makefile.in (SFILES): Add record-full.c.
10796 (HFILES_NO_SRCDIR): Add record-full.h.
10797 (COMMON_OBS): Add record-full.o.
10798 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10799 * arm-tdep.c: Include record-full.h.
10800 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10801 * i386-tdep.c: Include record-full.h.
10802 * infrun.c: Include record-full.h.
10803 * linux-record.c: Include record-full.h.
10804 * moxie-tdep.c: Include record-full.h.
10805 * record-full.c: Include record-full.h.
10806 Change module comment.
10807 (set_record_full_cmdlist): New.
10808 (show_record_full_cmdlist): New.
10809 (record_full_cmdlist): New.
10810 (record_goto_insn): New declaration.
10811 (record_save): New declaration.
10812 (record_check_insn_num): Change query string.
10813 (record_info): New.
10814 (record_delete): New.
10815 (record_is_replaying): New.
10816 (record_goto_entry): New.
10817 (record_goto_begin): New.
10818 (record_goto_end): New.
10819 (record_goto): New.
10820 (init_record_ops): Update.
10821 (init_record_core_ops): Update.
10822 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10823 (cmd_record_start): New.
10824 (set_record_insn_max_num): Moved from record.c
10825 (set_record_full_command): New.
10826 (show_record_full_command): New.
10827 (_initialize_record_full): New.
10828
108292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10830
10831 * target.h (add_deprecated_target_alias): New.
10832 * target.c (add_deprecated_target_alias): New.
10833
108342013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10835
10836 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10837 and signal.h.
10838 (linux_supports_btrace): Add kernel and
10839 cpuid check.
10840 (kernel_supports_btrace): New function.
10841 (cpu_supports_btrace): New function.
10842 (intel_supports_btrace): New function.
10843
108442013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10845
10846 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10847 * remote.c: Include btrace.h.
10848 (struct btrace_target_info): New struct.
10849 (remote_supports_btrace): New function.
10850 (send_Qbtrace): New function.
10851 (remote_enable_btrace): New function.
10852 (remote_disable_btrace): New function.
10853 (remote_teardown_btrace): New function.
10854 (remote_read_btrace): New function.
10855 (init_remote_ops): Add btrace ops.
10856 (enum <unnamed>): Add btrace packets.
10857 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10858 (_initialize_remote): Add packet configuration for branch tracing.
10859
108602013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10861
10862 * features/btrace.dtd: New file.
10863 * Makefile.in (XMLFILES): Add btrace.dtd.
10864 * btrace.h (parse_xml_btrace): New declaration.
10865 * btrace.c: Include xml-support.h.
10866 (parse_xml_btrace): New function.
10867 (parse_xml_btrace_block): New function.
10868 (block_attributes): New struct.
10869 (btrace_attributes): New struct.
10870 (btrace_children): New struct.
10871 (btrace_elements): New struct.
10872
108732013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10874
10875 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10876 (amd64_linux_enable_btrace): New.
10877 (amd64_linux_disable_btrace): New.
10878 (amd64_linux_teardown_btrace): New.
10879 (_initialize_amd64_linux_nat): Initialize btrace ops.
10880 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10881 (i386_linux_enable_btrace): New.
10882 (i386_linux_disable_btrace): New.
10883 (i386_linux_teardown_btrace): New.
10884 (_initialize_i386_linux_nat): Initialize btrace ops.
10885 * config/i386/linux.mh: Add linux-btrace.o.
10886 * config/i386/linux64.mh: Add linux-btrace.o.
10887
108882013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10889
10890 * common/linux_btrace.h: New file.
10891 * common/linux_btrace.c: New file.
10892 * Makefile.in (SFILES): Add btrace.c.
10893 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10894 (COMMON_OBS): Add btrace.o.
10895 (linux-btrace.o): New rule.
10896
108972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10898
10899 * target.h: Include btrace.h.
10900 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10901 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10902 * target.c (target_supports_btrace): New function.
10903 (target_enable_btrace): New function.
10904 (target_disable_btrace): New function.
10905 (target_teardown_btrace): New function.
10906 (target_read_btrace): New function.
10907 * btrace.h: New file.
10908 * btrace.c: New file.
10909 * Makefile.in: Add btrace.c.
10910 * gdbthread.h: Include btrace.h.
10911 (struct thread_info): Add btrace field.
10912 * thread.c: Include btrace.h.
10913 (clear_thread_inferior_resources): Call target_teardown_btrace.
10914 * common/btrace-common.h: New file.
10915
109162013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10919 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10920 kill_status to outer block.
10921
109222013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10923
10924 Fix entry-values if the callee called a noreturn function.
10925 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10926 get_frame_address_in_block. Add new comment.
10927
109282013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10929
10930 Fix entry-values in C++ across CUs.
10931 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10932 lookup_minimal_symbol. Add a comment.
10933 * dwarf2read.c
10934 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10935 DW_AT_linkage_name.
10936
109372013-03-08 Yao Qi <yao@codesourcery.com>
10938
10939 * tracepoint.c (_initialize_tracepoint): Indent the code.
10940
109412013-03-08 Pedro Alves <palves@redhat.com>
10942
10943 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10944 (parse_find_args, find_command): Change type of pattern buffer
10945 locals to 'gdb_byte *'.
10946
109472013-03-08 Stan Shebs <stan@codesourcery.com>
10948 Hafiz Abid Qadeer <abidh@codesourcery.com>
10949
10950 * NEWS: Mention set and show trace-buffer-size commands.
10951 Mention new packet.
10952 * target.h (struct target_ops): New method
10953 to_set_trace_buffer_size.
10954 (target_set_trace_buffer_size): New macro.
10955 * target.c (update_current_target): Set up new method.
10956 * tracepoint.c (trace_buffer_size): New global.
10957 (start_tracing): Send it to the target.
10958 (set_trace_buffer_size): New function.
10959 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10960 * remote.c (remote_set_trace_buffer_size): New function.
10961 (_initialize_remote): Use it.
10962 (QTBuffer:size) New remote command.
10963 (PACKET_QTBuffer_size): New enum.
10964 (remote_protocol_features): Add an entry for
10965 PACKET_QTBuffer_size.
10966
109672013-03-08 Tom Tromey <tromey@redhat.com>
10968
10969 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10970 variable.
10971
109722013-03-07 Pedro Alves <palves@redhat.com>
10973
10974 * target.c (target_read_stralloc, target_fileio_read_alloc):
10975 *Cast pointer to 'gdb_byte *' in target call.
10976
109772013-03-07 Pedro Alves <palves@redhat.com>
10978
10979 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10980 call.
10981
109822013-03-07 Keith Seitz <keiths@redhat.com>
10983
10984 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10985 (trace_pass_command): Likewise.
10986 * cli/cli-cmds.c: Include cli/cli-utils.h.
10987 (source_command): Use skip-spaces.
10988 (disassemble_command): Likewise.
10989 * findcmd.c: Include cli/cli-utils.h.
10990 (parse_find_args): Use skip_spaces.
10991 * go32-nat.c: Include cli/cli-utils.h.
10992 (go32_sldt): Use skip_spaces.
10993 (go32_sgdt): Likewise.
10994 (go32_sidt): Likewise.
10995 (go32_pde): Likewise.
10996 (go32_pte): Likewise.
10997 (go32_pte_for_address): Likewise.
10998 * infcmd.c: Include cli/cli-utils.h.
10999 (registers_info): Use skip_spaces.
11000 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11001 (linux_info_proc): Likewise.
11002 * linux-thread-db.c: Include cli/cli-utils.h.
11003 (info_auto_load_libthread_db): Use skip_spaces_const.
11004 * m32r-rom.c: Include cli/cli-utils.h.
11005 (m32r_upload_command): Use skip_spaces.
11006 * maint.c: Include cli/cli-utils.h.
11007 (maintenance_translate_address): Use skip_spaces.
11008 * mi/mi-parse.c: Include cli/cli-utils.h.
11009 (mi_parse_argv): Use skip_spaces.
11010 (mi_parse): Likewise.
11011 * minsyms.c: Include cli/cli-utils.h.
11012 (msymbol_hash_iw): Use skip_spaces_const.
11013 * objc-lang.c: Include cli/cli-utils.h.
11014 (parse_selector): Use skip_spaces.
11015 (parse_method): Likewise.
11016 * python/python.c: Include cli/cli-utils.h.
11017 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11018 (python_command)[HAVE_PYTHON]: Likewise.
11019 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11020 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11021 (m32r_load): Use skip_spaces.
11022 * serial.c: Include cli/cli-utils.h.
11023 (serial_open): Use skip_spaces_const.
11024 * stack.c: Include cli/cli-utils.h.
11025 (parse_frame_specification_1): Use skip_spaces_const.
11026 * symfile.c: Include cli/cli-utils.h.
11027 (set_ext_lang_command): Use skip_spaces.
11028 * symtab.c: Include cli/cli-utils.h.
11029 (rbreak_command): Use skip_spaces.
11030 * thread.c (thread_name_command): Use skip_spaces.
11031 * tracepoint.c (validate_actionline): Use skip_spaces.
11032 (encode_actions_1): Likewise.
11033 (trace_find_range_command): Likewise.
11034 (trace_find_outside_command): Likewise.
11035 (trace_dump_actions): Likewise.
11036
110372013-03-07 Pedro Alves <palves@redhat.com>
11038
11039 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11040 * expprint.c (print_subexp_standard): Likewise.
11041 * utils.c (host_char_to_target): Likewise.
11042 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11043 * varobj.c (value_get_print_value): Change type of local to char*.
11044 Cast it gdb_byte * in call to language printer.
11045
110462013-03-07 Pedro Alves <palves@redhat.com>
11047
11048 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11049 gdb_byte *'.
11050 (make_wchar_iterator): Remove cast to char*.
11051 (wchar_iterate): Change type of local.
11052
110532013-03-07 Pedro Alves <palves@redhat.com>
11054
11055 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11056 for 'regcache->register_status'.
11057
110582013-03-07 Pedro Alves <palves@redhat.com>
11059
11060 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11061 int.
11062
110632013-03-07 Pedro Alves <palves@redhat.com>
11064
11065 * stap-probe.c (handle_stap_probe): Add cast to char*.
11066
110672013-03-07 Pedro Alves <palves@redhat.com>
11068
11069 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11070 RECORD_MSGRCV>: Pass a signed variable to
11071 regcache_raw_read_signed, instead of an unsigned one.
11072
110732013-03-07 Pedro Alves <palves@redhat.com>
11074
11075 * remote-notif.c (notif_debug): Change type to int.
11076 * remote-notif.h (notif_debug): Likewise.
11077
110782013-03-07 Pedro Alves <palves@redhat.com>
11079
11080 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11081
110822013-03-07 Pedro Alves <palves@redhat.com>
11083
11084 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11085 * remote.h (hex2bin, bin2hex): ... here.
11086 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11087
110882013-03-07 Eli Zaretskii <eliz@gnu.org>
11089
11090 * utils.c (initialize_utils): Improve doc strings of "set/show
11091 width", "set/show height", and "set/show pagination".
11092
110932013-03-06 Keith Seitz <keiths@redhat.com>
11094
11095 * ax-gdb.c (gen_printf): Make FORMAT const.
11096 * ax-gdb.h (gen_printf): Likewise.
11097 * ax-general.c (ax_string): Make STR const.
11098 * ax.h (ax_string): Likewise.
11099
111002013-03-06 Doug Evans <dje@google.com>
11101
11102 * elfread.c (elf_symfile_read): Move debugging printf to more
11103 logical location.
11104
111052013-03-06 Pedro Alves <palves@redhat.com>
11106
11107 * python/py-utils.c (target_string_to_unicode): Delete function.
11108 * python/python-internal.h (target_string_to_unicode): Delete
11109 declaration.
11110
111112013-03-06 Pierre Muller <muller@sourceware.org>
11112
11113 * linespec.c (get_current_search_block): ARI fix, use (void)
11114 for empty parameter list.
11115
111162013-03-05 Doug Evans <dje@google.com>
11117
11118 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11119 of old ada_lookup_symbol_list. In !full_search case, don't
11120 search superblocks.
11121 (ada_lookup_symbol_list): Delete arg full_search, all callers
11122 updated. Call ada_lookup_symbol_list_worker.
11123 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11124 * ada-lang.h (ada_lookup_symbol_list): Update.
11125 * language.h (language_defn): Update comment for
11126 la_iterate_over_symbols.
11127 * linespec.c (iterate_over_file_blocks): New function.
11128 (iterate_over_all_matching_symtabs): Call it.
11129 (lookup_prefix_sym): Ditto.
11130 (get_current_search_block): New function.
11131 (get_search_block): Delete.
11132 (find_label_symbols): Call get_current_search_block.
11133 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11134 * symtab.c (iterate_over_symbols): Don't search superblocks.
11135
111362013-03-05 Yao Qi <yao@codesourcery.com>
11137
11138 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11139 parameter VAR's type from "unsigned int" to "int".
11140 * command.h (var_zuinteger_unlimited): Update its comments.
11141 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11142
111432013-03-05 Corinna Vinschen <vinschen@redhat.de>
11144
11145 * NEWS: Mention new target x86_64-*-cygwin*.
11146
111472013-03-05 Corinna Vinschen <vinschen@redhat.de>
11148
11149 * configure.host: Add x86_64-*-cygwin* as host.
11150 * configure.tgt: Add x86_64-*-cygwin* as target.
11151 * config/i386/cygwin64.mh: New file.
11152
111532013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11154
11155 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11156
111572013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11158
11159 * linespec.c (struct linespec_canonical_name): New.
11160 (struct linespec_state): Change canonical_names type to it.
11161 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11162 xrealloc element size. Initialize the different CANONICAL fields.
11163 (canonical_to_fullform): New.
11164 (filter_results): Use it. Add variables canonical, fullform and
11165 cleanup.
11166 (struct decode_line_2_item, decode_line_2_compare_items): New.
11167 (decode_line_2): Remove variables iter and item_names, add variables
11168 items and items_count. Modify the code for these new variables.
11169
111702013-03-04 Corinna Vinschen <vinschen@redhat.com>
11171
11172 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11173 calling do_cleanup.
11174
111752013-03-04 Luis Machado <lgustavo@codesourcery.com>
11176
11177 * tracepoint.c (build_traceframe_info): Add code for byte order.
11178
111792013-03-02 Kevin Buettner <kevinb@redhat.com>
11180
11181 * v850-tdep.c: (v850e2_register_name): Revise system register
11182 names to match current V850E2M architecture specifications.
11183 Update register number enum comments too.
11184
111852013-03-01 Jiong Wang <jiwang@tilera.com>
11186 Pedro Alves <palves@redhat.com>
11187
11188 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11189 to END_ADDR.
11190 (tilegx_skip_prologue): Limit prologue analysis to section end.
11191
111922013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11193
11194 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11195 use it.
11196
111972013-03-01 Pedro Alves <palves@redhat.com>
11198
11199 Use gdb_byte for bytes from the program being debugged.
11200
11201 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11202 Change type of local 'buf' to gdb_byte.
11203 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11204 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11205 * cris-tdep.c (cris_sigcontext_addr)
11206 (cris_sigtramp_frame_unwind_cache): Likewise.
11207 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11208 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11209 Likewise.
11210 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11211 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11212 (hppa32_hpux_search_dummy_call_sequence)
11213 (hppa_hpux_supply_save_state): Likewise.
11214 * hppa-linux-tdep.c (insns_match_pattern)
11215 (hppa_linux_find_global_pointer): Likewise.
11216 * hppa-tdep.c (hppa_in_function_epilogue_p)
11217 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11218 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11219 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11220 (i386fbsd_collect_uthread): Likewise.
11221 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11222 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11223 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11224 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11225 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11226 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11227 (ia64_libunwind_frame_prev_register)
11228 (ia64_libunwind_sigtramp_frame_this_id)
11229 (ia64_find_global_pointer_from_dynamic_section)
11230 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11231 (ia64_unwind_pc): Likewise.
11232 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11233 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11234 (m68hc11_extract_return_value): Likewise.
11235 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11236 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11237 (mep_get_insn, mep_push_dummy_call): Likewise.
11238 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11239 (mips_linux_in_dynsym_stub): Likewise.
11240 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11241 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11242 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11243 to gdb_byte.
11244 * remote-mips.c (mips_set_register): Likewise.
11245 * remote-sim.c (gdbsim_fetch_register): Likewise.
11246 * score-tdep.c (score7_fetch_inst): Change type of parameter
11247 'memblock' and local 'buf' to gdb_byte.
11248 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11249 Change type of local 'buf' to gdb_byte. Adjust.
11250 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11251 to gdb_byte**.
11252 (score7_analyze_prologue): Change type of 'memblock' and
11253 'memblock_ptr' locals to gdb_byte*.
11254 * sh64-tdep.c (sh64_extract_return_value)
11255 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11256 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11257 * solib-pa64.c (pa64_solib_create_inferior_hook)
11258 (pa64_open_symbol_file_object): Remove local 'buf'.
11259 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11260 (som_open_symbol_file_object): Likewise.
11261 * solib-spu.c (spu_current_sos): Likewise.
11262 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11263 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11264 (spu_store_registers): Likewise.
11265 * target.c (debug_print_register): Likewise.
11266 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11267 * xstormy16-tdep.c (xstormy16_store_return_value)
11268 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11269 (xstormy16_find_jmp_table_entry): Likewise.
11270
112712013-03-01 Jiong Wang <jiwang@tilera.com>
11272
11273 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11274 (tilegx_gdbarch_init): Install it.
11275
112762013-02-28 Tom Tromey <tromey@redhat.com>
11277
11278 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11279 PyLong_Check.
11280
112812013-02-28 Doug Evans <dje@google.com>
11282
11283 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11284 * python/python.c (gdbpy_find_pc_line): Ditto.
11285
112862013-02-28 Tom Tromey <tromey@redhat.com>
11287
11288 * contrib/excheck.py: New file.
11289 * contrib/exsummary.py: New file.
11290 * contrib/gcc-with-excheck: New file.
11291
112922013-02-28 Tom Tromey <tromey@redhat.com>
11293
11294 * python/python.c (gdbpy_print_stack): Call begin_line and
11295 fprintf_filtered inside TRY_CATCH.
11296
112972013-02-28 Tom Tromey <tromey@redhat.com>
11298
11299 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11300 inside TRY_CATCH.
11301
113022013-02-28 Tom Tromey <tromey@redhat.com>
11303
11304 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11305 frame_object_to_frame_info inside TRY_CATCH.
11306
113072013-02-28 Tom Tromey <tromey@redhat.com>
11308
11309 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11310 TRY_CATCH.
11311
113122013-02-28 Tom Tromey <tromey@redhat.com>
11313
11314 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11315
113162013-02-27 Corinna Vinschen <vinschen@redhat.com>
11317
11318 * windows-nat.c: Throughout, fix format strings and casts of
11319 printf-like functions to avoid type related warnings on all
11320 platforms.
11321 (handle_output_debug_string): Fetch context information address
11322 from debug string using string_to_core_addr.
11323
113242013-02-27 Jiong Wang <jiwang@tilera.com>
11325
11326 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11327 * regformats/reg-tilegx32.dat: New.
11328
113292013-02-27 Jiong Wang <jiwang@tilera.com>
11330
11331 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11332
113332013-02-27 Jiong Wang <jiwang@tilera.com>
11334
11335 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11336
113372013-02-27 Yao Qi <yao@codesourcery.com>
11338 Pedro Alves <palves@redhat.com>
11339
11340 * tracepoint.c (tfile_trace_find): For tfind
11341 pc/tp/range/outside, look for the next trace frame instead of
11342 always starting from frame 0.
11343
113442013-02-26 Anthony Green <green@moxielogic.com>
11345
11346 * configure.tgt: Add support for moxie-*-rtems* target.
11347
113482013-02-25 Pedro Alves <palves@redhat.com>
11349
11350 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11351 warning text.
11352
113532013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11354
11355 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11356 if $fp is used as the virtual frame pointer.
11357
113582013-02-23 Alan Modra <amodra@gmail.com>
11359
11360 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11361 symbol size.
11362 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11363 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11364 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11365 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11366
113672013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11368
11369 Code cleanup.
11370 * elfread.c (build_id_bfd_get): Make the return type const.
11371 (build_id_verify): Make the check parameter const.
11372 (build_id_to_debug_filename): Make the build_id parameter and variable
11373 data const.
11374 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11375
113762013-02-21 Alan Modra <amodra@gmail.com>
11377
11378 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11379
113802013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11381
11382 Add a new method 'disassemble' to gdb.Architecture class.
11383 * python/py-arch.c (archpy_disassmble): Implementation of the
11384 new method gdb.Architecture.disassemble.
11385 (arch_object_methods): Add entry for the new method.
11386
113872013-02-20 Jiong Wang <jiwang@tilera.com>
11388
11389 * MAINTAINERS (Write After Approval): Add myself to the list.
11390
113912013-02-19 Pedro Alves <palves@redhat.com>
11392
11393 Garbage collect 'struct monitor_ops'::load_routine.
11394
11395 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11396 * monitor.c (monitor_load): No longer call
11397 current_monitor->load_routine.
11398 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11399 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11400 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11401
114022013-02-19 Pedro Alves <palves@redhat.com>
11403
11404 PR gdb/15161
11405
11406 Harmonize with generic_load.
11407
11408 * monitor.c: Include "readline/readline.h".
11409 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11410 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11411 long/strtol for the 'load_offset' local. Error out if no argument
11412 is given or if too many arguments are given. Tilde expand the
11413 passed in file name.
11414
114152013-02-19 Kai Tietz <ktietz@redhat.com>
11416
11417 PR gdb/15161
11418 * symfile.c (load_section_data): Change type of load_offset
11419 to CORE_ADDR.
11420 (generic_load): User strtoulst instead of strtoul for conversion
11421 of load_offset.
11422
114232013-02-19 Jiong Wang <jiwang@tilera.com>
11424
11425 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11426 for return address, "lr" register, saved on stack.
11427 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11428 after we invoke tilegx_analyze_prologue.
11429
114302013-02-19 Jiong Wang <jiwang@tilera.com>
11431
11432 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11433
114342013-02-19 Jiong Wang <jiwang@tilera.com>
11435
11436 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11437
114382013-02-19 Jiong Wang <jiwang@tilera.com>
11439
11440 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11441 (tilegx_write_pc): New function.
11442 (tilegx_cannot_reference_register): Return zero if REGNO
11443 is TILEGX_FAULTNUM_REGNUM.
11444 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11445 (tilegx_register_name): Add handling of "faultnum" register.
11446 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11447 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11448 handling of TILEGX_FAULTNUM_REGNUM.
11449 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11450
114512013-02-19 Jiong Wang <jiwang@tilera.com>
11452
11453 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11454 should be aligned to 64bit.
11455
114562013-02-19 Kai Tietz <ktietz@redhat.com>
11457
11458 * windows-nat.c (windows_xfer_memory): Fix debug-output
11459 for LLP64.
11460
114612013-02-19 Lei Liu <lei.liu2@windriver.com>
11462
11463 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11464 Don't check DSP register number if HAVE_DSP is not set.
11465
114662013-02-19 Alan Modra <amodra@gmail.com>
11467
11468 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11469 throughout file instead.
11470 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11471 Don't xmalloc return value.
11472 (build_id_verify): Similarly. Don't xfree.
11473 (build_id_to_debug_filename): Update.
11474 (find_separate_debug_file_by_buildid): Update, don't xfree.
11475
114762013-02-18 Tom Tromey <tromey@redhat.com>
11477
11478 PR gdb/15102:
11479 * dwarf2read.c (read_subrange_type): Use result of
11480 'check_typedef'.
11481
114822013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11483
11484 * frame.c: Remove one extra white space after #include
11485 directive.
11486
114872013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11488
11489 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11490
114912013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11492
11493 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11494 and dir commands into an if block.
11495
114962013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11497
11498 * python/py-breakpoint (struct pybp_code): Use int instead of
11499 enum type_code.
11500
115012013-02-15 Pedro Alves <pedro@codesourcery.com>
11502 Hafiz Abid Qadeer <abidh@codesourcery.com>
11503
11504 * NEWS: Mention new field "trace-file".
11505 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11506 (tfile_open): Record the trace file's filename in the trace
11507 status.
11508 (tfile_files_info): Mention the name of the trace file.
11509 Check the "filename" field explicitely.
11510 (trace_status_command): Explicitely check "filename" field.
11511 (trace_find_command): Ditto.
11512 (trace_find_pc_command): Ditto.
11513 (trace_find_tracepoint_command): Ditto.
11514 (trace_find_line_command): Ditto.
11515 (trace_find_range_command): Ditto.
11516 (trace_find_outside_command): Ditto.
11517 * tracepoint.h (struct trace_status) <from_file>: Rename it
11518 to "filename" and make it hold the trace file's filename
11519 instead of a boolean.
11520 * remote.c (remote_get_trace_status): Initialize "filename"
11521 field with NULL instead of 0.
11522
115232013-02-15 Yao Qi <yao@codesourcery.com>
11524
11525 * remote.c: Fix a typo.
11526
115272013-02-14 Pierre Muller <muller@sourceware.org>
11528
11529 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11530
115312013-02-14 Pedro Alves <palves@redhat.com>
11532
11533 * utils.c (savestring): Don't #undef it. Move function to
11534 common/common-utils.c.
11535 * common/common-utils.c: Include gdb_string.h.
11536 (savestring): Move here from utils.c.
11537 * common/common-utils.h (savestring): Declare.
11538
115392013-02-14 Pedro Alves <palves@redhat.com>
11540
11541 * utils.c (savestring): Rename parameter 'size' to 'len'.
11542
115432013-02-14 Pedro Alves <palves@redhat.com>
11544 Yufeng Zhang <yufeng.zhang@arm.com>
11545
11546 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11547 (aarch64_inferior_data, struct aarch64_inferior_data):
11548 Delete.
11549 (struct aarch64_process_info): New.
11550 (aarch64_process_list): New global.
11551 (aarch64_find_process_pid, aarch64_add_process)
11552 (aarch64_process_info_get): New functions.
11553 (aarch64_inferior_data_get): Delete.
11554 (aarch64_process_info_get): New function.
11555 (aarch64_forget_process): New function.
11556 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11557 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11558 aarch64_get_debug_reg_state.
11559 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11560 instead of linux_nat_iterate_watchpoint_lwps.
11561 (aarch64_linux_new_fork): New function.
11562 (aarch64_linux_child_post_startup_inferior): Use
11563 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11564 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11565 (aarch64_linux_remove_hw_breakpoint)
11566 (aarch64_handle_aligned_watchpoint)
11567 (aarch64_handle_unaligned_watchpoint)
11568 (aarch64_linux_insert_watchpoint)
11569 (aarch64_linux_remove_watchpoint)
11570 (aarch64_linux_stopped_data_address): Adjust to pass the current
11571 process id to aarch64_debug_reg_state.
11572 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11573 linux_nat_new_fork hook, and aarch64_forget_process as
11574 linux_nat_forget_process hook; remove the call to
11575 register_inferior_data_with_cleanup.
11576
115772013-02-14 Pedro Alves <palves@redhat.com>
11578
11579 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11580 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11581 lval_memory.
11582
115832013-02-14 Pedro Alves <pedro@codesourcery.com>
11584 Hafiz Abid Qadeer <abidh@codesourcery.com>
11585
11586 * tracepoint.h (validate_trace_state_variable_name): Declare.
11587 * tracepoint.c (validate_trace_state_variable_name): New.
11588 (trace_variable_command): Parse the trace state variable's name
11589 without using parse_expression. Do several validations.
11590 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11591 trace state variable's name with parse_expression. Validate it.
11592
115932013-02-14 Yao Qi <yao@codesourcery.com>
11594
11595 * infcmd.c (breakpoint_proceeded): Remove it.
11596
115972013-02-14 Yao Qi <yao@codesourcery.com>
11598
11599 * tracepoint.c (end_actions_pseudocommand): Make it static.
11600 (while_stepping_pseudocommand): Likewise.
11601 * tracepoint.h (end_actions_pseudocommand): Remove the
11602 declaration.
11603 (while_stepping_pseudocommand): Likewise.
11604
116052013-02-14 Yao Qi <yao@codesourcery.com>
11606
11607 * cli/cli-decode.c (help_cmd): Remove the declaration of
11608 "cmdlist".
11609 (help_all): Likewise.
11610
116112013-02-13 Pedro Alves <palves@redhat.com>
11612
11613 * amd64-linux-nat.c (update_debug_registers_callback):
11614 Update comment.
11615 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11616 iterate_over_lwps.
11617 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11618 i386_debug_reg_state.
11619 (amd64_linux_new_fork): New function.
11620 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11621 linux_nat_new_fork hook, and i386_forget_process as
11622 linux_nat_forget_process hook.
11623 * i386-linux-nat.c (update_debug_registers_callback):
11624 Update comment.
11625 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11626 iterate_over_lwps.
11627 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11628 i386_debug_reg_state.
11629 (i386_linux_new_fork): New function.
11630 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11631 linux_nat_new_fork hook, and i386_forget_process as
11632 linux_nat_forget_process hook.
11633 * i386-nat.c (i386_init_dregs): Delete.
11634 (i386_inferior_data, struct i386_inferior_data):
11635 Delete.
11636 (struct i386_process_info): New.
11637 (i386_process_list): New global.
11638 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11639 New functions.
11640 (i386_inferior_data_get): Delete.
11641 (i386_process_info_get): New function.
11642 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11643 (i386_forget_process): New function.
11644 (i386_cleanup_dregs): Rewrite.
11645 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11646 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11647 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11648 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11649 to i386_debug_reg_state.
11650 (i386_use_watchpoints): Don't register inferior data.
11651 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11652 adjust comment.
11653 (i386_forget_process): Declare.
11654 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11655 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11656 New static globals.
11657 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11658 (add_initial_lwp): New, factored out from ...
11659 (add_lwp): ... this. Don't check the number of lwps before
11660 calling linux_nat_new_thread.
11661 (linux_nat_iterate_watchpoint_lwps): Delete.
11662 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11663 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11664 forks and vforks.
11665 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11666 initial lwp.
11667 (linux_nat_kill, linux_nat_mourn_inferior): Call
11668 linux_nat_forget_process.
11669 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11670 (linux_nat_forget_process): New functions.
11671 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11672 type.
11673 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11674 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11675 types.
11676 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11677 (linux_nat_forget_process): New declarations.
11678
11679 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11680 (amd64fbsd_mourn_inferior): New function.
11681 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11682 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11683
116842013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11685
11686 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11687 Adding _().
11688
116892013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11690
11691 * aarch64-linux-nat.c (debug_reg_change_callback)
11692 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11693 %s and phex().
11694
116952013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11696
11697 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11698 with LONGEST.
11699
117002013-02-13 Pedro Alves <palves@redhat.com>
11701 Hafiz Abid Qadeer <abidh@codesourcery.com>
11702
11703 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11704
117052013-02-12 Tom Tromey <tromey@redhat.com>
11706
11707 PR symtab/11464:
11708 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11709 NAME return.
11710 (classify_inner_name): Remove 'first_name' argument, add
11711 'context'. Remove unused variable.
11712 (yylex): Explicitly maintain the context type. Exit loop earlier
11713 if NAME result is seen.
11714
117152013-02-12 Pedro Alves <palves@redhat.com>
11716
11717 * amd64-darwin-tdep.c: Add (C) after Copyright.
11718 * cli/cli-cmds.h: Ditto.
11719 * cli/cli-decode.c: Ditto.
11720 * cli/cli-decode.h: Ditto.
11721 * cli/cli-dump.c: Ditto.
11722 * cli/cli-dump.h: Ditto.
11723 * cli/cli-interp.c: Ditto.
11724 * cli/cli-logging.c: Ditto.
11725 * cli/cli-script.c: Ditto.
11726 * cli/cli-script.h: Ditto.
11727 * cli/cli-setshow.c: Ditto.
11728 * cli/cli-setshow.h: Ditto.
11729 * cli/cli-utils.c: Ditto.
11730 * cli/cli-utils.h: Ditto.
11731 * config/alpha/nm-osf3.h: Ditto.
11732 * config/djgpp/djconfig.sh: Ditto.
11733 * config/i386/nm-fbsd.h: Ditto.
11734 * config/i386/nm-i386gnu.h: Ditto.
11735 * config/nm-linux.h: Ditto.
11736 * config/nm-nto.h: Ditto.
11737 * config/rs6000/nm-rs6000.h: Ditto.
11738 * config/sparc/nm-sol2.h: Ditto.
11739 * darwin-nat-info.c: Ditto.
11740 * dfp.c: Ditto.
11741 * dfp.h: Ditto.
11742 * gdb-demangle.h: Ditto.
11743 * i386-darwin-nat.c: Ditto.
11744 * i386-darwin-tdep.c: Ditto.
11745 * linux-fork.h: Ditto.
11746 * m32c-tdep.c: Ditto.
11747 * microblaze-linux-tdep.c: Ditto.
11748 * microblaze-rom.c: Ditto.
11749 * microblaze-tdep.c: Ditto.
11750 * microblaze-tdep.h: Ditto.
11751 * mips-linux-tdep.h: Ditto.
11752 * ppc-ravenscar-thread.c: Ditto.
11753 * ppc-ravenscar-thread.h: Ditto.
11754 * prologue-value.c: Ditto.
11755 * prologue-value.h: Ditto.
11756 * ravenscar-thread.c: Ditto.
11757 * ravenscar-thread.h: Ditto.
11758 * sparc-ravenscar-thread.c: Ditto.
11759 * sparc-ravenscar-thread.h: Ditto.
11760 * tilegx-linux-tdep.c: Ditto.
11761 * unwind_stop_reasons.def: Ditto.
11762 * windows-nat.h: Ditto.
11763 * xtensa-linux-tdep.c: Ditto.
11764 * xtensa-xtregs.c: Ditto.
11765 * regformats/regdat.sh: Ditto.
11766 * regformats/regdef.h: Ditto.
11767
117682013-02-12 Pedro Alves <palves@redhat.com>
11769
11770 * break-catch-sig.c: Update copyright years.
11771
117722013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11773
11774 Add support for a destructor for ui_out data and use it to
11775 provide a ui_out destructor.
11776 * ui-out.h: Declare the new ui_out destructor.
11777 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11778 * ui-out.c (default_data_destroy): Add a default data destructor
11779 which does nothing.
11780 (default_ui_out_impl): Set the new data_destroy field to
11781 default_data_destroy
11782 (uo_data_destroy): Local function which invokes the data
11783 destructor if present.
11784 (clear_table): Local function which clears the table data of a
11785 ui_out object.
11786 (ui_out_destroy): Public function which frees a ui_out object.
11787 (ui_out_table_end): Use the new clear_table function.
11788 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11789 NULL.
11790 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11791 to NULL.
11792
117932013-02-11 Doug Evans <dje@google.com>
11794
11795 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11796 (printf_decfloat): New function. Broken out from ui_printf.
11797 Remove unnecessary code to shift the entire format string down.
11798 (printf_pointer): New function.
11799 (ui_printf): Code to print C strings, wide C strings, decfloats,
11800 and pointers moved to separate functions.
11801
118022013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11803
11804 * valops.c (value_assign): Handling bitfield offset in
11805 `lval_internalvar_component' case.
11806
118072013-02-08 Doug Evans <dje@google.com>
11808
11809 * common/format.c (parse_format_string): Fix whitespace.
11810
118112013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11812
11813 * stack.c (return_command): Work around uninitialized variable
11814 warning.
11815
118162013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11817
11818 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11819 number of the registers from 36 to 34.
11820
118212013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11822
11823 * NEWS: Mention new AArch64 native and target support.
11824
118252013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11826
11827 * MAINTAINERS (Write After Approval): Add myself.
11828
118292013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11830 Marcus Shawcroft <marcus.shawcroft@arm.com>
11831 Nigel Stephens <nigel.stephens@arm.com>
11832 Yufeng Zhang <yufeng.zhang@arm.com>
11833
11834 * aarch64-linux-nat.c: New file.
11835 * config/aarch64/linux.mh: New file.
11836 * configure.host: Add AArch64.
11837 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11838
118392013-02-07 Doug Evans <dje@google.com>
11840
11841 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11842 disassemble command.
11843
118442013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11845
11846 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11847 set_gdbarch_fetch_tls_load_module_address.
11848
118492013-02-06 David S. Miller <davem@davemloft.net>
11850
11851 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11852 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11853 * value.c (struct_return_convention): New function.
11854 (using_struct_return): Implement in terms of struct_return_convention.
11855 * value.h (struct_return_convention): Declare.
11856 * stack.c (return_command): Allow successful overriding of the return
11857 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11858
118592013-02-06 Tom Tromey <tromey@redhat.com>
11860
11861 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11862 outside of TRY_CATCH.
11863
118642013-02-06 Yao Qi <yao@codesourcery.com>
11865
11866 * mi/mi-interp.c: Include "tracepoint.h".
11867 (mi_tsv_modified): Declare.
11868 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11869 (mi_interpreter_init): Call observer_attach_tsv_modified.
11870 (mi_tsv_modified): New.
11871 (mi_tsv_created, mi_tsv_deleted): Update.
11872 * tracepoint.c (trace_variable_command): Call
11873 observer_notify_tsv_modified if the initial value of tsv is
11874 changed.
11875 (delete_trace_state_variable): Call
11876 observer_notify_tsv_deleted earlier.
11877 (trace_variable_command): Caller update.
11878 (create_tsv_from_upload): Likewise.
11879 * observer.sh: Declare "struct trace_state_variable".
11880
11881 * NEWS: Mention the new MI notification "=tsv-modified".
11882
118832013-02-05 Doug Evans <dje@google.com>
11884
11885 * completer.c (location_completer): Fix typo in comment.
11886
118872013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11888
11889 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11890 ADDRESS sorted.
11891
118922013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11893
11894 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11895 Refactor if statement to avoid trailing || operator.
11896
118972013-02-05 Andreas Tobler <andreast@fgznet.ch>
11898
11899 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11900
119012013-02-04 Andreas Tobler <andreast@fgznet.ch>
11902
11903 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11904 * configure.host: Add powerpc*-*-freebsd* target.
11905 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11906 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11907 * config/powerpc/fbsd.mh: New file.
11908
119092013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11910 Denys Vlasenko <dvlasenk@redhat.com>
11911 Pedro Alves <palves@redhat.com>
11912
11913 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11914 (struct elf_internal_linux_prpsinfo): Forward declare.
11915 * gdbarch.h, gdbarch.c: Regenerate.
11916 * linux-tdep.c: Include `cli/cli-utils.h'.
11917 (linux_fill_prpsinfo): New function.
11918 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11919 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11920 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11921 depending on gdbarch pointer bitness.
11922 * ppc-linux-tdep.c: Include elf-bfd.h.
11923 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11924 on 32-bit.
11925
119262013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11927 Marcus Shawcroft <marcus.shawcroft@arm.com>
11928 Nigel Stephens <nigel.stephens@arm.com>
11929 Yufeng Zhang <yufeng.zhang@arm.com>
11930
11931 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11932
119332013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11934 Marcus Shawcroft <marcus.shawcroft@arm.com>
11935 Nigel Stephens <nigel.stephens@arm.com>
11936 Yufeng Zhang <yufeng.zhang@arm.com>
11937
11938 * aarch64-newlib-tdep.c: New file.
11939 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11940 aarch64*-*-elf.
11941 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11942 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11943 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11944 * osabi.c (gdb_osabi_names): Add "Newlib".
11945
119462013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11947 Marcus Shawcroft <marcus.shawcroft@arm.com>
11948 Nigel Stephens <nigel.stephens@arm.com>
11949 Yufeng Zhang <yufeng.zhang@arm.com>
11950
11951 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
11952 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11953 * aarch64-linux-tdep.c: New file.
11954 * aarch64-linux-tdep.h: New file.
11955 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11956 * configure.tgt: Add aarch64-none-linux-gnu.
11957
119582013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11959 Marcus Shawcroft <marcus.shawcroft@arm.com>
11960 Nigel Stephens <nigel.stephens@arm.com>
11961 Yufeng Zhang <yufeng.zhang@arm.com>
11962
11963 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11964 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11965 (ALLDEPFILES): Add aarch64-tdep.c.
11966 * aarch64-tdep.c: New file.
11967 * aarch64-tdep.h: New file.
11968 * configure.tgt: Add AArch64.
11969 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11970 (aarch64-expedite): New definition.
11971 * features/aarch64-core.xml: New file.
11972 * features/aarch64-fpu.xml: New file.
11973 * features/aarch64-without-fpu.c: New file (generated).
11974 * features/aarch64-without-fpu.xml: New file.
11975 * features/aarch64.c: New file (generated).
11976 * features/aarch64.xml: New file.
11977 * regformats/aarch64-without-fpu.dat: New file (generated).
11978 * regformats/aarch64.dat: New file (generated).
11979
119802013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11981
11982 * contrib/expect-read1.c: New file.
11983 * contrib/expect-read1.sh: New file.
11984
119852013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11986
11987 * dwarf2read.c (file_file_name): New function with code from
11988 file_full_name.
11989 (file_full_name): Move most of the code to file_file_name.
11990 (macro_start_file): Rename variable full_name to file_name and use
11991 file_file_name for it. Add comp_dir parameter to new_macro_table.
11992 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
11993 macro_source_file->filename access by macro_source_fullname call.
11994 * macroscope.c (_initialize_macroscope): Update the new_macro_table
11995 caller.
11996 * macrotab.c (struct macro_table): New field comp_dir.
11997 (macro_include): New variables link_fullname and source_fullname.
11998 Replace any macro_source_file->filename access by macro_source_fullname
11999 call.
12000 (macro_lookup_inclusion): Remove the partial filenames checking code.
12001 (check_for_redefinition): New variables source_fullname and
12002 found_key_fullname. Replace any macro_source_file->filename access by
12003 macro_source_fullname call.
12004 (macro_undef): New variables source_fullname and key_fullname. Replace
12005 any macro_source_file->filename access by macro_source_fullname call.
12006 (macro_lookup_definition): New variables retval and source_fullname.
12007 Replace any macro_source_file->filename access by macro_source_fullname
12008 call.
12009 (foreach_macro): New variable key_fullname. Replace any
12010 macro_source_file->filename access by macro_source_fullname call.
12011 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12012 macro_source_file->filename access by macro_source_fullname call.
12013 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12014 (macro_source_fullname): New function.
12015 * macrotab.h (struct macro_source_file): Extent the filename field
12016 comment.
12017 (new_macro_table): New parameter comp_dir, add a comment for it.
12018 (macro_source_fullname): new declaration.
12019
120202013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12023 this_real_name to outer block. Use it also for
12024 compare_filenames_for_search.
12025 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12026 with dw2_get_real_path for file_matcher, considering also
12027 BASENAMES_MAY_DIFFER.
12028 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12029
120302013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12033 to the file_matcher parameter. Pass 0 to it.
12034 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12035 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12036 NULL psymtab_to_fullname result.
12037 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12038 an expected filename instead.
12039 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12040 file_matcher parameter. Call also psymtab_to_fullname, after newly
12041 considering BASENAMES_MAY_DIFFER.
12042 * source.c (rewrite_source_path): Remove static.
12043 * source.h (rewrite_source_path): New declaration.
12044 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12045 the expand_symtabs_matching field. Comment it.
12046 * symtab.c (file_matches): New function comment. Add parameter
12047 basenames, implement it.
12048 (search_symbols_file_matches): Add basenames parameter. Update the
12049 file_matches caller.
12050 (search_symbols): Match FILES also against symtab_to_fullname.
12051 Optimize it for BASENAMES_MAY_DIFFER.
12052
120532013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12054
12055 * source.c (print_source_lines_base): Print for TUI also "fullname".
12056 * tui/tui-data.c (init_content_element): Change tui_locator_element
12057 field to full_name.
12058 * tui/tui-data.h (struct tui_locator_element): Likewise.
12059 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12060 tui_update_locator_filename calls to tui_update_locator_fullname.
12061 Replace symtab->filename refererence by symtab_to_fullname call.
12062 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12063 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12064 field to full_name. Replace symtab->filename refererence by
12065 symtab_to_fullname call.
12066 (tui_show_symtab_source): Rename parameter to fullname. Change
12067 tui_locator_element field to full_name.
12068 * tui/tui-stack.c: Include source.h.
12069 (tui_set_locator_filename): Rename the declaration to ...
12070 (tui_set_locator_fullname): ... here. Rename its parameter to
12071 fullname, updates its comment.
12072 (tui_set_locator_info): Rename its parameter to fullname.
12073 (tui_set_locator_filename): Rename the definition to ...
12074 (tui_set_locator_fullname): ... here. Rename its parameter to
12075 fullname, updates its comment. Change tui_locator_element field to
12076 full_name.
12077 (tui_set_locator_info): Rename its parameter to fullname.
12078 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12079 (tui_update_locator_filename): Rename to ...
12080 (tui_update_locator_fullname): ... here. Rename callee to
12081 tui_set_locator_fullname.
12082 (tui_show_frame_info): Replace symtab->filename refererence by
12083 symtab_to_fullname call.
12084 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12085 (tui_update_locator_fullname): ... here.
12086 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12087 tui_update_locator_fullname. Replace symtab->filename refererence by
12088 symtab_to_fullname call.
12089 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12090 Rename the callee to tui_update_locator_fullname.
12091 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12092
120932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12094
12095 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12096 by symtab_to_filename_for_display calls.
12097 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12098 (clear_command): New variable sal_fullname, initialize it. Replace
12099 compare_filenames_for_search by filename_cmp with sal_fullname.
12100 (say_where, update_static_tracepoint): Replace symtab->filename
12101 refererences by symtab_to_filename_for_display calls.
12102 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12103 Likewise.
12104 * dwarf2read.c: Include source.h.
12105 (fixup_go_packaging): Replace symtab->filename refererences by
12106 symtab_to_filename_for_display calls.
12107 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12108 Replace symtab->filename refererences by symtab_to_filename_for_display
12109 calls.
12110 (create_sals_line_offset, convert_linespec_to_sals): New variable
12111 fullname, initialize it, replace symtab->filename reference by the
12112 variable.
12113 * linux-fork.c: Include source.h.
12114 (info_checkpoints_command): Replace symtab->filename refererences by
12115 symtab_to_filename_for_display calls.
12116 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12117 by symtab_to_filename_for_display calls.
12118 * mdebugread.c: Include source.h.
12119 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12120 symtab_to_filename_for_display calls.
12121 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12122 (mi_cmd_file_list_exec_source_files): Likewise.
12123 * printcmd.c: Include source.h.
12124 (build_address_symbolic): Replace symtab->filename refererences by
12125 symtab_to_filename_for_display calls.
12126 * psymtab.c (partial_map_symtabs_matching_filename)
12127 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12128 with psymtab_to_fullname.
12129 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12130 by symtab_to_filename_for_display calls.
12131 (stpy_get_filename): New variable filename, initialize it, use instead
12132 of symtab->filename refererences.
12133 (salpy_str): Make variable filename const char *. Replace
12134 symtab->filename refererences by symtab_to_filename_for_display calls.
12135 * skip.c: Include source.h and filenames.h.
12136 (skip_file_command): Remove const from the symtab variable. Replace
12137 symtab->filename refererences by symtab_to_fullname call.
12138 (function_name_is_marked_for_skip): New variables searched_for_fullname
12139 and fullname. Use them to search also with symtab's fullname.
12140 * source.c (find_source_lines): Replace symtab->filename refererences
12141 by symtab_to_filename_for_display calls.
12142 (print_source_lines_base): New variable filename, use it instead of
12143 symtab->filename. Replace symtab->filename refererences by
12144 symtab_to_filename_for_display calls.
12145 (line_info, forward_search_command): Replace symtab->filename
12146 refererences by symtab_to_filename_for_display calls.
12147 (reverse_search_command): Replace symtab->filename refererences by
12148 symtab_to_filename_for_display calls. New variable filename for it.
12149 * stack.c (frame_info): Likewise.
12150 * symmisc.c: Include source.h.
12151 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12152 (maintenance_info_symtabs): Replace symtab->filename refererences by
12153 symtab_to_filename_for_display calls.
12154 * symtab.c (iterate_over_some_symtabs): Call
12155 compare_filenames_for_search also with symtab_to_fullname.
12156 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12157 symtab->filename refererences by symtab_to_filename_for_display calls.
12158 (find_line_symtab): Replace symtab->filename refererences by
12159 symtab_to_filename_for_display calls.
12160 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12161 (print_symbol_info): Make the last parameter const char *. New
12162 variable s_filename. Use it in the function.
12163 (symtab_symbol_info): Make the last_filename variable const char *.
12164 Replace symtab->filename refererences by symtab_to_filename_for_display
12165 calls.
12166 (rbreak_command): New variable fullname. Use it. Replace
12167 symtab->filename refererence by symtab_to_filename_for_display call.
12168 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12169 (print_one_static_tracepoint_marker): Replace symtab->filename
12170 refererences by symtab_to_filename_for_display calls.
12171 * tui/tui-source.c (tui_set_source_content): New variables filename and
12172 s_filename. Replace symtab->filename refererences by this variable.
12173 Replace other symtab->filename refererences by
12174 symtab_to_filename_for_display calls.
12175
121762013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12177 Jan Kratochvil <jan.kratochvil@redhat.com>
12178
12179 Add a new variable that controls a way in which filenames are
12180 displayed.
12181 * NEWS (set filename-display): New entry.
12182 * source.c (filename_display_basename, filename_display_relative)
12183 (filename_display_absolute, filename_display_kind_names)
12184 (filename_display_string, show_filename_display_string)
12185 (symtab_to_filename_for_display): New.
12186 (_initialize_source): Added initialization of 'filename-display'
12187 variable.
12188 * source.h (symtab_to_filename_for_display): Added declaration.
12189 * stack.c (print_frame): Added new variable and calling of a new
12190 function and condition with this variable. Changed third argument of
12191 calling of a function.
12192
121932013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12196 Rename field reference filename to fullname.
12197 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12198 fullname. New comment for it.
12199 * tui/tui-source.c (tui_set_source_content): Rename field reference
12200 filename to fullname. Initialize field by symtab_to_fullname now.
12201 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12202 reference filename to fullname. Use symtab_to_fullname during
12203 comparison.
12204
122052013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 Code cleanup.
12208 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12209 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12210 filename to fullname. Rename variable this_name to this_fullname.
12211 Lowercase FILENAME_CMP call.
12212 (dw2_find_symbol_file): New comment for the returned string.
12213 (dwarf2_gdb_index_functions): Rename the function to
12214 dw2_expand_symtabs_with_fullname.
12215 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12216 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12217 fullname.
12218 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12219 * symfile.h (struct quick_symbol_functions): Rename field
12220 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12221 parameter filename to fullname. Document returned string meaning for
12222 find_symbol_file.
12223 * symtab.c (find_line_symtab): Rename the called function to
12224 expand_symtabs_with_fullname.
12225
122262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12227
12228 Code cleanup.
12229 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12230 call of filename_cmp with compare_filenames_for_search.
12231 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12232 is_abs, unify the call of FILENAME_CMP with
12233 compare_filenames_for_search. New gdb_asserts for real_path and name.
12234 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12235 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12236 * symfile.h (struct quick_symbol_functions): Extend the comment for
12237 map_symtabs_matching_filename.
12238 * symtab.c (compare_filenames_for_search): Remove the function comment
12239 relative path requirement. Handle absolute filenames, with a comment.
12240 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12241 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12242 real_path and name. Unify the call of compare_filenames_for_search
12243 with FILENAME_CMP.
12244 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12245
122462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12247
12248 Code cleanup.
12249 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12250 source_file references by symtab field references. Remove variables
12251 sal and fullname.
12252 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12253 (clear_command, say_where): Replace bp_location field source_file
12254 references by symtab field references.
12255 (bp_location_dtor): Remove the source_file reference.
12256 (update_static_tracepoint): Replace bp_location field source_file
12257 references by symtab field references.
12258 (breakpoint_free_objfile): New function.
12259 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12260 Replace the field source_file by field symtab, extend its comment.
12261 (breakpoint_free_objfile): New declaration.
12262 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12263 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12264 field source_file references by symtab field references.
12265
122662013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12267
12268 Replace xfullpath calls by gdb_realpath calls.
12269 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12270 function comment.
12271 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12272 Remove it from the iterate_over_some_symtabs call.
12273 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12274 Remove it from the dw2_map_expand_apply calls, remove a block handling
12275 it.
12276 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12277 Remove it from the iterate_over_some_symtabs call.
12278 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12279 Remove it from the partial_map_expand_apply calls, remove a block
12280 handling it. Drop gdb_realpath call and cleanups from the real_path
12281 handling.
12282 * source.c (openp): Drop the comment part about xfullpath. Replace
12283 xfullpath calls by gdb_realpath calls.
12284 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12285 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12286 from method map_symtabs_matching_filename and its comment.
12287 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12288 gdb_realpath call.
12289 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12290 remove it also from the function comment, remove a block handling it.
12291 Drop gdb_realpath call and cleanups from the real_path handling.
12292 (iterate_over_symtabs): Drop variable full_path and its use.
12293 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12294 * utils.c (xfullpath): Remove.
12295 * utils.h (xfullpath): Remove.
12296
122972013-02-01 Andreas Tobler <andreast@fgznet.ch>
12298
12299 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12300 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12301 (ALLDEPFILES): Add ppc64-tdep.c.
12302 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12303 ppc64-tdep.o to gdb_target_obs.
12304 * ppc64-tdep.h: New file.
12305 * ppc64-tdep.c: New file.
12306 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12307 ppc-linux-tdep.c to here.
12308 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12309 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12310 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12311 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12312 from ppc-linux-tdep.c to here.
12313 (ppc64_convert_from_func_ptr_addr): Rename from
12314 ppc64_linux_convert_from_func_ptr_addr to
12315 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12316 here.
12317 * rs6000-tdep.c:
12318 (read_insn): Move from ppc-linux-tdep.c to here.
12319 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12320 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12321 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12322 Removed above functions.
12323 (ppc_linux_init_abi): Adjust.
12324
123252013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12326
12327 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12328
123292013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12330
12331 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12332
123332013-02-01 Pedro Alves <palves@redhat.com>
12334
12335 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12336 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12337
123382013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12339
12340 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12341 files with no separate debug info.
12342 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12343 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12344 only for files with no separate debug info.
12345
123462013-01-31 Tom Tromey <tromey@redhat.com>
12347
12348 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12349 change type.
12350 (struct jit_program_space_data): Rename from jit_inferior_data.
12351 Update comments.
12352 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12353 Change return type. Attach data to program space.
12354 (jit_program_space_data_cleanup): Rename from
12355 jit_inferior_data_cleanup; change argument type.
12356 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12357 change type.
12358 (jit_register_code): Update.
12359 (jit_update_inferior_cache): Remove.
12360 (jit_breakpoint_deleted): Get jit data from the location's program
12361 space.
12362 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12363 'ps_data', change type.
12364 (jit_inferior_init, jit_breakpoint_re_set_internal)
12365 (jit_event_handler): Update.
12366 (free_objfile_data): Get data from objfile's program space.
12367 (_initialize_jit): Update.
12368
123692013-01-31 Tom Tromey <tromey@redhat.com>
12370
12371 PR gdb/13987:
12372 * jit.c (struct jit_inferior_data) <cached_code_address,
12373 jit_breakpoint>: New fields.
12374 (jit_breakpoint_re_set_internal): Fix logging. Only create
12375 breakpoint if cached address has changed.
12376 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12377 functions.
12378 (_initialize_jit): Register breakpoint deleted observer.
12379
123802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12381
12382 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12383 (save_infcall_suspend_state): Ifdef out unused inf.
12384 (restore_infcall_suspend_state): Ifdef out unused inf.
12385 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12386 (jit_frame_sniffer): Remove unused inf_data.
12387
123882013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12389
12390 * c-exp.y (classify_inner_name): Remove unused type.
12391 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12392 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12393 need_escape.
12394 (c_get_string): Remove unused kind.
12395 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12396
123972013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12398
12399 * charset.c (intermediate_encoding): Remove unused i.
12400 * completer.c (signal_completer): Remove unused i.
12401 * continuations.c (discard_my_continuations_1): Remove unused
12402 continuation_ptr.
12403 * corelow.c (core_close): Remove unuseD name.
12404 (get_core_siginfo): Remove unused pid.
12405 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12406 i, cps.
12407 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12408 (loclist_describe_location): Remove unused first.
12409 * event-top.c (command_line_handler): Remove unused got_eof.
12410 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12411 (resize_section_table): Remove unused old_value.
12412 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12413 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12414 * i386-tdep.c (i386_process_record): Remove unused rex.
12415 * infcmd.c (get_return_value): Remove unused uiout.
12416 * jv-lang.c (type_from_class): Remove unused is_array.
12417 * jv-valprint.c (java_val_print): Remove unused i.
12418 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12419 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12420 * m2-typeprint.c (m2_print_type): Remove unused code.
12421 * macroexp.c (get_character_constant): Remove unused body_start.
12422 (macro_stringify): Remove unused result.
12423 * objc-lang.c (find_methods): Remove unused gdbarch.
12424 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12425 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12426 * stack.c (print_frame_args): Remove unused summary.
12427 * thread.c (thread_apply_command): Remove unused p.
12428 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12429 * valops.c (search_struct_method): Remove unused skip.
12430 * valprint.c (generic_val_print): Remove unused byte_order.
12431 * varobj.c (varobj_update): Remove unused changed.
12432 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12433 (alias_command): Remove unused c.
12434 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12435 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12436 format.
12437 (mi_cmd_data_write_memory): Remove unused word_format.
12438 (mi_cmd_data_write_memory_bytes): Remove unused r.
12439 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12440 p_start, p_end.
12441 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12442 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12443 line_width.
12444
124452013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12446
12447 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12448 * symtab.c (iterate_over_symtabs): Remove unused s.
12449 (find_pc_sect_symtab): Remove unused pspAce.
12450 (find_pc_sect_line): Remove unused alt_symtab.
12451 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12452 (completion_list_add_name): Remove unused newsize.
12453
124542013-01-31 Tom Tromey <tromey@redhat.com>
12455
12456 PR c++/14998:
12457 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12458 TYPE_CODE_FUNC.
12459
124602013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12461
12462 * target.c (target_read_string): Remove unused origlen.
12463
124642013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12465
12466 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12467 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12468 * ax-general.c (ax_print): Remove unused is_float.
12469 * blockframe.c (block_innermost_frame): Remove unused start, end.
12470 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12471
124722013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12473
12474 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12475 (svr4_read_so_list): Remove unused lmo.
12476 * solib-target.c (solib_target_relocate_section_addresses): Remove
12477 unused flags.
12478
124792013-01-30 Tom Tromey <tromey@redhat.com>
12480
12481 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12482
124832013-01-30 Tom Tromey <tromey@redhat.com>
12484
12485 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12486 * utils.c (gnu_debuglink_crc32): Remove.
12487 * utils.h (gnu_debuglink_crc32): Don't declare.
12488
124892013-01-30 Tom Tromey <tromey@redhat.com>
12490
12491 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12492 (read_structure_type, read_enumeration_type): Remove cast.
12493
124942013-01-30 Tom Tromey <tromey@redhat.com>
12495
12496 * dwarf2read.c (read_namespace_type): Remove cast.
12497 (read_typedef): Likewise.
12498
124992013-01-29 Tom Tromey <tromey@redhat.com>
12500
12501 * dwarf2read.c (free_dwo_file): Remove assert.
12502
125032013-01-29 Tom Tromey <tromey@redhat.com>
12504
12505 * value.c (deprecated_set_value_modifiable): Remove.
12506 * value.h (deprecated_set_value_modifiable): Remove.
12507
125082013-01-28 Doug Evans <dje@google.com>
12509
12510 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12511 to addresses from dwo files.
12512
125132013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12514
12515 * valops.c (find_overload_match): Remove unused argument 'lax'.
12516 * value.h: Remove unused argument 'lax' from the declaration of
12517 find_overload_match.
12518 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12519 to find_overload_match.
12520 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12521 argument to find_overload_match.
12522
125232013-01-25 Tom Tromey <tromey@redhat.com>
12524
12525 * dwarf2read.c (processing_has_namespace_info): Remove.
12526 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12527 (process_die, read_func_scope, dwarf2_start_symtab)
12528 (new_symbol_full): Update.
12529
125302013-01-25 Tom Tromey <tromey@redhat.com>
12531
12532 * cp-namespace.c (cp_set_block_scope): Remove.
12533 * cp-support.h (cp_set_block_scope): Remove.
12534 * dbxread.c: Include block.h.
12535 (cp_set_block_scope): New function.
12536 (process_one_symbol): Update.
12537 * dwarf2read.c (read_func_scope): Use block_set_scope.
12538
125392013-01-25 Pedro Alves <palves@redhat.com>
12540
12541 * remote.c (add_current_inferior_and_thread): Tweak comment.
12542
125432013-01-25 Tom Tromey <tromey@redhat.com>
12544
12545 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12546 (cp_add_using_directive): Add 'copy_names' argument.
12547 * cp-support.h (cp_add_using_directive): Update.
12548 (struct using_direct) <import_src, import_dest, alias,
12549 declaration>: Now const.
12550 * dwarf2read.c (read_import_statement): Use obconcat.
12551 Don't copy names passed to cp_add_using_directive.
12552
125532013-01-25 Tom Tromey <tromey@redhat.com>
12554
12555 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12556
125572013-01-25 Pedro Alves <palves@redhat.com>
12558
12559 * remote.c (stop_reply_extract_thread): New.
12560 (add_current_inferior_and_thread): New parameter 'wait_status'.
12561 Handle it.
12562 (remote_start_remote): Pass wait status to
12563 add_current_inferior_and_thread.
12564 (extended_remote_run): Update comment.
12565 (extended_remote_create_inferior_1): Pass wait status to
12566 add_current_inferior_and_thread.
12567
125682013-01-25 Andrew Burgess <aburgess@broadcom.com>
12569 Ulrich Weigand <uweigand@de.ibm.com>
12570
12571 * valarith.c (value_vector_widen): New function for replicating a
12572 scalar into a vector.
12573 (value_binop): Use value_vector_widen to widen scalar to vector
12574 rather than casting, this better matches gcc C behaviour.
12575 * valops.c (value_casst): Update logic for casting between vector
12576 types, and for casting from scalar to vector, try to match gcc C
12577 behaviour.
12578 * value.h (value_vector_widen): Declare.
12579 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12580 function, handle special case for casting scalar to vector.
12581 (opencl_relop): Use opencl_value_cast.
12582 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12583 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12584 in order to use opencl_value_cast.
12585
125862013-01-25 Yao Qi <yao@codesourcery.com>
12587
12588 * event-loop.c: Include "queue.h".
12589 (gdb_event_p): New typedef.
12590 (DECLARE_QUEUE_P): Use.
12591 (DEFINE_QUEUE_P): Use.
12592 (async_queue_event): Remove.
12593 (gdb_event_xfree): New.
12594 (initialize_event_loop): New.
12595 (process_event): Use QUEUE macros.
12596 (event_queue): Remove.
12597 (gdb_wait_for_event): Caller update.
12598 (check_async_event_handlers): Likewise.
12599 (poll_timers): Likewise.
12600 * event-loop.h (initialize_event_loop): Declare.
12601 * event-loop.c (gdb_event_xfree): New.
12602 * top.c (gdb_init): Call initialize_event_loop.
12603
126042013-01-25 Yao Qi <yao@codesourcery.com>
12605
12606 * event-loop.c (async_queue_event): Remove one parameter
12607 'position'. Remove code handling 'position' == TAIL.
12608 (gdb_wait_for_event): Caller update.
12609 (check_async_event_handlers): Caller update.
12610 (poll_timers): Caller update.
12611 * event-loop.h (enum queue_position): Remove.
12612
126132013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12614
12615 * MAINTAINERS: Update my email.
12616
126172013-01-25 Yao Qi <yao@codesourcery.com>
12618
12619 * main.c (print_gdb_help): Remove "--epoch" from the help
12620 message.
12621
126222013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12623
12624 * symtab.c (skip_prologue_using_sal): Consider a file
12625 change the same as an increased line number
12626
126272013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12628
12629 * MAINTAINERS (Write After Approval): Add myself to the list.
12630
126312013-01-24 Tom Tromey <tromey@redhat.com>
12632
12633 * ada-lang.h (ada_decode_symbol): Make return type const.
12634 * ada-lang.c (ada_decode_symbol): Likewise.
12635
126362013-01-23 Doug Evans <dje@google.com>
12637
12638 * linespec.c (find_linespec_symbols): Make static.
12639
126402013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12641
12642 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12643 type on float conversion for complex type.
12644
126452013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12646
12647 Add a new class gdb.Architecture which exposes GDB's
12648 internal representation of architecture via GDB Python API.
12649 * Makefile.in: Add entries corresponding to the new file
12650 python/py-arch.c.
12651 * NEWS (Python Scripting): Add entries for the new class
12652 gdb.Architecture and the new method gdb.Frame.architecture.
12653 * python/py-arch.c: Implement gdb.Architecture class.
12654 * python/py-frame.c (frapy_arch): Implement the method
12655 gdb.Frame.architecture().
12656 (frame_object_methods): Add 'architecture' to the method table.
12657 * python/python-internal.h: Add declarations of new utility
12658 functions.
12659 * python/python.c (_initialize_python): Initialize
12660 gdb.Architecture class.
12661
126622013-01-23 Doug Evans <dje@google.com>
12663
12664 Work around binutils/15021.
12665 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12666 type_unit_group out of union s. All uses updated.
12667 (read_index_from_section): Watch for index version 8.
12668 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12669 an imported symtab.
12670 (write_psymtabs_to_index): Increment version number to 8.
12671
126722013-01-22 Pedro Alves <palves@redhat.com>
12673
12674 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12675 user-visible.
12676
126772013-01-22 Pedro Alves <palves@redhat.com>
12678
12679 * annotate.c (annotate_breakpoints_changed): Rename to ...
12680 (annotate_breakpoints_invalid): ... this. Make static.
12681 (breakpoint_changed): Adjust.
12682 (_initialize_annotate): Always install the observers. Install a
12683 "breakpoint_created" observer.
12684 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12685 * breakpoint.c (set_breakpoint_condition)
12686 (breakpoint_set_commands, do_map_commands_command)
12687 (init_raw_breakpoint, clear_command, set_ignore_count)
12688 (enable_breakpoint_disp): No longer call
12689 annotate_breakpoints_changed.
12690
126912013-01-22 Pedro Alves <palves@redhat.com>
12692
12693 * annotate.c: Include "inferior.h".
12694 (frames_invalid_emitted)
12695 (breakpoints_invalid_emitted): New globals.
12696 (async_background_execution_p): New function.
12697 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12698 emitting the annotation if it has already been emitted.
12699 (annotate_display_prompt): New function.
12700 * annotate.h (annotate_display_prompt): New declaration.
12701 * event-top.c: Include annotate.h.
12702 (display_gdb_prompt): Call annotate_display_prompt.
12703
127042013-01-22 Pedro Alves <palves@redhat.com>
12705
12706 * annotate.c (ignore_count_changed): Delete.
12707 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12708 (annotate_ignore_count_change): Delete.
12709 (annotate_stopped): Don't emit a delayed breakpoints-changed
12710 annotation.
12711 * annotate.h (annotate_ignore_count_change): Delete.
12712 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12713 annotate_ignore_count_change.
12714
127152013-01-22 Tom Tromey <tromey@redhat.com>
12716
12717 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12718 require_rvalue for a register location.
12719
127202013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12721
12722 * breakpoint.c (print_one_breakpoint_location): Add MI
12723 field 'thread-groups' when printing a breakpoint.
12724 (output_thread_groups): New function.
12725
127262013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12727
12728 * python/lib/gdb/commands/explore.py
12729 (CompoundExplorer.explore_expr): Correct the name of a method
12730 being invoked.
12731 (ExploreTypeCommand.invoke): Add a missing 'return'.
12732
127332013-01-21 Tom Tromey <tromey@redhat.com>
12734
12735 * gdb_obstack.h (obconcat): Move declaration here, from...
12736 * symfile.h (obconcat): ... here.
12737 * gdb_obstack.c: New file.
12738 (obconcat): Move from...
12739 * symfile.c (obconcat): ... here.
12740 * Makefile.in (SFILES): Add gdb_obstack.c.
12741 (COMMON_OBS): Add gdb_obstack.o.
12742
127432013-01-21 Tom Tromey <tromey@redhat.com>
12744
12745 * symfile.h (obsavestring): Don't declare.
12746 * symfile.c (obsavestring): Remove.
12747 * ada-exp.y: Use obstack_copy0, not obsavestring.
12748 * ada-lang.c: Use obstack_copy0, not obsavestring.
12749 * coffread.c: Use obstack_copy0, not obsavestring.
12750 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12751 * dbxread.c: Use obstack_copy0, not obsavestring.
12752 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12753 * jit.c: Use obstack_copy0, not obsavestring.
12754 * mdebugread.c: Use obstack_copy0, not obsavestring.
12755 * psymtab.c: Use obstack_copy0, not obsavestring.
12756 * stabsread.c: Use obstack_copy0, not obsavestring.
12757 * xcoffread.c: Use obstack_copy0, not obsavestring.
12758
127592013-01-21 Tom Tromey <tromey@redhat.com>
12760
12761 * dwarf2read.c (fixup_go_packaging): Save package name
12762 on objfile obstack.
12763 * gdbtypes.c (init_type): Don't copy name.
12764
127652013-01-21 Tom Tromey <tromey@redhat.com>
12766
12767 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12768 const.
12769 (struct attribute) <u.str>: Now const.
12770 (struct fnfieldlist) <name>: Now const.
12771 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12772 (partial_die_parent_scope): Make return type const.
12773 (partial_die_full_name, add_partial_symbol): Update.
12774 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12775 'name' const.
12776 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12777 (read_file_scope, read_func_scope, dwarf2_add_field)
12778 (dwarf2_add_member_fn, read_structure_type)
12779 (process_enumeration_scope, read_array_type, read_module_type)
12780 (read_base_type, read_subrange_type): Update.
12781 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12782 (new_symbol_full, guess_full_die_structure_name): Update.
12783 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12784 (dwarf2_name): Return const type.
12785 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12786 const.
12787
127882013-01-21 Tom Tromey <tromey@redhat.com>
12789
12790 * gdbtypes.c (init_type): Make 'name' const.
12791 * gdbtypes.h (init_type): Update.
12792
127932013-01-21 Tom Tromey <tromey@redhat.com>
12794
12795 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12796 (start_symtab): Make 'name' and 'dirname' const. Use
12797 set_last_source_file.
12798 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12799 (last_source_file): Define. Now static.
12800 (set_last_source_file, get_last_source_file): New functions.
12801 * buildsym.h (last_source_file): Don't declare.
12802 (start_symtab): Update.
12803 (set_last_source_file, get_last_source_file): Declare.
12804 * coffread.c (complete_symtab): Use set_last_source_file.
12805 (coff_end_symtab): Likewise.
12806 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12807 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12808 set_last_source_file.
12809 (process_one_symbol): Use get_last_source_file.
12810 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12811 (psymtab_to_symtab_1): Use get_last_source_file.
12812 * xcoffread.c (process_linenos): Use get_last_source_file.
12813 (complete_symtab): Use set_last_source_file.
12814 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12815 (scan_xcoff_symtab): Use set_last_source_file.
12816
128172013-01-21 Tom Tromey <tromey@redhat.com>
12818
12819 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12820 (symbol_set_names): Remove casts. Handle field const-ness.
12821
128222013-01-21 Tom Tromey <tromey@redhat.com>
12823
12824 * dwarf2read.c (new_symbol_full): Remove cast.
12825 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12826 * symtab.h (symbol_set_demangled_name): Update.
12827
128282013-01-21 Tom Tromey <tromey@redhat.com>
12829
12830 * main.c (captured_main): Call bfd_init.
12831
128322013-01-21 Tom Tromey <tromey@redhat.com>
12833
12834 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12835 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12836 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12837 * NEWS: Update.
12838
128392013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12840
12841 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12842
128432013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12844
12845 Fix gdb.fortran/common-block.exp crash in PIE mode.
12846 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12847 LOC_COMMON_BLOCK.
12848 * f-valprint.c (info_common_command_for_block): Expect
12849 LOC_COMMON_BLOCK in gdb_assert.
12850 * symtab.h (struct general_symbol_info): Update comment for the
12851 common_block member.
12852 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12853 (enum address_class): New member LOC_COMMON_BLOCK.
12854
128552013-01-18 David Blaikie <dblaikie@gmail.com>
12856
12857 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12858
128592013-01-18 Tom Tromey <tromey@redhat.com>
12860
12861 PR c++/14999:
12862 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12863 Call require_rvalue.
12864
128652013-01-18 Yao Qi <yao@codesourcery.com>
12866
12867 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12868 (dbx_read_symtab): New declaration.
12869 (dbx_psymtab_to_symtab): Delete.
12870 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12871 Rename parameter PST to SELF. Exchanged two parameters.
12872 (start_psymtab): Caller update.
12873 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12874 (dwarf2_read_symtab): New declaration.
12875 (dwarf2_psymtab_to_symtab): Delete.
12876 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12877 Rename parameter PST to SELF. Exchanged two parameters.
12878 (create_partial_symtab): Caller update.
12879 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12880 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12881 Rename parameter PST to SELF. Exchanged two parameters.
12882 (parse_partial_symbols, new_psymtab): Caller update.
12883 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12884 two parameters.
12885 * psymtab.c (psymtab_to_symtab): Caller update.
12886 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12887 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12888 Rename parameter PST to SELF. Exchanged two parameters.
12889 (xcoff_start_psymtab): Caller update.
12890
128912013-01-18 Yao Qi <yao@codesourcery.com>
12892
12893 * infrun.c (proceed): Rename local variable 'oneproc' to
12894 'force_step'.
12895
128962013-01-17 Doug Evans <dje@google.com>
12897
12898 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12899 (dw2_build_type_unit_groups): Delete. All uses updated.
12900
12901 * symtab.h (struct symbol_search): Add comment.
12902
129032013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12904
12905 * symtab.c (compare_filenames_for_search): New comment for
12906 HAS_DRIVE_SPEC.
12907
129082013-01-17 Tom Tromey <tromey@redhat.com>
12909
12910 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12911
129122013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12913
12914 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12915 initialize it by existing make_cleanup. Call new do_cleanups.
12916
129172013-01-17 Tom Tromey <tromey@redhat.com>
12918
12919 * cp-abi.c (cp_abi_completer): New function.
12920 (_initialize_cp_abi): Set completer for "set cp-abi".
12921
129222013-01-17 Tom Tromey <tromey@redhat.com>
12923
12924 * mem-break.c: Remove obsolete comment.
12925 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12926
129272012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12928
12929 * jit.c (jit_reader_load_command): Interpret the jit reader name
12930 as an absolute path if it begins with a forward slash.
12931
129322012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12933
12934 PR gdb/14550
12935
12936 * jit.c (finalize_symtab): Ensure that only the global block has a
12937 NULL superblock.
12938
129392013-01-17 Pedro Alves <palves@redhat.com>
12940
12941 * acinclude.m4: Include ../config/plugins.m4,
12942 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12943 * Makefile.in (aclocal_m4_deps): Update.
12944 * aclocal.m4: Renegerate.
12945
129462013-01-16 Doug Evans <dje@google.com>
12947
12948 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12949
129502013-01-16 Pedro Alves <palves@redhat.com>
12951 Tom Tromey <tromey@redhat.com>
12952
12953 PR cli/7221:
12954 * NEWS: Add "catch signal".
12955 * breakpoint.c (base_breakpoint_ops): No longer static.
12956 (bpstat_explains_signal): New function.
12957 (init_catchpoint): No longer static.
12958 (base_breakpoint_explains_signal): New function.
12959 (base_breakpoint_ops): Initialize new field.
12960 * breakpoint.h (enum bpstat_signal_value): New.
12961 (struct breakpoint_ops) <explains_signal>: New field.
12962 (bpstat_explains_signal): Remove macro, declare as function.
12963 (base_breakpoint_ops, init_catchpoint): Declare.
12964 * break-catch-sig.c: New file.
12965 * inferior.h (signal_catch_update): Declare.
12966 * infrun.c (signal_catch): New global.
12967 (handle_syscall_event): Update for change to
12968 bpstat_explains_signal.
12969 (handle_inferior_event): Likewise. Always handle random signals
12970 via bpstats.
12971 (signal_cache_update): Check signal_catch.
12972 (signal_catch_update): New function.
12973 (_initialize_infrun): Initialize signal_catch.
12974 * Makefile.in (SFILES): Add break-catch-sig.c.
12975 (COMMON_OBS): Add break-catch-sig.o.
12976
129772013-01-16 Tom Tromey <tromey@redhat.com>
12978
12979 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12980 (print_one_catch_solib, print_one_catch_syscall)
12981 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12982 "catch-type".
12983
129842013-01-16 Yao Qi <yao@codesourcery.com>
12985
12986 * printcmd.c (current_display_number): Make it static.
12987
129882013-01-16 Yao Qi <yao@codesourcery.com>
12989
12990 * infcmd.c (step_once): Don't check '!single_inst' as it was
12991 checked before.
12992
129932013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12994
12995 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
12996
129972013-01-14 Tom Tromey <tromey@redhat.com>
12998
12999 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13000 set command.
13001 * command.h (add_setshow_string_noescape_cmd): Update.
13002 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13003 (complete_set_gnutarget): New function.
13004 (_initialize_core): Set the "set gnutarget" completer.
13005
130062013-01-14 Tom Tromey <tromey@redhat.com>
13007
13008 PR symtab/14442:
13009 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13010 (c_type_print_modifier): Likewise.
13011 * dwarf2read.c (read_tag_restrict_type): New function.
13012 (read_type_die_1): Handle DW_TAG_restrict_type.
13013 * gdbtypes.c (make_restrict_type): New function.
13014 (recursive_dump_type): Handle TYPE_RESTRICT.
13015 * gdbtypes.h (enum type_flag_values): Renumber.
13016 (enum type_instance_flag_value): Add
13017 TYPE_INSTANCE_FLAG_RESTRICT.
13018 (TYPE_RESTRICT): New macro.
13019 (make_restrict_type): Declare.
13020
130212013-01-14 Tom Tromey <tromey@redhat.com>
13022
13023 PR symtab/14931:
13024 * psymtab.c (struct psymtab_state): New.
13025 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13026 functions.
13027 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13028 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13029
130302013-01-14 Richard Sharman <richard_sharman@mitel.com>
13031 Pedro Alves <palves@redhat.com>
13032
13033 PR remote/14786
13034
13035 * remote.c (remote_threads_info): Make a copy of the reply from
13036 qfThreadInfo and use that instead of rs->buf.
13037
130382013-01-14 Yao Qi <yao@codesourcery.com>
13039
13040 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13041 (dbx_psymtab_to_symtab): Likewise.
13042 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13043 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13044 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13045
130462013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13047
13048 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13049 make_cleanup_restore_current_language. Call set_language. Move
13050 OLD_CHAIN and INNER_CHAIN cleanups.
13051 * utils.c (do_restore_current_language)
13052 (make_cleanup_restore_current_language): New functions.
13053 * utils.h (make_cleanup_restore_current_language): New declaration.
13054
130552013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13056
13057 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13058 non-existing files.
13059
13060 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13061 non-existing files if FILENAME is already absolute.
13062
130632013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13064
13065 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13066 fputs_filtered. Append trailing newline.
13067
130682013-01-11 Yao Qi <yao@codesourcery.com>
13069 Stan Shebs <stan@codesourcery.com>
13070
13071 * psymtab.c (init_psymbol_list): Clarify the comment.
13072
130732013-01-11 Yao Qi <yao@codesourcery.com>
13074
13075 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13076 (update_dprintf_command_list): Assert that 'printf_line' is
13077 non-null. Remove condition check.
13078
130792013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13080
13081 Code cleanup.
13082 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13083 type const char *.
13084 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13085 const char *.
13086 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13087
130882013-01-09 Anthony Green <green@moxielogic.com>
13089
13090 * cp-abi.c (cplus_print_vtable): Don't return value from void
13091 function.
13092 * ada-lang.c (re_set_catch_assert): Ditto.
13093
130942013-01-09 Doug Evans <dje@google.com>
13095
13096 * symfile.h (quick_symbol_functions): Delete member
13097 pre_expand_symtabs_matching. All uses removed.
13098 * dwarf2read.c (dw2_lookup_symbol): Implement.
13099 (dw2_do_expand_symtabs_matching): Delete.
13100 (dw2_pre_expand_symtabs_matching): Delete.
13101 (struct dw2_symtab_iterator): New type.
13102 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13103 (dw2_expand_symtabs_for_function): Rewrite.
13104 (dwarf2_gdb_index_functions): Update.
13105 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13106 (psym_functions): Update.
13107
131082013-01-09 Tom Tromey <tromey@redhat.com>
13109
13110 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13111 * configure: Rebuild.
13112 * configure.ac: Add somread.o to the build if BFD has SOM
13113 support.
13114 * somread.c: Include som/aout.h, not syms.h.
13115 (som_symtab_read): Use som_external_symbol_dictionary_record.
13116 Unpack records manually.
13117 (_initialize_somread): Declare.
13118
131192012-01-08 Mike Frysinger <vapier@gentoo.org>
13120
13121 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13122 Cast return_address to 64bits.
13123
131242013-01-08 Hui Zhu <hui_zhu@mentor.com>
13125
13126 * printcmd.c: Remove define of function output_command.
13127 * tracepoint.c: Remove extern of function output_command.
13128 * valprint.h: (output_command): New extern.
13129
131302013-01-07 Tom Tromey <tromey@redhat.com>
13131
13132 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13133 Remove.
13134 (objc_language_defn): Use c_printchar, c_printstr,
13135 c_emit_char.
13136
131372013-01-07 Tom Tromey <tromey@redhat.com>
13138
13139 PR cli/7719:
13140 * NEWS: Update.
13141 * ada-valprint.c (printstr, print_field_values): Remove
13142 "inspect_it" code.
13143 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13144 code.
13145 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13146 code.
13147 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13148 * main.c (captured_main): Remove "epoch" argument.
13149 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13150 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13151 * p-valprint.c (pascal_object_print_value_fields): Remove
13152 "inspect_it" code.
13153 * printcmd.c (print_command_1): Remove 'inspect' argument.
13154 (print_command, call_command): Update.
13155 (inspect_command): Remove.
13156 (_initialize_printcmd): Make "inspect" an alias for "print".
13157 * top.c (epoch_interface): Remove.
13158 * top.h (epoch_interface): Remove.
13159 * valprint.c (user_print_options): Update.
13160 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13161 * valprint.h (struct value_print_options) <inspect_it>: Remove
13162 field.
13163
131642013-01-04 Tom Tromey <tromey@redhat.com>
13165
13166 * valprint.h (read_string): Add 'extern'.
13167
131682013-01-07 Joel Brobecker <brobecker@adacore.com>
13169
13170 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13171 used to decide whether to define darwin_read_dyld_info or not.
13172
131732013-01-03 Pierre Muller <muller@sourceware.org>
13174
13175 * main.c (relocate_gdb_directory): Avoid calling stat function
13176 if DIR is empty.
13177
131782013-01-03 Yao Qi <yao@codesourcery.com>
13179
13180 * psymtab.c (fixup_psymbol_section): Update declaration.
13181 (fixup_psymbol_section): Remove code returning value.
13182
131832013-01-03 Yao Qi <yao@codesourcery.com>
13184
13185 * symtab.h: Remove some out of date comments.
13186 (enum exception_event_kind): Move it ...
13187 * breakpoint.c: ... here.
13188
131892013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13190
13191 PR gdb/14405
13192 * darwin-nat.c (darwin_read_dyld_info): Only build if
13193 TASK_DYLD_INFO_COUNT is defined.
13194 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13195 TASK_DYLD_INFO_COUNT is defined.
13196
131972013-01-02 Tom Tromey <tromey@redhat.com>
13198
13199 * symfile.h (struct ecoff_debug_hack): Remove.
13200 * objfiles.c: Don't include mdebugread.h.
13201
132022013-01-02 Tom Tromey <tromey@redhat.com>
13203
13204 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13205 * configure.ac: Check for Mach-O support in BFD. Update
13206 CONFIG_OBS.
13207 * configure: Rebuild.
13208
132092013-01-02 Tom Tromey <tromey@redhat.com>
13210
13211 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13212 * configure.ac: Use GDB_AC_CHECK_BFD.
13213 * configure: Rebuild.
13214
132152013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13216
13217 * MAINTAINERS: Update my email.
13218
132192013-01-01 Joel Brobecker <brobecker@adacore.com>
13220
13221 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13222
132232013-01-01 Joel Brobecker <brobecker@adacore.com>
13224
13225 * rs6000-nat.c (bss_data_overlap): New function.
13226 (vmap_symtab): Use it to adjust the .bss section's offset.
13227
132282013-01-01 Joel Brobecker <brobecker@adacore.com>
13229
13230 Update year range in copyright notice of all files.
13231
132322013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13233
13234 * top.c (print_gdb_version): Update copyright year.
13235
13236For older changes see ChangeLog-2012.
13237\f
13238Local Variables:
13239mode: change-log
13240left-margin: 8
13241fill-column: 74
13242version-control: never
13243coding: utf-8
13244End:
This page took 0.071031 seconds and 4 git commands to generate.