Revert "Do not overwrite so_list's so_name in solib_map_sections"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-12-15 Joel Brobecker <brobecker@adacore.com>
2
3 Revert the following commit:
4 * solib.c (solib_map_sections): Remove code overwriting
5 SO->SO_NAME with the bfd's filename.
6
7 Make the following changes required after the revert above:
8 * solib-aix.c (solib_aix_bfd_open): Set the filename of the
9 returned bfd to a copy of the synthetic pathname.
10 * solib-darwin.c (darwin_bfd_open): Set the filename of the
11 returned bfd to a copy of PATHNAME.
12
13 2013-12-13 Joel Brobecker <brobecker@adacore.com>
14
15 * ada-lang.c (ada_array_bound_from_type): Move the declaration
16 and assignment of variable "elt_type" inside the else block
17 where it is used. Add two missing check_typedef calls.
18 Fix bug where we got TYPE's TYPE_TARGET_TYPE, where in fact
19 we really wanted to get ELT_TYPE's TYPE_TARGET_TYPE.
20
21 2013-12-13 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c (ada_array_bound_from_type): Remove unwanted space
24 between 'struct type *' and 'arr_type'.
25
26 2013-12-12 Siva Chandra Reddy <sivachandra@google.com>
27
28 PR python/16113
29 * NEWS (Python Scripting): Add entry for the new feature and the
30 new attribute of gdb.Field objects.
31 * python/py-type.c (gdbpy_is_field): New function
32 (convert_field): Add 'parent_type' attribute to gdb.Field
33 objects.
34 * python/py-value.c (valpy_getitem): Allow subscript value to be
35 a gdb.Field object.
36 (value_has_field): New function
37 (get_field_flag): New function
38 * python/python-internal.h (gdbpy_is_field): Add declaration.
39
40 2013-12-12 Pedro Alves <palves@redhat.com>
41
42 * breakpoint.c (insert_bp_location): Make 'hw_bp_err_string' local
43 const, and remove casts.
44
45 2013-12-12 Pedro Alves <palves@redhat.com>
46
47 * cli/cli-cmds.c (source_script_from_stream) Use have_python
48 instead of catching UNSUPPORTED_ERROR.
49 * exceptions.h (UNSUPPORTED_ERROR): Delete.
50 * python/python.c (source_python_script) [!HAVE_PYTHON]: Internal
51 error if called.
52 * python/python.h (have_python): New static inline function.
53
54 2013-12-11 Doug Evans <dje@google.com>
55
56 * dwarf2read.c (lookup_dwo_cutu): Include name of dwp file in
57 "can't find DWO" warning.
58
59 2013-12-11 Sergio Durigan Junior <sergiodj@redhat.com>
60
61 * break-catch-throw.c (fetch_probe_arguments): Pass selected frame
62 to get_probe_argument_count and evaluate_probe_argument.
63 * probe.c (get_probe_argument_count): Adjust declaration to accept
64 frame. Pass frame to probe_ops's get_probe_argument_count.
65 (evaluate_probe_argument): Likewise, for evaluate_probe_argument.
66 (probe_safe_evaluate_at_pc): Pass frame to
67 get_probe_argument_count and evaluate_probe_argument.
68 * probe.h (struct probe_ops) <get_probe_argument_count,
69 evaluate_probe_argument>: Adjust declarations to accept frame.
70 (get_probe_argument_count, evaluate_probe_argument): Likewise.
71 * solib-svr4.c (solib_event_probe_action): Get current frame.
72 Pass it to get_probe_argument_count.
73 (svr4_handle_solib_event): Get current frame. Pass it to
74 get_probe_argument_count and evaluate_probe_argument.
75 * stap-probe.c (stap_parse_probe_arguments): Adjust declaration to
76 accept gdbarch. Do not obtain it from the probe's objfile.
77 (stap_get_probe_argument_count): Adjust declaration to accept
78 frame. Obtain gdbarch from the frame. Call generic
79 can_evaluate_probe_arguments. Pass gdbarch to
80 stap_parse_probe_arguments.
81 (stap_get_arg): Adjust declaration to accept gdbarch. Pass it to
82 stap_parse_probe_arguments.
83 (stap_evaluate_probe_argument): Adjust declaration to accept
84 frame. Obtain gdbarch from the frame. Pass gdbarch to
85 stap_get_arg.
86 (stap_compile_to_ax): Pass agent_expr's gdbarch to stap_get_arg.
87 (compute_probe_arg): Obtain gdbarch from frame. Pass frame to
88 get_probe_argument_count and evaluate_probe_argument.
89
90 2013-12-10 Doug Evans <dje@google.com>
91
92 PR 16286
93 * c-lang.c (c_get_string): Ignore the declared size of the object
94 if a specific length is requested.
95
96 2013-12-10 Doug Evans <dje@google.com>
97
98 * interps.h (interp_exec_p): Delete.
99 * interps.c (interp_exec_p): Delete.
100 (interp_exec): Update. Assert interp->procs->exec_proc != NULL.
101 * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
102
103 2013-12-10 Yao Qi <yao@codesourcery.com>
104
105 * amd64-tdep.c (amd64_analyze_stack_align): Call
106 target_read_code instead of target_read_memory.
107 (amd64_analyze_prologue): Call read_code_unsigned_integer
108 instead of read_memory_unsigned_integer. Call read_code
109 instead of read_memory.
110 (amd64_skip_xmm_prologue): Likewise.
111
112 2013-12-10 Yao Qi <yao@codesourcery.com>
113
114 * corefile.c (read_code): New function.
115 (read_code_integer): New function.
116 (read_code_unsigned_integer): New function.
117 * gdbcore.h (read_code): Declare.
118 (read_code_integer): Declare.
119 (read_code_unsigned_integer): Declare.
120 * i386-tdep.c (i386_follow_jump): Call target_read_code instead
121 of target_read_memory. Call read_code_unsigned_integer instead
122 of read_memory_unsigned_integer.
123 (i386_analyze_struct_return): Likewise.
124 (i386_skip_probe): Likewise.
125 (i386_analyze_stack_align): Likewise.
126 (i386_match_pattern): Likewise.
127 (i386_skip_noop): Likewise.
128 (i386_analyze_frame_setup): Likewise.
129 (i386_analyze_register_saves): Likewise.
130 (i386_skip_prologue): Likewise.
131 (i386_skip_main_prologue): Likewise.
132 (i386_frame_cache_1): Likewise.
133
134 2013-12-10 Yao Qi <yao@codesourcery.com>
135
136 * infrun.c: Include "target-dcache.h".
137 (prepare_for_detach): Call target_dcache_invalidate.
138 (wait_for_inferior): Likewise.
139 (fetch_inferior_event): Likewise.
140 (infrun_thread_stop_requested_callback): Likewise. Set
141 overlay_cache_invalid to 1.
142
143 2013-12-10 Joel Brobecker <brobecker@adacore.com>
144
145 * symtab.c (symbol_find_demangled_name): Add handling of
146 Ada symbols.
147
148 2013-12-10 Joel Brobecker <brobecker@adacore.com>
149
150 * mi/mi-main.c (mi_cmd_list_features): add "exec-run-start-option".
151 * NEWS: Expand the entry documenting the new -exec-run --start
152 option to mention the corresponding new entry in the output of
153 "-list-features".
154
155 2013-12-10 Joel Brobecker <brobecker@adacore.com>
156
157 * windows-nat.c (handle_load_dll): Add comments.
158 (windows_ensure_ntdll_loaded): New function.
159 (do_initial_windows_stuff): Use windows_ensure_ntdll_loaded.
160 Add FIXME comment.
161
162 2013-12-08 Joel Brobecker <brobecker@adacore.com>
163
164 GDB 7.6.2 released.
165
166 2013-12-08 Yao Qi <yao@codesourcery.com>
167
168 * stack.c (frame_info): Initialize variable caller_pc.
169
170 2013-12-06 Pedro Alves <palves@redhat.com>
171
172 * frame.c (enum cached_copy_status): New enum.
173 (struct frame_info) <prev_pc.p>: Change type to enum
174 cached_copy_status.
175 (fprint_frame): Handle not saved and unavailable prev_pc values.
176 (frame_unwind_pc_if_available): Delete and merge contents into ...
177 (frame_unwind_pc): ... here. Handle OPTIMIZED_OUT_ERROR. Adjust
178 to use enum cached_copy_status.
179 (frame_unwind_caller_pc_if_available): Delete.
180 (create_new_frame): Adjust.
181 * frame.h (frame_unwind_caller_pc_if_available): Delete
182 declaration.
183 * stack.c (frame_info): Use frame_unwind_caller_pc instead of
184 frame_unwind_caller_pc_if_available, and handle
185 NOT_AVAILABLE_ERROR and OPTIMIZED_OUT_ERROR errors.
186 * valprint.c (val_print_optimized_out): Use val_print_not_saved.
187 (val_print_not_saved): New function.
188 * valprint.h (val_print_not_saved): Declare.
189
190 2013-12-06 Andrew Burgess <aburgess@broadcom.com>
191 Pedro Alves <palves@redhat.com>
192
193 * exceptions.h (errors): Add OPTIMIZED_OUT_ERROR.
194 * dwarf2loc.c (write_pieced_value): Throw OPTIMIZED_OUT_ERROR.
195 * frame.c (frame_unwind_register): Throw OPTIMIZED_OUT_ERROR.
196 * spu-tdep.c (spu_software_single_step): Throw
197 OPTIMIZED_OUT_ERROR.
198 * valops.c (value_assign): Throw OPTIMIZED_OUT_ERROR.
199
200 2013-12-06 Tom Tromey <tromey@redhat.com>
201
202 * objfiles.c (free_objfile): Update comment.
203
204 2013-12-06 Tom Tromey <tromey@redhat.com>
205
206 * objfiles.h (objfile_to_front): Remove.
207 * objfiles.c (objfile_to_front): Remove.
208
209 2013-12-06 Tom Tromey <tromey@redhat.com>
210
211 * minsyms.c (get_symbol_leading_char): Remove unnecessary
212 declaration.
213
214 2013-12-06 Tom Tromey <tromey@redhat.com>
215
216 * psympriv.h (struct partial_symtab) <user>: Move earlier.
217
218 2013-12-06 Tom Tromey <tromey@redhat.com>
219
220 * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
221 (list_command): Likewise.
222
223 2013-12-06 Tom Tromey <tromey@redhat.com>
224
225 * psymtab.c (allocate_psymtab): Put the filename in the filename
226 bcache.
227
228 2013-12-06 Tom Tromey <tromey@redhat.com>
229
230 * buildsym.c (end_symtab_from_static_block): Use obstack_copy0.
231 * symtab.h (struct symtab) <dirname>: Now const.
232
233 2013-12-06 Tom Tromey <tromey@redhat.com>
234
235 * symfile.c (allocate_symtab): Remove cast.
236 * symtab.h (struct symtab) <filename>: Now const.
237
238 2013-12-06 Tom Tromey <tromey@redhat.com>
239
240 * break-catch-throw.c (fetch_probe_arguments): Use
241 get_probe_argument_count and evaluate_probe_argument.
242 * elfread.c (elf_get_probe_argument_count)
243 (elf_can_evaluate_probe_arguments, elf_evaluate_probe_argument)
244 (elf_compile_to_ax): Remove.
245 (elf_probe_fns): Update.
246 * probe.c (get_probe_argument_count, can_evaluate_probe_arguments)
247 (evaluate_probe_argument): Call method on probe, not via sym
248 functions.
249 * stap-probe.c (compute_probe_arg): Use get_probe_argument_count,
250 evaluate_probe_argument.
251 (compile_probe_arg): Use get_probe_argument_count. Call method on
252 probe, not via sym functions.
253 * symfile-debug.c (debug_sym_get_probe_argument_count)
254 (debug_can_evaluate_probe_arguments)
255 (debug_sym_evaluate_probe_argument, debug_sym_compile_to_ax):
256 Remove.
257 (debug_sym_probe_fns): Remove.
258 * symfile.h (struct sym_probe_fns) <sym_get_probe_argument_count,
259 can_evaluate_probe_arguments, sym_evaluate_probe_argument,
260 sym_compile_to_ax>: Remove fields.
261
262 2013-12-06 Pierre Muller <muller@sourceware.org>
263
264 Fix completion for pascal language.
265 * p-exp.y (exp : field_exp name): Do not call mark_struct_expression.
266 (exp : field_exp name COMPLETE): New rule.
267 (exp : SIZEOF): Set correct current_type.
268 (last_was_structop): Remove static variable.
269 (yylex): Remove saw_structop local variable.
270 Adapt code to removal of variables above.
271
272 2013-12-06 Joel Brobecker <brobecker@adacore.com>
273
274 * frame.c (get_prev_frame_1): Delete variable "this_id".
275 Replace its use by a call to get_frame_id.
276
277 2013-12-05 Anthony Green <green@moxielogic.com>
278
279 * moxie-tdep.c (moxie_software_single_step): New function.
280 (INST2OFFSET): New helper macro.
281 (moxie_gdbarch_init): Call set_gdbarch_software_single_step.
282 (moxie_process_readu): Move this up in the file.
283
284 2013-12-05 Doug Evans <xdje42@gmail.com>
285
286 * auto-load.c (load_auto_scripts_for_objfile): Add some comments.
287
288 2013-12-05 Joel Brobecker <brobecker@adacore.com>
289 Tristan Gingold <gingold@adacore.com>
290
291 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
292 Accept version 2. Ignore operations using opcode 6.
293
294 2013-12-05 Joel Brobecker <brobecker@adacore.com>
295
296 * ada-lex.l (find_dot_all): Fix coding style violations.
297
298 2013-12-03 Walfred Tedeschi <walfred.tedeschi@intel.com>
299
300 * NEWS: Add section for Intel(R) Architecture Instructions
301 Extesions mentioning MPX.
302
303 2013-12-03 Joel Brobecker <brobecker@adacore.com>
304
305 * ada-lex.l (find_dot_all): Use strncasecmp instead of strncmp.
306
307 2013-12-03 Joel Brobecker <brobecker@adacore.com>
308
309 * ada-lang.c (create_excep_cond_exprs): Force EXP to NULL
310 when parse_exp_1 threw an error. Add comment.
311
312 2013-12-03 Joel Brobecker <brobecker@adacore.com>
313
314 * NEWS: Mention "-list-features" in the entry documenting
315 the support for the "--language" option.
316
317 2013-12-03 Tom Tromey <tromey@redhat.com>
318 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Doug Evans <dje@google.com>
320 Samuel Bronson <naesten@gmail.com>
321
322 Bring back gdb-add-index as a contrib script.
323 * contrib/gdb-add-index.sh: New file.
324 * NEWS: Note the addition.
325
326 2013-12-03 Samuel Bronson <naesten@gmail.com>
327
328 * MAINTAINERS (Write After Approval): Add myself to the list.
329
330 2013-12-03 Joel Brobecker <brobecker@adacore.com>
331
332 * mi/mi-main.c (mi_cmd_list_features): Remove "ada-exceptions".
333
334 2013-12-03 Joel Brobecker <brobecker@adacore.com>
335
336 * mi/mi-main.c: Remove trailing spaces throughout.
337
338 2013-12-03 Pedro Alves <palves@redhat.com>
339 Joel Brobecker <brobecker@adacore.com>
340
341 * exceptions.h (enum_errors) <UNDEFINED_COMMAND_ERROR>: New enum.
342 * mi/mi-parse.c (mi_parse): Throw UNDEFINED_COMMAND_ERROR instead
343 of a regular error when the GDB/MI command does not exist.
344 * mi/mi-main.c (mi_cmd_list_features): Add
345 "undefined-command-error-code".
346 (mi_print_exception): Print an "undefined-command"
347 error code if EXCEPTION.ERROR is UNDEFINED_COMMAND_ERROR.
348 * NEWS: Add entry documenting the new "code" variable in
349 "^error" result records.
350
351 2013-12-03 Joel Brobecker <brobecker@adacore.com>
352
353 * mi/mi-cmds.h (mi_cmd_info_gdb_mi_command): Declare.
354 * mi/mi-cmd-info.c (mi_cmd_info_gdb_mi_command): New function.
355 * mi/mi-cmds.c (mi_cmds): Add -info-gdb-mi-command command.
356 * mi/mi-main.c (mi_cmd_list_features): Add "info-gdb-mi-command"
357 field to output of "-list-features".
358
359 * NEWS: Add entry for new -info-gdb-mi-command.
360
361 2013-12-02 Doug Evans <dje@google.com>
362 Jan Kratochvil <jan.kratochvil@redhat.com>
363
364 * objfiles.c (allocate_objfile): Save original_name as an absolute
365 path.
366 * objfiles.h (struct objfile): Expand comment on original_name.
367 * source.c (openp): Call gdb_abspath.
368 * utils.c (gdb_abspath): New function.
369 * utils.h (gdb_abspath): Declare.
370
371 2013-12-02 Pedro Alves <palves@redhat.com>
372
373 * dcache.c (dcache_read_line): Use target_read_raw_memory.
374 * target.c (target_read_raw_memory): New function.
375 (target_read_stack, target_write_memory, target_write_raw_memory):
376 Update comment.
377 (target_read_code): Add comment.
378 * target.h (target_read_raw_memory): Declare.
379
380 2013-12-02 Pedro Alves <palves@redhat.com>
381
382 * ctf.c (ctf_start): Use S_IRGRP, S_IXGRP, S_IXOTH
383 unconditionally.
384
385 2013-12-02 Pedro Alves <pedro@codesourcery.com>
386 Maciej W. Rozycki <macro@codesourcery.com>
387
388 * remote.c (putpkt_for_catch_errors): Remove function.
389 (remote_kill): Handle TARGET_CLOSE_ERROR from the kill packet
390 gracefully.
391
392 2013-12-02 Pedro Alves <palves@redhat.com>
393
394 PR remote/15974
395 * remote-notif.c (handle_notification): Return early if no
396 notification is found.
397
398 2013-12-02 Joel Brobecker <brobecker@adacore.com>
399
400 * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
401 preprocessor check.
402
403 2013-12-02 Joel Brobecker <brobecker@adacore.com>
404
405 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_dirent.h".
406
407 2013-12-02 Joel Brobecker <brobecker@adacore.com>
408
409 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_stat.h".
410 * ctf.c (ctf_start): Remove obsolete comment.
411
412 2013-12-02 Joel Brobecker <brobecker@adacore.com>
413
414 * Makefile.in (HFILES_NO_SRCDIR): Remove "common/gdb_string.h".
415
416 2013-11-30 Doug Evans <xdje42@gmail.com>
417
418 * auto-load.h (script_language): New members name, auto_load_enabled.
419 Add missing comments on struct members.
420 (auto_load_objfile_script): Delete.
421 * auto-load.c: #include "cli/cli-cmds.h".
422 (auto_load_gdb_scripts_enabled): New function.
423 (script_language_gdb): Update, add new members.
424 (source_gdb_script_for_objfile): Simplify, auto-load safe-checking
425 and call to maybe_add_script moved to caller.
426 (auto_load_objfile_script_1): Auto-load safe-checking and
427 call to maybe_add_script moved here.
428 (auto_load_objfile_script): Make static. Early exit if support for
429 scripting language hasn't been compiled in, or auto-loading has been
430 disabled.
431 (source_section_scripts): Argument "source_name" renamed to
432 "section_name". All uses updated. Replace uses of AUTO_SECTION_NAME
433 with section_name. Skip loading script if support for scripting
434 language hasn't been compiled in, or auto-loading has been disabled.
435 Call language->source_script_for_objfile instead of calling
436 source_python_script_for_objfile directly.
437 (load_auto_scripts_for_objfile): Update.
438 * python/py-auto-load.c: Delete #include "cli/cli-cmds.h".
439 (gdbpy_load_auto_script_for_objfile): Delete.
440 (auto_load_python_scripts_enabled): New function.
441 (script_language_python): Update, add new members.
442 (gdbpy_script_language_defn): New function.
443 * python/python.h (gdbpy_load_auto_scripts_for_objfile): Delete.
444 (gdbpy_script_language_defn): Declare.
445
446 * auto-load.c (AUTO_SECTION_NAME): Moved here and renamed from
447 py-auto-load.c, GDBPY_AUTO_SECTION_NAME.
448 (source_section_scripts): Moved here from py-auto-load.c.
449 (auto_load_section_scripts): Ditto.
450 * python/py-auto-load.c (GDBPY_AUTO_SECTION_NAME): Moved to
451 auto-load.c, renamed AUTO_SECTION_NAME.
452 (source_section_scripts, auto_load_section_scripts): Moved to
453 auto-load.c.
454
455 2013-11-30 Yao Qi <yao@codesourcery.com>
456
457 * remote.c (getpkt_or_notif_sane_1): Fix typo "checksm".
458
459 2013-11-29 Sergio Durigan Junior <sergiodj@redhat.com>
460
461 * gdbarch.sh: Remove include of "gdb_string.h", replace by
462 <string.h>.
463
464 2013-11-29 Doug Evans <xdje42@gmail.com>
465
466 * python/py-auto-load.c (source_section_scripts): Move comment to
467 more relevant location.
468
469 Whitespace cleanup.
470 * python/py-breakpoint.c: Remove trailing whitespace.
471 * python/py-cmd.c: Ditto.
472 * python/py-evts.c: Ditto.
473 * python/py-finishbreakpoint.c: Ditto.
474 * python/py-frame.c: Ditto.
475 * python/py-function.c: Ditto.
476 * python/py-inferior.c: Ditto.
477 * python/py-infthread.c: Ditto.
478 * python/py-param.c: Ditto.
479 * python/py-prettyprint.c: Ditto.
480 * python/py-symbol.c: Ditto.
481 * python/py-type.c: Ditto.
482 * python/py-utils.c: Ditto.
483 * python/py-value.c: Ditto.
484 * python/python-internal.h: Ditto.
485 * python/python.c: Ditto.
486
487 2013-11-29 Pedro Alves <palves@redhat.com>
488
489 * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment.
490
491 2013-11-29 Pedro Alves <palves@redhat.com>
492
493 * breakpoint.c (build_target_condition_list): Release previous
494 conditions.
495 (build_target_command_list): Release previous commands.
496 (bp_location_dtor): Release target conditions and commands.
497 * remote.c (remote_add_target_side_condition): Don't release
498 conditions.
499 (remote_add_target_side_commands): Don't release commands.
500
501 2013-11-29 Yao Qi <yao@codesourcery.com>
502 Pedro Alves <palves@redhat.com>
503
504 * dcache.c (dcache_read_line): Use current_target.beneath
505 instead of &current_target.
506 * target.c (memory_xfer_partial_1): Factor code out to ...
507 (raw_memory_xfer_partial): ... it. New function.
508 (target_xfer_partial): Call raw_memory_xfer_partial if OBJECT
509 is TARGET_OBJECT_RAW_MEMORY.
510
511 2013-11-28 Doug Evans <xdje42@gmail.com>
512
513 * breakpoint.h (gdbpy_breakpoint_object): Renamed from
514 breakpoint_object. All uses updated.
515 * python/python-internal.h (gdbpy_breakpoint_object): Renamed from
516 breakpoint_object. All uses updated.
517 * python.c (*): All uses of breakpoint_object updated.
518 * python.h (*): All uses of breakpoint_object updated.
519 * python/py-breakpoint.c (*): All uses of breakpoint_object updated.
520 * python/py-finishbreakpoint.c (*): Ditto.
521
522 2013-11-28 Doug Evans <xdje42@gmail.com>
523
524 * configure.ac: Add comments delineating libpython and libmcheck.
525 * configure: Regenerate.
526
527 2013-11-28 Andrew Burgess <aburgess@broadcom.com>
528 Pedro Alves <palves@redhat.com>
529
530 * valprint.c (value_check_printable): If the value is entirely
531 unavailable, print a single "<unavailable>" instead of printing
532 all subfields.
533
534 2013-11-28 Pedro Alves <palves@redhat.com>
535
536 * frame.c (get_prev_frame_1) <stop_reason != UNWIND_NO_REASON>:
537 Add "set debug frame" output.
538 (frame_stop_reason_symbol_string): New function.
539
540 2013-11-28 Pedro Alves <palves@redhat.com>
541
542 * frame-unwind.c (default_frame_unwind_stop_reason): Return
543 UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
544 * frame.c (get_prev_frame_1): Remove outer_frame_id check.
545
546 2013-11-28 Pedro Alves <palves@redhat.com>
547
548 * frame.c (get_prev_frame_1): If the frame id is outer_frame_id,
549 set the unwind stop reason to UNWIND_OUTERMOST, not
550 UNWIND_NULL_ID. Remove explicit check for sentinel frame.
551
552 2013-11-28 Pedro Alves <palves@redhat.com>
553
554 * frame.c (frame_unwind_register): Say the register was "not
555 saved" instead of "optimized out".
556
557 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
558
559 PR 16152
560 * configure: Rebuild.
561 * configure.ac: Tighten cygwin detection check.
562
563 2013-11-27 Pedro Alves <palves@redhat.com>
564
565 * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
566 register in the previous frame's arch.
567
568 2013-11-27 Pedro Alves <palves@redhat.com>
569
570 * frame-unwind.c (frame_unwind_got_optimized): Return
571 an lval_register value instead of a not_lval value.
572
573 2013-11-27 Andrew Burgess <aburgess@broadcom.com>
574
575 * frame.c: Include "valprint.h".
576 (frame_unwind_register_value): Use value_optimized_out.
577 * value.c (value_fetch_lazy): Likewise.
578
579 2013-11-26 Andrew Burgess <aburgess@broadcom.com>
580
581 * value.c (allocate_optimized_out_value): Mark value as non-lazy.
582
583 2013-11-26 Tom Tromey <tromey@redhat.com>
584
585 * dwarf2-frame.c (dwarf2_frame_cache): Revert patch from
586 2013-11-22.
587
588 2013-11-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
589
590 * i386-xstate.h (I386_XSTATE_MPX): New Macro.
591 (I386_XSTATE_MPX_MASK): Makes use of I386_XSTATE_MPX.
592 (HAS_MPX): New macro.
593 (HAS_AVX): New macro.
594 (I386_XSTATE_SIZE): Uses HAS_MPX and HAS_AVX.
595
596 2013-11-25 Keith Seitz <keiths@redhat.com>
597
598 PR c++/14819
599 * c-exp.y (classify_inner_name): If no matching symbol was
600 found, try looking up the token as a base class.
601 Likewise if a constructor was found.
602 * cp-namespace.c (find_type_baseclass_by_name): New function.
603 * cp-support.h (find_type_baseclass_by_name): Declare.
604 * valops.c (value_struct_elt_for_reference): If we get
605 a non-static field, try to get a value based on the
606 current instance, if any.
607
608 2013-11-24 Yao Qi <yao@codesourcery.com>
609
610 * disasm.c (dis_asm_read_memory): Call target_read_code
611 instead of target_read_memory.
612
613 2013-11-24 Yao Qi <yao@codesourcery.com>
614
615 * NEWS: Add note on new "set code-cache" option.
616 * target-dcache.c (code_cache_enabled_1): New variable.
617 (code_cache_enabled): New variable.
618 (show_code_cache, set_code_cache): New function.
619 (code_cache_enabled_p): New function.
620 (_initialize_target_dcache): Register command.
621 * target-dcache.h (code_cache_enabled_p): Declare.
622 * target.c (memory_xfer_partial_1):Handle
623 TARGET_OBJECT_CODE_MEMORY and code_cache_enabled.
624 (target_read_code): New function.
625 * target.h (enum target_object) <TARGET_OBJECT_CODE_MEMORY>:
626 New.
627 (target_read_code): Declare.
628
629 2013-11-24 Yao Qi <yao@codesourcery.com>
630
631 * target-dcache.c (stack_cache_enabled_p_1): Rename to ...
632 (stack_cache_enabled_1): ... this. New variable.
633 (stack_cache_enabled_p): Rename to ...
634 (stack_cache_enabled): ... this. New variable.
635 (set_stack_cache_enabled_p): Rename to ...
636 (set_stack_cache): ... this. Update caller.
637 (show_stack_cache_enabled_p): Rename to ...
638 (show_stack_cache): ... this. Update caller.
639 (stack_cache_enabled): Rename to ...
640 (stack_cache_enabled_p): ... this. Update caller.
641 (_initialize_target_dcache): Replace "data cache" with
642 "target memory cache".
643 * target-dcache.h (stack_cache_enabled): Remove declaration.
644 (stack_cache_enabled_p): Add declaration.
645
646 2013-11-23 Doug Evans <xdje42@gmail.com>
647
648 * python/py-frame.c (gdbpy_initialize_frames): Remove FIRST_ERROR,
649 superfluous.
650
651 2013-11-23 Doug Evans <xdje42@gmail.com>
652
653 * python/py-frame.c (frapy_block): Fix error message text.
654
655 2013-11-23 Doug Evans <xdje42@gmail.com>
656
657 * cli/cli-script.c (multi_line_command_p): New function.
658 (recurse_read_control_structure, read_command_lines_1): Call it.
659 (execute_control_command): Consistently have a blank line between
660 each case.
661
662 2013-11-22 Sterling Augustine <saugustine@google.com>
663
664 PR gdb/16196:
665 * valprint.c (read_string): Set new variable fetchlen based on
666 fetchlimit and size. Use it in call to partial_memory_read.
667 Update comment.
668
669 2013-11-22 Tom Tromey <tromey@redhat.com>
670
671 PR backtrace/16155:
672 * dwarf2-frame.c (dwarf2_frame_cache): Set undefined_retaddr if
673 the return address column is unspecified.
674
675 2013-11-22 Tom Tromey <tromey@redhat.com>
676 Pedro Alves <palves@redhat.com>
677
678 PR backtrace/16155
679 * value.c (value_fetch_lazy): Internal error if
680 get_frame_register_value returns the same register.
681
682 2013-11-22 Pedro Alves <palves@redhat.com>
683 Tom Tromey <tromey@redhat.com>
684
685 * frame.c (frame_stash_add): Now returns whether a frame with the
686 same ID was already known.
687 (compute_frame_id): New function, factored out from get_frame_id.
688 (get_frame_id): No longer lazilly compute the frame id here.
689 (get_prev_frame_if_no_cycle): New function. Detects wider stack
690 cycles.
691 (get_prev_frame_1): Use it instead of get_prev_frame_raw directly,
692 and checking for stack cycles here.
693
694 2013-11-22 Pedro Alves <palves@redhat.com>
695
696 PR 16155
697 * frame.c (get_prev_frame_1): Do the UNWIND_SAME_ID check between
698 this frame and the new previous frame, not between this frame and
699 the next frame.
700
701 2013-11-22 Pedro Alves <palves@redhat.com>
702
703 PR 16155
704 * dwarf2-frame.c (struct dwarf2_frame_cache)
705 <checked_tailcall_bottom, entry_cfa_sp_offset,
706 entry_cfa_sp_offset_p>: New fields.
707 (dwarf2_frame_cache): Adjust to use the new cache fields instead
708 of locals. Don't call dwarf2_tailcall_sniffer_first here.
709 (dwarf2_frame_prev_register): Call it here, but only once.
710
711 2013-11-21 Doug Evans <xdje42@gmail.com>
712
713 * gdbtypes.c: #include bcache.h, dwarf2loc.h.
714 (type_equality_entry): Move here from python/py-type.c.
715 (type_equality_entry_d): Ditto.
716 (compare_maybe_null_strings, check_types_equal): Ditto.
717 (check_types_worklist, types_deeply_equal): Ditto.
718 * gdbtypes.h (types_deeply_equal): Declare.
719 * python/py-type.c: Remove inclusion of bcache.h, dwarf2loc.h.
720 (typy_richcompare): Update.
721
722 2013-11-20 Joel Brobecker <brobecker@adacore.com>
723
724 * python/py-value.c (is_intlike): Delete.
725 (valpy_int): Replace use of CHECK_TYPEDEF and is_intlike
726 by use of is_integral_type.
727 (valpy_long): Replace use of CHECK_TYPEDEF and is_intlike
728 by use of is_integral_type and check for TYPE_CODE_PTR.
729
730 2013-11-20 Tom Tromey <tromey@redhat.com>
731
732 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
733 strerror module.
734 * gnulib/aclocal.m4: Update.
735 * gnulib/config.in: Update.
736 * gnulib/configure: Update.
737 * gnulib/import/Makefile.am: Update.
738 * gnulib/import/Makefile.in: Update.
739 * gnulib/import/errno.in.h: Remove.
740 * gnulib/import/intprops.h: Remove.
741 * gnulib/import/m4/errno_h.m4: Remove.
742 * gnulib/import/m4/gnulib-cache.m4: Update.
743 * gnulib/import/m4/gnulib-comp.m4: Update.
744 * gnulib/import/m4/strerror.m4: Remove.
745 * gnulib/import/m4/sys_socket_h.m4: Remove.
746 * gnulib/import/strerror-override.c: Remove.
747 * gnulib/import/strerror-override.h: Remove.
748 * gnulib/import/strerror.c: Remove.
749 * gnulib/update-gnulib.sh: Update.
750
751 2013-11-20 Yao Qi <yao@codesourcery.com>
752
753 * target-dcache.c (target_dcache_get_or_init): Call
754 set_address_space_data if 'dcache' is NULL.
755
756 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
757
758 * common/i386-gcc-cpuid.h (bit_MPX): Synchronize with gcc file.
759
760 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
761
762 * python/lib/gdb/command/bound_register.py: New file.
763 * data-directory/Makefile.in: Copy bond_register.py to the right path
764 to be initialized at gdb startup.
765
766 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
767
768 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset):
769 Add MPX registers.
770 (amd64_linux_read_description): Add initialization for MPX and
771 AVX independently.
772 * amd64-linux-tdep.c: Includes features/i386/amd64-mpx-linux.c.
773 (amd64_linux_gregset_reg_offset): Add MPX registers.
774 (amd64_linux_core_read_description): Add initialization for MPX
775 registers.
776 (_initialize_amd64_linux_tdep): Initialize MPX targets.
777 * amd64-linux-tdep.h (AMD64_LINUX_RAX_REGNUM): Set it to the last
778 register on the list.
779 (tdesc_amd64_mpx_linux) Add new target for MPX.
780 * amd64-tdep.c: Includes features/i386/amd64-mpx.c.
781 (amd64_mpx_names): MPX register names.
782 (amd64_init_abi): Add MPX register while initializing the ABI.
783 (_initialize_amd64_tdep): Initialize MPX targets.
784 * amd64-tdep.h (amd64_regnum): Add MPX registers.
785 (AMD64_NUM_REGS): Set number of registers taking MPX into account.
786
787 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
788
789 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Add MPX
790 registers on the range of registers to be read from
791 xsave buffer.
792 (i386_linux_read_description): Add case for MPX.
793 * i386-linux-tdep.c: Include features/i386/i386-mpx-linux.c.
794 (i386_linux_gregset_reg_offset): Add MPX registers.
795 (i386_linux_core_read_description): Initialize also MPX.
796 (_initialize_i386_linux_tdep): Add mpx initialization.
797 * i386-tdep.h (gdbarch_tdep): Add fields bnd0r_regnum, bnd0_regnum,
798 mpx_register_names.
799 (i386_regnum): Add MPX registers.
800 (I386_MPX_NUM_REGS): New macro.
801 (i386_bnd_regnum_p): New function.
802 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set
803 number of registers to be the number of BNDSTATUS.
804 (tdesc_i386_mpx_linux): Add description for MPX Linux registers.
805 * i386-tdep.c: Include features/i386/i386-mpx.c.
806 (i386_mpx_names): Add MPX register names array.
807 (i386_bnd_names): Add bnd pseudo register names array.
808 (i386_bndr_regnum_p): Lookup register numbers for bnd raw
809 registers.
810 (i386_bndr_regnum_p): Lookup register numbers for bnd raw registers.
811 (386_mpx_ctrl_regnum_p): Lookup register numbers for MPX control
812 registers.
813 (i386_bnd_type): New function.
814 (i386_pseudo_register_type): Use i386_bnd_type for bnd pseudo
815 register types.
816 (i386_pseudo_register_read_into_value): Add bnd case.
817 (i386_pseudo_register_write): Add bnd pseudo registers.
818 (i386_register_reggroup_p): Add MPX register to the group all.
819 (i386_validate_tdesc_p): Add MPX to the target description
820 validation.
821 (i386_pseudo_register_name): Add bnd pseudo registers.
822 (i386_gdbarch_init): Add MPX for architecture initialization.
823 (_initia_initialize_i386_tdep): Add mpx initialization.
824 * i387-tdep.c (xsave_mpx_offset): New vector for MPX offsets on
825 XSAVE buffer.
826 (XSAVE_MPX_ADDR): New macro.
827 (i387_supply_xsave): Add MPX case.
828 (i387_collect_xsave): Add MPX case.
829 * i387-tdep.h (I387_BND0R_REGNUM): New macro.
830 (I387_BNDCFGU_REGNUM): New macro.
831 (I387_NUM_MPX_REGS): New macro.
832 (I387_NUM_BND_REGS): New macro.
833 (I387_NUM_MPX_CTRL_REGS): New macro.
834 (I387_MPXEND_REGNUM): New macro.
835 * common/i386-xstate.h (I386_XSTATE_BNDREGS): New macro.
836 (I386_XSTATE_BNDCFG): Likewise.
837 (I386_XSTATE_MPX_MASK): Likewise.
838 (I386_XSTATE_ALL_MASK): New macro represents flags for all states.
839 (I386_XSTATE_BNDREGS_SIZE): New macro.
840 (I386_XSTATE_BNDCFG_SIZE): Likewise.
841 (I386_XSTATE_SIZE): Adapt for MPX.
842 (I386_XSTATE_MAX_SIZE): Likewise.
843
844 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
845
846 * features/i386/Makefile: Adapts for using MPX registers.
847 * features/i386/32bit-mpx.xml: New file.
848 * features/i386/64bit-mpx.xml: Likewise.
849 * features/i386/amd64-mpx-linux.c: Likewise.
850 * features/i386/amd64-mpx-linux.xml: Likewise.
851 * features/i386/amd64-mpx.c: Likewise.
852 * features/i386/amd64-mpx.xml: Likewise.
853 * features/i386/i386-mpx-linux.c: Likewise.
854 * features/i386/i386-mpx-linux.xml: Likewise.
855 * features/i386/i386-mpx.c: Likewise.
856 * features/i386/i386-mpx.xml: Likewise.
857 * regformats/i386/amd64-mpx-linux.dat: New file.
858 * regformats/i386/amd64-mpx.dat: Likewise.
859 * regformats/i386/i386-mpx-linux.dat: Likewise.
860 * regformats/i386/i386-mpx.dat: Likewise.
861
862 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
863
864 * target-descriptions.c (maint_print_maint_print_c_tdesc_cmd):
865 Modified logic of creating a bitfield to be in sync with
866 tdesc_gdb_type.
867
868 2013-11-20 Will Newton <will.newton@linaro.org>
869
870 * arm-tdep.c (arm_get_next_pc): Remove "Infinite loop detected"
871 error message.
872
873 2013-11-20 Yao Qi <yao@codesourcery.com>
874
875 * progspace.h (struct address_space_data): Declare.
876 * target-dcache.c: Include "progspace.h".
877 (target_dache): Remove.
878 (target_dcache_aspace_key): New.
879 (target_dcache_cleanup): New function.
880 (target_dcache_init_p): Get data through
881 target_dcache_aspace_key.
882 (target_dcache_invalidate): Likewise.
883 (target_dcache_get): Likewise.
884 (target_dcache_get_or_init): Likewise.
885 (_initialize_target_dcache): Initialize
886 target_dcache_aspace_key.
887
888 2013-11-20 Yao Qi <yao@codesourcery.com>
889
890 * progspace.c (struct address_space): Update comments.
891 <REGISTRY_FIELDS>: New fields.
892 DEFINE_REGISTRY for address_space.
893 (new_address_space): Call address_space_alloc_data.
894 (free_address_space): Call address_space_free_data.
895 * progspace.h: Use DECLARE_REGISTRY.
896
897 2013-11-20 Yao Qi <yao@codesourcery.com>
898
899 * Makefile.in (SFILES):Add target-dcache.c.
900 (HFILES_NO_SRCDIR): Add target-dcache.h.
901 (COMMON_OBS): Add target-dcache.o.
902 * dcache.c: Remove inclusion to "target.h". Include
903 "target-dcache.h".
904 * memattr.c: Include "target-dcache.h".
905 * top.c: Likewise.
906 * tracepoint.c: Likewise.
907 * target.c: (stack_cache_enabled_p_1): Move to
908 target-dcache.c.
909 (stack_cache_enabled_p): Likewise.
910 (set_stack_cache_enabled_p): Likewise.
911 (show_stack_cache_enabled_p): Likewise.
912 (target_dcache, target_dcache_init_p): Likewise.
913 (target_dcache_invalidate): Likewise.
914 (target_dcache_get, target_dcache_get_or_init): Likewise.
915 (memory_xfer_partial_1): Call function stack_cache_enabled.
916 (initialize_target): Move code to target-dcache.c.
917 * target.h (target_dcache_invalidate): Move to
918 target-dcache.h.
919 (target_dcache_get): Likewise.
920 * target-dcache.c: New.
921 * target-dcache.h: New.
922
923 2013-11-20 Yao Qi <yao@codesourcery.com>
924
925 * target.c (memory_xfer_partial_1): Update 'target_dcache' if
926 it is initialized.
927
928 2013-11-20 Yao Qi <yao@codesourcery.com>
929
930 * dcache.c (last_cache): Remove.
931 (dcache_free, dcache_init): Update.
932 (dcache_update):
933 (dcache_print_line): Add parameter 'dcache'. Replace
934 'target_dcache' with 'dcache'.
935 (dcache_info): Move code to dcache_info_1. Call
936 'dcache_info_1'.
937 (dcache_info_1): New function.
938 (set_dcache_size): Call target_dcache_invalidate.
939 (set_dcache_line_size): Call target_dcache_invalidate.
940 * target.c (target_dcache_init_p): New function.
941 (target_dcache_invalidate): Check target_dcache_init_p first.
942 (target_dcache_get, target_dcache_get_or_init): New function.
943 (memory_xfer_partial_1): Adjust.
944 (initialize_target): Don't initialize 'target_dcache'.
945 * target.h (struct dcache_struct): Declare.
946 (target_dcache_get): Declare.
947
948 2013-11-19 Yao Qi <yao@codesourcery.com>
949
950 * varobj.c (varobj_get_type): Fix typo.
951
952 2013-11-19 Joel Brobecker <brobecker@adacore.com>
953
954 * python/py-value.c (is_intlike): Add TYPE_CODE_RANGE handling.
955
956 2013-11-19 Joel Brobecker <brobecker@adacore.com>
957
958 * contrib/ari/gdb_ari.sh: Remove checks for "dirent.h" and
959 "stat.h".
960
961 2013-11-18 Tom Tromey <tromey@redhat.com>
962
963 * common/gdb_stat.h: Remove.
964 * ada-lang.c: Use sys/stat.h, not gdb_stat.h.
965 * common/filestuff.c: Use sys/stat.h, not gdb_stat.h.
966 * common/linux-osdata.c: Use sys/stat.h, not gdb_stat.h.
967 * corefile.c: Use sys/stat.h, not gdb_stat.h.
968 * ctf.c: Use sys/stat.h, not gdb_stat.h.
969 * darwin-nat.c: Use sys/stat.h, not gdb_stat.h.
970 * dbxread.c: Use sys/stat.h, not gdb_stat.h.
971 * dwarf2read.c: Use sys/stat.h, not gdb_stat.h.
972 * exec.c: Use sys/stat.h, not gdb_stat.h.
973 * gdbserver/linux-low.c: Use sys/stat.h, not gdb_stat.h.
974 * gdbserver/remote-utils.c: Use sys/stat.h, not gdb_stat.h.
975 * inf-child.c: Use sys/stat.h, not gdb_stat.h.
976 * jit.c: Use sys/stat.h, not gdb_stat.h.
977 * linux-nat.c: Use sys/stat.h, not gdb_stat.h.
978 * m68klinux-nat.c: Use sys/stat.h, not gdb_stat.h.
979 * main.c: Use sys/stat.h, not gdb_stat.h.
980 * mdebugread.c: Use sys/stat.h, not gdb_stat.h.
981 * mi/mi-cmd-env.c: Use sys/stat.h, not gdb_stat.h.
982 * nto-tdep.c: Use sys/stat.h, not gdb_stat.h.
983 * objfiles.c: Use sys/stat.h, not gdb_stat.h.
984 * procfs.c: Use sys/stat.h, not gdb_stat.h.
985 * remote-fileio.c: Use sys/stat.h, not gdb_stat.h.
986 * remote-mips.c: Use sys/stat.h, not gdb_stat.h.
987 * remote.c: Use sys/stat.h, not gdb_stat.h.
988 * rs6000-nat.c: Use sys/stat.h, not gdb_stat.h.
989 * sol-thread.c: Use sys/stat.h, not gdb_stat.h.
990 * solib-spu.c: Use sys/stat.h, not gdb_stat.h.
991 * source.c: Use sys/stat.h, not gdb_stat.h.
992 * symfile.c: Use sys/stat.h, not gdb_stat.h.
993 * symmisc.c: Use sys/stat.h, not gdb_stat.h.
994 * symtab.c: Use sys/stat.h, not gdb_stat.h.
995 * top.c: Use sys/stat.h, not gdb_stat.h.
996 * xcoffread.c: Use sys/stat.h, not gdb_stat.h.
997
998 2013-11-18 Tom Tromey <tromey@redhat.com>
999
1000 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1001 sys_stat.
1002 * gnulib/aclocal.m4: Update.
1003 * gnulib/config.in: Update.
1004 * gnulib/configure: Update.
1005 * gnulib/import/Makefile.am: Update.
1006 * gnulib/import/Makefile.in: Update.
1007 * gnulib/import/m4/gnulib-cache.m4: Update.
1008 * gnulib/import/m4/gnulib-comp.m4: Update.
1009 * gnulib/import/m4/sys_stat_h.m4: New.
1010 * gnulib/import/m4/time_h.m4: New.
1011 * gnulib/import/sys_stat.in.h: New.
1012 * gnulib/import/time.in.h: New.
1013
1014 2013-11-18 Tom Tromey <tromey@redhat.com>
1015
1016 * configure: Rebuild.
1017 * configure.ac: Remove check of HAVE_SYS_TYPES_H.
1018
1019 2013-11-18 Tom Tromey <tromey@redhat.com>
1020
1021 * configure: Rebuild.
1022 * configure.ac: Don't check for unistd.h.
1023
1024 2013-11-18 Tom Tromey <tromey@redhat.com>
1025
1026 * configure: Rebuild.
1027 * configure.ac: Don't check for stdlib.h
1028 * defs.h: Include stdlib.h unconditionally.
1029
1030 2013-11-18 Tom Tromey <tromey@redhat.com>
1031
1032 * config.in: Rebuild.
1033 * configure: Rebuild.
1034 * configure.ac: Don't check for stddef.h.
1035 * defs.h: Unconditionally include stddef.h. Remove duplicate
1036 inclusion.
1037
1038 2013-11-18 Tom Tromey <tromey@redhat.com>
1039
1040 * common/common.m4 (GDB_AC_COMMON): Don't use AC_HEADER_DIRENT.
1041 * common/gdb_dirent.h: Remove.
1042 * common/filestuff.c: Use dirent.h.
1043 * common/linux-osdata.c: Use dirent.h.
1044 (NAMELEN): Define.
1045 * config.in: Rebuild.
1046 * configure: Rebuild.
1047 * configure.ac: Don't use AC_HEADER_DIRENT.
1048 * linux-fork.c: Use dirent.h
1049 * linux-nat.c: Use dirent.h.
1050 * nto-procfs.c: Use dirent.h.
1051 * procfs.c: Use dirent.h.
1052
1053 2013-11-18 Tom Tromey <tromey@redhat.com>
1054
1055 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirent.
1056 * gnulib/aclocal.m4: Update.
1057 * gnulib/config.in: Update.
1058 * gnulib/configure: Update.
1059 * gnulib/import/Makefile.am: Update.
1060 * gnulib/import/Makefile.in: Update.
1061 * gnulib/import/dirent.in.h: New.
1062 * gnulib/import/m4/dirent_h.m4: New.
1063 * gnulib/import/m4/gnulib-cache.m4: Update.
1064 * gnulib/import/m4/gnulib-comp.m4: Update.
1065
1066 2013-11-18 Tom Tromey <tromey@redhat.com>
1067
1068 * configure: Rebuild.
1069 * common/common.m4 (GDB_AC_COMMON): Don't check for string.h or
1070 strings.h.
1071
1072 2013-11-18 Tom Tromey <tromey@redhat.com>
1073
1074 * common/gdb_string.h: Remove.
1075 * aarch64-tdep.c: Use string.h, not gdb_string.h.
1076 * ada-exp.y: Use string.h, not gdb_string.h.
1077 * ada-lang.c: Use string.h, not gdb_string.h.
1078 * ada-lex.l: Use string.h, not gdb_string.h.
1079 * ada-typeprint.c: Use string.h, not gdb_string.h.
1080 * ada-valprint.c: Use string.h, not gdb_string.h.
1081 * aix-thread.c: Use string.h, not gdb_string.h.
1082 * alpha-linux-tdep.c: Use string.h, not gdb_string.h.
1083 * alpha-mdebug-tdep.c: Use string.h, not gdb_string.h.
1084 * alpha-nat.c: Use string.h, not gdb_string.h.
1085 * alpha-osf1-tdep.c: Use string.h, not gdb_string.h.
1086 * alpha-tdep.c: Use string.h, not gdb_string.h.
1087 * alphanbsd-tdep.c: Use string.h, not gdb_string.h.
1088 * amd64-dicos-tdep.c: Use string.h, not gdb_string.h.
1089 * amd64-linux-nat.c: Use string.h, not gdb_string.h.
1090 * amd64-linux-tdep.c: Use string.h, not gdb_string.h.
1091 * amd64-nat.c: Use string.h, not gdb_string.h.
1092 * amd64-sol2-tdep.c: Use string.h, not gdb_string.h.
1093 * amd64fbsd-tdep.c: Use string.h, not gdb_string.h.
1094 * amd64obsd-tdep.c: Use string.h, not gdb_string.h.
1095 * arch-utils.c: Use string.h, not gdb_string.h.
1096 * arm-linux-nat.c: Use string.h, not gdb_string.h.
1097 * arm-linux-tdep.c: Use string.h, not gdb_string.h.
1098 * arm-tdep.c: Use string.h, not gdb_string.h.
1099 * arm-wince-tdep.c: Use string.h, not gdb_string.h.
1100 * armbsd-tdep.c: Use string.h, not gdb_string.h.
1101 * armnbsd-nat.c: Use string.h, not gdb_string.h.
1102 * armnbsd-tdep.c: Use string.h, not gdb_string.h.
1103 * armobsd-tdep.c: Use string.h, not gdb_string.h.
1104 * avr-tdep.c: Use string.h, not gdb_string.h.
1105 * ax-gdb.c: Use string.h, not gdb_string.h.
1106 * ax-general.c: Use string.h, not gdb_string.h.
1107 * bcache.c: Use string.h, not gdb_string.h.
1108 * bfin-tdep.c: Use string.h, not gdb_string.h.
1109 * breakpoint.c: Use string.h, not gdb_string.h.
1110 * build-id.c: Use string.h, not gdb_string.h.
1111 * buildsym.c: Use string.h, not gdb_string.h.
1112 * c-exp.y: Use string.h, not gdb_string.h.
1113 * c-lang.c: Use string.h, not gdb_string.h.
1114 * c-typeprint.c: Use string.h, not gdb_string.h.
1115 * c-valprint.c: Use string.h, not gdb_string.h.
1116 * charset.c: Use string.h, not gdb_string.h.
1117 * cli-out.c: Use string.h, not gdb_string.h.
1118 * cli/cli-cmds.c: Use string.h, not gdb_string.h.
1119 * cli/cli-decode.c: Use string.h, not gdb_string.h.
1120 * cli/cli-dump.c: Use string.h, not gdb_string.h.
1121 * cli/cli-interp.c: Use string.h, not gdb_string.h.
1122 * cli/cli-logging.c: Use string.h, not gdb_string.h.
1123 * cli/cli-script.c: Use string.h, not gdb_string.h.
1124 * cli/cli-setshow.c: Use string.h, not gdb_string.h.
1125 * cli/cli-utils.c: Use string.h, not gdb_string.h.
1126 * coffread.c: Use string.h, not gdb_string.h.
1127 * common/common-utils.c: Use string.h, not gdb_string.h.
1128 * common/filestuff.c: Use string.h, not gdb_string.h.
1129 * common/linux-procfs.c: Use string.h, not gdb_string.h.
1130 * common/linux-ptrace.c: Use string.h, not gdb_string.h.
1131 * common/signals.c: Use string.h, not gdb_string.h.
1132 * common/vec.h: Use string.h, not gdb_string.h.
1133 * core-regset.c: Use string.h, not gdb_string.h.
1134 * corefile.c: Use string.h, not gdb_string.h.
1135 * corelow.c: Use string.h, not gdb_string.h.
1136 * cp-abi.c: Use string.h, not gdb_string.h.
1137 * cp-support.c: Use string.h, not gdb_string.h.
1138 * cp-valprint.c: Use string.h, not gdb_string.h.
1139 * cris-tdep.c: Use string.h, not gdb_string.h.
1140 * d-lang.c: Use string.h, not gdb_string.h.
1141 * dbxread.c: Use string.h, not gdb_string.h.
1142 * dcache.c: Use string.h, not gdb_string.h.
1143 * demangle.c: Use string.h, not gdb_string.h.
1144 * dicos-tdep.c: Use string.h, not gdb_string.h.
1145 * disasm.c: Use string.h, not gdb_string.h.
1146 * doublest.c: Use string.h, not gdb_string.h.
1147 * dsrec.c: Use string.h, not gdb_string.h.
1148 * dummy-frame.c: Use string.h, not gdb_string.h.
1149 * dwarf2-frame.c: Use string.h, not gdb_string.h.
1150 * dwarf2loc.c: Use string.h, not gdb_string.h.
1151 * dwarf2read.c: Use string.h, not gdb_string.h.
1152 * elfread.c: Use string.h, not gdb_string.h.
1153 * environ.c: Use string.h, not gdb_string.h.
1154 * eval.c: Use string.h, not gdb_string.h.
1155 * event-loop.c: Use string.h, not gdb_string.h.
1156 * exceptions.c: Use string.h, not gdb_string.h.
1157 * exec.c: Use string.h, not gdb_string.h.
1158 * expprint.c: Use string.h, not gdb_string.h.
1159 * f-exp.y: Use string.h, not gdb_string.h.
1160 * f-lang.c: Use string.h, not gdb_string.h.
1161 * f-typeprint.c: Use string.h, not gdb_string.h.
1162 * f-valprint.c: Use string.h, not gdb_string.h.
1163 * fbsd-nat.c: Use string.h, not gdb_string.h.
1164 * findcmd.c: Use string.h, not gdb_string.h.
1165 * findvar.c: Use string.h, not gdb_string.h.
1166 * fork-child.c: Use string.h, not gdb_string.h.
1167 * frame.c: Use string.h, not gdb_string.h.
1168 * frv-linux-tdep.c: Use string.h, not gdb_string.h.
1169 * frv-tdep.c: Use string.h, not gdb_string.h.
1170 * gdb.c: Use string.h, not gdb_string.h.
1171 * gdb_bfd.c: Use string.h, not gdb_string.h.
1172 * gdbarch.c: Use string.h, not gdb_string.h.
1173 * gdbtypes.c: Use string.h, not gdb_string.h.
1174 * gnu-nat.c: Use string.h, not gdb_string.h.
1175 * gnu-v2-abi.c: Use string.h, not gdb_string.h.
1176 * gnu-v3-abi.c: Use string.h, not gdb_string.h.
1177 * go-exp.y: Use string.h, not gdb_string.h.
1178 * go-lang.c: Use string.h, not gdb_string.h.
1179 * go32-nat.c: Use string.h, not gdb_string.h.
1180 * hppa-hpux-tdep.c: Use string.h, not gdb_string.h.
1181 * hppa-linux-nat.c: Use string.h, not gdb_string.h.
1182 * hppanbsd-tdep.c: Use string.h, not gdb_string.h.
1183 * hppaobsd-tdep.c: Use string.h, not gdb_string.h.
1184 * i386-cygwin-tdep.c: Use string.h, not gdb_string.h.
1185 * i386-dicos-tdep.c: Use string.h, not gdb_string.h.
1186 * i386-linux-nat.c: Use string.h, not gdb_string.h.
1187 * i386-linux-tdep.c: Use string.h, not gdb_string.h.
1188 * i386-nto-tdep.c: Use string.h, not gdb_string.h.
1189 * i386-sol2-tdep.c: Use string.h, not gdb_string.h.
1190 * i386-tdep.c: Use string.h, not gdb_string.h.
1191 * i386bsd-tdep.c: Use string.h, not gdb_string.h.
1192 * i386gnu-nat.c: Use string.h, not gdb_string.h.
1193 * i386nbsd-tdep.c: Use string.h, not gdb_string.h.
1194 * i386obsd-tdep.c: Use string.h, not gdb_string.h.
1195 * i387-tdep.c: Use string.h, not gdb_string.h.
1196 * ia64-libunwind-tdep.c: Use string.h, not gdb_string.h.
1197 * ia64-linux-nat.c: Use string.h, not gdb_string.h.
1198 * inf-child.c: Use string.h, not gdb_string.h.
1199 * inf-ptrace.c: Use string.h, not gdb_string.h.
1200 * inf-ttrace.c: Use string.h, not gdb_string.h.
1201 * infcall.c: Use string.h, not gdb_string.h.
1202 * infcmd.c: Use string.h, not gdb_string.h.
1203 * inflow.c: Use string.h, not gdb_string.h.
1204 * infrun.c: Use string.h, not gdb_string.h.
1205 * interps.c: Use string.h, not gdb_string.h.
1206 * iq2000-tdep.c: Use string.h, not gdb_string.h.
1207 * irix5-nat.c: Use string.h, not gdb_string.h.
1208 * jv-exp.y: Use string.h, not gdb_string.h.
1209 * jv-lang.c: Use string.h, not gdb_string.h.
1210 * jv-typeprint.c: Use string.h, not gdb_string.h.
1211 * jv-valprint.c: Use string.h, not gdb_string.h.
1212 * language.c: Use string.h, not gdb_string.h.
1213 * linux-fork.c: Use string.h, not gdb_string.h.
1214 * linux-nat.c: Use string.h, not gdb_string.h.
1215 * lm32-tdep.c: Use string.h, not gdb_string.h.
1216 * m2-exp.y: Use string.h, not gdb_string.h.
1217 * m2-typeprint.c: Use string.h, not gdb_string.h.
1218 * m32c-tdep.c: Use string.h, not gdb_string.h.
1219 * m32r-linux-nat.c: Use string.h, not gdb_string.h.
1220 * m32r-linux-tdep.c: Use string.h, not gdb_string.h.
1221 * m32r-rom.c: Use string.h, not gdb_string.h.
1222 * m32r-tdep.c: Use string.h, not gdb_string.h.
1223 * m68hc11-tdep.c: Use string.h, not gdb_string.h.
1224 * m68k-tdep.c: Use string.h, not gdb_string.h.
1225 * m68kbsd-tdep.c: Use string.h, not gdb_string.h.
1226 * m68klinux-nat.c: Use string.h, not gdb_string.h.
1227 * m68klinux-tdep.c: Use string.h, not gdb_string.h.
1228 * m88k-tdep.c: Use string.h, not gdb_string.h.
1229 * macrocmd.c: Use string.h, not gdb_string.h.
1230 * main.c: Use string.h, not gdb_string.h.
1231 * mdebugread.c: Use string.h, not gdb_string.h.
1232 * mem-break.c: Use string.h, not gdb_string.h.
1233 * memattr.c: Use string.h, not gdb_string.h.
1234 * memory-map.c: Use string.h, not gdb_string.h.
1235 * mep-tdep.c: Use string.h, not gdb_string.h.
1236 * mi/mi-cmd-break.c: Use string.h, not gdb_string.h.
1237 * mi/mi-cmd-disas.c: Use string.h, not gdb_string.h.
1238 * mi/mi-cmd-env.c: Use string.h, not gdb_string.h.
1239 * mi/mi-cmd-stack.c: Use string.h, not gdb_string.h.
1240 * mi/mi-cmd-var.c: Use string.h, not gdb_string.h.
1241 * mi/mi-cmds.c: Use string.h, not gdb_string.h.
1242 * mi/mi-console.c: Use string.h, not gdb_string.h.
1243 * mi/mi-getopt.c: Use string.h, not gdb_string.h.
1244 * mi/mi-interp.c: Use string.h, not gdb_string.h.
1245 * mi/mi-main.c: Use string.h, not gdb_string.h.
1246 * mi/mi-parse.c: Use string.h, not gdb_string.h.
1247 * microblaze-rom.c: Use string.h, not gdb_string.h.
1248 * microblaze-tdep.c: Use string.h, not gdb_string.h.
1249 * mingw-hdep.c: Use string.h, not gdb_string.h.
1250 * minidebug.c: Use string.h, not gdb_string.h.
1251 * minsyms.c: Use string.h, not gdb_string.h.
1252 * mips-irix-tdep.c: Use string.h, not gdb_string.h.
1253 * mips-linux-tdep.c: Use string.h, not gdb_string.h.
1254 * mips-tdep.c: Use string.h, not gdb_string.h.
1255 * mips64obsd-tdep.c: Use string.h, not gdb_string.h.
1256 * mipsnbsd-tdep.c: Use string.h, not gdb_string.h.
1257 * mipsread.c: Use string.h, not gdb_string.h.
1258 * mn10300-linux-tdep.c: Use string.h, not gdb_string.h.
1259 * mn10300-tdep.c: Use string.h, not gdb_string.h.
1260 * monitor.c: Use string.h, not gdb_string.h.
1261 * moxie-tdep.c: Use string.h, not gdb_string.h.
1262 * mt-tdep.c: Use string.h, not gdb_string.h.
1263 * nbsd-tdep.c: Use string.h, not gdb_string.h.
1264 * nios2-linux-tdep.c: Use string.h, not gdb_string.h.
1265 * nto-procfs.c: Use string.h, not gdb_string.h.
1266 * nto-tdep.c: Use string.h, not gdb_string.h.
1267 * objc-lang.c: Use string.h, not gdb_string.h.
1268 * objfiles.c: Use string.h, not gdb_string.h.
1269 * opencl-lang.c: Use string.h, not gdb_string.h.
1270 * osabi.c: Use string.h, not gdb_string.h.
1271 * osdata.c: Use string.h, not gdb_string.h.
1272 * p-exp.y: Use string.h, not gdb_string.h.
1273 * p-lang.c: Use string.h, not gdb_string.h.
1274 * p-typeprint.c: Use string.h, not gdb_string.h.
1275 * parse.c: Use string.h, not gdb_string.h.
1276 * posix-hdep.c: Use string.h, not gdb_string.h.
1277 * ppc-linux-nat.c: Use string.h, not gdb_string.h.
1278 * ppc-sysv-tdep.c: Use string.h, not gdb_string.h.
1279 * ppcfbsd-tdep.c: Use string.h, not gdb_string.h.
1280 * ppcnbsd-tdep.c: Use string.h, not gdb_string.h.
1281 * ppcobsd-tdep.c: Use string.h, not gdb_string.h.
1282 * printcmd.c: Use string.h, not gdb_string.h.
1283 * procfs.c: Use string.h, not gdb_string.h.
1284 * prologue-value.c: Use string.h, not gdb_string.h.
1285 * python/py-auto-load.c: Use string.h, not gdb_string.h.
1286 * python/py-gdb-readline.c: Use string.h, not gdb_string.h.
1287 * ravenscar-thread.c: Use string.h, not gdb_string.h.
1288 * regcache.c: Use string.h, not gdb_string.h.
1289 * registry.c: Use string.h, not gdb_string.h.
1290 * remote-fileio.c: Use string.h, not gdb_string.h.
1291 * remote-m32r-sdi.c: Use string.h, not gdb_string.h.
1292 * remote-mips.c: Use string.h, not gdb_string.h.
1293 * remote-sim.c: Use string.h, not gdb_string.h.
1294 * remote.c: Use string.h, not gdb_string.h.
1295 * reverse.c: Use string.h, not gdb_string.h.
1296 * rs6000-aix-tdep.c: Use string.h, not gdb_string.h.
1297 * ser-base.c: Use string.h, not gdb_string.h.
1298 * ser-go32.c: Use string.h, not gdb_string.h.
1299 * ser-mingw.c: Use string.h, not gdb_string.h.
1300 * ser-pipe.c: Use string.h, not gdb_string.h.
1301 * ser-tcp.c: Use string.h, not gdb_string.h.
1302 * ser-unix.c: Use string.h, not gdb_string.h.
1303 * serial.c: Use string.h, not gdb_string.h.
1304 * sh-tdep.c: Use string.h, not gdb_string.h.
1305 * sh64-tdep.c: Use string.h, not gdb_string.h.
1306 * shnbsd-tdep.c: Use string.h, not gdb_string.h.
1307 * skip.c: Use string.h, not gdb_string.h.
1308 * sol-thread.c: Use string.h, not gdb_string.h.
1309 * solib-dsbt.c: Use string.h, not gdb_string.h.
1310 * solib-frv.c: Use string.h, not gdb_string.h.
1311 * solib-osf.c: Use string.h, not gdb_string.h.
1312 * solib-spu.c: Use string.h, not gdb_string.h.
1313 * solib-target.c: Use string.h, not gdb_string.h.
1314 * solib.c: Use string.h, not gdb_string.h.
1315 * somread.c: Use string.h, not gdb_string.h.
1316 * source.c: Use string.h, not gdb_string.h.
1317 * sparc-nat.c: Use string.h, not gdb_string.h.
1318 * sparc-sol2-tdep.c: Use string.h, not gdb_string.h.
1319 * sparc-tdep.c: Use string.h, not gdb_string.h.
1320 * sparc64-tdep.c: Use string.h, not gdb_string.h.
1321 * sparc64fbsd-tdep.c: Use string.h, not gdb_string.h.
1322 * sparc64nbsd-tdep.c: Use string.h, not gdb_string.h.
1323 * sparcnbsd-tdep.c: Use string.h, not gdb_string.h.
1324 * spu-linux-nat.c: Use string.h, not gdb_string.h.
1325 * spu-multiarch.c: Use string.h, not gdb_string.h.
1326 * spu-tdep.c: Use string.h, not gdb_string.h.
1327 * stabsread.c: Use string.h, not gdb_string.h.
1328 * stack.c: Use string.h, not gdb_string.h.
1329 * std-regs.c: Use string.h, not gdb_string.h.
1330 * symfile.c: Use string.h, not gdb_string.h.
1331 * symmisc.c: Use string.h, not gdb_string.h.
1332 * symtab.c: Use string.h, not gdb_string.h.
1333 * target.c: Use string.h, not gdb_string.h.
1334 * thread.c: Use string.h, not gdb_string.h.
1335 * tilegx-linux-nat.c: Use string.h, not gdb_string.h.
1336 * tilegx-tdep.c: Use string.h, not gdb_string.h.
1337 * top.c: Use string.h, not gdb_string.h.
1338 * tracepoint.c: Use string.h, not gdb_string.h.
1339 * tui/tui-command.c: Use string.h, not gdb_string.h.
1340 * tui/tui-data.c: Use string.h, not gdb_string.h.
1341 * tui/tui-disasm.c: Use string.h, not gdb_string.h.
1342 * tui/tui-file.c: Use string.h, not gdb_string.h.
1343 * tui/tui-layout.c: Use string.h, not gdb_string.h.
1344 * tui/tui-out.c: Use string.h, not gdb_string.h.
1345 * tui/tui-regs.c: Use string.h, not gdb_string.h.
1346 * tui/tui-source.c: Use string.h, not gdb_string.h.
1347 * tui/tui-stack.c: Use string.h, not gdb_string.h.
1348 * tui/tui-win.c: Use string.h, not gdb_string.h.
1349 * tui/tui-windata.c: Use string.h, not gdb_string.h.
1350 * tui/tui-winsource.c: Use string.h, not gdb_string.h.
1351 * typeprint.c: Use string.h, not gdb_string.h.
1352 * ui-file.c: Use string.h, not gdb_string.h.
1353 * ui-out.c: Use string.h, not gdb_string.h.
1354 * user-regs.c: Use string.h, not gdb_string.h.
1355 * utils.c: Use string.h, not gdb_string.h.
1356 * v850-tdep.c: Use string.h, not gdb_string.h.
1357 * valarith.c: Use string.h, not gdb_string.h.
1358 * valops.c: Use string.h, not gdb_string.h.
1359 * valprint.c: Use string.h, not gdb_string.h.
1360 * value.c: Use string.h, not gdb_string.h.
1361 * varobj.c: Use string.h, not gdb_string.h.
1362 * vax-tdep.c: Use string.h, not gdb_string.h.
1363 * vaxnbsd-tdep.c: Use string.h, not gdb_string.h.
1364 * vaxobsd-tdep.c: Use string.h, not gdb_string.h.
1365 * windows-nat.c: Use string.h, not gdb_string.h.
1366 * xcoffread.c: Use string.h, not gdb_string.h.
1367 * xml-support.c: Use string.h, not gdb_string.h.
1368 * xstormy16-tdep.c: Use string.h, not gdb_string.h.
1369 * xtensa-linux-nat.c: Use string.h, not gdb_string.h.
1370
1371 2013-11-18 Tom Tromey <tromey@redhat.com>
1372
1373 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strerror
1374 and strstr.
1375 * gnulib/aclocal.m4: Update.
1376 * gnulib/config.in: Update.
1377 * gnulib/configure: Update.
1378 * gnulib/import/Makefile.am: Update.
1379 * gnulib/import/Makefile.in: Update.
1380 * gnulib/import/errno.in.h: New.
1381 * gnulib/import/intprops.h: New.
1382 * gnulib/import/m4/errno_h.m4: New.
1383 * gnulib/import/m4/gnulib-cache.m4: Update.
1384 * gnulib/import/m4/gnulib-comp.m4: Update.
1385 * gnulib/import/m4/strerror.m4: New.
1386 * gnulib/import/m4/strstr.m4: New.
1387 * gnulib/import/m4/sys_socket_h.m4: New.
1388 * gnulib/import/strerror-override.c: New.
1389 * gnulib/import/strerror-override.h: New.
1390 * gnulib/import/strerror.c: New.
1391 * gnulib/import/strstr.c: New.
1392
1393 2013-11-18 Tom Tromey <tromey@redhat.com>
1394
1395 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Split into
1396 multiple lines.
1397
1398 2013-11-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1399
1400 * sparc-tdep.c (sparc_is_annulled_branch_insn): New function.
1401 * sparc-tdep.h: And its prototype.
1402
1403 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): New
1404 function.
1405 (sparc64_linux_init_abi): Register the get_longjmp_target hook.
1406
1407 2013-11-18 Pedro Alves <palves@redhat.com>
1408
1409 * dwarf2-frame.c (read_addr_from_reg): Remove stale comment and
1410 use unpack_pointer.
1411
1412 2013-11-18 Joel Brobecker <brobecker@adacore.com>
1413
1414 * mi/mi-main.c (mi_cmd_list_features): Add "language-options"
1415 to -list-features output.
1416
1417 2013-11-17 Joel Brobecker <brobecker@adacore.com>
1418
1419 * dwarf2expr.h (struct dwarf_expr_context_funcs)
1420 <read_addr_from_reg>: Renames "read_reg".
1421 * dwarf2-frame.c (read_addr_from_reg): Renames "read_reg".
1422 Adjust comment.
1423 (dwarf2_frame_ctx_funcs, execute_stack_op, dwarf2_frame_cache):
1424 Use read_addr_from_reg in place of read_reg.
1425 * dwarf2expr.c (execute_stack_op): Use read_addr_from_reg
1426 in place of read_reg.
1427 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Renames
1428 dwarf_expr_read_reg.
1429 (dwarf_expr_ctx_funcs): Replace dwarf_expr_read_reg
1430 with dwarf_expr_read_addr_from_reg.
1431 (needs_frame_read_addr_from_reg): Renames needs_frame_read_reg.
1432 (needs_frame_ctx_funcs): Replace needs_frame_read_reg with
1433 needs_frame_read_addr_from_reg.
1434
1435 2013-11-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * NEWS (Changes in GDB 7.5) (New commands) (explore): Fix typo.
1438
1439 2013-11-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 * dwarf2loc.c (chain_candidate): Prevent invoking memcpy with
1442 NULL.
1443
1444 2013-11-15 Tom Tromey <tromey@redhat.com>
1445
1446 PR c++/16117:
1447 * c-exp.y (lex_one_token): Add "is_quoted_name" argument.
1448 (classify_name): Likewise. Prefer a field of "this" over a
1449 filename.
1450 (classify_inner_name, yylex): Update.
1451
1452 2013-11-15 Joel Brobecker <brobecker@adacore.com>
1453
1454 * dwarf2expr.h (struct dwarf_expr_context_funcs) <read_reg>:
1455 Extend the documentation a bit.
1456 <get_reg_value>: New field.
1457 * dwarf2loc.c (dwarf_expr_get_reg_value)
1458 (needs_frame_get_reg_value): New functions.
1459 (dwarf_expr_ctx_funcs, needs_frame_ctx_funcs): Add "get_reg_value"
1460 callback.
1461 * dwarf2-frame.c (get_reg_value): New function.
1462 (dwarf2_frame_ctx_funcs): Add "get_reg_value" callback.
1463 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>:
1464 Use new callback to compute result_val.
1465
1466 2013-11-15 Alan Modra <amodra@gmail.com>
1467
1468 * ppc64-tdep.c (ppc64_plt_entry_point): Renamed from..
1469 (ppc64_desc_entry_point): ..this. Update comments here and at
1470 call points.
1471 (ppc64_standard_linkage1, ppc64_standard_linkage2,
1472 ppc64_standard_linkage3): Update comments.
1473 (ppc64_standard_linkage4, ppc64_standard_linkage5,
1474 (ppc64_standard_linkage6, ppc64_standard_linkage7): New insn
1475 patterns.
1476 (ppc64_standard_linkage4_target): New function.
1477 (ppc64_skip_trampoline_code): Skip ELFv2 patterns too.
1478 * rs6000-tdep.c (skip_prologue): Skip ELFv2 r2 setup. Correct
1479 nop match. Fix comment wrap.
1480
1481 2013-11-14 Pedro Alves <palves@redhat.com>
1482
1483 * infrun.c (handle_signal_stop): Move STOP_QUIETLY,
1484 STOP_QUIETLY_REMOTE and 'stop_after_trap' handling earlier.
1485
1486 2013-11-14 Pedro Alves <palves@redhat.com>
1487
1488 * infrun.c (struct execution_control_state)
1489 <stepped_after_stopped_by_watchpoint>: New field.
1490 (get_inferior_stop_soon): New function.
1491 (handle_inferior_event): 'stepped_after_stopped_by_watchpoint' was
1492 moved to struct execution_control_state -- adjust. Use
1493 get_inferior_stop_soon. Split TARGET_WAITKIND_STOPPED handling to
1494 new function.
1495 (handle_signal_stop): New function, factored out from
1496 handle_inferior_event.
1497
1498 2013-11-14 Pedro Alves <palves@redhat.com>
1499
1500 * break-catch-sig.c (signal_catchpoint_explains_signal): Adjust to
1501 return a boolean.
1502 * breakpoint.c (bpstat_explains_signal): Adjust to return a
1503 boolean.
1504 (explains_signal_watchpoint, base_breakpoint_explains_signal):
1505 Adjust to return a boolean.
1506 * breakpoint.h (enum bpstat_signal_value): Delete.
1507 (struct breakpoint_ops) <explains_signal>: New returns a boolean.
1508 (bpstat_explains_signal): Likewise.
1509 * infrun.c (handle_inferior_event) <random signal checks>:
1510 bpstat_explains_signal now returns a boolean - adjust. No longer
1511 consider hiding signals.
1512
1513 2013-11-14 Pedro Alves <palves@redhat.com>
1514
1515 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
1516 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
1517 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
1518 BPSTAT_SIGNAL_HIDE.
1519 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
1520 instead of BPSTAT_SIGNAL_HIDE.
1521 * infrun.c (handle_inferior_event): Rework random signal checks.
1522
1523 2013-11-14 Pedro Alves <palves@redhat.com>
1524
1525 * infrun.c (struct execution_control_state): Remove
1526 'random_signal' field.
1527 (handle_syscall_event): Use bpstat_causes_stop instead of
1528 bpstat_explains_signal. Don't set ecs->random_signal.
1529 (handle_inferior_event): New 'random_signal' local.
1530 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
1531 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
1532 bpstat_explains_signal. Don't set ecs->random_signal.
1533 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
1534 ecs->random_signal.
1535
1536 2013-11-14 Pedro Alves <palves@redhat.com>
1537
1538 * infrun.c (handle_inferior_event): Move comment from the
1539 function's body to the function's description, adjusted.
1540
1541 2013-11-14 Pedro Alves <palves@redhat.com>
1542
1543 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1544 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
1545 Assert we never fall through out of the TARGET_WAITKIND_LOADED
1546 case.
1547
1548 2013-11-14 Tom Tromey <tromey@redhat.com>
1549
1550 * python/py-linetable.c (ltpy_has_line)
1551 (ltpy_get_all_source_lines): Fix loop termination condition.
1552
1553 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1554
1555 * mi/mi-parse.h (struct mi_parse) <language>: New field.
1556 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
1557 PARSE->LANGUAGE during command execution, if set.
1558 * mi/mi-parse.c: Add "language.h" #include.
1559 (mi_parse): Add parsing of "--language" command option.
1560
1561 * NEWS: Add entry mentioning the new "--language" command option.
1562
1563 2013-11-14 Pedro Alves <palves@redhat.com>
1564 Joel Brobecker <brobecker@adacore.com>
1565
1566 * cli/cli-utils.h (extract_arg_const): Add declaration.
1567 * cli/cli-utils.c (extract_arg_const): New function.
1568 (extract_arg): Reimplement using extract_arg_const.
1569
1570 2013-11-14 Joel Brobecker <brobecker@adacore.com>
1571
1572 * language.h: Add "symtab.h" #include.
1573
1574 2013-11-13 Doug Evans <xdje42@gmail.com>
1575
1576 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
1577 specific breakpoints, don't evaluate breakpoint condition if
1578 different thread.
1579
1580 2013-11-13 Keith Seitz <keiths@redhat.com>
1581
1582 PR c++/7935
1583 PR c++/10541
1584 * cp-support.c (insepct_type): Add support for substituting
1585 namespace aliases, too.
1586 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
1587 for DW_TAG_imported_declaration.
1588 (add_partial_symbol): Likewise.
1589 (process_die): Handle namespace aliases with
1590 read_namespace_alias.
1591 (die_needs_namespace): Add DW_TAG_imported_declaration.
1592 (read_namespace_alias): New function.
1593 (load_partial_dies): Load DW_TAG_imported_declaration, too.
1594 (new_symbol_full): Handle DW_TAG_imported_declaration.
1595
1596 2013-11-13 Keith Seitz <keiths@redhat.com>
1597
1598 * p-exp.y (uptok): Make first parameter const.
1599 (yylex): Make `tokstart' and `tokptr' const.
1600 Don't copy the lexer input to a temporary buffer.
1601 Make `p' const.
1602 Remove const workaround for parse_escape.
1603 Create a temporary buffer for a convenience variable instead
1604 of doing in-place modification of the input.
1605 If a match is found with a different case from the input,
1606 do not change the input at all.
1607 Use `tmp' to construct the resultant stoken instead of
1608 `tokstart'.
1609
1610 2013-11-13 Doug Evans <xdje42@gmail.com>
1611
1612 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
1613
1614 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1615
1616 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
1617 entry with "ada-exceptions".
1618
1619 2013-11-13 Joel Brobecker <brobecker@adacore.com>
1620
1621 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
1622 after re-initialization of OBJFILE's obstack.
1623
1624 2013-11-12 Doug Evans <xdje42@gmail.com>
1625
1626 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
1627 bs->stop != 0 on entry. Update function comment. Simplify early
1628 exit for frame mismatch. Reindent rest of function.
1629
1630 2013-11-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1631
1632 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
1633 NULL.
1634
1635 2013-11-12 Doug Evans <dje@google.com>
1636
1637 Work around gold/15646.
1638 * dwarf2read.c (read_index_from_section): Update comment.
1639 (struct dw2_symtab_iterator): New member global_seen.
1640 (dw2_symtab_iter_init): Initialize it.
1641 (dw2_symtab_iter_next): Skip duplicate global symbols.
1642 (dw2_expand_symtabs_matching): Ditto.
1643
1644 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1645
1646 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
1647 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
1648 command.
1649 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
1650 (mi_cmd_info_ada_exceptions): New function.
1651 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
1652
1653 2013-11-12 Joel Brobecker <brobecker@adacore.com>
1654
1655 * ada-lang.h: #include "vec.h".
1656 (struct ada_exc_info): New.
1657 (ada_exc_info): New typedef.
1658 (DEF_VEC_O(ada_exc_info)): New vector.
1659 (ada_exceptions_list): Add declaration.
1660 * ada-lang.c (ada_is_exception_sym)
1661 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
1662 (sort_remove_dups_ada_exceptions_list)
1663 (ada_exc_search_name_matches, ada_add_standard_exceptions)
1664 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
1665 (ada_exceptions_list_1, ada_exceptions_list)
1666 (info_exceptions_command): New function.
1667 (_initialize_ada_language): Add "info exception" command.
1668
1669 2013-11-11 Phil Muldoon <pmuldoon@redhat.com>
1670
1671 PR python/15629
1672 * NEWS: Add linetable feature.
1673 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
1674 * python/py-linetable.c: New file.
1675 * python/py-symtab.c (stpy_get_linetable): New function.
1676 * python/python-internal.h (symtab_to_linetable_object): Declare.
1677 (gdbpy_initialize_linetable): Ditto.
1678 * python/python.c (_initialize_python): Call
1679 gdbpy_initialize_linetable.
1680
1681 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1682
1683 * ada-lang.c (create_ada_exception_catchpoint): Enhance
1684 the documentation of fields "except_string" and "condition".
1685 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
1686 CONDITION on the heap before passing it to
1687 create_ada_exception_catchpoint.
1688 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
1689 CONDITION.
1690
1691 2013-11-11 Tom Tromey <tromey@redhat.com>
1692
1693 * config.in, configure: Rebuild.
1694 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
1695
1696 2013-11-11 Joel Brobecker <brobecker@adacore.com>
1697
1698 * remote-sim.c (gdbsim_detach): Break declaration into
1699 shorter lines. No code change.
1700
1701 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1702
1703 * remote-sim.c (gdbsim_detach): Fix prototype.
1704
1705 2013-11-08 Doug Evans <dje@google.com>
1706
1707 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
1708 (create_debug_types_hash_table): Only print debugging messages for
1709 each TU if dwarf2-read >= 2.
1710 (process_queue): Ditto.
1711 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
1712 Update doc string.
1713
1714 2013-11-08 Tom Tromey <tromey@redhat.com>
1715
1716 * configure: Rebuild.
1717 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
1718
1719 2013-11-08 Tom Tromey <tromey@redhat.com>
1720
1721 * configure, config.in: Rebuild.
1722 * configure.ac: Remove unused configury.
1723
1724 2013-11-08 Tom Tromey <tromey@redhat.com>
1725
1726 * m32c-tdep.c: Use gdb_string.h.
1727
1728 2013-11-08 Tom Tromey <tromey@redhat.com>
1729
1730 * configure, config.in: Rebuild.
1731 * configure.ac: Remove all link.h-related checks.
1732
1733 2013-11-08 Tom Tromey <tromey@redhat.com>
1734
1735 * acinclude.m4: Include common.m4.
1736 * common/common.m4: New file.
1737 * configure, config.in: Rebuild.
1738 * configure.ac: Use GDB_AC_COMMON.
1739
1740 2013-11-08 Doug Evans <dje@google.com>
1741
1742 * NEWS: Mention that "set debug symtab-create" now accepts a
1743 verbosity level.
1744 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
1745 to set the symtab's primary flag.
1746 * jit.c (finalize_symtab): Ditto.
1747 * mdebugread.c (psymtab_to_symtab_1): Ditto.
1748 * symfile.c (allocate_symtab): Only print debugging messages for
1749 symtab_create_debug levels 2 and higher.
1750 * symtab.c (symtab_create_debug): Change type to unsigned int.
1751 (set_symtab_primary): New function.
1752 (_initialize_symtab): Change "set debug symtab-create" to a
1753 zuinteger option.
1754 * symtab.h (set_symtab_primary): Declare.
1755 (symtab_create_debug): Update decl.
1756
1757 2013-11-08 Tom Tromey <tromey@redhat.com>
1758
1759 * aix-thread.c (aix_thread_detach): Update.
1760 * corelow.c (core_detach): Update.
1761 * darwin-nat.c (darwin_detach): Update.
1762 * dec-thread.c (dec_thread_detach): Update.
1763 * gnu-nat.c (gnu_detach): Update.
1764 * go32-nat.c (go32_detach): Update.
1765 * inf-ptrace.c (inf_ptrace_detach): Update.
1766 * inf-ttrace.c (inf_ttrace_detach): Update.
1767 * linux-fork.c (linux_fork_detach): Update.
1768 * linux-fork.h (linux_fork_detach): Update.
1769 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
1770 local for const-correctness.
1771 * linux-thread-db.c (thread_db_detach): Update.
1772 * monitor.c (monitor_detach): Update.
1773 * nto-procfs.c (procfs_detach): Update.
1774 * procfs.c (procfs_detach): Update.
1775 * record.c (record_detach): Update.
1776 * record.h (record_detach): Update.
1777 * remote-m32r-sdi.c (m32r_detach): Update.
1778 * remote-mips.c (mips_detach): Update.
1779 * remote-sim.c (gdbsim_detach): Update.
1780 * remote.c (remote_detach_1, remote_detach)
1781 (extended_remote_detach): Update.
1782 * sol-thread.c (sol_thread_detach): Update.
1783 * target.c (target_detach): Make "args" const.
1784 (init_dummy_target): Update.
1785 * target.h (struct target_ops) <to_detach>: Make argument const.
1786 (target_detach): Likewise.
1787 * windows-nat.c (windows_detach): Update.
1788
1789 2013-11-07 Doug Evans <dje@google.com>
1790
1791 PR 11786
1792 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
1793 and align fields for PT_GNU_RELRO segments.
1794
1795 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1796
1797 PR python/15747
1798 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
1799
1800 2013-11-07 Phil Muldoon <pmuldoon@redhat.com>
1801
1802 * NEWS: Document Python temporary breakpoint support.
1803 * python/py-breakpoint.c (bppy_get_temporary): New function.
1804 (bppy_init): New keyword: temporary. Parse it and set breakpoint
1805 to temporary if True.
1806
1807 2013-11-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1808
1809 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
1810 removed to allow analyzing unconditional branch instructions
1811 with PC-relative offsets of zero.
1812
1813 2013-11-07 Yao Qi <yao@codesourcery.com>
1814
1815 * mi/mi-cmd-var.c: Include "language.h".
1816 (mi_cmd_var_info_expression): Get language name from
1817 language_defn.
1818 * varobj.c (varobj_language_string): Remove.
1819 (variable_language): Remove declaration.
1820 (languages): Remove.
1821 (varobj_get_language): Change the type of return value.
1822 (variable_language): Remove.
1823 * varobj.h (enum varobj_languages): Remove.
1824 (varobj_language_string): Remove declaration.
1825 (varobj_get_language): Update declaration.
1826
1827 2013-11-07 Yao Qi <yao@codesourcery.com>
1828
1829 * language.h (struct language_defn) <la_natural_name>: New
1830 field.
1831 * ada-lang.c (ada_language_defn): Initialize field
1832 'la_natural_name'.
1833 * c-lang.c (c_language_defn): Likewise.
1834 (cplus_language_defn, asm_language_defn): Likewise.
1835 * d-lang.c (d_language_defn): Likewise.
1836 * f-lang.c (f_language_defn): Likewise.
1837 * go-lang.c (go_language_defn): Likewise.
1838 * jv-lang.c (java_language_defn): Likewise.
1839 * language.c (unknown_language_defn ): Likewise.
1840 (auto_language_defn): Likewise.
1841 * m2-lang.c (m2_language_defn): Likewise.
1842 * objc-lang.c (objc_language_defn): Likewise.
1843 * opencl-lang.c (opencl_language_defn): Likewise.
1844 * p-lang.c (pascal_language_defn): Likewise.
1845
1846 2013-11-07 Yao Qi <yao@codesourcery.com>
1847
1848 * language.c (language_str): Return const char *.
1849 (add_language): Add const to 'language_names'
1850 * language.h (struct language_defn) <la_name>: Add const.
1851 (language_str: Update declaration.
1852
1853 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
1854
1855 * s390-linux-nat.c (s390_read_description): Consider the TE field
1856 in the HWCAP for determining 'have_regset_tdb'.
1857
1858 2013-11-06 Will Newton <will.newton@linaro.org>
1859
1860 PR gdb/12866
1861 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
1862 values. (read_partial_die): Likewise.
1863
1864 2013-11-06 Muhammad Bilal <mbilal@codesourcery.com>
1865
1866 PR cli/16122
1867 * top.c (command_line_input): Unify interactivity tests to use
1868 input_from_terminal_p.
1869 * event-top.c (command_line_handler): Likewise.
1870
1871 2013-11-06 Yao Qi <yao@codesourcery.com>
1872
1873 * Makefile.in (check-perf): New target.
1874
1875 2013-11-05 Will Newton <will.newton@linaro.org>
1876
1877 PR gdb/7670
1878 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
1879 (arm_print_float_info): Likewise.
1880
1881 2013-11-04 Anton Blanchard <anton@samba.org>
1882
1883 * target.c (memory_xfer_partial): Cap write to 4KB.
1884
1885 2013-11-01 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1886
1887 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
1888 probe scan even when the arch provides no get_longjmp_target.
1889
1890 2013-10-31 Pedro Alves <palves@redhat.com>
1891
1892 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
1893 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
1894 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
1895 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
1896 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
1897 <bpstat handling>: If the bpstat chain wants the signal to be
1898 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
1899 GDB_SIGNAL_TRAP.
1900
1901 2013-10-31 Andrew Burgess <aburgess@broadcom.com>
1902
1903 * breakpoint.c (update_watchpoint): Update error message and add
1904 an additional error message.
1905
1906 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1907
1908 * s390-tdep.h: Rename to...
1909 * s390-linux-tdep.h: ...here.
1910 * s390-tdep.c: Rename to...
1911 * s390-linux-tdep.c: ...here. Adjust #include.
1912 * s390-nat.c: Rename to...
1913 * s390-linux-nat.c: ...here. Adjust #include.
1914 * config/s390/s390.mh: Rename to...
1915 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
1916 s390-linux-nat.o.
1917 * configure.host: Reflect host rename "s390" -> "linux".
1918 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
1919 * Makefile.in (ALL_TARGET_OBS): Likewise.
1920 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
1921 s390-linux-tdep.h.
1922 (ALLDEPFILES): Reflect rename of .c files.
1923
1924 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1925
1926 * s390-nat.c: Whitespace cleanup.
1927 * s390-tdep.c: Likewise.
1928 * s390-tdep.h: Remove empty line at end of file.
1929
1930 2013-10-30 Maciej W. Rozycki <macro@codesourcery.com>
1931
1932 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
1933 siginfo_size.
1934
1935 2013-10-29 Tom Tromey <tromey@redhat.com>
1936
1937 * utils.c (reg): Move undefinition...
1938 * gdb_curses.h: ... here. Update comment to mention AIX.
1939
1940 2013-10-29 Nicolas Blanc <nicolas.blanc@intel.com>
1941
1942 * exec.h (add_target_sections_of_objfile): New declaration.
1943 * exec.c (add_target_sections_of_objfile): New function.
1944 * symfile.c (add_symbol_file_command): Update current target sections.
1945 (remove_symbol_file_command): New command.
1946 (symfile_free_objfile): New function.
1947 (_initialize_symfile): Register observer for free_objfile events.
1948 * NEWS: Add description of the remove-symbol-file command.
1949 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
1950 * objfiles.c (free_objfile): Notify free_objfile.
1951 (is_addr_in_objfile): New function.
1952 * objfiles.h (is_addr_in_objfile): New declaration.
1953 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
1954 events instead of solib_unloaded events.
1955 (_initialize_printcmd): Register observer for free_objfile instead
1956 of solib_unloaded notifications.
1957 * solib.c (remove_user_added_objfile): New function.
1958 (_initialize_symfile): Add remove-symbol-file.
1959
1960 2013-10-29 Andrew Burgess <aburgess@broadcom.com>
1961
1962 * infcmd.c (default_print_one_register_info): Use val_print to
1963 print all values even optimized out or unavailable ones. Don't
1964 try to print a raw form of optimized out or unavailable values.
1965
1966 2013-10-29 Yao Qi <yao@codesourcery.com>
1967
1968 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
1969 parameter 'arg' instead of from program_space_data.
1970 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1971 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
1972 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
1973 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1974 * inflow.c (inflow_inferior_data_cleanup): Get data from
1975 parameter 'arg' instead of inferior_data.
1976 * registry.h: Add comments.
1977
1978 2013-10-28 Pedro Alves <palves@redhat.com>
1979
1980 * breakpoint.c (watchpoints_triggered)
1981 <!target_stopped_data_address>: Hardcode return 1.
1982
1983 2013-10-28 Pedro Alves <palves@redhat.com>
1984
1985 * infrun.c (process_event_stop_test): Remove unnecessary scoping
1986 level and reindent.
1987
1988 2013-10-28 Pedro Alves <palves@redhat.com>
1989
1990 * infrun.c (process_event_stop_test): New function, factored out
1991 from handle_inferior_event.
1992 (handle_inferior_event): 'process_event_stop_test' is now a
1993 function instead of a goto label -- adjust.
1994
1995 2013-10-28 Pedro Alves <palves@redhat.com>
1996
1997 * infrun.c (handle_inferior_event): Move process_event_stop_test
1998 goto label to the else branch of the ecs->random_signal check,
1999 along with FRAME and GDBARCH re-fetching.
2000
2001 2013-10-28 Pedro Alves <palves@redhat.com>
2002
2003 * infrun.c (switch_back_to_stepped_thread): New function, factored
2004 out from handle_inferior_event.
2005 (handle_inferior_event): Adjust to call
2006 switch_back_to_stepped_thread. Call it also at the tail of the
2007 random signal handling, and return, instead of also handling
2008 random signals just before the stepping tests.
2009
2010 2013-10-28 Pedro Alves <palves@redhat.com>
2011
2012 * infrun.c (clear_stop_func): Delete.
2013 (handle_inferior_event): Don't call clear_stop_func and don't
2014 clear 'ecs->random_signal'.
2015
2016 2013-10-27 Yao Qi <yao@codesourcery.com>
2017
2018 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
2019 (varobj_create, varobj_get_path_expr): Update.
2020 (varobj_value_has_mutated, varobj_update): Likewise.
2021 (create_child_with_value, new_root_variable): Likewise.
2022 (number_of_children, name_of_variable): Likewise.
2023 (value_of_child, my_value_of_variable): Likewise.
2024 (varobj_value_is_changeable_p): Likewise.
2025
2026 2013-10-25 Yao Qi <yao@codesourcery.com>
2027
2028 * language.h (struct lang_varobj_ops): Declare.
2029 (struct language_defn) <la_varobj_ops>: New field.
2030 * ada-lang.c: Include "varobj.h"
2031 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
2032 ada_varobj_ops.
2033 * c-lang.c: Include "varobj.h"
2034 (c_language_defn): Initialize field 'la_varobj_ops' with
2035 c_varobj_ops.
2036 (cplus_language_defn): Initialize field 'la_varobj_ops' with
2037 cplus_varobj_ops.
2038 (asm_language_defn): Initialize field 'la_varobj_ops' with
2039 default_varobj_ops.
2040 (minimal_language_defn): Likewise.
2041 * d-lang.c (d_language_defn): Likewise.
2042 * f-lang.c (f_language_defn): Likewise.
2043 * go-lang.c (go_language_defn): Likewise.
2044 * m2-lang.c (m2_language_defn): Likewise.
2045 * objc-lang.c (objc_language_defn): Likewise.
2046 * opencl-lang.c (opencl_language_defn): Likewise.
2047 * p-lang.c (pascal_language_defn): Likewise.
2048 * language.c (unknown_language_defn): Likewise.
2049 (auto_language_defn): Likewise.
2050 (local_language_defn): Likewise.
2051 * jv-lang.c (java_language_defn): Initialize field
2052 'la_varobj_ops' with java_varobj_ops.
2053 * varobj.c (varobj_create): Update.
2054 * varobj.h (default_varobj_ops): Define macro.
2055
2056 2013-10-25 Pedro Alves <palves@redhat.com>
2057
2058 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
2059 static field value.
2060 (cp_print_static_field): If the value is entirely optimized out,
2061 print <optimized out> here.
2062 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
2063 static field value.
2064 * p-valprint.c (pascal_object_print_static_field): If the value is
2065 entirely optimized out, print <optimized out> here.
2066 * valops.c (do_search_struct_field)
2067 (value_struct_elt_for_reference): No longer handle a NULL static
2068 field value.
2069 * value.c (value_static_field): Return an optimized out value
2070 instead of NULL.
2071
2072 2013-10-25 Yao Qi <yao@codesourcery.com>
2073
2074 * remote.c (remote_traceframe_info): Return early if
2075 traceframe is not selected.
2076
2077 2013-10-25 Yao Qi <yao@codesourcery.com>
2078
2079 * tracepoint.c (traceframe_fun): Remove.
2080 (traceframe_sal): Remove.
2081 (set_traceframe_context): Add local variables.
2082
2083 2013-10-25 Joel Brobecker <brobecker@adacore.com>
2084
2085 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
2086 and parameter name.
2087
2088 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2089
2090 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
2091 failure from register information collection.
2092
2093 2013-10-24 Maciej W. Rozycki <macro@codesourcery.com>
2094
2095 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
2096 member.
2097 (linux_corefile_thread_callback): Update accordingly.
2098 (linux_make_corefile_notes): Likewise.
2099
2100 2013-10-24 Pedro Alves <palves@redhat.com>
2101
2102 * NEWS (New options): Mention set/show startup-with-shell.
2103 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
2104 instead of 3.
2105 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
2106 startup-with-shell'.
2107 (show_startup_with_shell): New function.
2108 (_initialize_fork_child): Register the set/show startup-with-shell
2109 commands.
2110 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
2111 * inf-ttrace.c (inf_ttrace_him): Remove comment.
2112 * procfs.c (procfs_init_inferior): Remove comment.
2113 * infcmd.c (startup_with_shell): New global.
2114 * inferior.h (startup_with_shell): Declare global.
2115 (STARTUP_WITH_SHELL): Delete.
2116 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
2117
2118 2013-10-23 Pedro Alves <palves@redhat.com>
2119
2120 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
2121 * common/signals.c: Include "gdb_assert.h".
2122 (signals): New field 'symbol'.
2123 (SET): Use the 'symbol' parameter.
2124 (gdb_signal_to_symbol_string): New function.
2125 * infrun.c (handle_inferior_event) <random signal>: In debug
2126 output, print the random signal enum as string in addition to its
2127 number.
2128 * target/waitstatus.c (target_waitstatus_to_string): Print the
2129 signal's enum value as string instead of the (POSIX) signal name.
2130
2131 2013-10-23 Gary Benson <gbenson@redhat.com>
2132
2133 PR 16013
2134 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
2135 from 32 to 18. Adjusted fscanf format string accordingly.
2136 (Avoids leaving cmd unterminated.)
2137 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
2138 trun, retn or extra. (Avoids leaving extra unterminated.) Check
2139 that local_address and remote_address will not overflow.
2140 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
2141 leaving dependencies unterminated. Parse size as "%u" to match
2142 definition.
2143
2144 2013-10-22 Pedro Alves <palves@redhat.com>
2145
2146 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
2147 set ecs->random signal.
2148
2149 2013-10-22 Pedro Alves <palves@redhat.com>
2150
2151 * infrun.c (keep_going): Update comments.
2152
2153 2013-10-22 Pedro Alves <palves@redhat.com>
2154
2155 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
2156 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
2157
2158 2013-10-22 Pedro Alves <palves@redhat.com>
2159
2160 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
2161 GDB_EXC_BAD_ACCESS.
2162 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
2163 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
2164 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
2165 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
2166 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
2167 (GDB_SIGNAL_LAST): Change description string.
2168 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
2169 Adjust to signal renaming.
2170 * darwin-nat.c (darwin_decode_message): Likewise.
2171
2172 2013-10-22 Jose E. Marchesi <jose.marchesi@oracle.com>
2173
2174 * MAINTAINERS (Write After Approval): Add myself to the list.
2175
2176 2013-10-18 Andrew Burgess <aburgess@broadcom.com>
2177
2178 * breakpoint.c (update_watchpoint): If hardware watchpoints are
2179 forced off, downgrade them to software watchpoints if possible,
2180 and error out if not possible.
2181 (watch_command_1): Move watchpoint type selection closer to
2182 watchpoint creation, and extend the comments.
2183
2184 2013-10-18 Pedro Alves <palves@redhat.com>
2185
2186 PR gdb/16062
2187 * infrun.c (handle_inferior_event): Keep going if we got a random
2188 signal we should not stop for, instead of falling through to the
2189 step tests.
2190
2191 2013-10-18 Yao Qi <yao@codesourcery.com>
2192
2193 * c-varobj.c (cplus_number_of_children): Fix indentation.
2194
2195 2013-10-17 Tom Tromey <tromey@redhat.com>
2196
2197 PR gdb/15995:
2198 * printcmd.c (printcmd): Call gdb_flush.
2199
2200 2013-10-17 Tom Tromey <tromey@redhat.com>
2201
2202 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
2203 (elf_locate_sections): Update.
2204
2205 2013-10-17 Yao Qi <yao@codesourcery.com>
2206
2207 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2208 * ada-varobj.c: Remove the include of ada-varobj.h.
2209 (ada_varobj_get_number_of_children): Declare.
2210 (ada_varobj_get_name_of_child): Make it static.
2211 (ada_varobj_get_path_expr_of_child): Likewise.
2212 (ada_varobj_get_value_of_child): Likewise.
2213 (ada_varobj_get_type_of_child): Likewise.
2214 (ada_varobj_get_value_of_array_variable): Likewise.
2215 * ada-varobj.h: Remove.
2216
2217 2013-10-17 Yao Qi <yao@codesourcery.com>
2218
2219 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
2220 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
2221 * ada-varobj.c: Include "varobj.h".
2222 (ada_number_of_children): New. Moved from varobj.c.
2223 (ada_name_of_variable, ada_name_of_child): Likewise.
2224 (ada_path_expr_of_child, ada_value_of_child): Likewise.
2225 (ada_type_of_child, ada_value_of_variable): Likewise.
2226 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
2227 (ada_varobj_ops): New.
2228 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
2229 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
2230 * gdbtypes.h (get_target_type): Declare.
2231 * varobj.c: Remove the inclusion of "ada-varobj.h" and
2232 "ada-lang.h".
2233 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
2234 (ANONYMOUS_UNION_NAME): Likewise.
2235 (get_type, get_value_type, get_target_type): Remove declarations.
2236 (value_get_print_value, varobj_value_get_print_value): Likewise.
2237 (c_number_of_children, c_name_of_variable): Likewise.
2238 (c_name_of_child, c_path_expr_of_child): Likewise.
2239 (c_value_of_child, c_type_of_child): Likewise.
2240 (c_value_of_variable, cplus_number_of_children): Likewise.
2241 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2242 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2243 (cplus_value_of_child, cplus_type_of_child): Likewise.
2244 (cplus_value_of_variable, java_number_of_children): Likewise.
2245 (java_name_of_variable, java_name_of_child): Likewise.
2246 (java_path_expr_of_child, java_value_of_child): Likewise.
2247 (java_type_of_child, java_value_of_variable): Likewise.
2248 (ada_number_of_children, ada_name_of_variable): Likewise.
2249 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2250 (ada_value_of_child, ada_type_of_child): Likewise.
2251 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2252 (ada_value_has_mutated): Likewise.
2253 (struct language_specific): Move it to varobj.h.
2254 (CPLUS_FAKE_CHILD): Move it to varobj.h.
2255 (restrict_range): Rename it varobj_restrict_range. Make it extern.
2256 Callers update.
2257 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
2258 Make it extern.
2259 (is_anonymous_child): Move it to c-varobj.c and rename to
2260 varobj_is_anonymous_child. Caller update.
2261 (get_type): Move it to c-varobj.c.
2262 (get_value_type): Rename it varobj_get_value_type. Make it
2263 extern.
2264 (get_target_type): Move it gdbtypes.c.
2265 (varobj_formatted_print_options): New function.
2266 (value_get_print_value): Rename it to
2267 varobj_value_get_print_value and make it extern.
2268 (varobj_value_is_changeable_p): Make it extern.
2269 (adjust_value_for_child_access): Move it to c-varobj.c.
2270 (default_value_is_changeable_p): Rename it to
2271 varobj_default_value_is_changeable_p. Make it extern.
2272 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
2273 (c_name_of_child, c_path_expr_of_child): Likewise.
2274 (c_value_of_child, c_type_of_child): Likewise.
2275 (c_value_of_variable, cplus_number_of_children): Likewise.
2276 (cplus_class_num_children, cplus_name_of_variable): Likewise.
2277 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
2278 (cplus_value_of_child, cplus_type_of_child): Likewise.
2279 (cplus_value_of_variable): Likewise.
2280 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
2281 (java_name_of_child, java_path_expr_of_child): Likewise.
2282 (java_value_of_child, java_type_of_child): Likewise.
2283 (java_value_of_variable): Likewise.
2284 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
2285 (ada_name_of_child, ada_path_expr_of_child): Likewise.
2286 (ada_value_of_child, ada_type_of_child): Likewise.
2287 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
2288 (ada_value_has_mutated): Likewise.
2289 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
2290 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
2291 (c_varobj_ops, cplus_varobj_ops): Declare.
2292 (java_varobj_ops, ada_varobj_ops): Declare.
2293 (varobj_default_value_is_changeable_p): Declare.
2294 (varobj_value_is_changeable_p): Declare.
2295 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
2296 (varobj_get_path_expr_parent): Declare.
2297 (varobj_value_get_print_value): Declare.
2298 (varobj_formatted_print_options): Declare.
2299 (varobj_restrict_range): Declare.
2300
2301 2013-10-17 Luis Machado <lgustavo@codesourcery.com>
2302
2303 * target/waitstatus.h (target_waitkind): Remove spurious
2304 character from the comments.
2305
2306 2013-10-17 Joel Brobecker <brobecker@adacore.com>
2307
2308 * gdbarch.sh (get_longjmp_target): Add method documentation.
2309 * gdbarch.h: Regenerate.
2310
2311 2013-10-16 Tom Tromey <tromey@redhat.com>
2312
2313 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
2314 label.
2315
2316 2013-10-16 Luis Machado <lgustavo@codesourcery.com>
2317
2318 * gcore.in: Call GDB using the full path to the gcore script.
2319 Error out if the GDB binary is not found.
2320
2321 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2322
2323 PR gdb/16014
2324 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
2325 sizeof.
2326
2327 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
2328
2329 PR gdb/16042
2330 * target.c (target_disable_btrace): Fix invalid return value for
2331 void function.
2332 (target_teardown_btrace): Likewise.
2333
2334 2013-10-14 Yao Qi <yao@codesourcery.com>
2335
2336 * varobj.c (struct varobj): Move most of the fields to
2337 varobj.h.
2338 (struct varobj_dynamic): New struct.
2339 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
2340 (varobj_has_more): Likewise.
2341 (dynamic_varobj_has_child_method): Likewise.
2342 (update_dynamic_varobj_children): Likewise.
2343 (varobj_get_num_children): Likewise.
2344 (varobj_list_children, varobj_pretty_printed_p): Likewise.
2345 (install_new_value_visualizer): Likewise.
2346 (install_new_value_visualizer, install_new_value): Likewise.
2347 (varobj_update, new_variable, free_variable): Likewise.
2348 (my_value_of_variable, value_get_print_value): Likewise.
2349 (install_visualizer): Change the type of parameter 'var' to
2350 'struct varobjd_dynamic *'. Callers update.
2351 * varobj.h (struct varobj): Moved from varobj.c.
2352 (struct varobj) <dynamic>: New field.
2353
2354 2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
2355
2356 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
2357 as the preferred name of r30.
2358 * nios2-linux-tdep.c (reg_offsets): Likewise.
2359 * features/nios2-cpu.xml: Likewise.
2360 * features/nios2-linux.c: Regenerated.
2361 * features/nios2.c: Regenerated.
2362 * regformats/nios2-linux.dat: Regenerated.
2363
2364 2013-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 Canonicalize directories for EXEC_FILENAME.
2367 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
2368 exec_filename.
2369 * utils.c (gdb_realpath_keepfile): New function.
2370 * utils.h (gdb_realpath_keepfile): New declaration.
2371
2372 2013-10-11 Doug Evans <dje@google.com>
2373
2374 * Makefile.in (GDBFLAGS): New variable.
2375 (run): New rule.
2376
2377 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2378
2379 * NEWS: Add entry documenting the new "-catch-assert" and
2380 "-catch-exception" GDB/MI commands.
2381
2382 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2383
2384 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
2385 "enabled".
2386 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
2387 "enabled". Set B->ENABLE_STATE accordingly.
2388 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
2389 ada-lang.c.
2390 (create_ada_exception_catchpoint): Add declaration.
2391 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
2392 (create_ada_exception_catchpoint): Make non-static. Add new
2393 parameter "disabled". Use it in call to
2394 init_ada_exception_breakpoint.
2395 (catch_ada_exception_command): Add parameter "enabled" in call
2396 to create_ada_exception_catchpoint.
2397 (catch_assert_command): Likewise.
2398
2399 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
2400 Add declarations.
2401 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
2402 "catch-exception" commands.
2403 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
2404 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
2405
2406 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2407
2408 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
2409 "enum exception_catchpoint_kind". Replace the "ex_" prefix
2410 of all its enumerates with "ada_". Update the rest of this
2411 file throughout.
2412
2413 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2414
2415 * ada-lang.c (ada_decode_exception_location): Delete.
2416 (create_ada_exception_catchpoint): Remove arguments "sal",
2417 "addr_string" and "ops". Add argument "ex_kind" instead.
2418 Adjust implementation accordingly, calling ada_exception_sal
2419 to get the entities it no longer gets passed as arguments.
2420 Document the function's arguments.
2421 (catch_ada_exception_command): Use catch_ada_exception_command_split
2422 instead of ada_decode_exception_location, and update call to
2423 create_ada_exception_catchpoint.
2424 (catch_ada_assert_command_split): Renames
2425 ada_decode_assert_location. Remove parameters "addr_string" and
2426 "ops", and now returns void. Adjust implementation accordingly.
2427 Update the function documentation.
2428 (catch_assert_command): Use catch_ada_assert_command_split
2429 instead of ada_decode_assert_location. Update call to
2430 create_ada_exception_catchpoint.
2431
2432 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2433
2434 * utils.h (perror_warning_with_name): Add declaration.
2435 * utils.c (perror_warning_with_name): New function.
2436 * cli/cli-cmds.c (source_script_with_search): Add call to
2437 perror_warning_with_name if from_tty is nul.
2438
2439 2013-10-11 Joel Brobecker <brobecker@adacore.com>
2440
2441 * utils.c (perror_string): New function, extracted out of
2442 throw_perror_with_name.
2443 (throw_perror_with_name): Rework to use perror_string.
2444
2445 2013-10-11 Yao Qi <yao@codesourcery.com>
2446
2447 * remote.c (discard_pending_stop_replies_in_queue): Update
2448 declaration.
2449 (struct stop_reply) <rs>: New field.
2450 (remove_stop_reply_of_remote_state): New function.
2451 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
2452 Callers update. Pass remove_stop_reply_of_remote_state to
2453 QUEUE_iterate.
2454 (remote_parse_stop_reply): Initialize field 'rs'.
2455
2456 2013-10-10 Will Newton <will.newton@linaro.org>
2457
2458 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2459 linux_init_abi.
2460
2461 2013-10-10 Joel Brobecker <brobecker@adacore.com>
2462
2463 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
2464 serial_baud_show_cmd.
2465 (_initialize_cli_cmds): Delete the code creating the
2466 "set/show remotebaud" commands.
2467 * serial.c (baud_rate): Move here from top.c.
2468 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
2469 (_initialize_serial): Create "set/show serial baud" commands.
2470 Add "set/show remotebaud" command aliases.
2471 * top.c (baud_rate): Moved to serial.c.
2472 * NEWS: Document the new "set/show serial baud" commands,
2473 replacing "set/show remotebaud".
2474
2475 2013-10-09 Pedro Alves <palves@redhat.com>
2476
2477 * breakpoint.c (insert_bp_location): Use memory_error_message to
2478 build the memory error string.
2479 * c-lang.c: Include "gdbcore.h".
2480 (c_get_string): Use memory_error to throw error.
2481 (target_xfer_memory_error): Delete.
2482 (memory_error_message): New, factored out from
2483 target_xfer_memory_error.
2484 (memory_error): Change parameter type to target_xfer_error.
2485 Rewrite.
2486 (read_memory): Use memory_error instead of
2487 target_xfer_memory_error.
2488 * gdbcore.h: Include "target.h".
2489 (memory_error): Change parameter type to target_xfer_error.
2490 (memory_error_message): Declare function.
2491 * target.c (target_read_memory, target_read_stack)
2492 (target_write_memory, target_write_raw_memory): Return
2493 TARGET_XFER_E_IO on error. Adjust comments.
2494 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
2495 instead of EIO.
2496 * target.h (target_read, target_insert_breakpoint)
2497 (target_remove_breakpoint): Adjust comments.
2498 * valprint.c (partial_memory_read): Rename parameter, and adjust
2499 comment.
2500 (val_print_string): Use memory_error_message to build the memory
2501 error string.
2502
2503 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
2506 result variable. Rename variable fopen_e_ever_failed to
2507 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
2508
2509 2013-10-09 Pedro Alves <palves@redhat.com>
2510
2511 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
2512 (monitor_write_memory_longlongs, monitor_write_memory_block):
2513 Constify 'myaddr' parameter.
2514 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
2515 helper.
2516 (monitor_xfer_partial): New function.
2517 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
2518 hook. Install a to_xfer_partial hook.
2519
2520 2013-10-09 Tom Tromey <tromey@redhat.com>
2521
2522 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
2523 bfd_get_alt_debug_link_info.
2524
2525 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 New flag OBJF_NOT_FILENAME.
2528 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
2529 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
2530 allocate_objfile.
2531 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
2532 symbol_file_add_from_bfd.
2533 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
2534 allocate_objfile.
2535 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
2536 NULL.
2537 * objfiles.h (OBJF_NOT_FILENAME): New.
2538
2539 2013-10-08 Tom Tromey <tromey@redhat.com>
2540
2541 * Makefile.in (SFILES): Add build-id.c.
2542 (HFILES_NO_SRCDIR): Add build-id.h.
2543 * build-id.c: New file, largely from elfread.c. Modified
2544 most functions.
2545 * build-id.h: New file.
2546 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
2547 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
2548 Search for dwz file using build-id.
2549 * elfread.c (build_id_bfd_get, build_id_verify)
2550 (build_id_to_debug_filename, find_separate_debug_file): Remove.
2551
2552 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2553
2554 * ada-lang.c (compare_names_with_case): Renamed from
2555 compare_names, adding a new parameter "casing" and its handling.
2556 New function documentation.
2557 (compare_names): New function, implemented using
2558 compare_names_with_case.
2559
2560 2013-10-08 Joel Brobecker <brobecker@adacore.com>
2561
2562 * ada-lang.c (ada_exception_sal): Remove advance declaration.
2563
2564 2013-10-07 Tom Tromey <tromey@redhat.com>
2565
2566 * objfiles.c (free_objfile_per_bfd_storage): Delete the
2567 demangled_names_hash.
2568 (free_objfile): Don't delete the demangled_names_hash.
2569 * objfiles.h (struct objfile_per_bfd_storage)
2570 <demangled_names_hash>: New field.
2571 (struct objfile) <demangled_names_hash>: Move to
2572 objfile_per_bfd_storage.
2573 * symfile.c (reread_symbols): Don't delete the
2574 demangled_names_hash.
2575 * symtab.c (create_demangled_names_hash): Update.
2576 (symbol_set_names): Update.
2577
2578 2013-10-07 Tom Tromey <tromey@redhat.com>
2579
2580 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
2581 needs_relocations>: New fields.
2582 (gdb_bfd_requires_relocations): New function.
2583 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
2584 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
2585 the BFD needs relocations applied.
2586
2587 2013-10-07 Pedro Alves <palves@redhat.com>
2588
2589 PR breakpoints/11568
2590 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
2591 the thread list" instead of "gone".
2592
2593 2013-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2594
2595 * NEWS: Mention new convenience variable $_exitsignal.
2596 * corelow.c (core_open): Reset exit convenience variables. Set
2597 $_exitsignal to the uncaught signal which generated the corefile.
2598 * infrun.c (handle_inferior_event): Reset exit convenience
2599 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
2600 (clear_exit_convenience_vars): New function.
2601 * inferior.h (clear_exit_convenience_vars): New prototype.
2602
2603 2013-10-06 Yao Qi <yao@codesourcery.com>
2604
2605 * varobj.h: Add comments to enum varobj_languages.
2606
2607 2013-10-04 Doug Evans <dje@google.com>
2608
2609 Add support for DWP file format version 2.
2610 * NEWS: Mention support for DWP file format version 2.
2611 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
2612 union of asection, containing_section. New fields virtual_offset
2613 and is_virtual. Change type of readin filed from int to char.
2614 (dwo_sections, dwo_file): Tweak comments.
2615 (dwp_v2_section_ids): New enum.
2616 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
2617 str_offsets, types.
2618 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
2619 All uses updated.
2620 (virtual_v2_dwo_sections): New struct.
2621 (dwp_hash_table): New fields version, nr_columns. Change type of
2622 section_pool field to a union.
2623 (dwp_file): New field version.
2624 (dwarf2_has_info): Check for virtual sections.
2625 (get_containing_section): New function.
2626 (get_section_bfd_owner, get_section_bfd_section): Call it.
2627 (dwarf2_locate_sections): Update.
2628 (dwarf2_section_empty_p): Update.
2629 (dwarf2_read_section): Handle virtual sections.
2630 (locate_dwz_sections): Update.
2631 (create_dwp_hash_table): Document and handle V2 format.
2632 (locate_v1_virtual_dwo_sections): Renamed from
2633 locate_virtual_dwo_sections and update. All callers updated.
2634 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
2635 Delete arg htab. Rename arg section_index to unit_index.
2636 All callers updated.
2637 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
2638 All uses updated.
2639 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
2640 (lookup_dwo_unit_in_dwp): Add V2 support.
2641 (dwarf2_locate_dwo_sections): Update.
2642 (dwarf2_locate_common_dwp_sections): Renamed from
2643 dwarf2_locate_dwp_sections and update. All callers updated.
2644 (dwarf2_locate_v2_dwp_sections): New function.
2645 (open_and_init_dwp_file): Add V2 support.
2646 (read_str_index): New locals str_section, str_offsets_section.
2647
2648 2013-10-04 Pedro Alves <palves@redhat.com>
2649
2650 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
2651 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
2652 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
2653 describing comments with references to ptid.h.
2654 * common/ptid.h: Remove intro description of constructors,
2655 accessors and predicates.
2656 (struct ptid): Reformat.
2657 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
2658 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
2659 describing comments.
2660
2661 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2662
2663 * aix-thread.c (sync_threadlists): Add missing ')' in call
2664 to ptid_build.
2665
2666 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2667
2668 * procfs.c (procfs_init_inferior): Fix typo causing the build
2669 to fail.
2670
2671 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2672
2673 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
2674
2675 2013-10-04 Joel Brobecker <brobecker@adacore.com>
2676
2677 * mi/mi-main.c (run_one_inferior): Add function description.
2678 Make ARG a pointer to an integer whose value determines whether
2679 we should "run" or "start" the program.
2680 (mi_cmd_exec_run): Add handling of the "--start" option.
2681 Reject all other command-line options.
2682 * NEWS: Add entry for "-exec-run"'s new "--start" option.
2683
2684 2013-10-04 Yao Qi <yao@codesourcery.com>
2685
2686 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
2687 (struct notif_client) <pending_event>: Moved
2688 to struct remote_notif_state.
2689 <id>: New field.
2690 (struct remote_notif_state) <pending_event>: New field.
2691 (notif_event_xfree): Declare.
2692 * remote-notif.c (handle_notification): Adjust.
2693 (notif_event_xfree): New function.
2694 (do_notif_event_xfree): Call notif_event_xfree.
2695 (remote_notif_state_xfree): Call notif_event_xfree to free
2696 each element in field pending_event.
2697 * remote.c (discard_pending_stop_replies): Remove declaration.
2698 (discard_pending_stop_replies_in_queue): Declare.
2699 (remote_close): Call discard_pending_stop_replies_in_queue
2700 instead of discard_pending_stop_replies.
2701 (remote_start_remote): Adjust.
2702 (stop_reply_xfree): Call notif_event_xfree.
2703 (notif_client_stop): Adjust initialization.
2704 (remote_notif_remove_all): Rename it to ...
2705 (remove_stop_reply_for_inferior): ... this. Update comments.
2706 Don't check INF is NULL.
2707 (discard_pending_stop_replies): Return early if notif_state is
2708 NULL. Adjust. Don't check INF is NULL.
2709 (remote_notif_get_pending_events): Adjust.
2710 (discard_pending_stop_replies_in_queue): New function.
2711 (remote_wait_ns): Likewise.
2712
2713 2013-10-04 Yao Qi <yao@codesourcery.com>
2714
2715 * remote-notif.c (DECLARE_QUEUE_P): Remove.
2716 (notif_queue): Remove.
2717 (remote_notif_process): Add one parameter 'notif_queue'.
2718 Update comments. Callers update.
2719 (remote_async_get_pending_events_token): Remove.
2720 (remote_notif_register_async_event_handler): Remove.
2721 (remote_notif_unregister_async_event_handler): Remove.
2722 (handle_notification): Add parameter 'notif_queue'. Update
2723 comments. Callers update.
2724 (notif_xfree): Remove.
2725 (remote_notif_state_allocate): New function.
2726 (remote_notif_state_xfree): New function.
2727 (_initialize_notif): Remove code to allocate queue.
2728 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
2729 (struct remote_notif_state): New.
2730 (handle_notification): Update declaration.
2731 (remote_notif_process): Likewise.
2732 (remote_notif_register_async_event_handler): Remove.
2733 (remote_notif_unregister_async_event_handler): Remove.
2734 (remote_notif_state_allocate): Declare.
2735 (remote_notif_state_xfree): Declare.
2736 * remote.c (struct remote_state) <notif_state>: New field.
2737 (remote_close): Don't call
2738 remote_notif_unregister_async_event_handler. Call
2739 remote_notif_state_xfree.
2740 (remote_open_1): Don't call
2741 remote_notif_register_async_event_handler. Call
2742 remote_notif_state_allocate.
2743
2744 2013-10-04 Yao Qi <yao@codesourcery.com>
2745
2746 * varobj.c (create_child_with_value): Remove 'const' from the
2747 type of parameter 'name'.
2748 (varobj_add_child): Likewise.
2749 (install_dynamic_child): Remove 'const' from the type of
2750 parameter 'name'.
2751 (varobj_add_child): Likewise.
2752 (create_child_with_value): Likewise. Update comments. Don't
2753 duplicate 'name'.
2754 (update_dynamic_varobj_children): Duplicate 'name'
2755 and pass it to install_dynamic_child.
2756
2757 2013-10-03 Phil Muldoon <pmuldoon@redhat.com>
2758
2759 * python/py-value.c (convert_value_from_python): Move PyInt_Check
2760 conversion logic to occur after PyLong_Check. Comment on order
2761 change significance.
2762 * python/py-arch.c (archpy_disassemble): Comment on order of
2763 conversion for integers and longs.
2764
2765 2013-10-03 Pedro Alves <palves@redhat.com>
2766
2767 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
2768 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
2769 functions. Always test for PTRACE_O_TRACESYSGOOD even if
2770 PTRACE_O_TRACEFORK is not supported.
2771 (linux_test_for_tracesysgood): New function.
2772 (linux_test_for_tracefork): New function, factored out from
2773 linux_check_ptrace_features, and also don't kill child_pid here.
2774
2775 2013-10-03 Tristan Gingold <gingold@adacore.com>
2776
2777 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
2778 Remove verbose error reporting. Use detected state to
2779 thread_set_state call.
2780 (i386_darwin_dr_get): Fix return type. Remove verbose error
2781 report.
2782 Remove trailing spaces.
2783
2784 2013-10-02 Pedro Alves <palves@redhat.com>
2785
2786 * cp-valprint.c (cp_print_value_fields): Adjust calls to
2787 val_print_optimized_out.
2788 * jv-valprint.c (java_print_value_fields): Likewise.
2789 * p-valprint.c (pascal_object_print_value_fields): Likewise.
2790 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2791 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
2792 new optimized out value.
2793 * findvar.c (address_from_register): Likewise.
2794 * frame.c (put_frame_register): Tweak error string to say the
2795 register was not saved, rather than optimized out.
2796 * infcmd.c (default_print_one_register_info): Adjust call to
2797 val_print_optimized_out. Use value_of_register instead of
2798 get_frame_register_value.
2799 * mi/mi-main.c (output_register): Use value_of_register instead of
2800 get_frame_register_value.
2801 * valprint.c (valprint_check_validity): Likewise.
2802 (val_print_optimized_out): New value parameter. If the value is
2803 lval_register, print <not saved> instead.
2804 (value_check_printable, val_print_scalar_formatted): Adjust calls
2805 to val_print_optimized_out.
2806 * valprint.h (val_print_optimized_out): New value parameter.
2807 * value.c (struct value) <optimized_out>: Extend comment.
2808 (error_value_optimized_out): New function.
2809 (require_not_optimized_out): Use it. Use a different string for
2810 lval_register values.
2811 * value.h (error_value_optimized_out): New declaration.
2812 * NEWS: Mention <not saved>.
2813
2814 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2815
2816 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
2817 strcmp to compare two symtab filenames.
2818
2819 2013-10-02 Joel Brobecker <brobecker@adacore.com>
2820
2821 * symtab.c (search_symbols_equal): Delete.
2822 (sort_search_symbols_remove_dups): Replace call to
2823 search_symbols_equal by call to compare_search_syms,
2824 adjusting as necessary.
2825
2826 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2827
2828 PR python/15579
2829 * python/python.c: Document gdb.execute command in Python help.
2830
2831 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2832
2833 * python/py-frame.c (frame_info_to_frame_object): Use
2834 gdbpy_convert_exception. Clean up Python object on failure.
2835
2836 2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
2837
2838 * python/lib/gdb/command/frame_filters.py
2839 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
2840 (ShowFrameFilterPriority.invoke): Ditto.
2841
2842 2013-10-01 Keith Seitz <keiths@redhat.com>
2843
2844 * linespec.c (struct ls_parser): Make 'saved_arg' const.
2845 (parse_linespec): Make 'argptr' const.
2846 Remove temporary cast of 'argptr' to const char **.
2847 (decode_line_full): Pass const pointer to parse_linespec.
2848 (decode_line_1): Likewise.
2849 (decode_objc): Make local variable 'new_argptr' const.
2850 (find_function_symbols): Remove temporary cast to char *
2851 to find_imps.
2852 * objc-lang.c (find_imps): Make argument 'method' const.
2853 Return const.
2854 * objc-lang.h (find_imps): Likewise.
2855
2856 2013-10-01 Keith Seitz <keiths@redhat.com>
2857
2858 * completer.c (skip_quoted_chars): Make all arguments const.
2859 Return const.
2860 (skip_quoted): Likewise.
2861 * completer.h (skip_quoted_chars): Likewise.
2862 (skip_quoted): Likewise.
2863 * defs.h (skip_quoted): Remove duplicate declaration.
2864 * jv-exp.y: Include completer.h.
2865 (yylex): Remove unneccessary cast to char * fro skip_quoted.
2866 * p-exp.y: Include completer.h.
2867
2868 2013-10-01 Keith Seitz <keiths@redhat.com>
2869
2870 * c-exp.y (parse_number): Make first argument const.
2871 Make a copy of the input to manipulate.
2872 (c_parse_escape): Make first argument const.
2873 Make local variable 'tokptr' const.
2874 (parse_string_or_char): Make first two arguments const.
2875 (macro_original_text): Make const.
2876 (lex_one_token): Make local variable 'tokstart' const.
2877 Likewise for local variables named 'p'.
2878 Cast away const for struct stoken (temporary).
2879 * c-lang.h (c_parse_escpae): Make first argument const.
2880 * cli/cli-cmds.c (echo_command): Make local variable 'p'
2881 const.
2882 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
2883 var_string case.
2884 * f-exp.y (parse_number): Make first argument const.
2885 (match_string_literal): Make local variable 'tokstart'
2886 const.
2887 (yylex): Make local variable 'p' const.
2888 Cast away const for struct stoken (temporary).
2889 * go-exp.y (parse_number): Make first argument const.
2890 (parse_string_or_char): Likewise.
2891 Make local variable 'tokstart' const.
2892 (lex_one_token): Likewise for numerous locals called 'p'.
2893 Cast away const for struct stoken (temporary).
2894 * jv-exp.y (parse_number): Make first argument const.
2895 Make local variables 'tokstart' and 'tokptr' const.
2896 Cast away const for call to skip_quoted (temporary).
2897 (yylex): Make local variable 'p' const.
2898 Cast away const for struct stoken (temporary).
2899 * m2-exp.y (parse_number): Make local variable 'p' const.
2900 (yylex): Likewise for 'tokstart'.
2901 Cast away const for struct stoken (temporary).
2902 Make local variable 'p' const.
2903 * macroexp.c (get_character_constant): Pass a const string
2904 to c_parse_escape.
2905 (get_string_literal): Likewise.
2906 (macro_expand_next): Make first argument const.
2907 Cast away const for init_shared_buffer.
2908 * macroexp.h (macro_expand_next): Make first argument const.
2909 * p-exp.y (yylex): Make a local copy of 'lexptr'.
2910 Pass a const string to c_parse_escape.
2911 Make local variables 'p' and 'namestart' const.
2912 * parse.c (lexptr): Make const.
2913 (prev_lexptr): Likewise.
2914 (find_template_name_end): Return const.
2915 Make argument const, too.
2916 (parse_exp_in_context): Make first argument const.
2917 Remove the entire const_hack.
2918 (parse_exp_in_context_1): Make first argument const.
2919 * parser-defs.h (find_template_name_end): Return const.
2920 Make argument const, too.
2921 (lexptr): Make const.
2922 (prev_lexptr): Likewise.
2923 * utils.c (parse_escape): Make second argument const.
2924 * utils.h (parse_escape): Likewise.
2925
2926 2013-10-01 Keith Seitz <keiths@redhat.com>
2927
2928 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
2929 is now const.
2930 (block_lookup): Make 'raw_name' and 'name' const.
2931 * ada-lex.l (processString): Update for struct stoken.ptr.
2932 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
2933 (operator_stoken): Likewise.
2934 (lex_one_token): Remove temporary cast to char * for
2935 'yylval.sval.ptr'.
2936 * f-exp.y (yylex): Likewise.
2937 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
2938 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
2939 * go-exp.y (lex_one_token): Remove temporary cast to char * for
2940 'yylval.sval.ptr'.
2941 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
2942 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
2943 * linespec.c (struct ls_parser): Make 'stream' const.
2944 (find_parameter_list_end): Make argument 'input' and local
2945 variable 'p' const.
2946 (linespec_lexer_lex_string): Make local variables 'start' and
2947 'p' const.
2948 Use skip_spaces_const instead of skip_spaces.
2949 (linespec_lexer_peek_token): Make local variable 'saved_stream'
2950 const.
2951 (parse_linespec): Temporarily cast 'argptr' to const for
2952 'parser->lexer.stream'.
2953 * m2-exp.y (yylex): Remove temporary cast to char * for
2954 'yylval.sval.ptr'.
2955 * objc-lang.c (add_msglist): Make local variable 'p' const.
2956 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
2957 (exp : STRING): Make 'sp' const.
2958 (parse_number): Make argument 'p' const.
2959 * parser-defs.h (struct stoken): Make 'ptr' const.
2960
2961 2013-10-01 Doug Evans <dje@google.com>
2962
2963 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
2964
2965 2013-10-01 Yao Qi <yao@codesourcery.com>
2966
2967 * varobj.c (c_value_of_root): Remove declaration.
2968 (cplus_value_of_root, java_value_of_root): Likewise.
2969 (ada_value_of_root): Likewise.
2970 (struct language_specific) <value_of_root>: Remove.
2971 (languages): Update initialization.
2972 (check_scope): Move earlier.
2973 (c_value_of_root): Move earlier and rename to ...
2974 (value_of_root_1): ... this.
2975 (value_of_root): Caller update.
2976 (cplus_value_of_root, java_value_of_root): Remove.
2977 (ada_value_of_root): Remove.
2978
2979 2013-10-01 Yao Qi <yao@codesourcery.com>
2980
2981 * varobj.c (varobj_format_string): Remove "unknown".
2982 (languages): Remove the first element.
2983 * varobj.h (enum varobj_languages): Remove vlang_c.
2984
2985 2013-10-01 Yao Qi <yao@codesourcery.com>
2986
2987 * varobj.c (struct language_specific) <language>: Remove.
2988 (languages): Update the initialization.
2989
2990 2013-10-01 Yao Qi <yao@codesourcery.com>
2991
2992 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
2993 "solib-target.h". Include "windows-tdep.h".
2994 (arm_wince_init_abi): Call windows_init_abi. Remove call to
2995 set_solib_ops and set_gdbarch_has_dos_based_file_system.
2996 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
2997 windows-tdep.o to gdb_target_obs.
2998
2999 2013-10-01 Yao Qi <yao@codesourcery.com>
3000
3001 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
3002 "solib-target.h".
3003 (amd64_windows_init_abi): Don't call set_solib_ops and
3004 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3005 windows_init_abi instead.
3006 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
3007 "solib-target.h".
3008 (i386_cygwin_init_abi): Don't call set_solib_ops,
3009 set_gdbarch_has_dos_based_file_system and
3010 set_gdbarch_iterate_over_objfiles_in_search_order. Call
3011 windows_init_abi instead.
3012 * windows-tdep.c: Include "solib.h" and "solib-target.h".
3013 (windows_init_abi): New function.
3014 (windows_iterate_over_objfiles_in_search_order): Make it
3015 static.
3016 * windows-tdep.h (windows_init_abi): Declare.
3017 (windows_iterate_over_objfiles_in_search_order): Remove
3018 declaration.
3019
3020 2013-10-01 Jerome Guitton <guitton@adacore.com>
3021
3022 Checked in by Joel Brobecker <brobecker@adacore.com>
3023 * system-gdbinit/elinos.py (get_elinos_environment): Return an
3024 incomplete dictionnary instead of None in case of missing
3025 environment variables.
3026 (elinos_init): in case of an incomplete environment, best
3027 effort to load system libraries instead of abort.
3028
3029 2013-10-01 Joel Brobecker <brobecker@adacore.com>
3030
3031 * ada-lang.c (ada_has_this_exception_support): Ignore
3032 mst_solib_trampoline minimal symbols.
3033
3034 2013-09-30 Tristan Gingold <gingold@adacore.com>
3035
3036 * i386-darwin-nat.c (darwin_complete_target): Install methods for
3037 hardware watchpoint.
3038 (i386_darwin_dr_set): Support 32 and 64 bit states.
3039 (i386_darwin_dr_get): Likewise.
3040 (i386_darwin_dr_set_control): Make static.
3041 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
3042 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
3043
3044 2013-09-30 Luis Machado <lgustavo@codesourcery.com>
3045
3046 * aarch64-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 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
3050 Replace BUILD_THREAD with ptid_build.
3051 Replace BUILD_LWP with ptid_build.
3052 Replace PIDGET with ptid_get_pid.
3053 Replace TIDGET with ptid_get_lwp.
3054 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
3055 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3056 Replace TIDGET with ptid_get_lwp.
3057 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
3058 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
3059 Replace TIDGET with ptid_get_lwp.
3060 Replace GET_LWP with ptid_get_lwp.
3061 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
3062 * auxv.c: Likewise.
3063 * breakpoint.c: Likewise.
3064 * common/ptid.c (ptid_is_pid): Condense check for
3065 null_ptid and minus_one_ptid.
3066 (ptid_lwp_p): New function.
3067 (ptid_tid_p): New function.
3068 * common/ptid.h: Update comments for accessors.
3069 (ptid_lwp_p): New prototype.
3070 (ptid_tid_p): New prototype.
3071 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
3072 * gcore.c: Replace PIDGET with ptid_get_pid.
3073 * gdbthread.h: Likewise.
3074 * gnu-nat.c: Likewise.
3075 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
3076 Replace TIDGET with ptid_get_lwp.
3077 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
3078 * hppanbsd-nat.c: Likewise.
3079 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
3080 Replace TIDGET with ptid_get_lwp.
3081 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
3082 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
3083 * infcmd.c: Likewise.
3084 * inferior.h: Likewise.
3085 * inflow.c: Likewise.
3086 * infrun.c: Likewise.
3087 * linux-fork.c: Likewise.
3088 * linux-nat.c: Replace PIDGET with ptid_get_pid.
3089 Replace GET_PID with ptid_get_pid.
3090 Replace is_lwp with ptid_lwp_p.
3091 Replace GET_LWP with ptid_get_lwp.
3092 Replace BUILD_LWP with ptid_build.
3093
3094 2013-09-28 Mike Frysinger <vapier@gentoo.org>
3095
3096 * common/linux-btrace.c: Move sys/syscall.h out of the
3097 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
3098 Also check for SYS_perf_event_open before attempting to buid.
3099
3100 2013-09-27 Doug Evans <dje@google.com>
3101
3102 * dwarf2read.c (dwarf2_section_info): Add comment.
3103 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
3104 All uses updated.
3105 (dwarf2_section_empty_p): Rename arg from "info" to "section".
3106 (dwarf2_read_section): Delete unused local "header". Add section
3107 name to error message.
3108 (create_dwo_in_dwp): Tweak comment.
3109 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
3110
3111 * dwarf2read.c (die_reader_specs): Tweak comment.
3112 (get_section_bfd_owner, get_section_bfd_section): New functions.
3113 (get_section_name, get_section_file_name): New functions.
3114 (get_section_id, get_section_flags): New functions.
3115 (*): Use new functions to access section fields.
3116
3117 * dwarf2read.c (struct dwo_file): Add/tweak comments.
3118 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
3119 arg "htab". All callers updated.
3120 (create_debug_types_hash_table): Remove redundant copy of
3121 abbrev_section.
3122 (create_dwo_in_dwp): Tweak comments.
3123 (read_str_index): Tweak comment. Record dwarf form name in static
3124 local.
3125
3126 2013-09-27 Pedro Alves <palves@redhat.com>
3127
3128 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
3129 (remote_filename_p): Add comment.
3130 * remote.c (remote_filename_p): Adjust to use
3131 REMOTE_SYSROOT_PREFIX.
3132 * solib.c (solib_find): When deciding whether we need to add a
3133 directory separator, check whether the sysroot is "remote:"
3134 instead of checking whether the patch has a drive spec. Add
3135 comments.
3136
3137 2013-09-27 Pedro Alves <palves@redhat.com>
3138
3139 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
3140 Delete fields.
3141 (remote_parse_stop_reply): Adjust, setting event->ws.kind
3142 directly.
3143
3144 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 Fix set debug frame output.
3147 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
3148 SENTINEL_FRAME entry lower to match enum frame_type order.
3149
3150 2013-09-26 Pierre Muller <muller@sourceware.org>
3151
3152 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
3153 AMD64_R15_REGNUM when a register index is expected.
3154 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
3155 Substitute in array.
3156 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
3157 (amd64_push_arguments): Substitute in integer_regnum array.
3158
3159 2013-09-25 Doug Evans <dje@google.com>
3160
3161 * objfiles.c (allocate_objfile): Move comment to better place.
3162
3163 New option "set debug symfile on".
3164 * NEWS: Mention "set debug symfile".
3165 * Makefile.in (SFILES): Add symfile-debug.c.
3166 (COMMON_OBS): Add symfile-debug.o.
3167 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
3168 objfile's symbol functions.
3169 * objfiles.h (objfile_set_sym_fns): Declare.
3170 * symfile-debug.c: New file.
3171 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
3172 objfile's symbol functions.
3173 (reread_symbols): Ditto.
3174
3175 * symfile.h (struct sym_fns): Delete member "sym_flavour".
3176 All uses updated.
3177 (add_symtab_fns): Update prototype.
3178 * symfile.c (sym_fns_ptr): Delete. Replace with ...
3179 (registered_sym_fns): ... this.
3180 (symtab_fns): Update.
3181 (add_symtab_fns): New arg "flavour". All callers updated.
3182 (find_sym_fns): Rewrite to use new sym_fns registry.
3183
3184 * symfile.h (struct sym_fns): Add "objfile" argument to
3185 sym_read_linetable. All uses updated.
3186
3187 * symtab.c (domain_name, search_domain_name): New functions.
3188 * symtab.h (domain_name, search_domain_name): Declare.
3189
3190 * symfile.h (struct quick_symbol_functions): Reorg arg list of
3191 map_matching_symbols so objfile is first. All uses updated.
3192 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
3193 * psymtab.c (map_matching_symbols_psymtab): Update signature.
3194
3195 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3196
3197 PR shlibs/8882
3198 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
3199 link map entries.
3200
3201 2013-09-24 Doug Evans <dje@google.com>
3202
3203 * objfiles.c (free_objfile): Move comment.
3204
3205 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3206
3207 * ada-exp.y (string_to_operator): Delete.
3208 (dummy_string_to_ada_operator): Delete.
3209
3210 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3211
3212 Revert:
3213 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3214 amd64-tdep.c.
3215 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3216 call_dummy_integer_regs, and classify.
3217 * amd64-tdep.h (amd64_classify): Add declaration.
3218 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3219 (amd64_reg_class): Delete, moved to i386-tdep.h.
3220 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3221 Replace call to amd64_classify by call to tdep->classify.
3222 (amd64_push_arguments): Get the list of registers to use for
3223 passing integer parameters from the gdbarch tdep structure,
3224 rather than using a hardcoded one. Replace calls to amd64_classify
3225 by calls to tdep->classify.
3226 (amd64_push_dummy_call): Get the register number used for
3227 the "hidden" argument from tdep->call_dummy_integer_regs.
3228 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3229 and tdep->call_dummy_integer_regs. Set tdep->classify.
3230
3231 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3232
3233 Revert:
3234 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3235 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3236 where tdep->memory_args_by_pointer is non-zero.
3237
3238 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3239
3240 Revert:
3241 * i386-tdep.h (struct gdbarch_tdep): Add new field
3242 integer_param_regs_saved_in_caller_frame.
3243 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3244 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3245
3246 2013-09-24 Joel Brobecker <brobecker@adacore.com>
3247
3248 * amd64-windows-tdep.c: #include "value.h"
3249 (amd64_windows_classify): Delete.
3250 (amd64_windows_passed_by_integer_register)
3251 (amd64_windows_passed_by_xmm_register)
3252 (amd64_windows_passed_by_pointer)
3253 (amd64_windows_adjust_args_passed_by_pointer)
3254 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
3255 (amd64_windows_push_dummy_call): New functions.
3256 (amd64_windows_init_abi): Remove setting of
3257 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
3258 tdep->classify, tdep->memory_args_by_pointer and
3259 tdep->integer_param_regs_saved_in_caller_frame.
3260 Add call to set_gdbarch_push_dummy_call.
3261
3262 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
3265 objfile->original_name.
3266
3267 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 Pass down original filename for objfile.
3270 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
3271 * elfread.c (elf_symfile_read): Likewise.
3272 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
3273 longer set ORIGINAL_NAME.
3274 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
3275 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
3276 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
3277 symbol_file_add_from_bfd call.
3278 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
3279 (macho_check_dsym): Add parameter filenamep. Change function comment.
3280 Set *filenamep.
3281 (macho_symfile_read): New variable dsym_filename. Update
3282 macho_check_dsym call. Use it for symbol_file_add_separate.
3283 * objfiles.c (allocate_objfile): Add parameter name. New comment for
3284 it. Use it for objfile->original_name.
3285 (objfile_name): Return OBFD's filename, if available.
3286 * objfiles.h (allocate_objfile): Add new parameter name.
3287 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
3288 * symfile-mem.c (symbol_file_add_from_memory): Update
3289 symbol_file_add_from_bfd call.
3290 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
3291 comment for it.
3292 (symbol_file_add_with_addrs): New parameter name, add function comment
3293 for it. Remove variable name. Update allocate_objfile call.
3294 (symbol_file_add_separate): New parameter name, add function comment
3295 for it. Update symbol_file_add_with_addrs call.
3296 (symbol_file_add_from_bfd): New parameter name. Update
3297 symbol_file_add_with_addrs call.
3298 (symbol_file_add): Update symbol_file_add_from_bfd call.
3299 (reread_symbols): New variable original_name. Save
3300 objfile->original_name by it.
3301 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
3302 second parameter.
3303
3304 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3305
3306 Code cleanup: Add objfile_name accessor function.
3307 * ada-lang.c (is_known_support_routine): Use objfile_name.
3308 * auto-load.c (source_gdb_script_for_objfile)
3309 (auto_load_objfile_script): Likewise.
3310 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
3311 * dbxread.c (dbx_symfile_read): Likewise.
3312 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3313 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
3314 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
3315 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
3316 (lookup_dwp_signatured_type, lookup_dwo_unit)
3317 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
3318 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
3319 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
3320 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
3321 (dwarf2_record_block_ranges, read_common_block, read_typedef)
3322 (read_subrange_type, load_partial_dies, read_partial_die)
3323 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
3324 (die_containing_type, build_error_marker_type, lookup_die_type)
3325 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
3326 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
3327 (get_DW_AT_signature_type, write_psymtabs_to_index)
3328 (save_gdb_index_command): Likewise.
3329 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
3330 Likewise.
3331 * expprint.c (dump_subexp_body_standard): Likewise.
3332 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
3333 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
3334 original_name.
3335 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
3336 obj_name, use objfile_name for it, use the variable.
3337 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
3338 Use objfile_name.
3339 * machoread.c (macho_symtab_read, macho_check_dsym)
3340 (macho_symfile_relocate): Likewise.
3341 * maint.c (maintenance_translate_address): Likewise.
3342 * minidebug.c (find_separate_debug_file_in_section): Likewise.
3343 * minsyms.c (install_minimal_symbols): Likewise.
3344 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
3345 original_name.
3346 (filter_overlapping_sections): Use objfile_name.
3347 (objfile_name): New function.
3348 * objfiles.h (struct objfile): Rename field name to original_name.
3349 (objfile_name): New prototype.
3350 * printcmd.c (sym_info, address_info): Use objfile_name.
3351 * probe.c (parse_probes, collect_probes, compare_probes)
3352 (info_probes_for_ops): Likewise.
3353 * progspace.c (clone_program_space): Likewise.
3354 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
3355 (maintenance_info_psymtabs): Likewise.
3356 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3357 (source_section_scripts): Likewise.
3358 * python/py-objfile.c (objfpy_get_filename): Likewise.
3359 * python/py-progspace.c (pspy_get_filename): Likewise.
3360 * solib-aix.c (solib_aix_get_toc_value): Likewise.
3361 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
3362 * solib.c (solib_read_symbols): Likewise.
3363 * stabsread.c (scan_file_globals): Likewise.
3364 * stap-probe.c (handle_stap_probe): Likewise.
3365 * symfile.c (symbol_file_clear, separate_debug_file_exists)
3366 (find_separate_debug_file_by_debuglink): Likewise.
3367 (reread_symbols): Likewise. Use the objfile field name renamed to
3368 original_name.
3369 (allocate_symtab): Use objfile_name.
3370 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
3371 (dump_objfile, dump_msymbols, dump_symtab_1)
3372 (maintenance_print_msymbols, maintenance_print_objfiles)
3373 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
3374 * target.c (target_translate_tls_address, target_info): Likewise.
3375 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
3376 objfile_name.
3377
3378 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3379
3380 Code cleanup.
3381 * probe.c (parse_probes): Rename variable objfile_name to
3382 objfile_namestr.
3383
3384 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3385
3386 Remove solib-sunos.c.
3387 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
3388 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
3389 * objfiles.c (rt_common_objfile): Remove.
3390 (free_objfile): Remove rt_common_objfile comparison.
3391 * objfiles.h (rt_common_objfile): Remove.
3392 * solib-sunos.c: Remove.
3393 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
3394
3395 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3396
3397 Remove a.out NetBSD and OpenBSD hosts.
3398 * NEWS (Removed native configurations): New.
3399 * config/arm/nbsdaout.mh: Remove.
3400 * config/i386/nbsdaout.mh: Remove.
3401 * config/i386/obsdaout.mh: Remove.
3402 * config/m68k/nbsdaout.mh: Remove.
3403 * config/sparc/nbsdaout.mh: Remove.
3404 * config/vax/nbsdaout.mh: Remove.
3405 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
3406 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
3407 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
3408 error.
3409 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
3410 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
3411 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
3412
3413 2013-09-23 Tom Tromey <tromey@redhat.com>
3414
3415 * linespec.c (struct minsym_and_objfile): Remove.
3416 (minsym_and_objfile_d): Remove.
3417 (struct linespec, struct collect_info, linespec_parse_basic)
3418 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
3419 (compare_msymbols, find_method, find_function_symbols)
3420 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
3421 (add_minsym, search_minsyms_for_name): Update.
3422
3423 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3424
3425 * regcache.c: Add include of valprint.h.
3426 (dump_endian_bytes): Delete.
3427 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
3428
3429 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
3430
3431 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
3432
3433 2013-09-19 Pedro Alves <palves@redhat.com>
3434
3435 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
3436 breakpoints.
3437
3438 2013-09-19 Pedro Alves <palves@redhat.com>
3439 Thomas Schwinge <thomas@codesourcery.com>
3440 Yue Lu <hacklu.newborn@gmail.com>
3441
3442 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
3443 Take a gdb_byte pointer instead of a char pointer.
3444
3445 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
3446 gnu_xfer_partial helper.
3447 (gnu_xfer_partial): New function.
3448 (gnu_target): Don't install a deprecated_xfer_memory hook.
3449 Install a to_xfer_partial hook.
3450
3451 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3452
3453 Constification.
3454 * main.c (captured_main): Replace catch_command_errors by
3455 catch_command_errors_const. Twice.
3456 * symfile.c (symbol_file_add_main_1): Make args parameter const.
3457 (symbol_file_add): Make name parameter const.
3458 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
3459 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
3460 variable name. Change their usage accordingly.
3461 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
3462 const.
3463 (symbol_file_add_main): Make args parameter const.
3464
3465 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
3466 Ulrich Weigand <uweigand@de.ibm.com>
3467
3468 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
3469 of c_value member.
3470 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
3471
3472 2013-09-18 Pedro Alves <palves@redhat.com>
3473 Yue Lu <hacklu.newborn@gmail.com>
3474
3475 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
3476 (gnu_create_inferior)
3477 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
3478 (set_sig_thread_cmd): Use the lwpid field of ptids to
3479 store/extract thread ids instead of the tid field.
3480 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
3481
3482 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3483
3484 * infcmd.c (default_print_one_register_info): Add detection of
3485 optimized out values.
3486 (default_print_registers_info): Switch to using
3487 get_frame_register_value.
3488
3489 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
3490
3491 * infrun.c (handle_inferior_event): Check if we know the
3492 function start address before setting a resume breakpoint.
3493
3494 2013-09-18 Pedro Alves <palves@redhat.com>
3495
3496 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
3497 minus_one_ptid instead of looking at the ptid's tid field and
3498 comparing that to -1.
3499
3500 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3501
3502 * main.h (get_gdb_program_name): Remove extra whitespace.
3503
3504 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
3505
3506 * main.h (get_gdb_program_name): Add declaration.
3507 * main.c (get_gdb_program_name): Add definition.
3508
3509 2013-09-17 Doug Evans <dje@google.com>
3510
3511 * dwarf2read.c: Move definitions of complaint functions to after
3512 forward declarations of local functions.
3513
3514 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
3515 Pedro Alves <palves@redhat.com>
3516
3517 PR gdb/11568
3518 * breakpoint.c (remove_threaded_breakpoints): New function.
3519 (_initialize_breakpoint): Attach remove_threaded_breakpoints
3520 as thread_exit observer.
3521
3522 2013-09-17 Pedro Alves <palves@redhat.com>
3523
3524 PR gdb/15911
3525 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
3526 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3527 * corelow.c (core_open):
3528 * frame.h (print_stack_frame, print_frame_info): New
3529 'set_current_sal' parameter.
3530 * infcmd.c (finish_command, kill_command): Adjust call to
3531 print_stack_frame.
3532 * inferior.c (inferior_command): Likewise.
3533 * infrun.c (normal_stop): Likewise.
3534 * linux-fork.c (linux_fork_context): Likewise.
3535 * record-full.c (record_full_goto_entry, record_full_restore):
3536 Likewise.
3537 * remote-mips.c (common_open): Likewise.
3538 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
3539 Use it.
3540 (print_frame_info): New 'set_current_sal' parameter. Set the last
3541 displayed sal depending on the new paremeter instead of looking at
3542 print_what.
3543 (backtrace_command_1, select_and_print_frame, frame_command)
3544 (current_frame_command, up_command, down_command): Adjust call to
3545 print_stack_frame.
3546 * thread.c (print_thread_info, restore_selected_frame)
3547 (do_captured_thread_select): Adjust call to print_stack_frame.
3548 * tracepoint.c (tfind_1): Likewise.
3549 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3550 (mi_cmd_stack_info_frame): Likewise.
3551 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
3552 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
3553
3554 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3555
3556 * value.c (isvoid_internal_fn): Replace "parameter" with
3557 "argument".
3558
3559 2013-09-16 Stan Shebs <stan@codesourcery.com>
3560
3561 * README: Update references to writing code for GDB.
3562 * configure.ac (build_warnings): Remove obsolete comment.
3563 * configure: Regenerate.
3564 * gdbarch.sh: Remove references to gdbint.texinfo.
3565 * gdbarch.h: Regenerate.
3566 * gdbtypes.c (objfile_type): Remove comments referencing internals
3567 manual and D10V.
3568
3569 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3570
3571 * NEWS: Mention new convenience function $_isvoid.
3572 * value.c (isvoid_internal_fn): New function.
3573 (_initialize_values): Add new convenience function $_isvoid.
3574
3575 2013-09-16 Pierre Muller <muller@sourceware.org>
3576
3577 * arm-linux-tdep.c: Add "elf/common.h" header.
3578 Remove AT_HWCAP macro definintion as it is provided in
3579 added include file.
3580 * s390-tdep.c: Remove system header <elf.h>
3581 Add "elf/common.h" header for AT_HWCAP definition.
3582 (s390_core_read_description): Use correct CORE_ADDR
3583 for hwcap local variable used as third parameter
3584 of function target_auxv_search.
3585
3586 2013-09-14 Pierre Muller <muller@sourceware.org>
3587 Tom Tromey <tromey@redhat.com>
3588 Pedro Alves <palves@redhat.com>
3589
3590 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
3591 mode if operating system doesn't know O_CLOEXEC.
3592
3593 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3594
3595 Code cleanup.
3596 * symfile.c (reread_symbols): Move variable obfd_filename to a more
3597 inner block.
3598
3599 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3600
3601 * NEWS: Mention TDB support.
3602 * features/s390-tdb.xml: New file.
3603 * features/s390-te-linux64.xml: New file.
3604 * features/s390x-te-linux64.xml: New file.
3605 * features/Makefile (WHICH): Add new tdescs above.
3606 (s390-te-linux64-expedite): Set.
3607 (s390x-te-linux64-expedite): Set.
3608 * features/s390-te-linux64.c: New file (generated).
3609 * features/s390x-te-linux64.c: New file (generated).
3610 * regformats/s390-te-linux64.dat: New file (generated).
3611 * regformats/s390x-te-linux64.dat: New file (generated).
3612 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
3613 (HWCAP_S390_TE): Likewise.
3614 (S390_TDB_DWORD0_REGNUM): Likewise.
3615 (S390_TDB_DWORD0_REGNUM): Likewise.
3616 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
3617 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
3618 (S390_TDB_ATIA_REGNUM): Likewise.
3619 (S390_TDB_R0_REGNUM): Likewise.
3620 (S390_TDB_R1_REGNUM): Likewise.
3621 (S390_TDB_R2_REGNUM): Likewise.
3622 (S390_TDB_R3_REGNUM): Likewise.
3623 (S390_TDB_R4_REGNUM): Likewise.
3624 (S390_TDB_R5_REGNUM): Likewise.
3625 (S390_TDB_R6_REGNUM): Likewise.
3626 (S390_TDB_R7_REGNUM): Likewise.
3627 (S390_TDB_R8_REGNUM): Likewise.
3628 (S390_TDB_R9_REGNUM): Likewise.
3629 (S390_TDB_R10_REGNUM): Likewise.
3630 (S390_TDB_R11_REGNUM): Likewise.
3631 (S390_TDB_R12_REGNUM): Likewise.
3632 (S390_TDB_R13_REGNUM): Likewise.
3633 (S390_TDB_R14_REGNUM): Likewise.
3634 (S390_TDB_R15_REGNUM): Likewise.
3635 (S390_NUM_REGS): Increase.
3636 (S390_IS_TDBREGSET_REGNUM): New macro.
3637 (s390_regmap_tdb): Declare.
3638 (s390_sizeof_tdbregset): Define.
3639 (tdesc_s390_te_linux64): Declare.
3640 (tdesc_s390x_te_linux64): Likewise.
3641 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
3642 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
3643 (s390_regmap_tdb): New regmap.
3644 (s390_supply_tdb_regset): New function.
3645 (s390_tdb_regset): New regset.
3646 (s390_linux64v2_regset_sections): Add TDB regset to list.
3647 (s390x_linux64v2_regset_sections): Likewise.
3648 (s390_regset_from_core_section): Recognize TDB core note section.
3649 (s390_core_read_description): If HWCAP indicates TE support,
3650 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
3651 (s390_gdbarch_init): Handle TDB regset.
3652 (_initialize_s390_tdep): Initialize new tdescs.
3653 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
3654 (have_regset_tdb): New variable.
3655 (s390_native_supply): Support register invalidation.
3656 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
3657 (check_regset): Treat ENODATA as "regset exists".
3658 (s390_linux_fetch_inferior_registers): Add TDB.
3659 (s390_read_description): Check for TDB existence and select
3660 appropriate tdesc.
3661 * gdbserver/Makefile.in (clean): Add removal of new makefile
3662 targets.
3663 (s390-te-linux64.c): New makefile target.
3664 (s390x-te-linux64.c): Likewise.
3665 * gdbserver/configure.srv (srv_regobj): Append new objects
3666 s390-te-linux64.o and s390x-te-linux64.o.
3667 (srv_xmlfiles): Append new files s390-te-linux64.xml,
3668 s390x-te-linux64.xml, and s390-tdb.xml.
3669 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
3670 declaration.
3671 (tdesc_s390_te_linux64): Likewise.
3672 (init_registers_s390x_te_linux64): Likewise.
3673 (tdesc_s390x_te_linux64): Likewise.
3674 (s390_check_regset): Treat ENODATA as "regset exists".
3675 (s390_arch_setup): Add TDB regset support.
3676 (initialize_low_arch): Initialize registers for new tdescs.
3677
3678 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3679
3680 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
3681 (S390_IS_FPREGSET_REGNUM): New macro.
3682 * s390-tdep.c (s390_dwarf_regmap): Make const.
3683 (regnum_is_gpr_full): New function for replacing repeated code.
3684 (s390_pseudo_register_name): Use it.
3685 (s390_pseudo_register_type): Likewise.
3686 (s390_pseudo_register_read): Likewise.
3687 (s390_pseudo_register_write): Likewise.
3688 (s390_unwind_pseudo_register): Likewise.
3689 (s390_regmap_gregset): New format for regmap.
3690 (s390x_regmap_gregset): Likewise.
3691 (s390_regmap_fpregset): Likewise.
3692 (s390_regmap_upper): Likewise.
3693 (s390_regmap_last_break): Likewise.
3694 (s390_regmap_system_call): Likewise.
3695 (s390_supply_regset): Adjust to new regmap format.
3696 (s390_collect_regset): Likewise.
3697 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
3698 (s390_native_collect): Likewise.
3699 (supply_gregset): Likewise.
3700 (fill_gregset): Likewise.
3701 (supply_fpregset): Likewise.
3702 (fill_fpregset): Likewise.
3703 (fetch_regset): Likewise.
3704 (store_regset): Likewise.
3705 (s390_linux_fetch_inferior_registers): Likewise.
3706 (s390_linux_fetch_inferior_registers): Likewise.
3707
3708 2013-09-12 Andrew Pinski <apinski@cavium.com>
3709
3710 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
3711
3712 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
3713
3714 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
3715
3716 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
3717
3718 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
3719
3720 2013-09-06 Pedro Alves <palves@redhat.com>
3721
3722 * remote-sim.c (dump_mem, gdbsim_fetch_register)
3723 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
3724 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
3725 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
3726 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
3727 gdb_stdlog.
3728
3729 2013-09-06 Pedro Alves <palves@redhat.com>
3730
3731 * remote-sim.c (dump_mem): Constify buf parameter.
3732 gdbsim_xfer_inferior_memory): Rename to ...
3733 (gdbsim_xfer_memory): ... this. Adjust interface as
3734 target_xfer_partial helper.
3735 (gdbsim_xfer_partial): New function.
3736 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
3737 Install a to_xfer_partial hook. Send output to gdb_stdlog.
3738
3739 2013-09-06 Pedro Alves <palves@redhat.com>
3740
3741 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
3742 host_address_to_string, and send debug output to gdb_stdlog.
3743
3744 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3745
3746 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
3747 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
3748 gdb_target_obs for cris target.
3749 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
3750 (cris_gdbarch_init): Move calls to
3751 set_gdbarch_fetch_tls_load_module_address and
3752 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
3753 Add call to gdbarch_init_osabi.
3754 * cris-linux-tdep.c: New file.
3755 * cris-tdep.h: New file.
3756
3757 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3758
3759 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
3760 to deprecated_init_ui_hook.
3761
3762 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
3763
3764 * cli/cli-interp.c (_initialize_cli_interp): Add a
3765 command_loop_proc to interp_procs.
3766 * event-top.c (cli_command_loop): Change signature to match
3767 interp_command_loop_ftype.
3768 * event-top.h (cli_command_loop): Same.
3769 * interps.c (interp_new): Require every interpreter to have a
3770 command_loop_proc.
3771 (current_interp_command_loop): Just call the command_loop_proc on
3772 the current interpreter.
3773 * tui/tui-interp.c (_initialize_tui_interp): Add a
3774 command_loop_proc to interp_procs.
3775
3776 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3777
3778 * cris-tdep.c (cris_gdbarch_init): Add call to
3779 get_gdbarch_fetch_tls_load_module_address.
3780
3781 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3782
3783 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
3784 (cris_elf_gregset_t): Rename from elf_gregset_t.
3785 (crisv32_elf_gregset_t): Adjust.
3786 (cris_supply_gregset, fetch_core_registers): Adjust.
3787
3788 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
3789
3790 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
3791
3792 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
3793
3794 * defs.h (deprecated_command_loop_hook): Remove, including
3795 references in comments.
3796 * interps.c (current_interp_command_loop): No longer use
3797 deprecated_command_loop_hook.
3798 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
3799 setup.
3800 * top.c (deprecated_command_loop_hook): Remove.
3801
3802 2013-09-05 Pedro Alves <palves@redhat.com>
3803
3804 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
3805 local is now int instead of ULONGEST. Print it with %d
3806 instead of paddress.
3807
3808 2013-09-05 Tristan Gingold <gingold@adacore.com>
3809
3810 * MAINTAINERS: Remove avr maintainership.
3811
3812 2013-09-05 Pedro Alves <palves@redhat.com>
3813
3814 * findvar.c (value_of_register): Rework in terms of
3815 value_of_register_lazy.
3816
3817 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
3818
3819 * symfile.c (add_symbol_file_command): Remove trailing
3820 whitespaces and blank line after comment.
3821
3822 2013-09-05 Pedro Alves <palves@redhat.com>
3823
3824 * tui/tui-regs.c (tui_register_format): Don't look at the
3825 register's name here. Return string representing register
3826 value instead of storing it in the data element.
3827 (tui_get_register): Compare register string representations
3828 instead of register value states and contents.
3829
3830 2013-09-05 Pedro Alves <palves@redhat.com>
3831
3832 PR tui/15933
3833 * tui/tui-regs.c (tui_show_registers): Show registers of the
3834 selected frame, not the current frame.
3835
3836 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
3837
3838 * MAINTAINERS (Write After Approval): Add myself to the list.
3839
3840 2013-09-04 Doug Evans <dje@google.com>
3841
3842 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
3843 (queue_and_load_dwo_tu): New function.
3844 (lookup_dwo_signatured_type): Set per_cu.tu_read.
3845 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
3846 Make dependent_cu optional.
3847 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
3848 and an older .gdb_index is in use, queue and load all its TUs too.
3849
3850 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3851
3852 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
3853 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
3854 variable search_flags.
3855 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
3856 (OPF_RETURN_REALPATH): ... here.
3857 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
3858 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
3859 call. Twice.
3860 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
3861 openp call.
3862 * solib.c (solib_find): Likewise. Four times.
3863 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
3864 in the function comment and for the realpath_fptr variable.
3865 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
3866 (find_and_open_source): Likewise. Twice.
3867 * symfile.c (symfile_bfd_open): Likewise, also twice.
3868
3869 2013-09-04 Doug Evans <dje@google.com>
3870
3871 * progspace.c (save_current_space_and_thread): Remove unnecessary
3872 call to save_current_inferior.
3873
3874 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
3875
3876 * sh64-tdep.c (sh64_do_register): Return after printing message
3877 about unavailable register contents.
3878
3879 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
3880 Pedro Alves <palves@redhat.com>
3881
3882 * symfile.c (add_symbol_file_command): Error out on unknown
3883 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
3884 options and collapse into single conditional branch.
3885
3886 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
3887
3888 * inf-child.c (inf_child_follow_fork): New parameter
3889 detach_fork.
3890 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
3891 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
3892 * inferior.h (detach_fork): Remove.
3893 * infrun.c (detach_fork): Adjust comment and make it
3894 static.
3895 (follow_fork): Pass detach_fork parameter to
3896 target_follow_fork.
3897 * linux-nat.c (linux_child_follow_fork): New parameter
3898 detach_fork.
3899 * target.c (target_follow_fork): New parameter detach_fork.
3900 Pass detach_fork as parameter and print its value.
3901 * target.h (struct target_ops) <to_follow_fork>: New int
3902 parameter.
3903 (target_follow_fork): New parameter detach_fork.
3904
3905 2013-09-03 Joel Brobecker <brobecker@adacore.com>
3906
3907 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
3908 Replace sec->bfd by sec->the_bfd_section->owner.
3909
3910 2013-09-03 Yao Qi <yao@codesourcery.com>
3911
3912 * linux-tdep.c (linux_is_uclinux): New function. Code moved
3913 from linux_has_shared_address_space.
3914 (linux_has_shared_address_space): Call linux_is_uclinux.
3915 * linux-tdep.h (linux_is_uclinux): Declare.
3916 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
3917 linux_is_uclinux.
3918
3919 2013-09-03 Yao Qi <yao@codesourcery.com>
3920
3921 * config/djgpp/fnchange.lst: Remove entry of
3922 i386-interix-nat.c and i386-interix-tdep.c.
3923 * configure.ac: Remove '*-*-interix*'.
3924 * configure: Re-generated.
3925 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
3926 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
3927 obsolete comments.
3928 * osabi.c (gdb_osabi_names): Remove "Interix".
3929
3930 2013-09-03 Yao Qi <yao@codesourcery.com>
3931
3932 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
3933
3934 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
3935
3936 * record.h (record_print_flag) <record_print_src_line,
3937 record_print_insn_range>: Rename into ...
3938 (record_print_flag) <record_print_src_line,
3939 record_print_insn_range>: ... this. Update all users.
3940
3941 2013-09-02 Pierre Muller <muller@sourceware.org>
3942
3943 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
3944 error code.
3945
3946 2013-09-02 Pierre Muller <muller@sourceware.org>
3947
3948 * windows-nat.c (windows_xfer_memory): Fix compilation failure
3949 by use of plongest function.
3950
3951 2013-09-02 Tristan Gingold <gingold@adacore.com>
3952
3953 * NEWS: Add entry mentioning support for native Windows x64
3954 SEH data.
3955
3956 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
3957 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
3958 (struct amd64_windows_frame_cache): New struct.
3959 (amd64_windows_w2gdb_regnum): New global.
3960 (pc_in_range, amd64_windows_frame_decode_epilogue)
3961 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
3962 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
3963 (amd64_windows_frame_this_id): New functions.
3964 (amd64_windows_frame_unwind): New static global.
3965 (amd64_windows_skip_prologue): New function.
3966 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
3967 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
3968 with amd64_windows_skip_prologue.
3969
3970 2013-08-30 Joel Brobecker <brobecker@adacore.com>
3971
3972 GDB 7.6.1 released.
3973
3974 2013-08-30 Pedro Alves <palves@redhat.com>
3975
3976 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
3977 SRC_AND_LOC.
3978
3979 2013-08-30 Pedro Alves <palves@redhat.com>
3980
3981 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
3982 warning text.
3983
3984 2013-08-30 Pedro Alves <palves@redhat.com>
3985
3986 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
3987 Adjust arguments to print_stack_frame.
3988
3989 2013-08-30 Pedro Alves <palves@redhat.com>
3990
3991 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
3992
3993 2013-08-30 Pedro Alves <palves@redhat.com>
3994
3995 * frame.h (show_and_print_stack_frame): Delete declaration.
3996
3997 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
3998
3999 PR python/15461
4000 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
4001 (archpy_name): Check for valid architecture.
4002 (archpy_disassemble): Ditto.
4003
4004 2013-08-29 Joel Brobecker <brobecker@adacore.com>
4005
4006 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
4007 instead of "long long" in call to ptrace64.
4008
4009 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
4010
4011 * mi/mi-interp.c (mi_command_loop): Change signature to match
4012 interp_command_loop_ftype.
4013 (mi1_command_loop): Remove.
4014 (mi2_command_loop): Remove.
4015 (mi3_command_loop): Remove.
4016 (mi_interpreter_resume): Remove setting of
4017 deprecated_command_loop_hook.
4018 (_initialize_mi_interp): Set mi_command_loop as the command loop
4019 callback.
4020
4021 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4022
4023 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
4024 value_type.
4025
4026 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4027
4028 * value.c (allocate_value_contents): Make static.
4029 * value.h (allocate_value_contents): Remove prototype.
4030
4031 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4032
4033 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
4034 of assembling value via allocate_value_lazy and attribute setter.
4035 * findvar.c (default_read_var_value): Use value_at_lazy instead of
4036 assembling value via allocate_value_lazy and attribute setter.
4037 * valops.c (do_search_struct_field): Use value_at_lazy instead of
4038 assembling value via allocate_value_lazy and attribute setter.
4039
4040 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
4041
4042 * value.c (value_from_contents_and_address): Replace allocate_value and
4043 memcpy with value_from_contents.
4044
4045 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4046
4047 * python/py-framefilter.c (py_print_frame): Remove usage of
4048 PyString_AsString. Use python_string_to_host_string instead.
4049 Refactor function to work with a string as a new allocation
4050 instead of a pointer.
4051 (py_print_frame): Ditto.
4052 * python/lib/gdb/frames.py (return_list): Cain iterators together
4053 instead of adding them as a list.
4054 (_sort_list): Call return_list, and remove duplicate code.
4055 (execute_frame_filters): Convert iterator to a list with list().
4056 * python/lib/gdb/command/frame_filters.py
4057 (SetFrameFilterPriority._set_filter_priority): Convert priority
4058 attribute to an integer.
4059 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
4060 wrapper function __next__.
4061 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
4062 define as "str".
4063
4064 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4065
4066 PR python/15752
4067 * python/py-framefilter.c (apply_frame_filter): Check
4068 gdb_python_initialized. Exit if the Python frame-filter code
4069 cannot be initialized.
4070
4071 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
4072
4073 PR cli/15842
4074 * top.c (print_gdb_version): Remove erroneous newline after help
4075 text.
4076
4077 2013-08-29 Yao Qi <yao@codesourcery.com>
4078
4079 * varobj.c (install_dynamic_child): Remove trailing space.
4080 Add one blank line after variable declaration.
4081
4082 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 PR gdb/15415
4085 * corefile.c (get_exec_file): Use exec_filename.
4086 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
4087 * exec.c (exec_close): Free EXEC_FILENAME.
4088 (exec_file_attach): New variable canonical_pathname. Use
4089 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
4090 EXEC_FILENAME.
4091 * exec.h (exec_filename): New.
4092 * inferior.c (print_inferior, inferior_command): Use
4093 PSPACE_EXEC_FILENAME.
4094 * mi/mi-main.c (print_one_inferior): Likewise.
4095 * progspace.c (clone_program_space, print_program_space): Likewise.
4096 * progspace.h (struct program_space): New field pspace_exec_filename.
4097 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
4098 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
4099
4100 2013-08-28 Will Newton <will.newton@linaro.org>
4101
4102 * common/linux-ptrace.c: Include stdint.h unconditionally.
4103
4104 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 Code cleanup.
4107 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
4108
4109 2013-08-28 Yao Qi <yao@codesourcery.com>
4110 Pedro Alves <palves@redhat.com>
4111
4112 * event-top.c (gdb_setup_readline): Call stderr_fileopen
4113 instead of stdio_fileopen.
4114 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
4115 .Call stderr_fileopen instead of stdio_fileopen.
4116 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
4117 [__MINGW32__] (stderr_file_fputs): New function.
4118 (stderr_fileopen): New function.
4119 * ui-file.h (stderr_fileopen): Declare.
4120
4121 2013-08-27 Doug Evans <dje@google.com>
4122
4123 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
4124 (struct dwarf2_per_cu_data): Ditto.
4125 (maybe_queue_comp_unit): Delete forward decl. Add comment.
4126 (process_imported_unit_die): Ditto.
4127 (follow_die_sig_1): Simplify assert.
4128
4129 2013-08-27 Pedro Alves <palves@redhat.com>
4130
4131 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
4132 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
4133 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
4134 windows_xfer_memory directly.
4135 (init_windows_ops): Don't install a deprecated_xfer_memory method.
4136
4137 2013-08-27 Pedro Alves <palves@redhat.com>
4138
4139 * darwin-nat.c (darwin_xfer_memory): Delete.
4140 (_initialize_darwin_inferior): Don't install a
4141 deprecated_xfer_memory method.
4142
4143 2013-08-27 Pedro Alves <pedro@codesourcery.com>
4144 Yao Qi <yao@codesourcery.com>
4145
4146 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
4147 (parse_no_frames_option): Remove.
4148 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
4149 (mi_cmd_stack_list_args): Adjust.
4150 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
4151 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
4152 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
4153 Caller update.
4154 (list_args_or_locals): New parameter 'skip_unavailable'.
4155 Handle it.
4156 * valprint.c (scalar_type_p): Rename to ...
4157 (val_print_scalar_type_p): ... this. Make extern.
4158 (val_print, value_check_printable): Adjust.
4159 * valprint.h (val_print_scalar_type_p): Declare.
4160 * value.c (value_entirely_unavailable): New function.
4161 * value.h (value_entirely_unavailable): Declare.
4162
4163 * NEWS: Mention the new option "--skip-unavailable" to MI
4164 commands '-stack-list-locals', '-stack-list-arguments' and
4165 '-stack-list-variables'.
4166
4167 2013-08-27 Yao Qi <yao@codesourcery.com>
4168
4169 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
4170 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
4171 options.
4172 * mi/mi-getopt.c (mi_getopt): Remove.
4173 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
4174 'error_on_unknown'.
4175 (mi_getopt): Call mi_getopt_1.
4176 (mi_getopt_silent): New.
4177 * mi/mi-getopt.h (mi_getopt_silent): Declare.
4178
4179 2013-08-26 Doug Evans <dje@google.com>
4180
4181 PR symtab/15885
4182 * dwarf2read.c (dw2_dump): Print some minimal information indicating
4183 .gdb_index is in use.
4184 * symfile.c (reread_symbols): Reset objfile->sf.
4185
4186 * NEWS: Document "mt print objfiles" now takes optional regexp.
4187 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
4188 regexp of objfiles to print.
4189 (_initialize_symmisc): Update doc string for "mt print objfiles".
4190
4191 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
4192 missing debug info checks.
4193
4194 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
4195 Ulrich Weigand <uweigand@de.ibm.com>
4196
4197 * xcoffread.c (arrange_linetable): Add fix to correctly handle
4198 line tables generated by XLC compiled binaries.
4199
4200 2013-08-23 Doug Evans <dje@google.com>
4201
4202 * symmisc.c (dump_symtab): Delete prototype.
4203 (dump_msymbols, dump_objfile): Ditto.
4204 (maintenance_info_symtabs): Mark as dont_repeat.
4205 (_initialize_symmisc): Improve doc string for "mt info symtabs".
4206
4207 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
4208 debugging printf to better location.
4209
4210 2013-08-23 Pedro Alves <palves@redhat.com>
4211
4212 * target.c (target_read_live_memory): Change type of 'ret' local
4213 to LONGEST.
4214
4215 2013-08-23 Pedro Alves <palves@redhat.com>
4216
4217 * remote.c (remote_write_bytes_aux, remote_write_bytes)
4218 (remote_read_bytes): Change return type to LONGEST, and adjust to
4219 return a target_xfer_error on error.
4220 (remote_xfer_memory): Delete.
4221 (remote_flash_write): Change type of 'ret' local to LONGEST.
4222 (remote_xfer_partial, remote_xfer_partial): Adjust.
4223 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
4224
4225 2013-08-23 Pierre Muller <muller@sourceware.org>
4226
4227 ARI fix: Push # directives to start of line.
4228 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
4229
4230 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
4231
4232 PR gdb/15501
4233 * breakpoint.c (enable_command, disable_command): Iterate over
4234 all specified breakpoint locations.
4235
4236 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4237
4238 * common/linux-ptrace.c (linux_fork_to_function): Push #
4239 directives to the start of the line.
4240 (linux_check_ptrace_features): Fix warning message to use
4241 the "_" markup.
4242
4243 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
4244
4245 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
4246 nat/linux-waitpid.h.
4247 (linux-waitpid.o): New object file rule.
4248 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
4249 (current_ptrace_options): Moved from linux-nat.c.
4250 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
4251 parameters.
4252 (linux_fork_to_function): New function.
4253 (linux_grandchild_function): Likewise.
4254 (linux_child_function): Likewise.
4255 (linux_check_ptrace_features): New function, heavily
4256 based on linux-nat.c:linux_test_for_tracefork.
4257 (linux_enable_event_reporting): New function.
4258 (ptrace_supports_feature): Likewise.
4259 (linux_supports_tracefork): Likewise.
4260 (linux_supports_traceclone): Likewise.
4261 (linux_supports_tracevforkdone): Likewise.
4262 (linux_supports_tracesysgood): Likewise.
4263 * common/linux-ptrace.h (HAS_NOMMU): Moved from
4264 gdbserver/linux-low.c.
4265 (linux_enable_event_reporting): New declaration.
4266 (linux_supports_tracefork): Likewise.
4267 (linux_supports_traceclone): Likewise.
4268 (linux_supports_tracevforkdone): Likewise.
4269 (linux_supports_tracesysgood): Likewise.
4270 * config.in (PTRACE_TYPE_ARG4): Regenerate.
4271 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
4272 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4273 * config/arm/linux.mh (NATDEPFILES): Likewise.
4274 * config/i386/linux.mh (NATDEPFILES): Likewise.
4275 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4276 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4277 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4278 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4279 * config/mips/linux.mh (NATDEPFILES): Likewise.
4280 * config/pa/linux.mh (NATDEPFILES): Likewise..
4281 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
4282 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4283 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4284 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4285 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4286 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4287 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4288 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
4289 ptrace's 4th argument's types.
4290 Check the type of PTRACE_TYPE_ARG4.
4291 * configure: Regenerate.
4292 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
4293 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
4294 (linux_supports_tracefork_flag): Remove.
4295 (linux_supports_tracesysgood_flag): Likewise.
4296 (linux_supports_tracevforkdone_flag): Likewise.
4297 (current_ptrace_options): Moved to
4298 common/linux-ptrace.c.
4299 (linux_tracefork_child): Remove.
4300 (my_waitpid): Remove.
4301 (linux_test_for_tracefork): Renamed to
4302 linux_check_ptrace_features and moved to common/linux-ptrace.c.
4303 (linux_test_for_tracesysgood): Remove.
4304 (linux_supports_tracesysgood): Remove.
4305 (linux_supports_tracefork): Remove.
4306 (linux_supports_tracevforkdone): Remove.
4307 (linux_enable_tracesysgood): Remove.
4308 (linux_enable_event_reporting): Remove.
4309 (linux_init_ptrace): New function.
4310 (linux_child_post_attach): Call linux_init_ptrace.
4311 (linux_child_post_startup_inferior): Call linux_init_ptrace.
4312 (linux_child_follow_fork): Call linux_supports_tracefork
4313 and linux_supports_tracevforkdone.
4314 (linux_child_insert_fork_catchpoint): Call
4315 linux_supports_tracefork.
4316 (linux_child_insert_vfork_catchpoint): Likewise.
4317 (linux_child_set_syscall_catchpoint): Call
4318 linux_supports_tracesysgood.
4319 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
4320 * nat/linux-nat.h: New file.
4321 * nat/linux-waitpid.c: New file.
4322 * nat/linux-waitpid.h: New file.
4323
4324 2013-08-22 Samuel Bronson <naesten@gmail.com>
4325
4326 ARM Linux support for `catch syscall'.
4327 * syscalls/arm-linux.py: New file.
4328 * syscalls/arm-linux.xml: Likewise.
4329 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
4330 (arm_linux_init_abi): Register the new function and syscall xml file.
4331 * data-directory/Makefile.in: Install the new syscall xml file.
4332 * NEWS: Brag about this.
4333
4334 2013-08-22 Pedro Alves <palves@redhat.com>
4335
4336 PR gdb/15871
4337 * corefile.c (target_xfer_memory_error): New function.
4338 (memory_error): Defer EIO to target_memory_error.
4339 (read_memory): Use target_xfer_partial, and handle finer-grained
4340 target xfer errors.
4341 * target.c (target_xfer_error_to_string): New function.
4342 (memory_xfer_partial_1): If memory is known to be
4343 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
4344 (target_xfer_partial): Make extern.
4345 * target.h (enum target_xfer_error): New enum.
4346 (target_xfer_error_to_string): Declare function.
4347 (target_xfer_partial): Declare function.
4348 (struct target_ops) <xfer_partial>: Adjust describing comment.
4349
4350 2013-08-22 Alan Modra <amodra@gmail.com>
4351
4352 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
4353 * configure.tgt: Likewise as targets.
4354
4355 2013-08-20 Doug Evans <dje@google.com>
4356
4357 * buildsym.c (subfile_stack): Move here from buildsym.h.
4358 (pending_macros): Ditto.
4359 (get_macro_table): New function.
4360 (buildsym_init): Initialize subfile_stack.
4361 * coffread.c (type_vector,type_vector_length): Moved here from
4362 buildsym.h.
4363 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4364 (coff_symtab_read): Use it.
4365 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
4366 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
4367 with call to get_macro_table.
4368 * stabsread.c (type_vector,type_vector_length): Moved here from
4369 buildsym.h.
4370 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
4371 * buildsym.h (get_macro_table): Declare.
4372
4373 2013-08-20 Tom Tromey <tromey@redhat.com>
4374
4375 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
4376 Update.
4377 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
4378
4379 2013-08-20 Doug Evans <dje@google.com>
4380
4381 * blockframe.c: Remove #include "psymtab.h".
4382 * cp-support.c: Ditto.
4383 * source.c: Ditto.
4384 * stack.c: Ditto.
4385
4386 2013-08-20 Tom Tromey <tromey@redhat.com>
4387
4388 PR python/15816:
4389 * exceptions.h (return_mask): Now an enum.
4390 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
4391 enum constants.
4392
4393 2013-08-20 Tom Tromey <tromey@redhat.com>
4394
4395 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
4396 get_objfile_arch.
4397 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
4398 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
4399 * jit.c (jit_object_close_impl): Update.
4400 * jv-lang.c (get_dynamics_objfile): Update.
4401 * linespec.c (add_minsym): Use get_dynamics_objfile.
4402 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
4403 (allocate_objfile): Don't initialize 'gdbarch' field.
4404 (get_objfile_arch): Update.
4405 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
4406 moved from...
4407 (struct objfile) <gdbarch>: ... here. Remove.
4408 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
4409 get_objfile_arch.
4410 * symfile.c (init_entry_point_info): Use get_objfile_arch.
4411
4412 2013-08-20 Alan Modra <amodra@gmail.com>
4413
4414 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
4415 for IBM long double nan and inf.
4416 (floatformat_is_negative, floatformat_classify,
4417 floatformat_mantissa): Similarly.
4418 (floatformat_ieee_single, floatformat_ieee_double,
4419 floatformat_ieee_quad, floatformat_arm_ext,
4420 floatformat_ia64_spill): Delete unused vars.
4421 (_initialize_doublest): Delete unused function.
4422 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
4423 little-endian variants of floatformat_ibm_long_double.
4424
4425 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
4426
4427 * Makefile.in (SFILES): Remove common/target-common.c and
4428 add target/waitstatus.c.
4429 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
4430 target/resume.h, target/wait.h and target/waitstatus.h.
4431 (COMMON_OBS): Remove target-common.o and add
4432 waitstatus.o.
4433 (target-common.o): Remove.
4434 (waitstatus.o): New target object file.
4435 * common/target-common.c: Move contents to
4436 target/waitstatus.c and remove.
4437 * common/target-common.h: Move contents to other files and
4438 remove.
4439 (enum resume_kind: Move to target/resume.h.
4440 (TARGET_WNOHANG): Move to target/wait.h.
4441 (enum target_waitkind): Move to target/waitstatus.h.
4442 (struct target_waitstatus): Likewise.
4443 * target.h: Do not include target-common.h and
4444 include target/resume.h, target/wait.h and
4445 target/waitstatus.h.
4446 * target/resume.h: New file.
4447 * target/wait.h: New file.
4448 * target/waitstatus.h: New file.
4449 * target/waitstatus.c: New file.
4450
4451 2013-08-19 Pedro Alves <palves@redhat.com>
4452
4453 * linux-nat.c (linux_test_for_tracefork)
4454 (linux_test_for_tracesysgood, linux_child_follow_fork)
4455 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
4456 (linux_nat_wait_1): Extend comment.
4457 (linux_async_pipe): Add comment.
4458
4459 2013-08-15 Kevin Buettner <kevinb@redhat.com>
4460
4461 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
4462 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
4463 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
4464 Update to account for fact that PC is now a pseudo-register.
4465 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
4466 cases for RL78_PC_REGNUM.
4467
4468 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
4469
4470 PR cli/15841
4471 * top.c (quit_force): Skip writing history file
4472 if input is not from terminal.
4473
4474 2013-08-14 Tom Tromey <tromey@redhat.com>
4475
4476 * remote.c (struct remote_state) <echo_nextthread, nextthread,
4477 resultthreadlist>: New fields.
4478 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
4479 (remote_get_threadlist, remote_threadlist_iterator): Use
4480 new fields. Remove static variables.
4481
4482 2013-08-14 Tom Tromey <tromey@redhat.com>
4483
4484 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
4485 remote_watch_data_address>: New fields.
4486 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
4487 (process_stop_reply, remote_wait_as)
4488 (remote_check_watch_resources, remote_stopped_data_address): Update.
4489
4490 2013-08-14 Tom Tromey <tromey@redhat.com>
4491
4492 * remote.c (struct remote_state) <async_client_callback,
4493 async_client_context>: New fields.
4494 (async_client_callback, async_client_context): Remove.
4495 (remote_async_serial_handler, remote_async): Update.
4496
4497 2013-08-14 Tom Tromey <tromey@redhat.com>
4498
4499 * remote.c (sizeof_pkt): Remove.
4500 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
4501
4502 2013-08-14 Tom Tromey <tromey@redhat.com>
4503
4504 * remote.c (struct remote_state) <use_threadinfo_query,
4505 use_threadextra_query>: New fields.
4506 (remote_threads_info, remote_threads_extra_info)
4507 (remote_open_1): Update.
4508
4509 2013-08-14 Tom Tromey <tromey@redhat.com>
4510
4511 * remote.c (struct remote_state) <finished_object,
4512 finished_annex, finished_offset>: New fields.
4513 (remote_read_qxfer): Use remote_state fields; remove static
4514 variables.
4515
4516 2013-08-14 Tom Tromey <tromey@redhat.com>
4517
4518 * remote.c (struct remote_state) <last_sent_step>:
4519 New field.
4520 (last_sent_step): Remove.
4521 (remote_resume, remote_wait_as): Update.
4522
4523 2013-08-14 Tom Tromey <tromey@redhat.com>
4524
4525 * remote.c (struct remote_state) <last_sent_signal>:
4526 New field.
4527 (last_sent_signal): Remove.
4528 (new_remote_state, remote_resume, remote_wait_as): Update.
4529
4530 2013-08-14 Tom Tromey <tromey@redhat.com>
4531
4532 * remote.c (struct remote_state) <last_program_signals_packet>:
4533 New field.
4534 (last_program_signals_packet): Remove.
4535 (remote_program_signals, remote_open_1): Update.
4536
4537 2013-08-14 Tom Tromey <tromey@redhat.com>
4538
4539 * remote.c (struct remote_state) <last_pass_packet>:
4540 New field.
4541 (last_pass_packet): Remove.
4542 (remote_pass_signals, remote_open_1): Update.
4543
4544 2013-08-14 Tom Tromey <tromey@redhat.com>
4545
4546 * remote.c (struct remote_state) <remote_traceframe_number>:
4547 New field.
4548 (remote_traceframe_number): Remove.
4549 (new_remote_state, remote_open_1, set_remote_traceframe)
4550 (remote_trace_find): Update.
4551
4552 2013-08-14 Tom Tromey <tromey@redhat.com>
4553
4554 * remote.c (struct remote_state) <general_thread, continue_thread>:
4555 New fields.
4556 (general_thread, continue_thread): Remove.
4557 (record_currthread, set_thread, set_general_process)
4558 (remote_open_1, extended_remote_attach_1, remote_wait_as)
4559 (extended_remote_mourn_1): Update.
4560
4561 2013-08-14 Tom Tromey <tromey@redhat.com>
4562
4563 * remote.c (struct remote_state) <remote_desc>: New field.
4564 (remote_desc): Remove.
4565 (remote_threads_info, remote_threads_extra_info, remote_close)
4566 (send_interrupt_sequence, remote_start_remote, remote_open_1)
4567 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
4568 (remote_hostio_send_command, remote_file_put, remote_file_get)
4569 (remote_file_delete, remote_can_async_p, remote_is_async_p)
4570 (remote_async, remote_new_objfile, set_range_stepping): Update.
4571
4572 2013-08-14 Tom Tromey <tromey@redhat.com>
4573
4574 * remote.c (remote_state): Now a pointer.
4575 (get_remote_state_raw): Update.
4576 (new_remote_state): New function.
4577 (_initialize_remote): Use new_remote_state.
4578
4579 2013-08-14 Tom Tromey <tromey@redhat.com>
4580
4581 * remote.c (remote_protocol_features): Now const.
4582
4583 2013-08-14 Tom Tromey <tromey@redhat.com>
4584
4585 * remote.c (crc32_table, crc32): Remove.
4586 (remote_verify_memory): Use xcrc32.
4587
4588 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
4589
4590 * value.h (create_internalvar_type_lazy): Adjust prototype
4591 declaration.
4592
4593 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
4594
4595 * common/format.c (parse_format_string): Don't allow '#' flag for
4596 pointer arguments in format string.
4597
4598 2013-08-13 Pierre Muller <muller@sourceware.org>
4599
4600 * utils.c (init_page_info): Only call tgetnum function
4601 if rl_get_screen_size did not return useful values.
4602
4603 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
4604
4605 PR breakpoints/15117
4606 * linespec.c (linespec_parse_basic): Check for convenience
4607 variable or history value while parsing.
4608
4609 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
4610
4611 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
4612 AVR.
4613 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
4614 different signals between the generic Linux kernel implementation
4615 and AVR's.
4616 (avr_linux_gdb_signal_from_target): Delete.
4617 (avr_linux_gdb_signal_to_target): Delete.
4618 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
4619
4620 2013-08-09 Doug Evans <dje@google.com>
4621
4622 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
4623 entries.
4624
4625 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
4626
4627 * linux-tdep.c: Define enum with generic signal numbers.
4628 (linux_gdb_signal_from_target): New function.
4629 (linux_gdb_signal_to_target): Likewise.
4630 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4631 methods to the functions above.
4632 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
4633 (linux_gdb_signal_to_target): Likewise.
4634 * alpha-linux-tdep.c: Define new enum with signals different
4635 from generic Linux kernel.
4636 (alpha_linux_gdb_signal_from_target): New function.
4637 (alpha_linux_gdb_signal_to_target): Likewise.
4638 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4639 with the functions mentioned above.
4640 * avr-tdep.c: Define enum with differences between Linux kernel
4641 and AVR signals.
4642 (avr_linux_gdb_signal_from_target): New function.
4643 (avr_linux_gdb_signal_to_target): Likewise.
4644 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
4645 the functions mentioned above.
4646 * sparc-linux-tdep.c: Define enum with differences between SPARC
4647 and generic Linux kernel signal numbers.
4648 (sparc32_linux_gdb_signal_from_target): New function.
4649 (sparc32_linux_gdb_signal_to_target): Likewise.
4650 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4651 to the functions defined above.
4652 * xtensa-linux-tdep.c: Define enum with differences between
4653 Xtensa and Linux kernel generic signals.
4654 (xtensa_linux_gdb_signal_from_target): New function.
4655 (xtensa_linux_gdb_signal_to_target): Likewise.
4656 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
4657 to the functions defined above.
4658 * mips-linux-tdep.c: Define enum with differences between
4659 signals in MIPS and Linux kernel generic ones.
4660 (mips_gdb_signal_to_target): New function.
4661 (mips_gdb_signal_from_target): Redefine to use new enum, handle
4662 only different signals from the Linux kernel generic.
4663 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
4664 the functions defined above.
4665 * mips-linux-tdep.h (enum mips_signals): Remove.
4666
4667 2013-08-09 Pedro Alves <palves@redhat.com>
4668
4669 * avr-tdep.c (XMALLOC): Delete macro.
4670 * cli/cli-dump.c (XMALLOC): Delete macro.
4671
4672 2013-08-09 Pedro Alves <palves@redhat.com>
4673
4674 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4675 (scan_expression_with_cleanup, scan_filename_with_cleanup)
4676 (fopen_with_cleanup, add_dump_command): Make static.
4677 * cli/cli-dump.h: Delete file.
4678 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
4679 cli/cli-dump.h.
4680
4681 2013-08-09 Pedro Alves <palves@redhat.com>
4682
4683 * tracepoint.c (tfile_start): Show tilde-expanded filename in
4684 error message.
4685
4686 2013-08-09 Pedro Alves <palves@redhat.com>
4687
4688 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
4689 error message.
4690
4691 2013-08-09 Pedro Alves <palves@redhat.com>
4692
4693 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
4694 (gcore_command): Use tilde_expand here, and when showing the
4695 filename to the user, show the expanded version.
4696
4697 2013-08-09 Yao Qi <yao@codesourcery.com>
4698
4699 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
4700 'entryval' is set.
4701
4702 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
4703
4704 * gcore.c (create_gcore_bfd): Use tilde_expand.
4705
4706 2013-08-08 Yao Qi <yao@codesourcery.com>
4707
4708 * frame.h (read_frame_local): Declare.
4709 * mi/mi-cmd-stack.c (list_args_or_locals): Call
4710 read_frame_local.
4711 * stack.c (read_frame_local): New.
4712
4713 2013-08-08 Yao Qi <yao@codesourcery.com>
4714
4715 * mi/mi-cmd-stack.c: Update comments to function
4716 list_args_or_locals.
4717
4718 2013-08-07 Tom Tromey <tromey@redhat.com>
4719
4720 PR symtab/15028:
4721 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
4722 (process_psymtab_comp_unit_reader): Use it.
4723 (process_psymtab_comp_unit): Update. Add "pretend_language"
4724 argument.
4725 (dwarf2_build_psymtabs_hard): Update.
4726 (scan_partial_symbols): Pass CU's language to
4727 process_psymtab_comp_unit.
4728
4729 2013-08-07 Tom Tromey <tromey@redhat.com>
4730
4731 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
4732 (dwarf2_gdb_index_functions): Update.
4733 * psymtab.c (find_symbol_file_from_partial): Remove.
4734 (psym_functions): Update.
4735 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
4736 Remove.
4737
4738 2013-08-07 Tom Tromey <tromey@redhat.com>
4739
4740 * symfile.c (set_initial_language): Look up "main" symbol
4741 and use its language.
4742 * symtab.c (find_main_filename): Remove.
4743 * symtab.h (find_main_filename): Remove.
4744
4745 2013-08-07 Tom Tromey <tromey@redhat.com>
4746
4747 * dwarf2read.c (recursively_compute_inclusions): Add
4748 "immediate_parent" argument. Set symtab's "user" field
4749 if not set.
4750 (compute_symtab_includes): Update.
4751
4752 2013-08-07 Tom Tromey <tromey@redhat.com>
4753
4754 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
4755 when adding label symbols.
4756
4757 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4758 Ulrich Weigand <uweigand@de.ibm.com>
4759
4760 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
4761 * configure.host (powerpc64-*-aix*): Likewise.
4762
4763 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4764 Ulrich Weigand <uweigand@de.ibm.com>
4765
4766 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
4767 is defined.
4768 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
4769 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
4770 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
4771 * configure.ac: Check for ptrace64.
4772 * configure, config.in: Regenerate.
4773
4774 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
4775 Ulrich Weigand <uweigand@de.ibm.com>
4776
4777 * aixthread.c: Call ptrace64 instead of ptracex if defined.
4778 Call ptrace64 instead of ptrace if defined.
4779 Add macro addr_ptr to take care of ptrace address argument.
4780 (pdc_read_regs): Likewise.
4781 (pdc_write_regs): Likewise.
4782 (aix_thread_resume): Likewise.
4783 (fetch_regs_kernel_thread): Likewise.
4784 (store_regs_kernel_thread): Likewise.
4785
4786 2013-08-07 Anton Blanchard <anton@samba.org>
4787
4788 * MAINTAINERS: Add myself to Write After Approval.
4789
4790 2013-08-05 Tom Tromey <tromey@redhat.com>
4791
4792 * aix-thread.c (_initialize_aix_thread): Use
4793 complete_target_initialization.
4794 * bsd-uthread.c (_initialize_bsd_uthread): Use
4795 complete_target_initialization.
4796 * dec-thread.c (_initialize_dec_thread): Use
4797 complete_target_initialization.
4798 * ravenscar-thread.c (_initialize_ravenscar): Use
4799 complete_target_initialization.
4800 * sol-thread.c (_initialize_sol_thread): Use
4801 complete_target_initialization.
4802 * spu-multiarch.c (_initialize_spu_multiarch): Use
4803 complete_target_initialization.
4804
4805 2013-08-05 Tom Tromey <tromey@redhat.com>
4806
4807 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
4808 * ada-lang.c (ada_lookup_simple_minsym): Return
4809 bound_minimal_symbol.
4810 * ada-lang.h (ada_lookup_simple_minsym): Update.
4811 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
4812 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
4813 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
4814 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
4815 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
4816 * minsyms.c (msymbol_objfile): Remove.
4817 (lookup_minimal_symbol_internal): New function, from
4818 lookup_minimal_symbol.
4819 (lookup_minimal_symbol): Rewrite using
4820 lookup_minimal_symbol_internal.
4821 (lookup_bound_minimal_symbol): New function.
4822 * minsyms.h (msymbol_objfile): Remove.
4823 (lookup_bound_minimal_symbol): Declare.
4824 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
4825 * parse.c (write_exp_msymbol): Change parameter to a
4826 bound_minimal_symbol.
4827 (write_dollar_variable): Use lookup_bound_minimal_symbol.
4828 * parser-defs.h (write_exp_msymbol): Update.
4829 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
4830 * symfile.c (simple_read_overlay_table): Use
4831 lookup_bound_minimal_symbol.
4832 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
4833 (search_symbols): Likewise.
4834 (print_msymbol_info): Take a bound_minimal_symbol argument.
4835 (symtab_symbol_info, rbreak_command): Update.
4836 * symtab.h (struct symbol_search) <msymbol>: Change type
4837 to bound_minimal_symbol.
4838 * valops.c (find_function_in_inferior): Use
4839 lookup_bound_minimal_symbol.
4840 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
4841
4842 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4843
4844 Code cleanup.
4845 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
4846 to ...
4847 (async_cleanup_sigint_signal_handler): ... this.
4848 (initialize_sigint_signal_handler): Remove declaration.
4849 (handle_remote_sigint): Rename the declaration to ...
4850 (async_handle_remote_sigint): ... this.
4851 (handle_remote_sigint_twice): Rename the declaration to ...
4852 (async_handle_remote_sigint_twice): ... this.
4853 (async_remote_interrupt, async_remote_interrupt_twice)
4854 (remote_interrupt): Remove the declarations.
4855 (remote_interrupt_twice): Rename the declaration ...
4856 (sync_remote_interrupt_twice): ... this.
4857 (sigint_remote_twice_token): Rename the variable to ...
4858 (async_sigint_remote_twice_token): ... this.
4859 (sigint_remote_token): Rename the variable to ...
4860 (async_sigint_remote_token): ... this.
4861 (initialize_sigint_signal_handler): Rename the function to ...
4862 (async_initialize_sigint_signal_handler): ... this. Update the name
4863 inside.
4864 (handle_remote_sigint): Rename the function to ...
4865 (async_handle_remote_sigint): ... this. Update the names inside.
4866 (handle_remote_sigint_twice): Rename the function to ...
4867 (async_handle_remote_sigint_twice): ... this. Update the names inside.
4868 (cleanup_sigint_signal_handler): Rename the function to ...
4869 (async_cleanup_sigint_signal_handler): ... this.
4870 (remote_interrupt): Rename the function to ...
4871 (sync_remote_interrupt): this. Update the names inside.
4872 (remote_interrupt_twice): Rename the function to ...
4873 (sync_remote_interrupt_twice): this. Update the names inside.
4874 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
4875 (_initialize_remote): Update the names inside.
4876
4877 2013-08-02 Tom Tromey <tromey@redhat.com>
4878
4879 PR symtab/15719:
4880 * breakpoint.c (update_watchpoint, watchpoint_check)
4881 (watch_command_1): Update.
4882 * eval.c (fetch_subexp_value): Add "preserve_errors"
4883 parameter.
4884 * ppc-linux-nat.c (check_condition): Update.
4885 * value.h (fetch_subexp_value): Update.
4886
4887 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
4888
4889 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
4890 add_file_handler.
4891
4892 2013-08-01 Doug Evans <dje@google.com>
4893
4894 PR symtab/15691
4895 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
4896 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
4897 Add assert of sig_entry->dwo_unit == NULL.
4898 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
4899 had already been read.
4900 (read_signatured_type): Set per_cu.tu_read.
4901
4902 PR symtab/15695
4903 * valops.c (value_struct_elt): Add missing call to check_typedef.
4904 (value_find_oload_method_list): Ditto.
4905
4906 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
4907 effectively, struct symbol_search **.
4908 (make_cleanup_free_search_symbols): Change arg to struct
4909 symbol_search **. All callers updated.
4910 (compare_search_syms): Compare symtab file name and block as well.
4911 (search_symbols_equal): New function.
4912 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
4913 New args new_head, new_tail. Result is now void. Remove dups after
4914 sorting the symbols.
4915 (search_symbols): Sort all found symbols once, after all have been
4916 found, and remove duplicates. Simplify cleanup tracking of result.
4917 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
4918
4919 Further workarounds for binutils/15021.
4920 * dwarf2read.c (recursively_compute_inclusions): Change type of result
4921 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
4922 Watch for duplicate symtabs coming from type units.
4923 (compute_symtab_includes): Update call to
4924 recursively_compute_inclusions. Build vector of included symtabs
4925 instead of per_cus.
4926 * symtab.h (symtab_ptr): New typedef.
4927 (DEF_VEC_P (symtab_ptr)): New VEC type.
4928 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
4929 instead.
4930
4931 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
4932
4933 * cli/cli-script.c (script_from_file): Remove use of
4934 error_pre_print.
4935 * main.c (captured_main): Remove use of error_pre_print and
4936 quit_pre_print.
4937 * utils.c (error_pre_print, quit_pre_print): Remove.
4938 * utils.h (error_pre_print, quit_pre_print): Likewise.
4939
4940 2013-08-01 Yao Qi <yao@codesourcery.com>
4941
4942 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
4943 with mi_getopt.
4944 (mi_cmd_stack_list_variables): Likewise.
4945
4946 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4947
4948 * exceptions.c (deprecated_throw_reason): Remove.
4949 * exceptions.h (deprecated_throw_reason): Remove.
4950
4951 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4952
4953 * remote-mips.c (mips_error): Replace use of
4954 deprecated_throw_reason with throw_verror. Use the error message
4955 passed to mips_error as the error message for throw_verror.
4956
4957 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4958
4959 * monitor.c (monitor_interrupt_query): Replace use of
4960 deprecated_throw_reason with quit.
4961 * nto-procfs.c (interrupt_query): Likewise.
4962 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
4963 * remote-mips.c (mips_kill): Likewise.
4964 * remote.c (interrupt_query): Likewise.
4965
4966 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
4967
4968 * utils.c (internal_verror): Replace use of deprecated_throw_reason
4969 with call to fatal.
4970
4971 2013-07-31 Pedro Alves <pedro@codesourcery.com>
4972 Yao Qi <yao@codesourcery.com>
4973
4974 * tracepoint.c (trace_dump_command): Select the current frame.
4975
4976 2013-07-30 Doug Evans <dje@google.com>
4977
4978 * dwarf2read.c (process_queue): Add type signature to debug output.
4979
4980 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4981
4982 * value.c (value_fetch_lazy): Mark optimized out values as such
4983 rather than raising an error.
4984
4985 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
4986
4987 * value.c (value_fetch_lazy): Ensure parent value is not lazy
4988 before checking which bits of the parent, not the child, value are
4989 valid.
4990
4991 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
4992
4993 PR gdb/15715
4994 * top.c: Include "filenames.h".
4995 (set_history_filename): New function.
4996 (init_main): Install it as set hook of the "set history filename"
4997 command.
4998
4999 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5000
5001 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
5002 attribute parameter.
5003 (dwarf2_const_value_data): Constify struct attribute parameter.
5004 (dwarf2_const_value): Constify struct attribute parameter.
5005 (dwarf2_const_value_attr): Constify struct attribute parameter.
5006 (lookup_die_type): Constify struct attribute parameter.
5007 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
5008 (follow_die_ref_or_sig): Constify struct attribute parameter.
5009 (follow_die_ref): Constify struct attribute parameter.
5010 (follow_die_sig): Constify struct attribute parameter.
5011 (get_DW_AT_signature_type): Constify struct attribute parameter.
5012 (get_type_unit_group): Constify struct attribute parameter.
5013 (fill_in_loclist_baton): Constify struct attribute parameter.
5014 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
5015 (type_unit_group): Constify struct attribute parameter.
5016
5017 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5018
5019 * dwarf2read.c (attr_form_is_block): Make argument const.
5020 (attr_form_is_section_offset): Make argument const.
5021 (attr_form_is_constant): Make argument const.
5022 (attr_form_is_ref): Make argument const.
5023
5024 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
5025
5026 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
5027 All uses updated.
5028 (attr_form_is_ref): Moved below attr_form_is_constant.
5029
5030 2013-07-29 Doug Evans <dje@google.com>
5031
5032 * main.c (captured_command_loop): Tweak comment.
5033
5034 * target.c (target_async_permitted_1): Fix comment.
5035
5036 * symtab.c (iterate_over_some_symtabs): Add comment.
5037
5038 * symtab.c (iterate_over_some_symtabs): Fix indentation.
5039
5040 2013-07-27 Yao Qi <yao@codesourcery.com>
5041
5042 * NEWS: Mention that GDBserver now supports hardware
5043 watchpoints on the MIPS GNU/Linux target.
5044
5045 2013-07-27 Yao Qi <yao@codesourcery.com>
5046
5047 * Makefile.in (HFILES_NO_SRCDIR): Add
5048 common/mips-linux-watch.h.
5049 (mips-linux-watch.o): New rule.
5050 * common/mips-linux-watch.c: New.
5051 * common/mips-linux-watch.h: New.
5052 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
5053 * mips-linux-nat.c: Include mips-linux-watch.h.
5054 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
5055 to common/mips-linux-watch.h.
5056 (MAX_DEBUG_REGISTER): Likewise.
5057 (enum pt_watch_style): Likewise.
5058 (struct mips32_watch_regs): Likewise.
5059 (struct mips64_watch_regs): Likewise.
5060 (struct pt_watch_regs): Likewise.
5061 (struct mips_watchpoint): Likewise.
5062 (mips_linux_watch_get_irw_mask): Move to
5063 common/mips-linux-watch.c.
5064 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
5065 (mips_linux_watch_get_watchlo): Likewise.
5066 (mips_linux_watch_set_watchlo): Likewise.
5067 (mips_linux_watch_get_watchhi): Likewise.
5068 (mips_linux_watch_set_watchhi): Likewise.
5069 (mips_linux_read_watch_registers): Likewise.
5070 (mips_linux_watch_type_to_irw): Likewise.
5071 (mips_linux_stopped_data_address, fill_mask): Likewise.
5072 (mips_linux_watch_try_one_watch): Likewise.
5073 (mips_linux_watch_populate_regs): Likewise.
5074
5075 2013-07-27 Yao Qi <yao@codesourcery.com>
5076
5077 * mips-linux-nat.c (get_irw_mask): Rename to ...
5078 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
5079 'set' to 'n'. Update function comment. All callers changed.
5080 (get_reg_mask): Rename parameter 'set' to 'n'. Update
5081 function comment. All callers changed.
5082 (get_num_valid): Rename to ...
5083 (mips_linux_watch_get_num_valid): ... this. Rename parameter
5084 'set' to 'n'. Update function comment. All callers changed.
5085 (get_watchlo): Rename to ...
5086 (mips_linux_watch_get_watchlo): ... this. Rename parameter
5087 'set' to 'n'. Update function comment. All callers changed.
5088 (set_watchlo): Rename to ...
5089 (mips_linux_watch_set_watchlo): ... this. Rename parameter
5090 'set' to 'n'. Update function comment. All callers changed.
5091 (get_watchhi): Rename to ...
5092 (mips_linux_watch_get_watchhi): ... this. Update function
5093 comment. All callers changed.
5094 (set_watchhi): Rename to ...
5095 (mips_linux_watch_set_watchhi): ... this. Update function
5096 comment. All callers changed.
5097 (mips_linux_read_watch_registers): Update function comment.
5098 Add new parameters 'lwpid', 'watch_readback', and
5099 'watch_readback_valid'. Update.
5100 (type_to_irw): Rename to ...
5101 (mips_linux_watch_type_to_irw): ... this. Update function
5102 comment. All callers changed.
5103 (fill_mask): Update function comment.
5104 (try_one_watch): Rename to ...
5105 (mips_linux_watch_try_one_watch): ... this. Change the type
5106 of parameter 'irw' from 'unsigned' to 'uint32_t'.
5107 (populate_regs_from_watches): Rename to ...
5108 (mips_linux_watch_populate_regs): ... this. Add parameter
5109 'current_watches'. All callers changed.
5110
5111 2013-07-27 Yao Qi <yao@codesourcery.com>
5112
5113 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
5114 the code.
5115 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
5116 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
5117 (struct pt_watch_regs): Likewise.
5118 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
5119 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
5120 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
5121 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
5122 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
5123
5124 2013-07-27 Yao Qi <yao@codesourcery.com>
5125
5126 * breakpoint.h: Include break-common.h.
5127 (enum target_hw_bp_type): Move to ...
5128 * common/break-common.h: ... here. New.
5129
5130 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
5131
5132 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
5133 process group regardless of having tty on stdin.
5134
5135 2013-07-25 Doug Evans <dje@google.com>
5136
5137 * linux-fork.h (detach_fork): Delete.
5138
5139 2013-07-25 Tom Tromey <tromey@redhat.com>
5140
5141 PR remote/15256, PR remote/15266:
5142 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
5143 * monitor.c (monitor_detach): Use unpush_target.
5144 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
5145 * remote-mips.c (mips_detach): Use unpush_target. Don't
5146 call mips_close.
5147 * remote-sim.c (gdbsim_detach): Use unpush_target.
5148 * target.c (pop_target): Remove.
5149 (pop_all_targets_above): Don't call target_close.
5150 (target_close): Assert that the target is unpushed.
5151 * target.h (pop_target): Don't declare.
5152 * tracepoint.c (tfile_open): Use unpush_target.
5153
5154 2013-07-25 Tom Tromey <tromey@redhat.com>
5155
5156 * linux-thread-db.c (init_thread_db_ops): Call
5157 complete_target_initialization.
5158 (_initialize_thread_db): Don't call add_target.
5159 * target.c (complete_target_initialization): New function.
5160 (add_target_with_completer): Call it.
5161 * target.h (complete_target_initialization): Declare.
5162
5163 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5164
5165 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
5166 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
5167 (HPPANBSD_SIZEOF_GREGS): New define.
5168 (hppaobsd_supply_gregset): Handle additional registers.
5169 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
5170 we provide more registers now.
5171 (hppabsd_supply_gregset): Supply additional registers.
5172 (hppabsd_collect_gregset): Collect additional registers.
5173
5174 2013-07-25 Mark Kettenis <kettenis@gnu.org>
5175
5176 * hppabsd-tdep.c: Include "dwarf2-frame.h".
5177 (hppabsd_dwarf2_frame_init_reg): New function.
5178 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
5179
5180 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5181
5182 * mi/mi-main.c (output_register): Make MI 'r' format use standard
5183 'z' format code. Remove error for optimized out values, standard
5184 code will handle these fine.
5185
5186 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
5187
5188 * NEWS: Mention new 'z' formatter.
5189 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
5190 (_initialize_printcmd): Mention 'z' formatter in help text of the
5191 'x' command.
5192
5193 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
5194
5195 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
5196 formatting.
5197
5198 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
5199
5200 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
5201 interface can evaluate arguments. Fallback to the old mode if it
5202 cannot.
5203 (create_exception_master_breakpoint): Likewise.
5204 * elfread.c (elf_can_evaluate_probe_arguments): New function.
5205 (struct sym_probe_fns elf_probe_fns): Export function above to the
5206 probe interface.
5207 * probe.c (can_evaluate_probe_arguments): New function.
5208 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
5209 function pointer.
5210 (can_evaluate_probe_arguments): New function prototype.
5211 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
5212 probe interface can evaluate arguments. Fallback to the old mode
5213 if it cannot.
5214 * stap-probe.c (stap_get_probe_argument_count): Check if probe
5215 interface can evaluate arguments. Warning the user if it cannot.
5216 (stap_can_evaluate_probe_arguments): New function.
5217 (struct probe_ops stap_probe_ops): Export function above to the
5218 probe interface.
5219 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
5220 New function pointer.
5221
5222 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
5223
5224 * Makefile.in (SFILES): Add common/target-common.c.
5225 Add common/target-common.h to headers.
5226 (COMMON_OBS): Add target-common.o.
5227 (target-common.o): New target.
5228 * linux-nat.h (resume_kind): Move to common/target-common.h.
5229 * target.c (target_waitstatus_to_string): Move to
5230 common/target-common.c.
5231 * target.h: Include target-common.h.
5232 (target_waitkind): Move to common/target-common.h.
5233 (target_waitstatus): Likewise.
5234 (TARGET_WNOHANG): Likewise.
5235 * common/target-common.c: New file.
5236 * common/target-common.h: New file.
5237
5238 2013-07-24 Doug Evans <dje@google.com>
5239
5240 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
5241 a warning.
5242
5243 2013-07-23 Yao Qi <yao@codesourcery.com>
5244
5245 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
5246 parameter 'gdbarch'.
5247 (i386_stack_tramp_frame_sniffer): Caller update.
5248 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
5249 parameter 'gdbarch' and 'target'.
5250 (i386_linux_core_read_description): Caller update.
5251 * amd64-linux-tdep.c (amd64_linux_core_read_description):
5252 Likewise.
5253 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
5254 declaration.
5255
5256 2013-07-23 Tom Tromey <tromey@redhat.com>
5257
5258 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
5259 2013-07-22.
5260
5261 2013-07-22 Doug Evans <dje@google.com>
5262
5263 * exec.h (remove_target_sections): Delete arg abfd.
5264 * exec.c (exec_close): Update call to remove_target_sections.
5265 (remove_target_sections): Delete arg abfd.
5266 * solib.c (update_solib_list): Ditto.
5267 (reload_shared_libraries_1): Ditto.
5268 (clear_solib): Ditto, and unconditionally call remove_target_sections.
5269 * target.h (struct target_section): Rename key to owner.
5270 All uses updated.
5271
5272 2013-07-22 Tom Tromey <tromey@redhat.com>
5273
5274 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
5275
5276 2013-07-22 Tom Tromey <tromey@redhat.com>
5277
5278 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
5279 Simplify cleanup handling.
5280
5281 2013-07-22 Tom Tromey <tromey@redhat.com>
5282
5283 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
5284 on all return paths.
5285
5286 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5287
5288 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
5289 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
5290 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
5291
5292 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
5293
5294 * top.c (print_gdb_version): Add help, apropos description and
5295 url to online documentation.
5296
5297 2013-07-19 Hui Zhu <hui@codesourcery.com>
5298
5299 PR gdb/15692
5300 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
5301
5302 2013-07-19 Yao Qi <yao@codesourcery.com>
5303
5304 * target.c (update_current_target): Change the default action
5305 of 'to_traceframe_info' from tcomplain to return_zero.
5306 * target.h (struct target_ops) <to_traceframe_info>: Add more
5307 comments.
5308 * valops.c (read_value_memory): Call
5309 traceframe_available_memory unconditionally.
5310
5311 2013-07-18 Yao Qi <yao@codesourcery.com>
5312
5313 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
5314 if the name is prefixed by "__imp_" or "_imp_", look for minimal
5315 symbol without prefix. If found, set its type to
5316 'mst_solib_trampoline'.
5317
5318 2013-07-17 Doug Evans <dje@google.com>
5319
5320 * NEWS: Mention "set print raw frame-arguments".
5321 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
5322 * stack.c (print_raw_frame_arguments): New static global.
5323 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
5324 (_initialize_stack): New command "set/show print raw frame-arguments".
5325 * valprint.c (setprintrawlist, showprintrawlist): New globals.
5326 (set_print_raw, show_print_raw): New functions.
5327 (_initialize_valprint): New prefix command "set/show print raw".
5328 * valprint.h (value_print_options): Improve comments.
5329
5330 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
5331 of all *list variables.
5332
5333 * gdbcmd.h (togglelist): Delete.
5334 * cli/cli-cmds.c (togglelist): Delete.
5335 (init_cmd_lists): Update.
5336 * cli/cli-cmds.h (togglelist): Delete.
5337
5338 2013-07-17 Tom Tromey <tromey@redhat.com>
5339
5340 * dwarf2read.c (dwarf2_per_objfile_free): Clear
5341 dwarf2_per_objfile.
5342
5343 2013-07-16 Doug Evans <dje@google.com>
5344
5345 * nto-tdep.c (nto_relocate_section_addresses): Update,
5346 target_section.bfd deleted.
5347 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
5348 * s390-tdep.c (s390_load): Ditto.
5349 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
5350
5351 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
5352
5353 * common/format.c (parse_format_string): Add checks for NULL
5354 character before calling strchr.
5355
5356 2013-07-16 Doug Evans <dje@google.com>
5357
5358 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
5359 temp_pathname argument.
5360 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
5361 when opening the file fails.
5362
5363 * target.h (struct target_section): Delete member bfd.
5364 All users updated to use the_bfd_section->owner instead.
5365 * exec.c (add_to_section_table): Assert bfd is expected value.
5366 Remove initialization of target_section.bfd.
5367 (remove_target_sections): Update.
5368 (section_table_available_memory): Update.
5369 (section_table_xfer_memory_partial): Update.
5370 (print_section_info): Update.
5371 (exec_set_section_address): Update.
5372 * record-full.c (record_full_core_xfer_partial): Update.
5373 * solib-svr4.c (svr4_relocate_section_addresses): Update.
5374 * solib-target.c (solib_target_relocate_section_addresses): Update.
5375 * symfile.c (build_section_addr_info_from_section_table): Update.
5376 * target.c (memory_xfer_live_readonly_partial): Update.
5377 (memory_xfer_partial_1): Update.
5378
5379 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5380
5381 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
5382 now available for embedded (BookE) and server (BookS) processors,
5383 correct mentions of 'booke' and adjust comments accordingly in order to
5384 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
5385 (have_ptrace_booke_interface): Rename function and variable
5386 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
5387 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
5388 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
5389 'hwdebug_point_cmp'. Update all uses.
5390 (booke_find_thread_points_by_tid): Rename function
5391 'booke_find_thread_points_by_tid' to
5392 'hwdebug_find_thread_points_by_tid'. Update all uses.
5393 (booke_insert_point): Rename function 'booke_insert_point' to
5394 'hwdebug_insert_point'. Update all uses.
5395 (booke_remove_point): Rename function 'booke_remove_point' to
5396 'hwdebug_remove_point'. Update all uses.
5397
5398 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
5399
5400 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
5401 numbers with enum values.
5402
5403 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
5404
5405 PR threads/13217
5406 * thread.c (thread_apply_all_command): Check for valid threads
5407 and thread count.
5408 (thread_array_cleanup): New struct.
5409 (set_thread_refcount): New function.
5410
5411 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
5412
5413 * infcmd.c (default_print_one_register_info): Reuse function
5414 print_hex_chars.
5415
5416 2013-07-10 Tom Tromey <tromey@redhat.com>
5417
5418 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
5419 (ada-exp.o): New target.
5420
5421 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
5422
5423 * mt-tdep.c (mt_registers_info): Call
5424 get_no_prettyformat_print_options instead of
5425 get_raw_print_options (regression by last patch from Doug
5426 Evans).
5427
5428 2013-07-09 Pedro Alves <palves@redhat.com>
5429
5430 Checked in by Joel Brobecker <brobecker@adacore.com>.
5431 * ada-lang.c (coerce_unspec_val_to_type): Use
5432 value_optimized_out_const.
5433 * value.c (value_optimized_out_const): New function.
5434 * value.h (value_optimized_out_const): New declaration.
5435
5436 2013-07-09 Doug Evans <dje@google.com>
5437
5438 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
5439 Enum values rename as well. All uses updated.
5440 * valprint.h (value_print_options): Rename member pretty to
5441 pretty format. Rename member prettyprint_arrays to
5442 prettyformat_arrays. Rename member prettyprint_structs to
5443 prettyformat_structs. All uses updated.
5444 (get_no_prettyformat_print_options): Renamed from
5445 get_raw_print_options.
5446 * valprint.c (get_no_prettyformat_print_options): Renamed from
5447 get_raw_print_options. All callers updated.
5448 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
5449 All callers updated.
5450 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
5451 All callers updated.
5452 (_initialize_valprint): Improve help text for "set print pretty" and
5453 "set print arrays".
5454
5455 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
5456
5457 * value.c (value_bits_valid): Revert previous change, and change
5458 by Pedro on 2013-07-04, due to regressions in
5459 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
5460
5461 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
5462 Pedro Alves <palves@redhat.com>
5463
5464 * value.c (value_bits_valid): If the value is not lval_computed
5465 or has no check validity handler then the answer is the
5466 optimized_out flag, otherwise defer to the handler.
5467
5468 2013-07-06 Eli Zaretskii <eliz@gnu.org>
5469
5470 * top.c (print_gdb_configuration): Explain in output of
5471 --configuration what does "relocatable" mean.
5472
5473 * main.c (print_gdb_help): Regroup options in the --help text.
5474 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
5475 the relevant discussions.
5476
5477 2013-07-06 Yao Qi <yao@codesourcery.com>
5478
5479 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
5480 Remove parameter 'lsal'.
5481 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
5482 to inner block. Caller update.
5483 (base_breakpoint_create_breakpoints_sal): Update.
5484 (bkpt_create_breakpoints_sal): Likewise.
5485 (tracepoint_create_breakpoints_sal): Likewise.
5486 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
5487 element 0 of vector 'canonical->sals'.
5488
5489 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
5490
5491 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
5492 register number instead of the pseudo register one.
5493 (rs6000_dwarf2_reg_to_regnum): Likewise.
5494
5495 2013-07-04 Pedro Alves <palves@redhat.com>
5496
5497 * findvar.c (value_of_register): Use allocate_optimized_out_value
5498 if the register has been optimized out, instead of
5499 set_value_optimized_out.
5500 * frame-unwind.c (frame_unwind_got_optimized): Use
5501 allocate_optimized_out_value.
5502
5503 2013-07-04 Pedro Alves <palves@redhat.com>
5504
5505 * value.c (value_bits_valid): If the value is not lval_computed,
5506 or doesn't have a check_validity hook, assume the value is entirely
5507 valid.
5508
5509 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5510
5511 * stack.c (read_frame_arg): No longer fetch lazy values.
5512 * value.c (value_optimized_out): If the value is not already
5513 marked optimized out, and is lazy then fetch it.
5514 (value_primitive_field): Move optimized out check to later in the
5515 function, after we have loaded any lazy values.
5516 (value_fetch_lazy): Use optimized out flag directly rather than
5517 calling optimized_out method.
5518
5519 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
5520
5521 * valops.c: Don't include "user-regs.h".
5522 (value_fetch_lazy): Moved to value.c.
5523 * value.c: Include "user-regs.h".
5524 (value_fetch_lazy): Moved from valops.c.
5525
5526 2013-07-04 Yao Qi <yao@codesourcery.com>
5527
5528 Revert:
5529 2013-06-27 Yao Qi <yao@codesourcery.com>
5530
5531 * common/create-version.sh: Update comments. Handle the case
5532 that TARGET_ALIAS is empty.
5533
5534 2013-07-03 Pedro Alves <palves@redhat.com>
5535
5536 * Makefile.in (config.status): Depend on development.sh.
5537 (aclocal_m4_deps): Add libmcheck.m4.
5538 * acinclude.m4: Include libmcheck.m4.
5539 * configure.ac: Source development.sh instead of setting
5540 'development' here. --enable-libmcheck/--disable-libmcheck code
5541 factored out to GDB_AC_LIBMCHECK. Run it.
5542 * development.sh: New file.
5543 * libmcheck.m4: New file.
5544 * configure: Regenerate.
5545
5546 2013-07-02 Tom Tromey <tromey@redhat.com>
5547
5548 * contrib/ari/update-web-ari.sh: Update for version.in change.
5549
5550 2013-07-02 Tom Tromey <tromey@redhat.com>
5551
5552 * common/ptid.h: Comment fixes.
5553
5554 2013-07-01 Tom Tromey <tromey@redhat.com>
5555
5556 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
5557 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
5558 (dwarf2_read_index, create_all_comp_units): Update.
5559
5560 2013-07-01 Tom Tromey <tromey@redhat.com>
5561
5562 * configure.ac (build_warnings): Add -Wold-style-definition.
5563 * configure: Rebuild.
5564 * machoread.c (_initialize_machoread): Use "(void)".
5565 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
5566 use "(void)".
5567
5568 2013-07-01 Tom Tromey <tromey@redhat.com>
5569
5570 * configure.ac (build_warnings): Add -Wold-style-declaration.
5571 * configure: Rebuild.
5572 * dsrec.c (make_srec): Use "static const", not "const static".
5573 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
5574 not "const static".
5575 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
5576 Use "static const", not "const static".
5577 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
5578 not "const static".
5579 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
5580 not "const static".
5581 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
5582 not "const static".
5583 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
5584 not "const static".
5585 (v850_dbtrap_breakpoint_from_pc): Likewise.
5586 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
5587 not "const static".
5588
5589 2013-07-01 Tom Tromey <tromey@redhat.com>
5590
5591 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
5592 * configure: Rebuild.
5593
5594 2013-07-01 Pedro Alves <palves@redhat.com>
5595
5596 * defs.h: Include "pathmax.h".
5597 * utils.c: Don't include sys/param.h.
5598 (gdb_realpath): Remove code that checks for MAXPATHLEN.
5599 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
5600 instead of MAXPATHLEN.
5601 * solib-sunos.c: Don't include sys/param.h.
5602 * xcoffread.c: Don't include sys/param.h.
5603 * bsd-kvm.c: Don't include sys/param.h.
5604 * darwin-nat.c: Don't include sys/param.h.
5605 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5606 * darwin-nat-info.c: Don't include sys/param.h.
5607 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
5608 MAXPATHLEN.
5609 * i386obsd-nat.c: Don't include sys/param.h.
5610 * inf-child.c: Don't include sys/param.h.
5611 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
5612 * linux-fork.c: Don't include sys/param.h.
5613 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
5614 * linux-nat.c: Don't include sys/param.h.
5615 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
5616 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
5617 * m68klinux-nat.c: Don't include sys/param.h.
5618 * nbsd-nat.c: Don't include sys/param.h.
5619 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
5620 * ppc-linux-nat.c: Don't include sys/param.h.
5621 * rs6000-nat.c: Don't include sys/param.h.
5622 * spu-linux-nat.c. Don't include sys/param.h.
5623 * windows-nat.c: Don't include sys/param.h.
5624 * xtensa-linux-nat.c: Don't include sys/param.h.
5625 * config/i386/nm-fbsd.h: Don't include sys/param.h.
5626
5627 2013-07-01 Pedro Alves <palves@redhat.com>
5628
5629 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
5630 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
5631 * gnulib/aclocal.m4: Regenerate.
5632 * gnulib/config.in: Regenerate.
5633 * gnulib/configure: Regenerate.
5634 * gnulib/import/pathmax.h: New file.
5635 * gnulib/import/Makefile.am: Regenerate.
5636 * gnulib/import/Makefile.in: Regenerate.
5637 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5638 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5639 * gnulib/import/m4/pathmax.m4: New file.
5640
5641 2013-07-01 Pedro Alves <palves@redhat.com>
5642
5643 * configure.ac (GDBINIT): Define, depending on host.
5644 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
5645 * top.c (PATH_MAX): Delete fallback definition.
5646 (GDBINIT_FILENAME): Delete.
5647 (gdbinit): Reimplement as const char array set to the GDBINIT
5648 string constant.
5649 * top.h (gdbinit): Make const.
5650 * configure, config.in: Regenerate.
5651
5652 2013-07-01 Pedro Alves <palves@redhat.com>
5653
5654 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
5655 * cli/cli-cmds.h (source_script): Likewise.
5656 * exceptions.c (catch_command_errors_const): New function.
5657 * exceptions.h (catch_command_errors_const): Declare.
5658 * main.c (get_init_files): Make parameters const, and adjust.
5659 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
5660 'local_gdbinit' locals const. Adjust to use
5661 catch_command_errors_const.
5662 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
5663 'local_gdbinit' locals const.
5664
5665 2013-07-01 Pedro Alves <palves@redhat.com>
5666
5667 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
5668 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
5669 * tracepoint.c: Don't check HAVE_UNISTD_H before including
5670 <unistd.h>.
5671
5672 2013-07-01 Pedro Alves <palves@redhat.com>
5673
5674 Import the "unistd" gnulib module.
5675 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
5676 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
5677 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
5678 import/m4/unistd_h.m4.
5679 * gnulib/aclocal.m4: Renenerate.
5680 * gnulib/config.in: Renenerate.
5681 * gnulib/configure: Renenerate.
5682 * gnulib/import/Makefile.am: Renenerate.
5683 * gnulib/import/Makefile.in: Renenerate.
5684 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
5685 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
5686 * gnulib/import/m4/off_t.m4: New file.
5687 * gnulib/import/m4/ssize_t.m4: New file.
5688 * gnulib/import/m4/sys_types_h.m4: New file.
5689 * gnulib/import/m4/unistd_h.m4: New file.
5690 * gnulib/import/sys_types.in.h: New file.
5691 * gnulib/import/unistd.c: New file.
5692 * gnulib/import/unistd.in.h: New file.
5693
5694 2013-07-01 Pedro Alves <palves@redhat.com>
5695
5696 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
5697 defined instead of checking HAVE_UNISTD_H.
5698
5699 2013-07-01 Pedro Alves <palves@redhat.com>
5700
5701 Reimport gnulib from scratch.
5702 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
5703 import/m4/onceonly.m4.
5704 * gnulib/aclocal.m4: Renegerate.
5705 * gnulib/config.in: Renegerate.
5706 * gnulib/configure: Renegerate.
5707 * gnulib/import/Makefile.in: Renegerate.
5708 * gnulib/import/extra/update-copyright: Renegerate.
5709 * gnulib/import/m4/onceonly.m4: Delete.
5710
5711 2013-07-01 Pedro Alves <palves@redhat.com>
5712
5713 * tui/tui-regs.c (pagination_enabled): Delete declaration.
5714
5715 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5716
5717 Code cleanup.
5718 * remote.c (async_remote_interrupt_twice): Make it static.
5719 * remote.h (async_remote_interrupt_twice): Remove the declaration.
5720
5721 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
5722
5723 * ia64-linux-tdep.c: Include <ctype.h>.
5724 (ia64_linux_stap_is_single_operand): New function.
5725 (ia64_linux_init_abi): Initialize SystemTap related attributes.
5726
5727 2013-06-28 Tom Tromey <tromey@redhat.com>
5728
5729 * Makefile.in (version.c): Use version.in, not
5730 common/version.in.
5731 * common/create-version.sh: Likewise.
5732 * common/version.in: Move...
5733 * version.in: ...here.
5734
5735 2013-06-28 Pedro Alves <palves@redhat.com>
5736
5737 * infrun.c (set_observer_mode): Don't declare pagination_enabled
5738 here.
5739 * utils.h (pagination_enabled): Declare.
5740
5741 2013-06-28 Pedro Alves <palves@redhat.com>
5742
5743 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
5744 Move higher up in file.
5745
5746 2013-06-28 Tom Tromey <tromey@redhat.com>
5747
5748 * tracepoint.c (deprecated_readline_begin_hook)
5749 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
5750 declare.
5751
5752 2013-06-28 Pedro Alves <palves@redhat.com>
5753
5754 PR tui/14880
5755 * tui/tui-regs.c (tui_get_register): Fetch value contents before
5756 checking if they're available.
5757 * value.c (value_available_contents_eq): Change comment.
5758 * value.h (value_available_contents_eq): Expand comment.
5759
5760 2013-06-27 Tom Tromey <tromey@redhat.com>
5761
5762 * target.c (find_run_target): Remove.
5763 * target.h (find_run_target): Remove.
5764
5765 2013-06-27 Tom Tromey <tromey@redhat.com>
5766
5767 * corelow.c (core_gdbarch): Now static.
5768
5769 2013-06-27 Tom Tromey <tromey@redhat.com>
5770
5771 * target.c (target_struct_index): Remove.
5772
5773 2013-06-27 Pedro Alves <palves@redhat.com>
5774
5775 * infrun.c: Remove comment describing the 'stepping over runtime
5776 loader dynamic symbol resolution code' mechanism; moved to
5777 gdbint.texinfo.
5778
5779 2013-06-27 Pedro Alves <palves@redhat.com>
5780
5781 * exceptions.c (catch_command_errors): Remove spurious space.
5782 * exceptions.h (catch_command_errors): Second parameter is "arg",
5783 not "command".
5784
5785 2013-06-27 Yao Qi <yao@codesourcery.com>
5786
5787 * common/create-version.sh: Update comments. Handle the case
5788 that TARGET_ALIAS is empty.
5789
5790 2013-06-26 Pedro Alves <palves@redhat.com>
5791
5792 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
5793 comment.
5794
5795 2013-06-26 Pedro Alves <palves@redhat.com>
5796
5797 * infrun.c: Update comments on stepping over runtime loader
5798 dynamic symbol resolution code.
5799
5800 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
5801
5802 * ax-gdb.h (union exp_element): Forward declare.
5803 * parser-defs.h: Include expression.h.
5804
5805 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5806
5807 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
5808
5809 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5810
5811 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
5812
5813 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
5814
5815 Fix trace-status to output proper start-time and stop-time.
5816 * tracepoint.c (trace_status_command): Fix type of printf arg to
5817 prevent improper type conversion.
5818 (trace_status_mi): Likewise.
5819
5820 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5821
5822 * mips-tdep.c (mips_next_pc): Fix a typo.
5823
5824 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
5825
5826 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
5827
5828 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5829 Yao Qi <yao@codesourcery.com>
5830
5831 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
5832 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
5833 * mi/mi-main.c (print_variable_or_computed): New function.
5834 (mi_cmd_trace_frame_collected): New function.
5835 * tracepoint.c (find_trace_state_variable_by_number): New.
5836 (struct traceframe_info): Move to tracepoint.h
5837 (struct collection_list): Likewise.
5838 (do_collect_symbol): Include locals and arguments in the
5839 collected variables list.
5840 (clear_collection_list): Clear wholly collected variables list
5841 and computed variables list.
5842 (append_exp): New function.
5843 (encode_actions_1): Include variables in the wholly
5844 collected variables list. Include memory ranges and
5845 full-fledged expressions in the computed expressions list.
5846 (encode_actions): Move some code to ...
5847 Return the cleanup chain.
5848 (encode_actions_rsp): ... here. New function.
5849 (get_traceframe_location, get_traceframe_info): Remove static.
5850 * tracepoint.h (struct memrange): Moved from tracepoint.c.
5851 (struct collection_list): Moved from tracepoint.c. Add two
5852 new fields 'wholly_collected' and 'computed'.
5853 (find_trace_state_variable_by_number): Declare.
5854 (encode_actions): Adjust declaration.
5855 (encode_actions_rsp): Declare.
5856 (get_traceframe_info, get_traceframe_location): Declare.
5857
5858 * NEWS: Mention new MI command -trace-frame-collected.
5859
5860 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5861 Yao Qi <yao@codesourcery.com>
5862
5863 * ctf.c (ctf_traceframe_info): Push trace state variables
5864 present in the trace data into the traceframe info object.
5865 * breakpoint.c (DEF_VEC_I): Remove.
5866 * common/filestuff.c (DEF_VEC_I): Likewise.
5867 * dwarf2loc.c (DEF_VEC_I): Likewise.
5868 * mi/mi-main.c (DEF_VEC_I): Likewise.
5869 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
5870 * features/traceframe-info.dtd: Add tvar element and its
5871 attributes.
5872 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
5873 (build_traceframe_info): Push trace state variables present in
5874 the trace data into the traceframe info object.
5875 (traceframe_info_start_tvar): New function.
5876 (tvar_attributes): New.
5877 (traceframe_info_children): Add "tvar" element.
5878 * tracepoint.h (struct traceframe_info) <tvars>: New field.
5879
5880 * NEWS: Mention the change in GDB and GDBserver.
5881
5882 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5883 Yao Qi <yao@codesourcery.com>
5884
5885 * tracepoint.c (trace_dump_command): Move code to ...
5886 (get_traceframe_location): ... here. New.
5887
5888 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5889 Yao Qi <yao@codesourcery.com>
5890
5891 * tracepoint.c (trace_dump_command): GDB emits an error
5892 instead of a warning when a traceframe is not selected.
5893
5894 2013-06-26 Pedro Alves <pedro@codesourcery.com>
5895 Yao Qi <yao@codesourcery.com>
5896
5897 * tracepoint.c (tracepoint_list, stepping_list): Remove.
5898 (clear_collection_list): Free fields 'aexpre_list' and 'list'
5899 in collection_list.
5900 (do_clear_collection_list, init_collection_list): New.
5901 (encode_actions): Add local variables 'tracepoint_list' and
5902 'stepping_list'. Call init_collection_list and make cleanup
5903 which calls do_clear_collection_list. Don't call
5904 clear_collection_list.
5905 (_initialize_tracepoint): Delete references to
5906 'tracepoint_list' and 'stepping_list'.
5907
5908 2013-06-25 Tom Tromey <tromey@redhat.com>
5909
5910 * common/create-version.sh (date): Use "$", not "$$" in sed
5911 expression.
5912
5913 2013-06-25 Kevin Buettner <kevinb@redhat.com>
5914
5915 * NEWS (New targets): Add entry for TI MSP430.
5916
5917 2013-06-25 Yao Qi <yao@codesourcery.com>
5918
5919 * remote.c (remote_start_remote): Move code to upload tsv
5920 earlier.
5921
5922 2013-06-25 Yao Qi <yao@codesourcery.com>
5923 Hui Zhu <hui@codesourcery.com>
5924 Pedro Alves <palves@redhat.com>
5925
5926 PR breakpoints/15075
5927 PR breakpoints/15434
5928 * breakpoint.c (bpstat_stop_status): Call
5929 b->ops->after_condition_true.
5930 (update_dprintf_command_list): Don't append "continue" command
5931 to the command list of dprintf breakpoint.
5932 (base_breakpoint_after_condition_true): New function.
5933 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
5934 (dprintf_after_condition_true): New function.
5935 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
5936 * breakpoint.h (breakpoint_ops): Add after_condition_true.
5937
5938 2013-06-24 Kevin Buettner <kevinb@redhat.com>
5939
5940 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
5941 (ALLDEPFILES): Add msp430-tdep.c.
5942 * configure.tgt (msp430*-*-elf): New target.
5943 * msp430-tdep.c: New file.
5944
5945 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5946
5947 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
5948 microMIPS synthetic symbols.
5949
5950 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
5951
5952 * objfiles.h (pc_in_section): New prototype.
5953 (in_plt_section): Remove name argument, replace prototype with
5954 static inline function.
5955 * mips-tdep.h: Include "objfiles.h".
5956 (in_mips_stubs_section): New function.
5957 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
5958 in_solib_call_trampoline member.
5959 (hppa_in_solib_call_trampoline): Remove name argument.
5960 * objfiles.c (pc_in_section): New function.
5961 (in_plt_section): Remove function.
5962 * mips-linux-tdep.c: Include "objfiles.h".
5963 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
5964 name argument. Return 1 rather than the low 16-bit halfword of
5965 any instruction examined.
5966 (mips_linux_in_dynsym_resolve_code): Update
5967 mips_linux_in_dynsym_stub call accordingly.
5968 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
5969 rather than an equivalent hand-coded sequence.
5970 * hppa-hpux-tdep.c (in_opd_section): Remove function.
5971 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
5972 (hppa64_hpux_in_solib_call_trampoline): Likewise.
5973 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
5974 in_opd_section.
5975 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
5976 on call to tdep->in_solib_call_trampoline.
5977 (hppa_in_solib_call_trampoline): Remove name argument, update
5978 according to in_plt_section change.
5979 (hppa_skip_trampoline_code): Update according to in_plt_section
5980 change.
5981 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
5982 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
5983 Likewise.
5984 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
5985 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5986 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5987 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
5988 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
5989 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
5990 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
5991 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
5992 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
5993 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
5994 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
5995 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
5996 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
5997
5998 2013-06-24 Joel Brobecker <brobecker@adacore.com>
5999
6000 * common/create-version.sh: Fix expansion of $host_alias
6001 and $target_alias in generation of HOST_NAME and TARGET_NAME
6002 (resp.).
6003
6004 2013-06-24 Tom Tromey <tromey@redhat.com>
6005
6006 * common/create-version.sh: New file.
6007 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
6008 create-version.sh.
6009 (HFILES_NO_SRCDIR): Use common/version.h.
6010 * version.in: Move to ...
6011 * common/version.in: ... here. Replace date with "DATE".
6012 * version.h: Move to ...
6013 * common/version.h: ... here.
6014
6015 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6016
6017 * gdb/gnulib/Makefile.in: Update date in copyright header.
6018 * gdb/gnulib/configure.ac: Ditto.
6019 * gdb/gnulib/update-gnulib.sh: Ditto.
6020
6021 2013-06-21 Joel Brobecker <brobecker@adacore.com>
6022
6023 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
6024 "gdb/gnulib/import".
6025
6026 2013-06-21 Will Newton <will.newton@linaro.org>
6027
6028 * doublest.c (ldfrexp): Remove function.
6029 (convert_doublest_to_floatformat): Call frexpl instead of
6030 ldfrexp.
6031
6032 2013-06-21 Will Newton <will.newton@linaro.org>
6033
6034 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
6035 * gnulib/aclocal.m4: Regenerate.
6036 * gnulib/config.in: Regenerate.
6037 * gnulib/configure: Regenerate.
6038 * gnulib/import/Makefile.am: Update.
6039 * gnulib/import/Makefile.in: Update.
6040 * gnulib/import/m4/gnulib-cache.m4: Update.
6041 * gnulib/import/m4/gnulib-comp.m4: Update.
6042 * gnulib/import/float+.h: Import.
6043 * gnulib/import/float.c: Import.
6044 * gnulib/import/float.in.h: Import.
6045 * gnulib/import/fpucw.h: Import.
6046 * gnulib/import/frexp.c: Import.
6047 * gnulib/import/frexpl.c: Import.
6048 * gnulib/import/isnan.c: Import.
6049 * gnulib/import/isnand-nolibm.h: Import.
6050 * gnulib/import/isnand.c: Import.
6051 * gnulib/import/isnanl-nolibm.h: Import.
6052 * gnulib/import/isnanl.c: Import.
6053 * gnulib/import/itold.c: Import.
6054 * gnulib/import/m4/exponentd.m4: Import.
6055 * gnulib/import/m4/exponentl.m4: Import.
6056 * gnulib/import/m4/float_h.m4: Import.
6057 * gnulib/import/m4/fpieee.m4: Import.
6058 * gnulib/import/m4/frexp.m4: Import.
6059 * gnulib/import/m4/frexpl.m4: Import.
6060 * gnulib/import/m4/isnand.m4: Import.
6061 * gnulib/import/m4/isnanl.m4: Import.
6062 * gnulib/import/m4/math_h.m4: Import.
6063 * gnulib/import/math.c: Import.
6064 * gnulib/import/math.in.h: Import.
6065
6066 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6067
6068 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
6069 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
6070 signature_INTEL_edx comparisons.
6071
6072 2013-06-20 Doug Evans <dje@google.com>
6073
6074 symtab/15652
6075 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
6076 All callers updated.
6077 (open_dwp_file): If we can't find the dwp file, search the basename
6078 in debug-file-directory.
6079
6080 * dwarf2read.c (struct dwp_file): Fix comment.
6081 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
6082
6083 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
6084 better.
6085
6086 2013-06-20 Yao Qi <yao@codesourcery.com>
6087
6088 * breakpoint.c (create_breakpoint): Fix code indentation.
6089
6090 2013-06-20 Yao Qi <yao@codesourcery.com>
6091
6092 * breakpoint.c (create_breakpoints_sal_default): Remove
6093 parameter 'lsal'. Update declaration.
6094 (bkpt_create_breakpoints_sal): Caller update.
6095 (tracepoint_create_breakpoints_sal): Likewise.
6096
6097 2013-06-20 Pedro Alves <pedro@codesourcery.com>
6098 Yao Qi <yao@codesourcery.com>
6099
6100 * NEWS: Mention the new option '--skip-unavailable' of command
6101 -data-list-register-values.
6102 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
6103 --skip-unavailable option. Adjust to use output_register.
6104 (output_register): Add new 'skip_unavailable' parameter.
6105 Handle it.
6106
6107 2013-06-19 Mike Frysinger <vapier@gentoo.org>
6108
6109 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
6110 common/i386-gcc-cpuid.h.
6111 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
6112 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
6113 Copy the latest version from upstream gcc.
6114 * common/linux-btrace.c: Include i386-cpuid.h.
6115 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
6116 call to i386_cpuid.
6117 (cpu_supports_btrace): Likewise.
6118 * go32-nat.c: Include i386-cpuid.h.
6119 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
6120
6121 2013-06-19 Doug Evans <dje@google.com>
6122
6123 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
6124 (get_section_index): Ditto.
6125
6126 2013-06-19 Tom Tromey <tromey@redhat.com>
6127
6128 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
6129 "dprintf" help.
6130
6131 2013-06-18 Doug Evans <dje@google.com>
6132
6133 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
6134 before using it.
6135 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
6136 Move test of cu_index closer to use. Print complaint if cu_index
6137 is bad.
6138
6139 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6140
6141 * machoread.c (oso_vector): Delete this global.
6142 (macho_register_oso): Add new parameter "oso_vector_ptr".
6143 Use it instead of the "oso_vector" global.
6144 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
6145 (macho_symfile_read): Use a local oso_vector, to be free'ed
6146 at the end of this function, in place of the old "oso_vector"
6147 global. Update various function calls accordingly. Use one
6148 single cleanup chain for the entire function.
6149
6150 2013-06-18 Joel Brobecker <brobecker@adacore.com>
6151
6152 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
6153 DWARF2_PER_OBJFILE by uses of DATA instead.
6154
6155 2013-06-18 Tom Tromey <tromey@redhat.com>
6156
6157 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
6158 argument.
6159 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
6160 Special case signals other than GDB_SIGNAL_TRAP.
6161 (explains_signal_watchpoint): New function.
6162 (base_breakpoint_explains_signal): Add 'sig' argument.
6163 (initialize_breakpoint_ops): Set 'explains_signal' method for
6164 watchpoints.
6165 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
6166 signal argument.
6167 (bpstat_explains_signal): Likewise.
6168 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
6169
6170 2013-06-18 Tom Tromey <tromey@redhat.com>
6171
6172 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
6173
6174 2013-06-18 Tom Tromey <tromey@redhat.com>
6175
6176 * python/python.c (finish_python_initialization): Decref
6177 'pythondir' on failure path as well.
6178
6179 2013-06-18 Tom Tromey <tromey@redhat.com>
6180
6181 PR symtab/15391:
6182 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
6183 after taking bits_to_skip into account. Sign extend byte_offset.
6184 * utils.h (gdb_sign_extend): Declare.
6185 * utils.c (gdb_sign_extend): New function.
6186
6187 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6188
6189 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
6190
6191 2013-06-17 Pierre Muller <muller@sourceware.org>
6192
6193 * corelow.c (core_open): Print GDB signal name instead of target
6194 signal number.
6195
6196 2013-06-17 Mike Frysinger <vapier@gentoo.org>
6197
6198 * .gitignore: Add /gcore.
6199
6200 2013-06-13 Doug Evans <dje@google.com>
6201
6202 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
6203 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
6204
6205 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
6206
6207 * stack.c (backtrace_command_1): Fix indentation.
6208
6209 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6210
6211 * window-nat.c (thread_rec): Add missing empty line after
6212 local variable declaration.
6213
6214 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6215
6216 * windows-nat.c (thread_rec): Revert format used to print
6217 error code returned by SuspendThread from %d back to %u.
6218
6219 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6220
6221 * windows-nat.c (windows_continue): Add "0x" prefix for thread
6222 ID in debug trace.
6223 (get_windows_debug_event): Likewise, for all debug traces.
6224
6225 2013-06-11 Joel Brobecker <brobecker@adacore.com>
6226
6227 * window-nat.c (thread_rec): Add thread ID in SuspendThread
6228 warning message.
6229
6230 2013-06-08 Pedro Alves <pedro@codesourcery.com>
6231 Yao Qi <yao@codesourcery.com>
6232
6233 * mi/mi-main.c (get_register): Remove declaration.
6234 (output_register): Declare.
6235 (mi_cmd_data_list_register_values): Remove local variable
6236 'tuple_cleanup'. Move some code into output_register.
6237 (get_register): Renamed to ...
6238 (output_register): ... this. Output the register's
6239 "number" ui_out tuple here.
6240
6241 2013-06-07 Pedro Alves <palves@redhat.com>
6242
6243 * darwin-nat.c: Fix formating in copyright header.
6244 * darwin-nat.h: Likewise.
6245 * gnu-nat.c: Likewise.
6246 * machoread.c: Likewise.
6247
6248 2013-06-07 Pedro Alves <palves@redhat.com>
6249
6250 PR server/14823
6251 * regformats/regdat.sh: Output #include tdesc.h. Make globals
6252 static. Output a global target description pointer.
6253 (init_registers_${name}): Adjust to initialize a
6254 target description structure.
6255
6256 2013-06-07 Will Newton <will.newton@linaro.org>
6257
6258 * printcmd.c (build_address_symbolic): Call
6259 gdbarch_addr_bits_remove for text minimal symbols.
6260
6261 2013-06-07 Will Newton <will.newton@linaro.org>
6262
6263 * MAINTAINERS: Add myself to Write After Approval.
6264
6265 2013-06-07 Yao Qi <yao@codesourcery.com>
6266
6267 * tracepoint.c (start_tracing): Move code to ...
6268 (trace_reset_local_state): ... here. New.
6269 (disconnect_tracing): Don't call set_current_traceframe,
6270 set_tracepoint_num, and set_traceframe_context. Call
6271 trace_reset_local_state instead.
6272 (tfile_close): Call trace_reset_local_state.
6273 * ctf.c (ctf_close): Likewise.
6274 * remote.c (remote_close): Likewise.
6275 * tracepoint.h (trace_reset_local_state): Declare.
6276
6277 2013-06-06 Doug Evans <dje@google.com>
6278
6279 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
6280 and fix header docs.
6281
6282 2013-06-05 Doug Evans <dje@google.com>
6283 Keith Seitz <keiths@redhat.com>
6284
6285 PR 15519
6286 * cp-namespace.c (find_symbol_in_baseclass): Call
6287 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
6288 Check result of call to lookup_symbol_static.
6289 Call lookup_static_symbol_aux unconditionally.
6290 Call check_typedef on base types before accessing them.
6291 (cp_lookup_nested_symbol): Fix comment.
6292
6293 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
6294
6295 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
6296 minimal symbols pointing to function descriptors.
6297
6298 2013-06-05 Tom Tromey <tromey@redhat.com>
6299
6300 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
6301
6302 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
6303 Pedro Alves <palves@redhat.com>
6304
6305 * remote.c (remote_wait_as): Restore signal handler before returning
6306 when GDB gets a notification.
6307
6308 2013-06-04 Gary Benson <gbenson@redhat.com>
6309
6310 PR 2328
6311 * breakpoint.h (handle_solib_event): Moved function declaration
6312 to solib.h.
6313 * breakpoint.c (handle_solib_event): Moved function to solib.c.
6314 (bpstat_stop_status): Pass new argument to handle_solib_event.
6315 * solib.h (update_solib_breakpoints): New function declaration.
6316 (handle_solib_event): Moved function declaration from
6317 breakpoint.h.
6318 * solib.c (update_solib_breakpoints): New function.
6319 (handle_solib_event): Moved function from breakpoint.c.
6320 Updated to call solib_ops->handle_event if not NULL.
6321 * solist.h (target_so_ops): New fields "update_breakpoints" and
6322 "handle_event".
6323 * infrun.c (set_stop_on_solib_events): New function.
6324 (_initialize_infrun): Use the above for "set
6325 stop-on-solib-events".
6326 (handle_inferior_event): Pass new argument to handle_solib_event.
6327 * solib-svr4.c (probe.h): New include.
6328 (svr4_free_library_list): New forward declaration.
6329 (probe_action): New enum.
6330 (probe_info): New struct.
6331 (probe_info): New static variable.
6332 (NUM_PROBES): New definition.
6333 (svr4_info): New fields "using_xfer", "probes_table" and
6334 "solib_list".
6335 (free_probes_table): New function.
6336 (free_solib_list): New function.
6337 (svr4_pspace_data_cleanup): Free probes table and solib list.
6338 (svr4_copy_library_list): New function.
6339 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
6340 (svr4_read_so_list): New parameter "prev_lm".
6341 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
6342 (svr4_current_sos): New function.
6343 (probe_and_action): New struct.
6344 (hash_probe_and_action): New function.
6345 (equal_probe_and_action): Likewise.
6346 (register_solib_event_probe): Likewise.
6347 (solib_event_probe_at): Likewise.
6348 (solib_event_probe_action): Likewise.
6349 (solist_update_full): Likewise.
6350 (solist_update_incremental): Likewise.
6351 (disable_probes_interface_cleanup): Likewise.
6352 (svr4_handle_solib_event): Likewise.
6353 (svr4_update_solib_event_breakpoint): Likewise.
6354 (svr4_update_solib_event_breakpoints): Likewise.
6355 (svr4_create_solib_event_breakpoints): Likewise.
6356 (enable_break): Free probes table before creating breakpoints.
6357 Use svr4_create_solib_event_breakpoints to create breakpoints.
6358 (svr4_solib_create_inferior_hook): Free the solib list.
6359 (_initialize_svr4_solib): Initialise
6360 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
6361
6362 2013-06-04 Gary Benson <gbenson@redhat.com>
6363
6364 * target.h (target_ops): New field
6365 "to_augmented_libraries_svr4_read".
6366 (target_augmented_libraries_svr4_read): New macro.
6367 * target.c (update_current_target): Handle
6368 to_augmented_libraries_svr4_read.
6369 * remote.c (remote_state): New field
6370 "augmented_libraries_svr4_read".
6371 (remote_augmented_libraries_svr4_read_feature): New function.
6372 (remote_protocol_features): Add entry for
6373 "augmented-libraries-svr4-read".
6374 (remote_augmented_libraries_svr4_read): New function.
6375 (init_remote_ops): Initialize
6376 remote_ops.to_augmented_libraries_svr4_read.
6377
6378 2013-06-04 Gary Benson <gbenson@redhat.com>
6379
6380 * NEWS: Update.
6381
6382 2013-06-04 Gary Benson <gbenson@redhat.com>
6383
6384 * objfiles.h (inhibit_section_map_updates): New function
6385 declaration.
6386 (resume_section_map_updates): Likewise.
6387 (resume_section_map_updates_cleanup): Likewise.
6388 * objfiles.c (objfile_pspace_info): Removed field
6389 "objfiles_changed_p". New fields "new_objfiles_available",
6390 "section_map_dirty" and "inhibit_updates".
6391 (allocate_objfile): Set new_objfiles_available.
6392 (free_objfile): Set section_map_dirty.
6393 (objfile_relocate1): Likewise.
6394 (in_plt_section): Likewise.
6395 (find_pc_section): Update the conditions under which the
6396 section map will be updated.
6397 (inhibit_section_map_updates): New function.
6398 (resume_section_map_updates): Likewise.
6399 (resume_section_map_updates_cleanup): Likewise.
6400
6401 2013-06-04 Gary Benson <gbenson@redhat.com>
6402
6403 * probe.h (get_probe_argument_count): New declaration.
6404 (evaluate_probe_argument): Likewise.
6405 * probe.c (get_probe_argument_count): New function.
6406 (evaluate_probe_argument): Likewise.
6407 (probe_safe_evaluate_at_pc): Use the above new functions.
6408
6409 2013-06-04 Alan Modra <amodra@gmail.com>
6410
6411 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
6412 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
6413 (ppc_insns_match_pattern): Add frame param. Avoid multiple
6414 target mem reads on optional insns.
6415 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
6416 ppc_insns_match_pattern calls.
6417 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
6418 Add match for power7 thread safety insns, and new order of
6419 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
6420 invocation in comment, and update rest of comment.
6421 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
6422 PPC64_STANDARD_LINKAGE3_LEN): Delete.
6423 (ppc64_standard_linkage2_target): Update insn offsets.
6424 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
6425 stubs first. Update calls.
6426
6427 2013-06-04 Yao Qi <yao@codesourcery.com>
6428
6429 * solib.c (solib_find): Don't need dir separator if path has
6430 drive spec.
6431
6432 2013-06-03 Joel Brobecker <brobecker@adacore.com>
6433
6434 Revert (indirectly causes a SIGSEGV):
6435 * machoread.c (macho_symfile_read): Assign first cleanup to
6436 'back_to'.
6437
6438 2013-06-03 Yao Qi <yao@codesourcery.com>
6439
6440 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
6441 mi-parse.c. Make them static.
6442 (mi_all_values): Likewise.
6443 (mi_parse_values_option): Move to mi-parse.c. Rename it to
6444 mi_parse_print_values. Make it external.
6445 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
6446 Remove the declarations.
6447 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
6448 * mi/mi-parse.h (mi_parse_print_values): Declare.
6449 * mi/mi-cmd-stack.c: Include mi-parse.h.
6450 (parse_print_values): Remove
6451 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
6452 of parse_print_values.
6453 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
6454
6455 2013-05-31 Pedro Alves <pedro@codesourcery.com>
6456 Yao Qi <yao@codesourcery.com>
6457
6458 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
6459 (encode_actions): Move code to ...
6460 (all_tracepoint_actions_and_cleanup): ... here. New.
6461 (trace_dump_command): Likewise.
6462
6463 2013-05-30 Tom Tromey <tromey@redhat.com>
6464
6465 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
6466
6467 2013-05-30 Tom Tromey <tromey@redhat.com>
6468
6469 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
6470 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
6471 'old_chain' argument. Add 'parser_result' argument.
6472 (gdb_xml_create_parser_and_cleanup): Remove old version.
6473 (gdb_xml_parse_quick): Update.
6474 (xml_process_xincludes): Update.
6475 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
6476 declare.
6477
6478 2013-05-30 Tom Tromey <tromey@redhat.com>
6479
6480 * probe.c (collect_probes): Check arguments for NULL before
6481 calling compile_rx_or_error.
6482 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
6483 Remove NULL return.
6484
6485 2013-05-30 Tom Tromey <tromey@redhat.com>
6486
6487 * infrun.c (adjust_pc_after_break): Introduce an outer null
6488 cleanup.
6489
6490 2013-05-30 Tom Tromey <tromey@redhat.com>
6491
6492 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
6493
6494 2013-05-30 Tom Tromey <tromey@redhat.com>
6495
6496 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
6497 for 'old_chain'. Do not check 'head' before processing
6498 cleanups.
6499
6500 2013-05-30 Tom Tromey <tromey@redhat.com>
6501
6502 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
6503 "cleanup_tuple".
6504
6505 2013-05-30 Tom Tromey <tromey@redhat.com>
6506
6507 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
6508 inner scope. Unconditionally call do_cleanups.
6509
6510 2013-05-30 Tom Tromey <tromey@redhat.com>
6511
6512 * source.c (find_and_open_source): Call do_cleanups.
6513
6514 2013-05-30 Tom Tromey <tromey@redhat.com>
6515
6516 * linux-thread-db.c (thread_db_load_search): Unconditionally
6517 call do_cleanups.
6518
6519 2013-05-30 Tom Tromey <tromey@redhat.com>
6520
6521 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
6522 for 'cleanup'; instead use a later one.
6523
6524 2013-05-30 Tom Tromey <tromey@redhat.com>
6525
6526 * python/py-breakpoint.c (bppy_get_commands): Use
6527 explicit, unconditional return.
6528 * python/py-frame.c (frapy_read_var): Likewise.
6529 * python/python.c (gdbpy_decode_line): Likewise.
6530
6531 2013-05-30 Tom Tromey <tromey@redhat.com>
6532
6533 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
6534 do_cleanups on all return paths.
6535
6536 2013-05-30 Tom Tromey <tromey@redhat.com>
6537
6538 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
6539
6540 2013-05-30 Tom Tromey <tromey@redhat.com>
6541
6542 * stabsread.c (read_struct_type): Call do_cleanups along
6543 all return paths.
6544
6545 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
6546
6547 * mips-linux-tdep.c: Adjust formatting throughout.
6548
6549 2013-05-30 Tom Tromey <tromey@redhat.com>
6550
6551 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
6552 along all return paths.
6553
6554 2013-05-30 Tom Tromey <tromey@redhat.com>
6555
6556 * symfile.c (find_separate_debug_file): Call do_cleanups
6557 along all return paths.
6558
6559 2013-05-30 Tom Tromey <tromey@redhat.com>
6560
6561 * symtab.c (search_symbols): Introduce a null cleanup for
6562 'retval_chain'.
6563
6564 2013-05-30 Tom Tromey <tromey@redhat.com>
6565
6566 * python/py-value.c (valpy_binop): Call do_cleanups before
6567 exiting loop.
6568
6569 2013-05-30 Tom Tromey <tromey@redhat.com>
6570
6571 * python/py-prettyprint.c (print_children): Remove extra
6572 do_cleanups call.
6573
6574 2013-05-30 Tom Tromey <tromey@redhat.com>
6575
6576 * python/py-frame.c (frapy_read_var): Call do_cleanups along
6577 all return paths.
6578
6579 2013-05-30 Tom Tromey <tromey@redhat.com>
6580
6581 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
6582 along all return paths.
6583
6584 2013-05-30 Tom Tromey <tromey@redhat.com>
6585
6586 * cli/cli-logging.c (set_logging_redirect): Unconditionally
6587 call do_cleanups.
6588
6589 2013-05-30 Tom Tromey <tromey@redhat.com>
6590
6591 * varobj.c (c_value_of_root): Call do_cleanups along all
6592 return paths.
6593
6594 2013-05-30 Tom Tromey <tromey@redhat.com>
6595
6596 * tracepoint.c (trace_dump_command): Unconditionally call
6597 do_cleanups.
6598
6599 2013-05-30 Tom Tromey <tromey@redhat.com>
6600
6601 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
6602 do_cleanups earlier.
6603
6604 2013-05-30 Tom Tromey <tromey@redhat.com>
6605
6606 * machoread.c (macho_symfile_read): Assign first cleanup to
6607 'back_to'.
6608
6609 2013-05-30 Tom Tromey <tromey@redhat.com>
6610
6611 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
6612
6613 2013-05-30 Tom Tromey <tromey@redhat.com>
6614
6615 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
6616
6617 2013-05-30 Tom Tromey <tromey@redhat.com>
6618
6619 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
6620 call discard_cleanups.
6621 (inf_ptrace_attach): Likewise.
6622
6623 2013-05-30 Tom Tromey <tromey@redhat.com>
6624
6625 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
6626 return paths.
6627 (mips_initialize): Likewise.
6628 (common_open): Call do_cleanups.
6629
6630 2013-05-30 Tom Tromey <tromey@redhat.com>
6631
6632 * utils.c (internal_vproblem): Call do_cleanups.
6633
6634 2013-05-30 Tom Tromey <tromey@redhat.com>
6635
6636 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
6637
6638 2013-05-30 Tom Tromey <tromey@redhat.com>
6639
6640 * cli/cli-script.c (setup_user_args): Don't return after error.
6641
6642 2013-05-30 Tom Tromey <tromey@redhat.com>
6643
6644 * somread.c (som_symtab_read): Call do_cleanups.
6645
6646 2013-05-30 Tom Tromey <tromey@redhat.com>
6647
6648 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
6649
6650 2013-05-30 Tom Tromey <tromey@redhat.com>
6651
6652 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
6653 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
6654 * interps.c (interpreter_exec_cmd): Call do_cleanups.
6655 * source.c (show_substitute_path_command): Call do_cleanups.
6656 (unset_substitute_path_command, set_substitute_path_command):
6657 Likewise.
6658 * symfile.c (load_command): Call do_cleanups.
6659
6660 2013-05-30 Tom Tromey <tromey@redhat.com>
6661
6662 * contrib/cleanup_check.py: New file.
6663 * contrib/gcc-with-excheck: Add option parsing.
6664
6665 2013-05-30 Joel Brobecker <brobecker@adacore.com>
6666
6667 * windows-nat.c (windows_delete_thread): Add missing space
6668 in cast expression.
6669
6670 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6671
6672 * inferior.c (top level): Include tilde.h.
6673 (add_inferior_command): Call tilde_expand on the value of 'exec'
6674 argument.
6675
6676 2013-05-30 Pedro Alves <pedro@codesourcery.com>
6677 Yao Qi <yao@codesourcery.com>
6678
6679 * tracepoint.c (encode_actions_1): Remove parameter 't'.
6680 Caller update.
6681 (encode_actions): Likewise.
6682 * remote.c (remote_download_tracepoint): Caller update.
6683 * tracepoint.h (encode_actions): Update declaration.
6684
6685 2013-05-30 Pedro Alves <palves@redhat.com>
6686
6687 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
6688 pointer.
6689
6690 2013-05-30 Yao Qi <yao@codesourcery.com>
6691
6692 * remote.c (remote_check_symbols): Remove unused parameter
6693 'objfile'.
6694 Declaration update.
6695 (remote_start_remote, remote_new_objfile): Caller update.
6696
6697 2013-05-30 Yao Qi <yao@codesourcery.com>
6698
6699 * mi/mi-cmds.c (mi_cmds): Define MI command
6700 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
6701 DEF_MI_CMD_CLI.
6702
6703 2013-05-29 Pedro Alves <palves@redhat.com>
6704
6705 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
6706 (remote_insert_watchpoint, remote_remove_watchpoint)
6707 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6708 (remote_verify_memory, compare_sections_command)
6709 (remote_search_memory): Set the general process/thread on the
6710 remote side.
6711
6712 2013-05-29 Pedro Alves <palves@redhat.com>
6713
6714 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
6715 (_initialize_aarch64_tdep): Don't call
6716 initialize_tdesc_aarch64_without_fpu.
6717 * features/Makefile (WHICH): Remove reference to
6718 aarch64-without-fpu.
6719 * features/aarch64-without-fpu.c: Delete file.
6720 * regformats/aarch64-without-fpu.dat: Delete file.
6721
6722 2013-05-28 Yao Qi <yao@codesourcery.com>
6723
6724 * tracepoint.c (stringify_collection_list): Remove parameter
6725 'string'.
6726 (encode_actions): Caller update. Remove local variables.
6727
6728 2013-05-24 Yao Qi <yao@codesourcery.com>
6729
6730 * tracepoint.c (TFILE_PID): Remove.
6731 (tfile_open): Don't add thread and inferior.
6732 (tfile_close): Don't set 'inferior_ptid'. Don't call
6733 exit_inferior_silent.
6734 (tfile_thread_alive): Remove.
6735 (init_tfile_ops): Don't set field 'to_thread_alive' of
6736 tfile_ops.
6737
6738 2013-05-23 Doug Evans <dje@google.com>
6739
6740 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
6741
6742 2013-05-23 Pedro Alves <palves@redhat.com>
6743
6744 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
6745 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
6746 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
6747 Only define if HAVE_SOCKETS is defined.
6748 * configure.ac: Check for sys/socket.h.
6749 * config.in, configure: Regenerate.
6750
6751 2013-05-23 Pedro Alves <palves@redhat.com>
6752
6753 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
6754 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
6755 printing uint32_t variables.
6756
6757 2013-05-23 Pedro Alves <palves@redhat.com>
6758
6759 * NEWS: Mention GDBserver range stepping support.
6760
6761 2013-05-23 Yao Qi <yao@codesourcery.com>
6762 Pedro Alves <palves@redhat.com>
6763
6764 * gdbthread.h (struct thread_control_state) <may_range_step>: New
6765 field.
6766 * infcmd.c (step_once, until_next_command): Enable range stepping.
6767 * infrun.c (displaced_step_prepare): Disable range stepping.
6768 (resume): Disable range stepping if stepping over a breakpoint or
6769 we have software watchpoints. If range stepping is enabled,
6770 assert the thread is in the stepping range.
6771 (clear_proceed_status_thread): Clear may_range_step.
6772 (handle_inferior_event): Disable range stepping as soon as we know
6773 the thread that hit the event. Re-enable it whenever we're going
6774 to step with a step range.
6775 * remote.c (struct vCont_action_support) <r>: New field.
6776 (use_range_stepping): New global.
6777 (remote_vcont_probe): Handle 'r' action.
6778 (append_resumption): Append an 'r' action if the thread may range
6779 step.
6780 (show_range_stepping): New function.
6781 (set_range_stepping): New function.
6782 (_initialize_remote): Call add_setshow_boolean_cmd to register the
6783 'set range-stepping' and 'show range-stepping' commands.
6784 * NEWS: Mention range stepping, the new vCont;r action, and the
6785 new "set/show range-stepping" commands.
6786
6787 2013-05-23 Yao Qi <yao@codesourcery.com>
6788 Pedro Alves <palves@redhat.com>
6789
6790 * remote.c (struct vCont_action_support): New struct.
6791 (struct remote_state) <support_vCont_t>: Remove field.
6792 <vCont_actions_support>: New field.
6793 (remote_vcont_probe, remote_stop_ns): Update.
6794
6795 2013-05-23 Yao Qi <yao@codesourcery.com>
6796 Pedro Alves <palves@redhat.com>
6797
6798 * gdbthread.h (pc_in_thread_step_range): New declaration.
6799 * thread.c (pc_in_thread_step_range): New function.
6800 * infrun.c (handle_inferior_event): Use it.
6801
6802 2013-05-23 Joel Brobecker <brobecker@adacore.com>
6803
6804 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
6805 of sprintf.
6806
6807 2013-05-22 Keith Seitz <keiths@redhat.com>
6808
6809 * ada-lang.c (is_known_support_routine): Add explicit free of
6810 'func_name' from find_frame_funname.
6811 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
6812 for func_name from find_frame_funname.
6813 * python/py-frame.c (frapy_name): Add explicit free of
6814 'name' from find_frame_funname.
6815 * stack.c (find_frame_funname): Add comment explaining that
6816 funcp must be freed by the caller.
6817 Return copy of symbol names instead of pointers.
6818 (print_frame): Add a cleanup for 'funname' from
6819 find_frame_funname.
6820 * stack.h (find_frame_funname): Remove "const" from
6821 'funname' parameter.
6822
6823 2013-05-22 Tom Tromey <tromey@redhat.com>
6824
6825 PR c++/15401:
6826 * c-valprint.c (c_value_print): Use value_addr for
6827 references. Convert back to reference type with value_ref.
6828
6829 2013-05-22 Eli Zaretskii <eliz@gnu.org>
6830
6831 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
6832 unloaded DLL, it will be done by handle_solib_event. See
6833 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
6834 details.
6835
6836 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
6837
6838 * ui-out.c: Create typedef ui_out_level_p and define vector
6839 operations for that type.
6840 (struct ui_out): Use a vector instead of an array.
6841 (current_level): Return level from a vector.
6842 (push_level): Create a level in a vector.
6843 (pop_level): Delete a level in a vector.
6844 (ui_out_new): Create initial level zero level, and store in a
6845 vector.
6846 (ui_out_destroy): Add vector cleanup.
6847
6848 2013-05-22 Pedro Alves <palves@redhat.com>
6849
6850 * python/python-internal.h (gdb_Py_DECREF): Tag with
6851 "ARI: editCase function".
6852
6853 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
6854
6855 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
6856
6857 2013-05-21 Pedro Alves <palves@redhat.com>
6858
6859 * python/py-prettyprint.c (apply_val_pretty_printer): Check
6860 whether PRINTER is NULL before installing a Py_DECREF cleanup.
6861 * python/py-utils.c (py_decref): Don't check for NULL before
6862 calling Py_DECREF.
6863
6864 2013-05-21 Pedro Alves <palves@redhat.com>
6865
6866 * python/py-utils.c (py_decref): Remove extra braces.
6867 (gdb_pymodule_addobject): Remove extra braces.
6868 * python-internal.h (gdb_Py_DECREF): New static inline function.
6869 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
6870
6871 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6872
6873 * breakpoints.c (detach_breakpoints): Do not
6874 detach breakpoints locations with loc_type bp_loc_other.
6875
6876 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Workaround Python 2.6.
6879 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
6880 a block.
6881
6882 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 Code cleanup: constification.
6885 * solib.c (solib_ops): Make return type and ops variable type const.
6886 (set_solib_ops): Make the new_ops parameter and ops variable const.
6887 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
6888 (solib_add, solib_keep_data_in_core, clear_solib)
6889 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
6890 (reload_shared_libraries, solib_global_lookup): Make the ops variable
6891 const.
6892 * solib.h (set_solib_ops): Make the new_ops parameter const.
6893
6894 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6895
6896 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
6897 variable.
6898 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
6899 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
6900 (SYSTEM_GDBINIT_FILES): New variables.
6901 (all): Add stamp-system-gdbinit.
6902 (stamp-system-gdbinit): New rule.
6903 (clean-system-gdbinit, install-system-gdbinit)
6904 (uninstall-system-gdbinit): New rules. Make them .PHONY.
6905 (install-only): Add dependency on install-system-gdbinit.
6906 (uninstall): Add dependency on uninstall-system-gdbinit.
6907 (clean): Add dependency on clean-system-gdbinit.
6908 * system-gdbinit/elinos.py: New file.
6909 * system-gdbinit/wrs-linux.py: New file.
6910
6911 2013-05-21 Joel Brobecker <brobecker@adacore.com>
6912
6913 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
6914
6915 2013-05-21 Hui Zhu <hui@codesourcery.com>
6916
6917 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
6918 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
6919 * mi/mi-cmd-break.c (ctype.h): New include.
6920 (gdb_obstack.h): New include.
6921 (mi_argv_to_format, mi_cmd_break_insert_1): New.
6922 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
6923 (mi_cmd_dprintf_insert): New.
6924 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
6925 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
6926
6927 2013-05-20 Tom Tromey <tromey@redhat.com>
6928
6929 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
6930
6931 2013-05-20 Tom Tromey <tromey@redhat.com>
6932
6933 * python/py-value.c (valpy_get_dynamic_type): Simplify
6934 dynamic_type assignment. Use Py_XINCREF.
6935
6936 2013-05-20 Tom Tromey <tromey@redhat.com>
6937
6938 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
6939
6940 2013-05-20 Tom Tromey <tromey@redhat.com>
6941
6942 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
6943 (gdbpy_selected_frame): Move object-construction code
6944 out of TRY_CATCH.
6945
6946 2013-05-20 Tom Tromey <tromey@redhat.com>
6947
6948 * python/py-arch.c (gdbpy_initialize_arch): Use
6949 gdb_pymodule_addobject.
6950 * python/py-block.c (gdbpy_initialize_blocks): Use
6951 gdb_pymodule_addobject.
6952 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
6953 gdb_pymodule_addobject.
6954 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
6955 gdb_pymodule_addobject.
6956 * python/py-event.c (gdbpy_initialize_event_generic): Use
6957 gdb_pymodule_addobject.
6958 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
6959 gdb_pymodule_addobject.
6960 * python/py-evts.c (add_new_registry): Use
6961 gdb_pymodule_addobject.
6962 (gdbpy_initialize_py_events): Likewise.
6963 * python/py-finishbreakpoint.c
6964 (gdbpy_initialize_finishbreakpoints): Use
6965 gdb_pymodule_addobject.
6966 * python/py-frame.c (gdbpy_initialize_frames): Use
6967 gdb_pymodule_addobject.
6968 * python/py-function.c (gdbpy_initialize_functions): Use
6969 gdb_pymodule_addobject.
6970 * python/py-inferior.c (gdbpy_initialize_inferior): Use
6971 gdb_pymodule_addobject.
6972 * python/py-infthread.c (gdbpy_initialize_thread): Use
6973 gdb_pymodule_addobject.
6974 * python/py-objfile.c (gdbpy_initialize_objfile): Use
6975 gdb_pymodule_addobject.
6976 * python/py-param.c (gdbpy_initialize_parameters): Use
6977 gdb_pymodule_addobject.
6978 * python/py-progspace.c (gdbpy_initialize_pspace): Use
6979 gdb_pymodule_addobject.
6980 * python/py-symbol.c (gdbpy_initialize_symbols): Use
6981 gdb_pymodule_addobject.
6982 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
6983 gdb_pymodule_addobject.
6984 * python/py-type.c (gdbpy_initialize_types): Use
6985 gdb_pymodule_addobject.
6986 * python/py-utils.c (gdb_pymodule_addobject): New function.
6987 * python/py-value.c (gdbpy_initialize_values): Use
6988 gdb_pymodule_addobject.
6989 * python/python-internal.h (gdb_pymodule_addobject): Declare.
6990 * python/python.c (_initialize_python): Use
6991 gdb_pymodule_addobject.
6992
6993 2013-05-20 Tom Tromey <tromey@redhat.com>
6994
6995 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
6996 * python/py-param.c (get_set_value, get_show_value): Use
6997 explicit decrefs.
6998 * python/python.c (start_type_printers, apply_type_printers):
6999 Use explicit decrefs.
7000
7001 2013-05-20 Tom Tromey <tromey@redhat.com>
7002
7003 * python/py-evts.c (gdbpy_initialize_py_events): Don't
7004 incref the module.
7005
7006 2013-05-20 Tom Tromey <tromey@redhat.com>
7007
7008 * python/python.c (gdbpy_run_events): Decref the result
7009 of PyObject_CallObject.
7010
7011 2013-05-20 Tom Tromey <tromey@redhat.com>
7012
7013 * python/py-symtab.c (set_sal): Use
7014 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
7015 (symtab_and_line_to_sal_object): Update.
7016
7017 2013-05-20 Tom Tromey <tromey@redhat.com>
7018
7019 * python/py-param.c (compute_enum_values): Decref 'item'.
7020
7021 2013-05-20 Tom Tromey <tromey@redhat.com>
7022
7023 * mi/mi-main.c: Include python-internal.h.
7024 (mi_cmd_list_features): Check gdb_python_initialized.
7025 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
7026 (python_inferior_exit, python_new_objfile, add_thread_object)
7027 (delete_thread_object, py_free_inferior): Check
7028 gdb_python_initialized.
7029 * python/py-prettyprint.c (apply_val_pretty_printer): Check
7030 gdb_python_initialized.
7031 * python/py-type.c (save_objfile_types): Check
7032 gdb_python_initialized.
7033 * python/python-internal.h (gdb_python_initialized): Declare.
7034 * python/python.c (ensure_python_env): Throw exception if
7035 Python not initialized.
7036 (before_prompt_hook, source_python_script_for_objfile)
7037 (start_type_printers, apply_type_printers,
7038 free_type_printers): Check gdb_python_initialized.
7039 * varobj.c (varobj_get_display_hint)
7040 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
7041 (install_new_value_visualizer, varobj_set_visualizer)
7042 (value_get_print_value): Check gdb_python_initialized.
7043
7044 2013-05-20 Tom Tromey <tromey@redhat.com>
7045
7046 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
7047 Check errors.
7048 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
7049 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
7050 Check errors.
7051 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
7052 Check errors.
7053 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
7054 Check errors.
7055 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
7056 Check errors.
7057 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
7058 init function to return 'int'.
7059 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
7060 Return 'int'. Check errors.
7061 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
7062 Check errors.
7063 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
7064 Return 'int'. Check errors.
7065 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
7066 Check errors.
7067 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
7068 Check errors.
7069 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
7070 Check errors.
7071 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
7072 Check errors.
7073 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
7074 Check errors.
7075 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
7076 Check errors.
7077 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
7078 Check errors.
7079 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
7080 Check errors.
7081 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
7082 Check errors.
7083 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
7084 Check errors.
7085 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
7086 Check errors.
7087 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
7088 Check errors.
7089 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
7090 Check errors.
7091 * python/python-internal.h (gdbpy_initialize_auto_load,
7092 gdbpy_initialize_values, gdbpy_initialize_frames,
7093 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
7094 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
7095 gdbpy_initialize_blocks, gdbpy_initialize_types,
7096 gdbpy_initialize_functions, gdbpy_initialize_pspace,
7097 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
7098 gdbpy_initialize_finishbreakpoints,
7099 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
7100 gdbpy_initialize_thread, gdbpy_initialize_inferior,
7101 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
7102 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
7103 gdbpy_initialize_signal_event,
7104 gdbpy_initialize_breakpoint_event,
7105 gdbpy_initialize_continue_event,
7106 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
7107 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
7108 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7109 * python/python.c (gdb_python_initialized): New global.
7110 (gdbpy_initialize_events): Return 'int'. Check errors.
7111 (_initialize_python): Check errors. Set
7112 gdb_python_initialized.
7113
7114 2013-05-20 Tom Tromey <tromey@redhat.com>
7115
7116 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
7117 Decref the reslut of PyObject_CallMethod.
7118
7119 2013-05-20 Tom Tromey <tromey@redhat.com>
7120
7121 * python/py-event.c (gdbpy_initialize_event_generic): Return
7122 early if PyType_Ready fails.
7123
7124 2013-05-20 Tom Tromey <tromey@redhat.com>
7125
7126 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
7127 as 'default' in the switch.
7128
7129 2013-05-20 Tom Tromey <tromey@redhat.com>
7130
7131 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
7132 get_addr_from_python calls out of TRY_CATCH.
7133 (infpy_write_memory, infpy_search_memory): Likewise.
7134 * python/py-utils.c (get_addr_from_python): Return negative
7135 value on error. Use TRY_CATCH.
7136 * python/python-internal.h (get_addr_from_python): Use
7137 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7138
7139 2013-05-20 Tom Tromey <tromey@redhat.com>
7140
7141 * python/py-event.c (evpy_emit_event): Decref the
7142 result of PyObject_CallFunctionObjArgs.
7143
7144 2013-05-20 Tom Tromey <tromey@redhat.com>
7145
7146 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
7147 Correctly decref.
7148
7149 2013-05-20 Tom Tromey <tromey@redhat.com>
7150
7151 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
7152
7153 2013-05-20 Tom Tromey <tromey@redhat.com>
7154
7155 * python/py-event.h (gdbpy_initialize_event_generic): Use
7156 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7157 * python/py-evts.c (add_new_registry): Use
7158 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
7159 * python/python-internal.h
7160 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
7161
7162 2013-05-20 Tom Tromey <tromey@redhat.com>
7163
7164 * python/py-arch.c (archpy_disassemble): Update.
7165 * python/py-type.c (typy_get_composite, typy_lookup_typename)
7166 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
7167 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
7168 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
7169 macro.
7170 (GDB_PY_HANDLE_EXCEPTION): Update.
7171 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
7172
7173 2013-05-20 Tom Tromey <tromey@redhat.com>
7174
7175 * python/python-internal.h (events_object_type): Remove.
7176
7177 2013-05-20 Tom Tromey <tromey@redhat.com>
7178
7179 * python/py-event.h (evpy_emit_event): Use
7180 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
7181 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
7182 New macro.
7183
7184 2013-05-20 Tom Tromey <tromey@redhat.com>
7185
7186 * py-evtregistry.c (create_event_object): Decref
7187 eventregistry_object if PyList_New fails.
7188
7189 2013-05-20 Tom Tromey <tromey@redhat.com>
7190
7191 * py-cmd.c (gdbpy_string_to_argv): Check result of
7192 PyList_New.
7193
7194 2013-05-20 Tom Tromey <tromey@redhat.com>
7195
7196 * python/python.c (before_prompt_hook): Add cleanup to
7197 decref 'hook'.
7198
7199 2013-05-20 Tom Tromey <tromey@redhat.com>
7200
7201 * python/py-function.c (fnpy_init): Decref result of
7202 PyObject_GetAttrString.
7203
7204 2013-05-20 Tom Tromey <tromey@redhat.com>
7205
7206 * python/py-threadevent.c (get_event_thread): Use
7207 CPYCHECKER_RETURNS_BORROWED_REF.
7208 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
7209 New define.
7210 (pspace_to_pspace_object, objfile_to_objfile_object)
7211 (find_thread_object): Use it.
7212
7213 2013-05-20 Tom Tromey <tromey@redhat.com>
7214
7215 * python/py-arch.c (arch_object_type): Use
7216 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7217 * python/py-block.c (block_syms_iterator_object_type):
7218 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7219 * python/py-bpevent.c (breakpoint_event_object_type):
7220 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7221 * python/py-cmd.c (cmdpy_object_type): Use
7222 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7223 * python/py-continueevent.c (continue_event_object_type):
7224 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7225 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
7226 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7227 * python/py-events.h (thread_event_object_type):
7228 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7229 * python/py-evtregistry.c (eventregistry_object_type): Use
7230 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7231 * python/py-exitedevent.c (exited_event_object_type):
7232 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7233 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
7234 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7235 * python/py-function.c (fnpy_object_type): Use
7236 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7237 * python/py-inferior.c (inferior_object_type, membuf_object_type):
7238 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7239 * python/py-infthread.c (thread_object_type): Use
7240 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7241 * python/py-lazy-string.c (lazy_string_object_type):
7242 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7243 * python/py-newobjfileevent.c (new_objfile_event_object_type):
7244 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7245 * python/py-objfile.c (objfile_object_type): Use
7246 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7247 * python/py-param.c (parmpy_object_type):
7248 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7249 * python/py-progspace.c (pspace_object_type):
7250 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7251 * python/py-signalevent.c (signal_event_object_type):
7252 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7253 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
7254 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7255 * python/py-type.c (type_object_type, field_object_type)
7256 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7257 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
7258 define.
7259 (value_object_type, block_object_type, symbol_object_type)
7260 (event_object_type, stop_event_object_type, breakpoint_object_type)
7261 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
7262
7263 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
7264
7265 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
7266 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
7267
7268 2013-05-20 Doug Evans <dje@google.com>
7269
7270 When reading CU, stay in DWO. Be more tolerent of bad debug info.
7271 For Fission.
7272 * dwarf2read.c (struct dwarf2_per_cu_data): New member
7273 reading_dwo_directly.
7274 (struct signatured_type): New member dwo_unit.
7275 (struct die_reader_specs): New member comp_dir.
7276 (create_signatured_type_table_from_index): Use malloc for
7277 all_type_units instead of objfile's obstack.
7278 (create_all_type_units): Ditto.
7279 (fill_in_sig_entry_from_dwo_entry): New function.
7280 (add_type_unit): New function.
7281 (lookup_dwo_signatured_type): New function.
7282 (lookup_dwp_signatured_type): New function.
7283 (lookup_signatured_type): New arg cu. All callers updated.
7284 (init_cu_die_reader): Initialize comp_dir.
7285 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
7286 Change assert of matching type signatures to call error on mismatch.
7287 (lookup_dwo_unit): Add assert.
7288 (init_tu_and_read_dwo_dies): New function.
7289 (init_cutu_and_read_dies): Call it.
7290 (build_type_unit_groups): Handle case of no type unit groups created.
7291 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
7292 (lookup_dwo_cutu): Tweak complaint.
7293 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
7294 (dwarf2_per_objfile_free): Free all_type_units.
7295
7296 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7297
7298 * windows-nat.c (handle_unload_dll): Add missing empty line.
7299
7300 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7301
7302 * dwarf2read.c (prototyped_function_p): New function.
7303 (read_subroutine_type): Use it.
7304
7305 2013-05-20 Joel Brobecker <brobecker@adacore.com>
7306
7307 * rs6000-aix-tdep.c: De-indent some example code provided
7308 as a comment.
7309
7310 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
7311
7312 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
7313 region is ok for a hardware watchpoint using the new ptrace interface
7314 on Power servers.
7315
7316 2013-05-17 Doug Evans <dje@google.com>
7317
7318 * NEWS: Mention new maintenance commands check-symtabs, and
7319 expand-symtabs, and renamed check-psymtabs.
7320 * psymtab.c (maintenance_check_psymtabs): Renamed from
7321 maintenance_check_symtabs. Only process already-expanded symbol
7322 tables.
7323 (_initialize_psymtab): Update.
7324 * symmisc.c (maintenance_check_symtabs): New function.
7325 (maintenance_expand_name_matcher): New function
7326 (maintenance_expand_file_matcher): New function
7327 (maintenance_expand_symtabs): New function.
7328 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
7329 commands.
7330
7331 2013-05-17 Tom Tromey <tromey@redhat.com>
7332
7333 * python/py-inferior.c (infpy_read_memory): Don't call
7334 PyErr_SetString if PyObject_New fails.
7335 * python/py-frame.c (frame_info_to_frame_object): Don't call
7336 PyErr_SetString if PyObject_New fails.
7337
7338 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
7339
7340 * acinclude.m4: Add check for dlopen in libdl.
7341 * configure.ac: Ditto.
7342 * configure: Regenerate.
7343
7344 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
7345
7346 * frame.c (frame_stash): Convert to htab.
7347 (frame_addr_hash): New function.
7348 (frame_addr_hash_eq): New function.
7349 (frame_stash_create): Convert function to create
7350 a hash table.
7351 (frame_stash_add): Convert function to add an entry to a hash
7352 table.
7353 (frame_stash_find): Convert function to search the hash table.
7354 (frame_stash_invalidate): Convert function to empty the hash
7355 table.
7356 (get_frame_id): Only add to stash if a frame_id is created.
7357 (_initialize_frame): Call frame_stash_create.
7358
7359 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
7360
7361 * configure.ac: Ensure MIG is available when building for GNU Hurd
7362 hosts.
7363 * configure: Regenerate.
7364
7365 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7366
7367 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
7368
7369 2013-05-16 Joel Brobecker <brobecker@adacore.com>
7370
7371 * ada-lang.c (ada_make_symbol_completion_list): Make sure
7372 all cleanups are done before returning from this function.
7373
7374 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7375
7376 * utils.h: #include "exceptions.h".
7377 (enum errors): Remove partial declaration.
7378
7379 2013-05-15 Joel Brobecker <brobecker@adacore.com>
7380
7381 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
7382 * gdbarch.h, gdbarch.c: Regenerate.
7383 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
7384 handling.
7385
7386 * rs6000-aix-tdep.h: New file.
7387 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
7388 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
7389 "xml-utils.h".
7390 (struct field_info, struct ld_info_desc): New types.
7391 (ld_info32_desc, ld_info64_desc): New static constants.
7392 (struct ld_info): New type.
7393 (rs6000_aix_extract_ld_info): New function.
7394 (rs6000_aix_shared_library_to_xml): Likewise.
7395 (rs6000_aix_ld_info_to_xml): Likewise.
7396 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7397 (rs6000_aix_init_osabi): Add call to
7398 set_gdbarch_core_xfer_shared_libraries_aix.
7399 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
7400 Remove "xml-utils.h" include.
7401 (LdInfo): Delete typedef.
7402 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
7403 Delete macros.
7404 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
7405 Adjust code accordingly.
7406 (rs6000_core_ldinfo): Delete, folded into
7407 rs6000_aix_core_xfer_shared_libraries_aix.
7408 (rs6000_xfer_shared_library): Delete.
7409 (rs6000_xfer_shared_libraries): Reimplement.
7410
7411 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
7412
7413 * record.c (record_goto_cmdlist): New.
7414 (cmd_record_goto): Split into this ...
7415 (cmd_record_goto_begin): ... this
7416 (cmd_record_goto_end): ... and this.
7417 (_initialize_record): Change "record goto" to prefix command.
7418 Add commands for "record goto begin" and "record goto end".
7419 Add an alias for "record goto start" to "record goto begin".
7420
7421 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 * linespec.c (convert_linespec_to_sals): New comment for
7424 SOURCE_FILENAME assignment.
7425
7426 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
7429 internal_warning.
7430
7431 2013-05-14 Tom Tromey <tromey@redhat.com>
7432
7433 * eval.c (parse_and_eval_long): Make 'exp' const.
7434 * value.h (parse_and_eval_long): Update.
7435
7436 2013-05-14 Tom Tromey <tromey@redhat.com>
7437
7438 * ui-file.c (gdb_fopen): Make arguments const.
7439 * ui-file.h (gdb_fopen): Make arguments const.
7440
7441 2013-05-14 Tom Tromey <tromey@redhat.com>
7442
7443 * remote.c (remote_set_trace_notes): Make arguments const.
7444 * target.c (update_current_target): Update cast.
7445 * target.h (to_set_trace_notes): Make arguments const.
7446
7447 2013-05-14 Tom Tromey <tromey@redhat.com>
7448
7449 * go32-nat.c (go32_terminal_info): Make 'args' const.
7450 * inferior.h (child_terminal_info): Update.
7451 * inflow.c (child_terminal_info): Make 'args' const.
7452 * target.c (default_terminal_info): Make 'args' const.
7453 (debug_to_terminal_save_ours): Likewise.
7454 * target.h (struct target_ops) <to_terminal_info>: Make argument
7455 const.
7456
7457 2013-05-13 Tom Tromey <tromey@redhat.com>
7458
7459 * gcore.c (create_gcore_bfd): Make 'filename' const.
7460 * gcore.h (create_gcore_bfd): Make 'filename' const.
7461 * record-full.c (record_full_save): Make 'recfilename' const.
7462 * target.c (target_save_record): Make 'filename' const.
7463 * target.h (struct target_ops) <to_save_record>: Make 'filename'
7464 const.
7465 (target_save_record): Likewise.
7466
7467 2013-05-13 Tom Tromey <tromey@redhat.com>
7468
7469 PR gdb/15338:
7470 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
7471 ranges section has been read.
7472
7473 2013-05-13 Tom Tromey <tromey@redhat.com>
7474
7475 PR exp/15364:
7476 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
7477 STRUCTOP_PTR>: Return a not_lval value for
7478 EVAL_AVOID_SIDE_EFFECTS.
7479 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
7480 for EVAL_AVOID_SIDE_EFFECTS.
7481
7482 2013-05-13 Joel Brobecker <brobecker@adacore.com>
7483
7484 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
7485 floating point registers to register type before storing
7486 value.
7487 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
7488 Likewise.
7489
7490 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7491 Tom Tromey <tromey@redhat.com>
7492
7493 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7494 New functions.
7495 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
7496 Declare.
7497 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
7498 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
7499 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
7500 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
7501
7502 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
7503 Tom Tromey <tromey@redhat.com>
7504
7505 PR build/15414:
7506 * configure: Rebuild.
7507 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
7508 with -Wno-format.
7509
7510 2013-05-10 Pedro Alves <palves@redhat.com>
7511
7512 * remote.c (_initialize_remote): Fix spelling of
7513 qXfer:traceframe-info:read packet in packet config command.
7514
7515 2013-05-10 David Taylor <dtaylor@emc.com>
7516
7517 PR remote/15455
7518
7519 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
7520 "QTro" at start of packet.
7521
7522 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7523
7524 * solib-aix.c (solib_aix_relocate_section_addresses):
7525 For the .bss section action, apply the same offset as
7526 the .data section.
7527
7528 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7529
7530 * solib-aix.c (solib_aix_relocate_section_addresses):
7531 Remove FIXME comment.
7532
7533 2013-05-10 Joel Brobecker <brobecker@adacore.com>
7534
7535 PR tdep/15420:
7536 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
7537 New functions, directly copied from sparc-sol-thread.c.
7538 * sparc-sol-thread.c: Delete.
7539 * configure.ac: Remove code handling sparc-solaris-thread.c.
7540 * configure: Regenerate.
7541
7542 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
7543
7544 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
7545 filter logic.
7546 (backtrace_command): Add "no-filters" option parsing.
7547 (_initialize_stack): Alter help to reflect "no-filters" option.
7548 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
7549 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
7550 (py-frame.o): Add target
7551 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
7552 filter files.
7553 * python/python.h: Add new frame filter constants, and flag enum.
7554 (apply_frame_filter): Add definition.
7555 * python/python.c (apply_frame_filter): New non-Python
7556 enabled function.
7557 * python/py-utils.c (py_xdecref): New function.
7558 (make_cleanup_py_xdecref): Ditto.
7559 * python/py-objfile.c: Declare frame_filters dictionary.
7560 (objfpy_dealloc): Add frame_filters dealloc.
7561 (objfpy_new): Initialize frame_filters attribute.
7562 (objfile_to_objfile_object): Ditto.
7563 (objfpy_get_frame_filters): New function.
7564 (objfpy_set_frame_filters): New function.
7565 * python/py-progspace.c: Declare frame_filters dictionary.
7566 (pspy_dealloc): Add frame_filters dealloc.
7567 (pspy_new): Initialize frame_filters attribute.
7568 (pspacee_to_pspace_object): Ditto.
7569 (pspy_get_frame_filters): New function.
7570 (pspy_set_frame_filters): New function.
7571 * python/py-framefilter.c: New file.
7572 * python/lib/gdb/command/frame_filters.py: New file.
7573 * python/lib/gdb/frames.py: New file.
7574 * python/lib/gdb/__init__.py: Initialize global frame_filters
7575 dictionary
7576 * python/lib/gdb/FrameDecorator.py: New file.
7577 * python/lib/gdb/FrameIterator.py: New file.
7578 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
7579 * mi/mi-cmds.h: Declare.
7580 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
7581 --no-frame-filter logic, and Python frame filter logic.
7582 (stack_enable_frame_filters): New function.
7583 (parse_no_frame_option): Ditto.
7584 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
7585 filter logic.
7586 (mi_cmd_stack_list_locals): Ditto.
7587 (mi_cmd_stack_list_args): Ditto.
7588 (mi_cmd_stack_list_variables): Ditto.
7589 * NEWS: Add frame filter note.
7590
7591 2013-05-09 Doug Evans <dje@google.com>
7592
7593 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
7594 All callers updated.
7595 (syms_from_objfile): Ditto. Make static.
7596 (symbol_file_add_with_addrs): Renamed from
7597 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
7598 num_offsets. All callers updated.
7599 * symfile.h (syms_from_objfile): Delete.
7600
7601 * symfile.c (decrement_reading_symtab): Add assert.
7602 (increment_reading_symtab): Ditto.
7603
7604 2013-05-09 Joel Brobecker <brobecker@adacore.com>
7605
7606 * source.c (forward_search_command): Replace call to getc
7607 by call to fgetc.
7608 (reverse_search_command): Likewise.
7609
7610 2013-05-08 Doug Evans <dje@google.com>
7611
7612 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
7613 matching test.
7614
7615 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7616
7617 * sol-thread.c (info_cb): Factorize the code a little.
7618
7619 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7620
7621 * sol-thread.c (info_cb): Rework the output of the "maintenance
7622 info sol-threads" command a bit.
7623
7624 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7625
7626 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
7627 Replace ti.ti_startfunc by ti.ti_pc.
7628
7629 2013-05-08 Joel Brobecker <brobecker@adacore.com>
7630
7631 * solib-aix.c (solib_aix_free_library_list): New function
7632 for the case where HAVE_LIBEXPAT is not defined.
7633
7634 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7635
7636 PR breakpoints/15413:
7637 * breakpoint.c (condition_completer): Simplify the code to
7638 disconsider multiple locations of breakpoints when completing the
7639 "condition" command.
7640
7641 2013-05-07 Pierre Muller <muller@sourceware.org>
7642
7643 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
7644 instead of <sys/wait.h>.
7645
7646 2013-05-07 Pierre Muller <muller@sourceware.org>
7647
7648 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
7649 trailing new line from warning message.
7650
7651 2013-05-07 Pierre Muller <muller@sourceware.org>
7652
7653 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
7654 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
7655
7656 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7657
7658 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
7659 error message (ARI fix).
7660
7661 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7662
7663 * features/library-list-aix.dtd: Replace library-list by
7664 library-list-aix.
7665 * rs6000-nat.c: Replace library-list by library-list-aix
7666 throughout.
7667 * solib-aix.c: Likewise.
7668
7669 2013-05-07 Joel Brobecker <brobecker@adacore.com>
7670
7671 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
7672 Renames TARGET_OBJECT_AIX_LIBRARIES.
7673 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
7674 TARGET_OBJECT_LIBRARIES_AIX throughout.
7675 * solib-aix.c: Likwise.
7676
7677 2013-05-07 Yao Qi <yao@codesourcery.com>
7678
7679 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
7680 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
7681
7682 2013-05-07 Yao Qi <yao@codesourcery.com>
7683
7684 * solib-dsbt.c (enable_break): Declare.
7685 (dsbt_current_sos): Remove call to enable_break2.
7686 (enable_break2): Rename to enable_break. Set solib breakpoint
7687 on '_dl_debug_state'.
7688 (enable_break): Remove.
7689
7690 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
7691
7692 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
7693 debug state prior to replicating existing hardware watchpoints or
7694 breakpoints.
7695
7696 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 * gcore.c (gcore_create_callback): Ignore sections with
7699 separate_debug_objfile_backlink != NULL.
7700
7701 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
7702 Andrew Jenner <andrew@codesourcery.com>
7703 Chung-Lin Tang <cltang@codesourcery.com>
7704 Julian Brown <julian@codesourcery.com>
7705
7706 Based on the nios2-elf port from Altera Corporation.
7707
7708 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
7709 nios2-linux-tdep.o.
7710 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
7711 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
7712 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
7713 * nios2-tdep.h: New.
7714 * nios2-tdep.c: New.
7715 * nios2-linux-tdep.c: New.
7716 * features/Makefile (WHICH): Add nios2-linux.
7717 (nios2-linux-expedite): Set.
7718 * features/nios2-cpu.xml: New.
7719 * features/nios2.xml: New.
7720 * features/nios2-linux.xml: New.
7721 * features/nios2.c: New (autogenerated).
7722 * features/nios2-linux.c: New (autogenerated).
7723 * regformats/nios2-linux.dat: New (autogenerated).
7724 * NEWS (Changes since GDB 7.6): Add new Nios II targets
7725 and commands.
7726
7727 2013-05-06 Doug Evans <dje@google.com>
7728
7729 * symfile.c: Whitespace cleanup.
7730
7731 * solist.h (struct target_so_ops): New member clear_so.
7732 * solib-svr4.c (svr4_clear_so): New function.
7733 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
7734 * solib.c (clear_so): Renamed from free_so_symbols.
7735 All callers updated. Call target clear_so if it exists.
7736
7737 2013-05-06 Tom Tromey <tromey@redhat.com>
7738
7739 * ada-lang.c (ada_value_primitive_packed_val): Don't
7740 call value_incref.
7741 * value.c (set_value_parent): Incref the new parent and decref
7742 the old parent.
7743 (value_copy, value_primitive_field): Use set_value_parent.
7744
7745 2013-05-06 Tom Tromey <tromey@redhat.com>
7746
7747 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
7748 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
7749 if needed.
7750 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
7751 * dwarf2read.c (write_constant_as_bytes)
7752 (dwarf2_fetch_constant_bytes): New functions.
7753
7754 2013-05-06 Tom Tromey <tromey@redhat.com>
7755
7756 * dwarf2read.c (dwarf2_const_value_data): Remove unused
7757 parameters.
7758 (dwarf2_const_value_attr): Update.
7759
7760 2013-05-06 Tom Tromey <tromey@redhat.com>
7761
7762 * somread.c (som_symfile_offsets): Add 'const' to addrs.
7763 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
7764 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
7765 Remove declaration.
7766
7767 2013-05-06 Tom Tromey <tromey@redhat.com>
7768
7769 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
7770 objfile's obstack.
7771
7772 2013-05-06 Doug Evans <dje@google.com>
7773
7774 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
7775 * stabsread.h (process_one_symbol): Update declaration.
7776 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
7777 * elfread.c (elf_symfile_relocate_probe): Ditto.
7778 * psymtab.c (relocate_psymtabs): Ditto.
7779 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
7780 (objfile_relocate): Ditto.
7781 * objfiles.h (objfile_relocate): Update declaration.
7782 * symfile.c (relative_addr_info_to_section_offsets): Constify
7783 addrs parameter.
7784 (default_symfile_offsets): Ditto.
7785 (syms_from_objfile_1): Constify offsets parameter.
7786 (syms_from_objfile): Ditto.
7787 (symbol_file_add_with_addrs_or_offsets): Ditto.
7788 (symfile_map_offsets_to_segments): Constify data parameter.
7789 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
7790 delta parameters of member relocate.
7791 (struct sym_probe_fns): Constify new_offsets,
7792 delta parameters of member sym_relocate_probe.
7793 (struct sym_fns): Constify section_addr_info parameter of member
7794 sym_offsets.
7795 (relative_addr_info_to_section_offsets): Update declaration.
7796 (default_symfile_offsets): Ditto.
7797 (syms_from_objfile): Ditto.
7798 (symfile_map_offsets_to_segments): Ditto.
7799
7800 * symfile.c (syms_from_objfile_1): Use correct section count when
7801 objfile->sf == NULL.
7802
7803 2013-05-06 Mike Frysinger <vapier@gentoo.org>
7804
7805 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
7806
7807 2013-05-06 Doug Evans <dje@google.com>
7808
7809 * psympriv.h (struct partial_symtab): Augment comment for member
7810 section_offsets.
7811
7812 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7813
7814 Reimplement shared library support on ppc-aix...
7815 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
7816 * features/library-list-aix.dtd: New file.
7817 * solib-aix.h, solib-aix.c: New file.
7818 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
7819 (rs6000_find_toc_address_hook): Delete.
7820 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
7821 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
7822 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
7823 "xml-utils.h".
7824 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
7825 (vmap_symtab, fixup_breakpoints): Delete.
7826 (rs6000_xfer_shared_libraries): New function.
7827 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
7828 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
7829 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
7830 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
7831 (rs6000_xfer_shared_library): New function.
7832 (find_toc_address): Delete.
7833 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
7834 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
7835 * xcoffread.c (record_minimal_symbol): Reloate symbol address
7836 before creating minimal symbol. Adjust function description
7837 accordingly.
7838 (scan_xcoff_symtab): Replace call to
7839 prim_record_minimal_symbol_and_info by call to
7840 record_minimal_symbol.
7841 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
7842 around default_symfile_offsets.
7843 * configure.tgt: Add solib-aix.o to gdb_target_obs for
7844 powerpc-aix targets.
7845 * config/rs6000/nm-rs6000.h: Delete.
7846 * config/powerpc/aix.mh (NAT_FILE): Delete.
7847 (NATDEPFILES): Remove xcoffsolib.o.
7848 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
7849 (ALL_TARGET_OBS): Add solib-aix.o.
7850 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
7851 config/rs6000/nm-rs6000.h. Add solib-aix.h.
7852 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
7853 * xcoffsolib.h, xcoffsolib.c: Delete.
7854
7855 * solib.c (reload_shared_libraries): Remove reference to
7856 SOLIB_CREATE_INFERIOR_HOOK.
7857 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
7858 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
7859 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
7860 comment.
7861 * corelow.c (deprecated_core_resize_section_table): Delete.
7862 * exec.c: Remove include of xcoffsolib.h".
7863 (map_vmap, vmap): Delete.
7864 (exec_close_1): Remove references to vmap.
7865 (exec_file_attach): Remove vmap handling code, and reference
7866 to DEPRECATED_IBM6000_TARGET.
7867 (bfdsec_to_vmap): Delete.
7868 (exec_files_info): Remove block of code handling VMAP.
7869 * infcmd.c (post_create_inferior): Remove reference to
7870 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
7871 * infrun.c (follow_exec): Remove reference to
7872 SOLIB_CREATE_INFERIOR_HOOK.
7873 * stack.c (print_frame): Remove reference to PC_SOLIB.
7874 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
7875 (dsbt_relocate_main_executable): Likewise.
7876 * solib-frv.c (frv_current_sos): Likewise.
7877
7878 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7879
7880 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
7881 to target_write_memory and target_read_memory.
7882
7883 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7884
7885 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
7886 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
7887
7888 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7889
7890 * darwin-nat.c: Replace all "%x" instances in format strings
7891 into "0x%x" throughout.
7892
7893 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7894
7895 * darwin-nat.c (darwin_mourn_inferior): Replace call to
7896 gdb_assert by call to MACH_CHECK_ERROR.
7897 (darwin_attach_pid): Raise an error rather than a failed
7898 assertion when various system calls failed. Report a warning
7899 instead of raising a failed assertion when PREV_NOT is not NULL
7900 after call to mach_port_request_notification.
7901 (darwin_ptrace_me): Raise an error rather than a failed
7902 assertion when read returns nonzero.
7903
7904 2013-05-06 Joel Brobecker <brobecker@adacore.com>
7905
7906 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
7907
7908 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
7911
7912 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7913
7914 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
7915 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
7916 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
7917 a stale cleanup. Fix double free of NAME.
7918
7919 2013-05-04 Eli Zaretskii <eliz@gnu.org>
7920
7921 * windows-nat.c (windows_delete_thread): Accept an additional
7922 argument, the thread's exit code, and announce thread death when
7923 print_thread_events is non-zero and we are deleting a thread that
7924 is not the main thread.
7925 (get_windows_debug_event): Pass thread exit code to
7926 windows_delete_thread.
7927
7928 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7929
7930 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
7931 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
7932 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
7933 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
7934 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
7935 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
7936 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
7937 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
7938 (gdbarch_tdep): New struct.
7939 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
7940 E_NUM_REGS.
7941 (v850e3v5_register_name): New function.
7942 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
7943 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
7944 code handling the struct return conventions for the RH850 ABI.
7945 Update all callers.
7946 (v850_eight_byte_align_p): New function.
7947 (v850_push_call_dummy): Push structs by value, not by reference
7948 for the RH850 ABI. Add support for eight byte alignment.
7949 (v850_dbtrap_breakpoint_from_pc): New function.
7950 (v850_gdbarch_init): Add ABI detection code. Register
7951 v850e3v5_register_name for the v850e3v5 architecture. Set the
7952 number of registers for v850e3v5. Register
7953 v850_dbtrap_breakpoint_from_pc as appropriate.
7954 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
7955
7956 2013-05-03 Doug Evans <dje@google.com>
7957
7958 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
7959 of bfd_count_sections.
7960 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
7961 * symfile.c (default_symfile_offsets): Ditto.
7962 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
7963 one entry, not bfd_count_sections entries.
7964
7965 2013-05-03 Kevin Buettner <kevinb@redhat.com>
7966
7967 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
7968 `save' and `restore' register groups. Don't include SPL
7969 or SPH in these groups.
7970 (rl78_dwarf_reg_to_regnum): Adjust mapping for
7971 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
7972 RL78_ES_REGNUM, and RL78_CS_REGNUM.
7973 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
7974 dwarf2_append_unwinders().
7975
7976 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7977
7978 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
7979 ignore SIGINT and SIGTRAP in case these internal signals are
7980 caught explicitely.
7981
7982 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7983
7984 * darwin-nat.c (darwin_read_write_inferior): Change types
7985 of parameters rdaddr and wraddr to "gdb_byte *". Change type
7986 of copy_count to "mach_msg_type_number_t".
7987 (darwin_read_dyld_info): Change type of parameter
7988 rdaddr to "gdb_byte *".
7989
7990 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7991
7992 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
7993 of &info->load_map from "char *" to "gdb_byte *".
7994
7995 2013-05-01 Joel Brobecker <brobecker@adacore.com>
7996
7997 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
7998 from "char *" to "gdb_byte *".
7999 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
8000
8001 2013-04-30 Doug Evans <dje@google.com>
8002
8003 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
8004 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
8005 DWO stub. If DWO isn't found, just use stub.
8006 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
8007
8008 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
8009 calling init_cutu_and_read_dies.
8010
8011 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8012
8013 * target-descriptions.c (maint_print_c_tdesc_cmd):
8014 Add case to parse structures as register types and
8015 bitfields.
8016
8017 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
8018
8019 * MAINTAINERS (Write After Approval): Add myself to the list.
8020
8021 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8022
8023 * sol-thread.c (rw_common): Change type of parameter "buf"
8024 to "gdb_byte *".
8025 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
8026 rw_common to "gdb_byte *" instead of "char *".
8027
8028 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8029
8030 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
8031 of local variable msym to const struct bound_minimal_symbol.
8032 Adjust use accordingly.
8033 [ti.ti_state == TD_THR_SLEEP]: Likewise.
8034
8035 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
8036
8037 * i386gnu-nat.c (CREG_OFFSET): New macro.
8038 (creg_offset): New array.
8039 (CREG_ADDR): Use creg_offset instead of reg_offset.
8040
8041 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8042
8043 * mep-tdep.c (mep_write_pc): Delete.
8044 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
8045 Add call to set_gdbarch_pc_regnum.
8046
8047 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8048
8049 * common/filestuff.c: Replace #include <dirent.h> by
8050 #include "gdb_dirent.h".
8051
8052 2013-04-30 Joel Brobecker <brobecker@adacore.com>
8053
8054 * common/filestuff.c: Replace #include <sys/stat.h> by
8055 #include "gdb_stat.h".
8056
8057 2013-04-29 Pierre Muller <muller@sourceware.org>
8058
8059 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
8060 editCase function rule.
8061 (get_DW_AT_signature_type): Likewise.
8062
8063 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8064
8065 * m32r-tdep.c (m32r_write_pc): Delete.
8066 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
8067 Add call to set_gdbarch_pc_regnum.
8068
8069 2013-04-29 Pierre Muller <muller@sourceware.org>
8070
8071 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
8072
8073 2013-04-29 Joel Brobecker <brobecker@adacore.com>
8074
8075 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
8076
8077 2013-04-28 Yao Qi <yao@codesourcery.com>
8078
8079 * solib-dsbt.c (fetch_loadmap): Re-indent.
8080 (displacement_from_map, enable_break2): Likewise.
8081 (dsbt_relocate_section_addresses): Likewise.
8082
8083 2013-04-26 Joel Brobecker <brobecker@adacore.com>
8084
8085 GDB 7.6 released.
8086
8087 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
8088
8089 PR corefiles/14983:
8090 * dwarf2read.c (process_full_comp_unit): Always create a static
8091 block.
8092
8093 2013-04-25 Hui Zhu <hui@codesourcery.com>
8094
8095 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
8096 to loc->cmd_bytecode.
8097
8098 2013-04-24 Doug Evans <dje@google.com>
8099
8100 * dwarf2read.c (setup_type_unit_groups): Fix comment.
8101
8102 2013-04-22 Keith Seitz <keiths@redhat.com>
8103
8104 * tracepoint.c (trace_save): Call the writer's start method.
8105
8106 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
8107
8108 PR gdb/10462
8109 * cli/cli-decode.c (lookup_command): Show an error if there is no space
8110 before argument.
8111
8112 2013-04-23 Tom Tromey <tromey@redhat.com>
8113
8114 * common/filestuff.c: Check USE_WIN32API before including
8115 sys/socket.h.
8116 (HAVE_F_GETFD): New define.
8117 (mark_cloexec): Check HAVE_F_GETFD.
8118 (gdb_open_cloexec): Change 'mode' to unsigned long.
8119 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
8120 (gdb_pipe_cloexec): Check HAVE_PIPE.
8121 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
8122 long.
8123
8124 2013-04-23 Hui Zhu <hui@codesourcery.com>
8125
8126 PR gdb/15293
8127 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
8128
8129 2013-04-23 Hui Zhu <hui@codesourcery.com>
8130
8131 PR gdb/15165
8132 * breakpoint.c (dprintf_print_recreate): New.
8133 (save_breakpoints): Let it not save dprintf commands.
8134 (initialize_breakpoint_ops): Set dprintf_print_recreate.
8135
8136 2013-04-22 Tom Tromey <tromey@redhat.com>
8137
8138 PR gdb/7912:
8139 * Makefile.in (SFILES): Add filestuff.c
8140 (COMMON_OBS): Add filestuff.o.
8141 (filestuff.o): New target.
8142 * auto-load.c (auto_load_objfile_script_1): Use
8143 gdb_fopen_cloexec.
8144 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
8145 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
8146 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
8147 * common/agent.c (gdb_connect_sync_socket): Use
8148 gdb_socket_cloexec.
8149 * common/filestuff.c: New file.
8150 * common/filestuff.h: New file.
8151 * common/linux-osdata.c (linux_common_core_of_thread)
8152 (command_from_pid, commandline_from_pid, print_source_lines)
8153 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8154 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
8155 gdb_fopen_cloexec.
8156 * common/linux-procfs.c (linux_proc_get_int)
8157 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
8158 * config.in, configure: Rebuild.
8159 * configure.ac: Don't check for sys/socket.h. Check for
8160 fdwalk, pipe2.
8161 * corelow.c (core_open): Use gdb_open_cloexec.
8162 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
8163 * fork-child.c (fork_inferior): Call close_most_fds.
8164 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
8165 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
8166 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
8167 Use gdb_fopen_cloexec.
8168 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
8169 gdb_open_cloexec.
8170 (linux_async_pipe): Use gdb_pipe_cloexec.
8171 * remote-fileio.c (remote_fileio_func_open): Use
8172 gdb_open_cloexec.
8173 * remote.c (remote_file_put, remote_file_get): Use
8174 gdb_fopen_cloexec.
8175 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
8176 close_most_fds.
8177 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
8178 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
8179 * solib.c (solib_find): Use gdb_open_cloexec.
8180 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
8181 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
8182 (tfile_open): Use gdb_open_cloexec.
8183 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
8184 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
8185 * xml-support.c (xml_fetch_content_from_file): Use
8186 gdb_fopen_cloexec.
8187 * main.c (captured_main): Call notice_open_fds.
8188
8189 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
8190
8191 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
8192 'char *' to 'gdb_byte *'.
8193 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
8194 'gdb_byte'.
8195
8196 2013-04-22 Yao Qi <yao@codesourcery.com>
8197
8198 * infrun.c: Fix typo in comment.
8199
8200 2013-04-22 Andrew Haley <aph@redhat.com>
8201
8202 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
8203 instead of "long".
8204
8205 2013-04-20 Yao Qi <yao@codesourcery.com>
8206
8207 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
8208 'char *' to 'gdb_byte *'. Cast the return value of
8209 'bt_ctf_get_char_array' to 'gdb_byte *'.
8210
8211 2013-04-19 Pedro Alves <palves@redhat.com>
8212
8213 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
8214 -Wpointer-sign.
8215 * configure: Regenerate.
8216
8217 2013-04-19 Pedro Alves <palves@redhat.com>
8218
8219 * ser-tcp.c (net_read_prim): Cast second argument to recv to
8220 'void *'.
8221
8222 2013-04-19 Pedro Alves <palves@redhat.com>
8223
8224 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
8225 Change type of 'myaddr' parameter to gdb_byte pointer.
8226 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
8227 to 'long long' pointer instead of to 'unsigned long long'.
8228 (monitor_write_memory_block, monitor_read_memory_single)
8229 (monitor_read_memory): Change type of 'myaddr' parameter to
8230 gdb_byte pointer.
8231
8232 2013-04-19 Pedro Alves <palves@redhat.com>
8233
8234 * record.c (validate_history_size): Make parameter 'setting'
8235 unsigned.
8236
8237 2013-04-19 Pedro Alves <palves@redhat.com>
8238
8239 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
8240 to 'gdb_byte *'.
8241
8242 2013-04-19 Pedro Alves <palves@redhat.com>
8243
8244 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
8245 local to int.
8246
8247 2013-04-19 Pedro Alves <palves@redhat.com>
8248
8249 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
8250 * ada-tasks.c (read_fat_string_value): Likewise.
8251
8252 2013-04-19 Pedro Alves <palves@redhat.com>
8253
8254 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
8255 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
8256 'offset', and adjust.
8257
8258 2013-04-19 Pedro Alves <palves@redhat.com>
8259
8260 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
8261 (read_index_from_section): Add cast to 'char *'.
8262
8263 2013-04-19 Pedro Alves <palves@redhat.com>
8264
8265 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
8266
8267 2013-04-19 Pedro Alves <palves@redhat.com>
8268
8269 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
8270
8271 2013-04-19 Pedro Alves <palves@redhat.com>
8272
8273 * record-full.c (record_full_get_bookmark): Change local 'ret'
8274 type to char * and add cast to gdb_byte *.
8275 (record_full_goto_bookmark): Handle 'bookmark' argument as a
8276 string.
8277 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
8278
8279 2013-04-19 Pedro Alves <palves@redhat.com>
8280
8281 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
8282 * python/py-prettyprint.c (print_string_repr): Change type of
8283 'output' local to char *. Add cast to gdb_byte * in
8284 LA_PRINT_STRING call.
8285 (print_children): Change type of 'output' local to char *.
8286 * python/py-value.c (valpy_string): Add cast to const char * in
8287 PyUnicode_Decode call.
8288
8289 2013-04-19 Pedro Alves <palves@redhat.com>
8290
8291 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
8292 and change its type to 'const char *'. Adjust.
8293 (mips_send_packet): Add cast to 'char *', and remove cast to
8294 'unsigned char *'.
8295 (mips_receive_packet): Remove cast to 'unsigned char *'.
8296 (mips_load_srec): Use bfd_byte.
8297 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
8298 (pmon_checkset): Make 'value' parameter unsigned.
8299
8300 2013-04-19 Pedro Alves <palves@redhat.com>
8301
8302 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
8303
8304 2013-04-19 Pedro Alves <palves@redhat.com>
8305
8306 * remote.c (remote_write_bytes_aux, compare_sections_command)
8307 (remote_read_qxfer)
8308 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
8309 (remote_hostio_readlink, remote_bfd_iovec_pread)
8310 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
8311 binary buffer, and char when buffer is used as string.
8312 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
8313 (trace_save, tfile_open, traceframe_walk_blocks)
8314 (tfile_fetch_registers): Likewise.
8315
8316 2013-04-19 Pedro Alves <palves@redhat.com>
8317
8318 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
8319 buffer and size_t size. Adjust.
8320 * ser-base.h (ser_base_write): Adjust.
8321 * ser-go32.c (cnts): Change type to size_t.
8322 (dos_write): Change prototype -- take 'void *'
8323 buffer and size_t size. Adjust.
8324 (dos_info): Print elements of 'cnts' as unsigned long.
8325 * serial.c (serial_write): Likewise.
8326 * serial.h (serial_write): Adjust.
8327 (struct serial_ops) <write>: Change prototype -- take 'void *'
8328 buffer and size_t size. Adjust.
8329
8330 2013-04-19 Pedro Alves <palves@redhat.com>
8331
8332 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
8333 gdb_byte *.
8334 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
8335
8336 2013-04-19 Pedro Alves <palves@redhat.com>
8337
8338 * alpha-tdep.c (alpha_extract_return_value): Use
8339 regcache_cooked_read_unsigned to read 'v0'.
8340
8341 2013-04-19 Pedro Alves <palves@redhat.com>
8342
8343 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
8344 parameters 'at', 'as' and 'offset' to uint32_t.
8345
8346 2013-04-19 Pedro Alves <palves@redhat.com>
8347
8348 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
8349 'is64' to signed 'int'.
8350
8351 2013-04-19 Pedro Alves <palves@redhat.com>
8352
8353 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
8354 parameter to int *.
8355
8356 2013-04-19 Pedro Alves <palves@redhat.com>
8357
8358 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
8359 'insnbuf' buffer type to unsigned int[].
8360
8361 2013-04-19 Pedro Alves <palves@redhat.com>
8362
8363 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
8364
8365 2013-04-19 Pedro Alves <palves@redhat.com>
8366
8367 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
8368 unsigned long *.
8369
8370 2013-04-19 Pedro Alves <palves@redhat.com>
8371
8372 * alpha-tdep.c (heuristic_fence_post): Change type to int.
8373 (alpha_heuristic_proc_start): Adjust to check -1 instead of
8374 UINT_MAX.
8375 * mips-tdep.c (heuristic_fence_post): Change type to int.
8376 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
8377
8378 2013-04-19 Pedro Alves <palves@redhat.com>
8379
8380 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
8381 (struct gdbarch_tdep) <cris_version>: Make unsigned.
8382 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
8383
8384 2013-04-19 Pedro Alves <palves@redhat.com>
8385
8386 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
8387 it to get a string view of the byte buffer.
8388 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
8389 type to gdb_byte *. Adjust.
8390 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
8391 Change local to char *.
8392 * solib-darwin.c (find_program_interpreter): Change return type to
8393 char *. Adjust.
8394 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
8395 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
8396 * solib-frv.c (enable_break2): Change local 'buf' to char *.
8397 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
8398 * solib-svr4.c (find_program_interpreter): Change return type to
8399 char *. Adjust.
8400 (enable_break): Change local 'interp_name' to char *.
8401 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8402 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
8403 (spu_pseudo_register_write_spu): Use char for string buffer.
8404 Adjust.
8405 (info_spu_event_command, info_spu_signal_command): Add casts to
8406 'char *'.
8407
8408 2013-04-19 Pedro Alves <palves@redhat.com>
8409
8410 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
8411 gdb_byte[].
8412 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
8413 * ada-lang.c (ada_value_assign): Use gdb_byte.
8414 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
8415 (alphanbsd_sigtramp_offset): Use gdb_byte.
8416 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
8417 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
8418 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
8419 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
8420 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
8421 * arm-tdep.c (arm_stub_unwind_sniffer)
8422 (arm_displaced_init_closure): Use gdb_byte.
8423 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
8424 (arm_default_thumb_le_breakpoint)
8425 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
8426 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
8427 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
8428 * arm-wince-tdep.c (arm_wince_le_breakpoint)
8429 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
8430 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
8431 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
8432 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
8433 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
8434 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
8435 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
8436 (cris_store_return_value, cris_extract_return_value): Use
8437 gdb_byte.
8438 (constraint): Change type of parameter to char * from signed
8439 char*. Use gdb_byte.
8440 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
8441 of local buffer to gdb_byte *.
8442 * dwarf2read.c (read_index_from_section): Use gdb_byte.
8443 (create_dwp_hash_table): Change type of locals to gdb_byte *.
8444 (add_address_entry): Change type of local buffer to gdb_byte[].
8445 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
8446 (frv_push_dummy_call): Use gdb_byte.
8447 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
8448 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
8449 (hppa_hpux_supply_save_state): Use gdb_byte.
8450 * hppa-tdep.c (hppa32_push_dummy_call)
8451 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
8452 * ia64-tdep.c (extract_bit_field, replace_bit_field)
8453 (slotN_contents, replace_slotN_contents): Change type of parameter
8454 to gdb_byte *.
8455 (fetch_instruction, ia64_pseudo_register_write)
8456 (ia64_register_to_value, ia64_value_to_register)
8457 (ia64_extract_return_value, ia64_store_return_value)
8458 (ia64_push_dummy_call): Use gdb_byte.
8459 * m32c-tdep.c (m32c_return_value): Remove cast.
8460 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
8461 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
8462 gdb_byte.
8463 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
8464 * mn10300-tdep.c (mn10300_store_return_value)
8465 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
8466 gdb_byte.
8467 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
8468 (moxie_process_record): Remove casts.
8469 * ppc-ravenscar-thread.c (supply_register_at_address)
8470 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
8471 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
8472 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
8473 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
8474 * remote.c (compare_sections_command): Use gdb_byte.
8475 * score-tdep.c (score7_free_memblock): Change type of parameter to
8476 gdb_byte *.
8477 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
8478 gdb_byte *. Use gdb_byte.
8479 (sh_push_dummy_call_fpu): Use gdb_byte.
8480 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
8481 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
8482 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
8483 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8484 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
8485 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
8486 (sh64_store_return_value, sh64_register_convert_to_virtual):
8487 Change parameter type to 'gdb_byte *'. Use gdb_byte.
8488 (sh64_pseudo_register_write): Use gdb_byte.
8489 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
8490 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
8491 buffer.
8492 (irix_current_sos): Use gdb_byte.
8493 * solib-som.c (som_current_sos): Use gdb_byte.
8494 * sparc-ravenscar-thread.c (supply_register_at_address)
8495 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
8496 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
8497 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
8498 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
8499 'gdb_byte *'.
8500 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
8501 'gdb_byte *'.
8502 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
8503 * xstormy16-tdep.c (xstormy16_extract_return_value)
8504 (xstormy16_store_return_value): Change parameter type to
8505 'gdb_byte *'. Adjust.
8506 (xstormy16_push_dummy_call): Use gdb_byte.
8507 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
8508 (call0_analyze_prologue, execute_code): Use gdb_byte.
8509
8510 2013-04-19 Vladimir Kargov <kargov@gmail.com>
8511 Pedro Alves <palves@redhat.com>
8512
8513 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
8514 value contents.
8515
8516 2013-04-17 Doug Evans <dje@google.com>
8517
8518 * dwarf2read.c (struct signatured_type): New member type.
8519 (struct attribute): Replace member signatured_type with signature.
8520 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
8521 (read_call_site_scope): Call follow_die_ref instead of
8522 follow_die_ref_or_sig.
8523 (read_structure_type): Rewrite handling of signatured types.
8524 (read_enumeration_type): Ditto.
8525 (read_attribute_value): Update.
8526 (build_error_marker_type): New function.
8527 (lookup_die_type): Add assert. Rewrite handling of signatured types.
8528 Don't call error for bad types, just build an error marker type.
8529 (dump_die_shallow): Update.
8530 (follow_die_sig_1): Renamed from follow_die_sig.
8531 Don't call error for bad types, instead return NULL.
8532 (follow_die_sig): New function.
8533 (get_signatured_type, get_DW_AT_signature_type): New functions.
8534
8535 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
8536
8537 * aarch64-tdep.c (aarch64_write_pc): Removed.
8538 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
8539 function.
8540
8541 2013-04-17 Yao Qi <yao@codesourcery.com>
8542
8543 * top.c (print_gdb_configuration): Print configure-time
8544 parameter on using libbabeltrace or not.
8545
8546 2013-04-16 Pedro Alves <palves@redhat.com>
8547
8548 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
8549
8550 2013-04-16 Pedro Alves <palves@redhat.com>
8551
8552 * common/glibc_thread_db.h: Update from upstream glibc
8553 (git 568035b7874a099087b77f7bba3e36a1173787b0).
8554
8555 2013-04-16 Pedro Alves <palves@redhat.com>
8556
8557 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
8558 * common/glibc_thread_db.h: ... this new file ...
8559 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
8560
8561 2013-04-16 Will Newton <will.newton@gmail.com>
8562 Pedro Alves <palves@redhat.com>
8563
8564 PR build/11881
8565
8566 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
8567 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
8568 HAVE_THREAD_DB_H.
8569
8570 2013-04-16 Pedro Alves <palves@redhat.com>
8571 Eli Zaretskii <eliz@gnu.org>
8572
8573 * NEWS: Mention "set foo unlimited".
8574
8575 2013-04-15 Doug Evans <dje@google.com>
8576
8577 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
8578 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
8579 (create_dwo_cu_reader): Renamed from
8580 create_dwo_debug_info_hash_table_reader.
8581 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
8582 Remove support for multiple CUs in a DWO file.
8583 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
8584
8585 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
8586 instead of phex.
8587 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
8588 (create_dwo_in_dwp): Ditto.
8589
8590 2013-04-15 Tom Tromey <tromey@redhat.com>
8591
8592 * NEWS: Move recent entries into "since 7.6" section.
8593
8594 2013-04-15 Tom Tromey <tromey@redhat.com>
8595
8596 PR c++/13588:
8597 * NEWS: Update.
8598 * break-catch-throw.c (struct exception_catchpoint)
8599 <exception_rx, pattern>: New fields.
8600 (fetch_probe_arguments, dtor_exception_catchpoint)
8601 (check_status_exception_catchpoint)
8602 (print_one_detail_exception_catchpoint): New functions.
8603 (handle_gnu_v3_exceptions): Add "except_rx" argument.
8604 Compile regular expression if needed.
8605 (extract_exception_regexp): New function.
8606 (catch_exception_command_1): Use extract_exception_regexp.
8607 (compute_exception): Use fetch_probe_arguments.
8608 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
8609 and check_status fields.
8610 * cp-abi.c (cplus_typename_from_type_info): New function.
8611 * cp-abi.h (cplus_typename_from_type_info): Declare.
8612 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
8613 * gdb_regex.h (compile_rx_or_error): Declare.
8614 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
8615 comment.
8616 (init_gnuv3_ops): Set get_type_from_type_info field.
8617 * probe.c (compile_rx_or_error): Move...
8618 * utils.c (compile_rx_or_error): ... here.
8619
8620 2013-04-15 Tom Tromey <tromey@redhat.com>
8621
8622 PR c++/15176:
8623 * NEWS: Update.
8624 * break-catch-throw.c (compute_exception): New function.
8625 (exception_funcs): New global.
8626 (_initialize_break_catch_throw): Create $_exception.
8627 * cp-abi.c (cplus_type_from_type_info): New function.
8628 * cp-abi.h (cplus_type_from_type_info): Declare.
8629 (struct cp_abi_ops) <get_type_from_type_info>: New field.
8630 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
8631 (gnuv3_get_type_from_type_info): New functions.
8632 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
8633
8634 2013-04-15 Tom Tromey <tromey@redhat.com>
8635
8636 * break-catch-throw.c (struct exception_names): New.
8637 (exception_functions): Change type.
8638 (re_set_exception_catchpoint): Look for SDT probes.
8639
8640 2013-04-15 Tom Tromey <tromey@redhat.com>
8641
8642 PR c++/10119:
8643 * break-catch-throw.c (exception_functions): New global.
8644 (gnu_v3_exception_catchpoint_ops): Move earlier.
8645 (struct exception_catchpoint): New.
8646 (classify_exception_breakpoint): Rewrite.
8647 (re_set_exception_catchpoint): New function.
8648 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
8649 Allocate a struct exception_catchpoint.
8650 (catch_exception_command_1): Update.
8651 (initialize_throw_catchpoint_ops): Set 're_set' method.
8652
8653 2013-04-15 Tom Tromey <tromey@redhat.com>
8654
8655 * Makefile.in (SFILES): Add break-catch-throw.c
8656 (COMMON_OBS): Add break-catch-throw.o.
8657 * break-catch-throw.c: New file.
8658 * breakpoint.c: Move exception-catching code to new file.
8659 (ep_parse_optional_if_clause): No longer static.
8660 * breakpoint.h (ep_parse_optional_if_clause): Declare.
8661
8662 2013-04-15 Tom Tromey <tromey@redhat.com>
8663
8664 PR c++/9065:
8665 * NEWS: Update.
8666 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
8667 * c-exp.y (TYPEID): New token.
8668 (exp): Add new TYPEID productions.
8669 (ident_tokens): Add "typeid".
8670 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
8671 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
8672 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
8673 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
8674 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
8675 case.
8676 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
8677 (build_std_type_info_type, gnuv3_get_typeid_type)
8678 (gnuv3_get_typeid): New functions.
8679 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
8680 new fields on ABI object.
8681 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
8682 * std-operator.def (OP_TYPEID): New.
8683
8684 2013-04-15 Tom Tromey <tromey@redhat.com>
8685
8686 * elfread.c (elf_symtab_read): Install versioned symbol under
8687 unversioned name as well.
8688
8689 2013-04-15 Tom Tromey <tromey@redhat.com>
8690
8691 PR c++/11990:
8692 * c-lang.c (cplus_language_defn): Use gdb_demangle.
8693 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
8694 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
8695 (gdb_demangle): New function.
8696 * cp-support.h (gdb_demangle): Declare.
8697 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
8698 (dwarf2_name): Use gdb_demangle.
8699 * gdbtypes.c (check_stub_method): Use gdb_demangle.
8700 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
8701 suffixes from name.
8702 (gnuv3_print_method_ptr): Use gdb_demangle.
8703 * jv-lang.c (java_demangle): Use gdb_demangle.
8704 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
8705 * language.c (unk_lang_demangle): Use gdb_demangle.
8706 * symtab.c (symbol_find_demangled_name)
8707 (demangle_for_lookup): Use gdb_demangle.
8708
8709 2013-04-15 Tom Tromey <tromey@redhat.com>
8710
8711 PR c++/12824:
8712 * NEWS: Update.
8713 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
8714 New constant.
8715 (classify_exception_breakpoint): New function.
8716 (print_it_exception_catchpoint, print_one_exception_catchpoint)
8717 (print_mention_exception_catchpoint)
8718 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
8719 (catch_exception_command_1): Handle "rethrow" catchpoint.
8720 (catch_rethrow_command): New function.
8721 (_initialize_breakpoint): Add "catch rethrow" command.
8722
8723 2013-04-15 Pierre Muller <muller@sourceware.org>
8724
8725 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
8726 set_gdbarch_write_pc as deprecated anymore.
8727
8728 2013-04-15 Joel Brobecker <brobecker@adacore.com>
8729
8730 * spu-tdep.c (spu_write_pc): Add empty line after local variable
8731 declarations.
8732
8733 2013-04-13 Yao Qi <yao@codesourcery.com>
8734
8735 * ctf.c (_initialize_ctf): Include "completer.h".
8736 Call add_target_with_completer instead of add_target.
8737
8738 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8739
8740 Fix GDB regression related to PR binutils/14813.
8741 * jit.c (mem_bfd_iovec_close): Return 0 for success.
8742 * minidebug.c (lzma_close): Add return value comment.
8743 * remote.c (remote_bfd_iovec_close): Return 0 for success.
8744 * solib-spu.c (spu_bfd_iovec_close): Likewise.
8745 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
8746
8747 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 * config.in: Regenerate.
8750
8751 2013-04-12 Tom Tromey <tromey@redhat.com>
8752
8753 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
8754 const.
8755 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
8756 (struct die_reader_specs) <buffer>: Likewise.
8757 (die_reader_func_ftype): Make 'info_ptr' const.
8758 (struct line_header) <include_dirs, statement_program_start,
8759 statement_program_end>: Now const.
8760 (struct file_entry) <name>: Likewise.
8761 (struct partial_die_info) <sibling>: Likewise.
8762 (struct dwarf_block) <data>: Likewise.
8763 (dwarf2_read_section): Remove cast.
8764 (dwarf2_get_section_info): Make 'bufp' const.
8765 (read_index_from_section): Constify.
8766 (dw2_get_file_names_reader): Make 'info_ptr' const.
8767 (dw2_get_primary_filename_reader): Likewise.
8768 (read_comp_unit_head): Make 'info_ptr' and return type const.
8769 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
8770 Likewise.
8771 (read_abbrev_offset): Constify.
8772 (dwarf2_create_include_psymtab): Make 'name' const.
8773 (create_debug_types_hash_table): Update.
8774 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
8775 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
8776 Constify.
8777 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
8778 (load_partial_comp_unit_reader): Make 'info_ptr' const.
8779 (read_comp_units_from_section): Constify.
8780 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
8781 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
8782 const.
8783 (dwarf2_compute_name, setup_type_unit_groups): Constify.
8784 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
8785 (create_dwp_hash_table, dwarf2_ranges_read)
8786 (dwarf2_record_block_ranges): Constify.
8787 (read_die_and_children, read_die_and_siblings_1)
8788 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
8789 const.
8790 (read_full_die_1, read_full_die): Make 'info_ptr' const.
8791 (abbrev_table_read_table): Constify.
8792 (load_partial_dies): Make 'info_ptr' const.
8793 (read_partial_die, read_attribute_value, read_attribute): Make
8794 'info_ptr' and return type const.
8795 (read_address, read_initial_length)
8796 (read_checked_initial_length_and_offset, read_offset)
8797 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
8798 const.
8799 (read_direct_string): Make 'buf' and return type const.
8800 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
8801 (read_indirect_string): Make return type const.
8802 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
8803 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
8804 'info_ptr' const.
8805 (read_str_index): Make return type const.
8806 (add_include_dir): Make 'include_dir' const.
8807 (add_file_name): Make 'name' const.
8808 (dwarf_decode_line_header): Constify.
8809 (psymtab_include_file_name): Make return type const.
8810 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
8811 (dwarf2_start_subfile): Make 'filename' const.
8812 (dwarf2_const_value_attr): Make 'bytes' const.
8813 (read_signatured_type_reader): Make 'info_ptr' const.
8814 (decode_locdesc): Constify.
8815 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
8816 const.
8817 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
8818 'mac_end', and return type const.
8819 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
8820 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
8821 type const.
8822 (per_cu_header_read_in): Constify.
8823 * symfile.h (dwarf2_get_section_info): Update.
8824
8825 2013-04-12 Tom Tromey <tromey@redhat.com>
8826
8827 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
8828
8829 2013-04-12 Eli Zaretskii <eliz@gnu.org>
8830
8831 * NEWS: Mention "show configuration", --configuration.
8832 * top.c (print_gdb_configuration): New function, displays the
8833 details about GDB configure-time parameters.
8834 (print_gdb_version): Mention "show configuration".
8835 * cli/cli-cmds.c (show_configuration): New function.
8836 (_initialize_cli_cmds): Add the "show configuration" command.
8837 * main.c (captured_main) <print_configuration>: New static var.
8838 <long_options>: Use it.
8839 If --configuration was given, call print_gdb_configuration.
8840
8841 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8842 Pedro Alves <palves@redhat.com>
8843
8844 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
8845 (generated_files): Add gcore.
8846 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
8847 HAVE_NATIVE_GCORE_HOST.
8848 (gcore): New.
8849 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
8850 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
8851 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
8852 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
8853 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
8854 Add HAVE_NATIVE_GCORE_HOST.
8855 * configure: Regenerate.
8856 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
8857 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
8858 AC_CONFIG_FILES for gcore.
8859 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
8860 gdb_have_gcore.
8861 * gdb_gcore.sh: Rename to ...
8862 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
8863 and GCORE_TRANSFORM_NAME substitutions.
8864
8865 Fix parsing tabs in ${gdb_target_obs}.
8866 * configure.tgt (gdb_have_gcore): Replace case with for and if.
8867
8868 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8869
8870 * remote.c (unpush_and_perror): Add output message final dot.
8871
8872 2013-04-11 Yao Qi <yao@codesourcery.com>
8873
8874 * tracepoint.c (tfile_interp_line): Fit parameters line and
8875 utpp in one line.
8876
8877 2013-04-10 Joel Brobecker <brobecker@adacore.com>
8878
8879 * solib.c (solib_map_sections): Remove code overwriting
8880 SO->SO_NAME with the bfd's filename.
8881
8882 2013-04-10 Pedro Alves <palves@redhat.com>
8883
8884 * cli/cli-decode.c (integer_unlimited_completer): New function.
8885 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
8886 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
8887 completer.
8888 * cli/cli-setshow.c: Include "cli/cli-utils.h".
8889 (is_unlimited_literal): New function.
8890 (do_set_command): Handle literal "unlimited" arguments.
8891 * frame.c (_initialize_frame) <set backtrace limit>: Document
8892 "unlimited".
8893 * printcmd.c (_initialize_printcmd) <set print
8894 max-symbolic-offset>: Add help text.
8895 * record-full.c (_initialize_record_full) <set record full
8896 insn-number-max>: Likewise.
8897 * record.c (_initialize_record) <set record
8898 instruction-history-size, set record function-call-history-size>:
8899 Add help text.
8900 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
8901 help text.
8902 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
8903 Likewise.
8904 * source.c (_initialize_source) <set listsize>: Add help text.
8905 * utils.c (initialize_utils) <set height, set width>: Likewise.
8906 <set pagination>: Mention "set height unlimited".
8907 * valprint.c (_initialize_valprint) <set print elements, set print
8908 repeats>: Document "unlimited".
8909
8910 2013-04-10 Pedro Alves <palves@redhat.com>
8911
8912 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
8913 instead of disconnect_tracing.
8914 * infcmd.c (detach_command, disconnect_command): Call
8915 query_if_trace_running. Adjust.
8916 * top.c: Include "tracepoint.h".
8917 (quit_target): Delete. Contents moved ...
8918 (quit_force): ... here. Wrap each stage of teardown in
8919 TRY_CATCH. Call disconnect_tracing before detaching.
8920
8921 2013-04-10 Hui Zhu <hui@codesourcery.com>
8922 Yao Qi <yao@codesourcery.com>
8923
8924 * configure.ac: Check libbabeltrace is installed.
8925 * config.in: Regenerate.
8926 * configure: Regenerate.
8927 * Makefile.in (LIBBABELTRACE): New.
8928 (CLIBS): Add LIBBABELTRACE.
8929 * ctf.c: Include "exec.h".
8930 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
8931 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
8932 (ctf_save_metadata_header): Define new type aliases in
8933 metadata.
8934 (ctf_write_header): Define event type "tsv_def" and "tp_def"
8935 in metadata. Start a new faked packet for trace status.
8936 (ctf_write_status): Write trace status to CTF.
8937 (ctf_write_uploaded_tsv): Write TSV to CTF.
8938 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
8939 (ctf_write_definition_end): End the faked packet.
8940
8941 (ctx, ctf_iter, trace_dirname): New.
8942 (start_pos): New variable.
8943 (ctf_destroy, ctf_open_dir, ctf_open): New.
8944 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
8945 macros.
8946 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
8947 (ctf_fetch_registers, ctf_xfer_partial): New.
8948 (ctf_get_trace_state_variable_value): New.
8949 (ctf_get_tpnum_from_frame_event): New.
8950 (ctf_get_traceframe_address): New.
8951 (ctf_trace_find, ctf_has_stack): New.
8952 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
8953 (ctf_get_trace_status, ctf_read_status): New.
8954 (_initialize_ctf): New.
8955 * tracepoint.c (get_tracepoint_number): New
8956 (get_uploaded_tsv): Remove 'static'.
8957 (struct traceframe_info, trace_regblock_size): Move it to ...
8958 * tracepoint.h: ... here.
8959 (get_tracepoint_number): Declare it.
8960 (get_uploaded_tsv): Declare it.
8961
8962 * NEWS: Mention new configure option.
8963
8964 2013-04-10 Pedro Alves <palves@redhat.com>
8965 Hui Zhu <hui@codesourcery.com>
8966
8967 * breakpoint.c (dprintf_re_set): New.
8968 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
8969 to dprintf_re_set.
8970
8971 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8972
8973 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
8974 Remove solib-svr4.o from the list.
8975
8976 2013-04-09 Joel Brobecker <brobecker@adacore.com>
8977
8978 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
8979 Use gdb_assert_not_reached instead of invalid boolean expression.
8980
8981 2013-04-09 Pedro Alves <palves@redhat.com>
8982
8983 * remote.c (unpush_and_perror): New function.
8984 (readchar, remote_serial_write): Use it.
8985
8986 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
8987
8988 * NEWS: Mention new btrace RSP packets.
8989
8990 2013-04-08 Tom Tromey <tromey@redhat.com>
8991
8992 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
8993 long.
8994
8995 2013-04-08 Tom Tromey <tromey@redhat.com>
8996
8997 * maint.c (print_bfd_section_info): Print the section index.
8998 * symmisc.c (dump_msymbols): Print the section index.
8999
9000 2013-04-08 Tom Tromey <tromey@redhat.com>
9001
9002 PR symtab/8424:
9003 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
9004 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
9005 * breakpoint.c (resolve_sal_pc): Update.
9006 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9007 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
9008 (minsym_lookup_iterator_cb): Use it.
9009 (default_read_var_value): Update.
9010 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
9011 Update.
9012 * infcmd.c (jump_command): Update.
9013 * linespec.c (minsym_found): Update.
9014 * maint.c (maintenance_translate_address): Update.
9015 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
9016 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
9017 * parse.c (write_exp_msymbol): Update.
9018 * printcmd.c (address_info): Update.
9019 * psymtab.c (find_pc_sect_psymbol): Update.
9020 (fixup_psymbol_section): Check SYMBOL_SECTION, not
9021 SYMBOL_OBJ_SECTION.
9022 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
9023 Don't initialize SYMBOL_OBJ_SECTION.
9024 * spu-tdep.c (spu_catch_start): Update.
9025 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
9026 * symmisc.c (dump_msymbols, print_symbol): Update.
9027 * symtab.c (fixup_section): Don't set 'obj_section'. Change
9028 how fallback section is computed.
9029 (fixup_symbol_section): Update.
9030 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
9031 Update.
9032 (allocate_symbol, initialize_symbol, allocate_template_symbol):
9033 Initialize SYMBOL_SECTION.
9034 * symtab.h (struct general_symbol_info) <section>: Update comment.
9035 <obj_section>: Remove.
9036 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
9037 (SYMBOL_OBJFILE): New macro.
9038
9039 2013-04-08 Tom Tromey <tromey@redhat.com>
9040
9041 * coffread.c (record_minimal_symbol): Update.
9042 * dbxread.c (record_minimal_symbol): Update.
9043 * elfread.c (record_minimal_symbol): Update.
9044 * machoread.c (macho_symtab_add_minsym): Update.
9045 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
9046 Update.
9047 * minsyms.c (prim_record_minimal_symbol): Update.
9048 (prim_record_minimal_symbol_full): Remove 'bfd_section'
9049 argument.
9050 (prim_record_minimal_symbol_and_info): Likewise.
9051 * minsyms.h (prim_record_minimal_symbol_full)
9052 (prim_record_minimal_symbol_and_info): Update.
9053 * symtab.c (allocate_symbol, initialize_symbol)
9054 (allocate_template_symbol): Initialize SYMBOL_SECTION.
9055 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
9056 Update.
9057
9058 2013-04-08 Tom Tromey <tromey@redhat.com>
9059
9060 PR symtab/8423:
9061 * solib-som.c (som_solib_section_offsets): Use BFD section
9062 indices. Set offsets for all sections.
9063 * somread.c (som_symtab_read): Compute BFD section for
9064 symbol. Use prim_record_minimal_symbol_and_info.
9065 (som_symfile_read): Fix comment.
9066 (struct find_section_offset_arg): New.
9067 (find_section_offset, set_section_index): New functions.
9068 (som_symfile_offsets): Use set_section_index to compute
9069 section indices.
9070
9071 2013-04-08 Tom Tromey <tromey@redhat.com>
9072
9073 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
9074 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
9075 gdb_bfd_section_index.
9076 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
9077 New functions.
9078 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
9079 Declare.
9080 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
9081 Update.
9082 * objfiles.c (add_to_objfile_sections_full): New function.
9083 (add_to_objfile_sections): Use it.
9084 (build_section_table): Rewrite.
9085 (objfile_relocate1): Use gdb_bfd_section_index. Update.
9086 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
9087 (struct objfile) <sections>: Update comment.
9088 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
9089 is NULL.
9090 (ALL_OBJSECTIONS): Use it.
9091 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9092 * solib-frv.c (frv_relocate_main_executable): Update.
9093 * solib-target.c (solib_target_relocate_section_addresses):
9094 Use gdb_bfd_section_index.
9095 * symfile.c (build_section_addr_info_from_section_table):
9096 Use gdb_bfd_section_index.
9097 (build_section_addr_info_from_bfd, place_section): Likewise.
9098 * symtab.c (fixup_section): Update.
9099 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
9100
9101 2013-04-08 Tom Tromey <tromey@redhat.com>
9102
9103 * minsyms.h (struct bound_minimal_symbol): New.
9104 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9105 Remove objfile argument.
9106 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9107 Return bound_minimal_symbol.
9108 * minsyms.c (lookup_minimal_symbol_by_pc_1)
9109 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
9110 Return bound_minimal_symbol.
9111 (in_gnu_ifunc_stub): Update.
9112 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
9113 Remove 'objfile_p' argument.
9114 (lookup_solib_trampoline_symbol_by_pc): Update.
9115 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
9116 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
9117 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
9118 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
9119 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
9120 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
9121 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
9122 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
9123 stack.c, symtab.c, tui/tui-disasm.c: Update.
9124
9125 2013-04-08 Tom Tromey <tromey@redhat.com>
9126
9127 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
9128 Use symbol's obstack, not an objfile.
9129 * coffread.c (process_coff_symbol): Update.
9130 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
9131 * jv-lang.c (add_class_symbol): Update.
9132 * mdebugread.c (new_symbol): Update.
9133 * minsyms.c (prim_record_minimal_symbol_full)
9134 (terminate_minimal_symbol_table): Update.
9135 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
9136 * stabsread.c (define_symbol, read_enum_type): Update.
9137 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
9138 Handle Ada specially.
9139 (symbol_set_language): Add 'obstack' argument.
9140 (symbol_set_names): Update.
9141 (symbol_natural_name, symbol_demangled_name): Always use
9142 ada_decode_symbol.
9143 * symtab.h (struct general_symbol_info)
9144 <language_specific::obstack>: New field.
9145 <ada_mangled>: New field.
9146 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
9147 (symbol_set_language): Update.
9148
9149 2013-04-08 Tom Tromey <tromey@redhat.com>
9150
9151 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
9152 Take an obstack, not an objfile.
9153 (symbol_set_names): Update.
9154 * symtab.h (symbol_set_demangled_name): Update.
9155
9156 2013-04-08 Tom Tromey <tromey@redhat.com>
9157
9158 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
9159 allocate_symbol.
9160 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
9161 (read_func_scope): Call allocate_template_symbol.
9162 (new_symbol_full): Call allocate_symbol.
9163 * jit.c (finalize_symtab): Call allocate_symbol.
9164 * jv-lang.c (add_class_symbol): Call allocate_symbol.
9165 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
9166 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9167 (common_block_end): Call allocate_symbol.
9168 * symtab.c (allocate_symbol, initialize_symbol)
9169 (allocate_template_symbol): New functions.
9170 * symtab.c (allocate_symbol, initialize_symbol)
9171 (allocate_template_symbol): Declare.
9172 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
9173
9174 2013-04-08 Pedro Alves <palves@redhat.com>
9175 Keith Seitz <keiths@redhat.com>
9176
9177 * breakpoint.c (create_breakpoint): Rename
9178 "parse_condition_and_thread" parameter to "parse_arg". Update
9179 describing comment. If !PARSE_ARG, then error out if ARG is not
9180 the empty string after extracting the location.
9181 * breakpoint.h (create_breakpoint): Rename
9182 "parse_condition_and_thread" parameter to "parse_arg".
9183
9184 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
9185
9186 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
9187
9188 2013-04-07 Yao Qi <yao@codesourcery.com>
9189
9190 * remote.c (remote_trace_find): Change type of parameters 'addr1'
9191 and 'addr2' to CORE_ADDR.
9192 * target.c (update_current_target): Update.
9193 * target.h (struct target_ops) <to_trace_find>: Change parameter
9194 type to CORE_ADDR.
9195 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
9196 'addr2' to CORE_ADDR.
9197 (tfile_trace_find): Likewise.
9198 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
9199 Change local variable 'addr' to type CORE_ADDR.
9200 * tracepoint.h (tfind_1): Update declaration.
9201
9202 2013-04-06 Eli Zaretskii <eliz@gnu.org>
9203
9204 * windows-nat.c (windows_get_absolute_argv0): Move from here...
9205 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
9206 Include main.h.
9207
9208 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
9209 here...
9210 * main.h (windows_get_absolute_argv0): ...to here.
9211
9212 2013-04-05 Doug Evans <dje@google.com>
9213
9214 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
9215 (read_cutu_die_from_dwo): Add comments.
9216 (read_structure_type): Update comment.
9217 (read_enumeration_type, read_namespace_type): Update comment.
9218 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
9219
9220 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9221
9222 Convert man pages to texinfo, new gdbinit.5 texinfo page.
9223 * Makefile.in (gdb.z): Remove.
9224 (install-only): Remove $(man1dir) and gdb.1 installation.
9225 * gdb.1: Remove.
9226
9227 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9228
9229 Fix compatibility with Linux kernel 3.8.3.
9230 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
9231 to more inner block. Remove parsing of NUMBER from outer block.
9232 Parse NUMBER only if KEYWORD has been identified.
9233
9234 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 Fix variable name shadowing.
9237 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
9238 filename to mapsfilename and update its uses.
9239
9240 2013-04-05 Eli Zaretskii <eliz@gnu.org>
9241
9242 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
9243 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
9244 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
9245 details of the problem.
9246
9247 2013-04-04 Pedro Alves <palves@redhat.com>
9248 Hui Zhu <hui@codesourcery.com>
9249
9250 * breakpoint.c (validate_commands_for_breakpoint): If validating a
9251 tracepoint, reset its STEP_COUNT and call validate_actionline.
9252
9253 2013-04-03 Doug Evans <dje@google.com>
9254
9255 * dwarf2read.c (read_die_and_siblings_1): Renamed from
9256 read_die_and_siblings.
9257 (read_die_and_siblings): New function.
9258 (read_cutu_die_from_dwo): Dump die if requested.
9259 (read_die_and_children): Call read_full_die_1 and
9260 read_die_and_siblings_1.
9261 (read_full_die): Dump die if requested.
9262
9263 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
9264
9265 * dwarf2read.c (struct dwo_file): New member comp_dir.
9266 Rename member name to dwo_name. All uses updated.
9267 (hash_dwo_file): Include comp_dir in computation.
9268 (eq_dwo_file): Ditto.
9269 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
9270 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
9271
9272 * psymtab.c (read_psymtabs_with_fullname): Don't call
9273 psymtab_to_fullname if the basenames are different.
9274
9275 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
9278 New entry about "fullname" presence.
9279
9280 2013-04-03 Pedro Alves <palves@redhat.com>
9281
9282 * NEWS: Mention x86_64/Cygwin as new native configuration.
9283
9284 2013-04-02 Doug Evans <dje@google.com>
9285
9286 * dwarf2read.c (read_structure_type): Fix typo in comment.
9287
9288 2013-04-02 Pedro Alves <palves@redhat.com>
9289
9290 * NEWS: Mention "set/show debug aarch64", "set/show debug
9291 coff-pe-read" and "set/show debug mach-o".
9292
9293 2013-04-02 Pedro Alves <palves@redhat.com>
9294
9295 * NEWS: Mention "set/show remote trace-buffer-size-packet".
9296
9297 2013-04-02 Eli Zaretskii <eliz@gnu.org>
9298
9299 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
9300 gdb_string.h is now in common/.
9301
9302 2013-04-02 Pedro Alves <palves@redhat.com>
9303
9304 * NEWS: Move "set debug notification" and "set trace-buffer-size"
9305 under "New options".
9306
9307 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9308
9309 Revert this patch:
9310 PR gdb/15275
9311 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9312
9313 2013-04-02 Pedro Alves <palves@redhat.com>
9314
9315 PR gdb/15275
9316
9317 * remote.c (send_interrupt_sequence): Use remote_serial_write.
9318 (remote_serial_write): New function.
9319 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
9320
9321 2013-04-01 Jiong Wang <jiwang@tilera.com>
9322
9323 * NEWS: Mention TILE-Gx in "New native configurations" and
9324 "New targets" sections.
9325
9326 2013-04-01 Doug Evans <dje@google.com>
9327
9328 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
9329 (process_enumeration_scope): Simplify.
9330
9331 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
9332 type_unit_group ...
9333 (struct signatured_type): ... to here.
9334 (sig_type_ptr): New typedef.
9335 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
9336 out of union 't'. All uses updated.
9337 (dw2_get_file_names_reader): Assert not called for a type unit.
9338 (dw2_get_file_names): Assert not called for a type unit or type
9339 unit group.
9340 (build_type_psymtabs_reader): Assert called for a type unit.
9341 (build_type_psymtab_dependencies): Assert called for a type unit group.
9342
9343 * dwarf2read.c (free_dwo_file): Add comment.
9344 (dwarf2_per_objfile_free): Unref dwp bfd.
9345
9346 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9347
9348 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
9349 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
9350 (read_pe_exported_syms): Remove unused 'exportix'.
9351 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
9352 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
9353 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
9354
9355 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
9356
9357 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
9358 (print_it_watchpoint): Remove unused 'bl'.
9359 (say_where): Remove unused 'uiout'.
9360 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
9361 (bkpt_breakpoint_hit): Remove unused 'b'.
9362 (internal_bkpt_print_it): Remove unused 'uiout'.
9363 * buildsym.c (augment_type_symtab): Remove unused 'i'.
9364
9365 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9366
9367 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
9368 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
9369
9370 2013-03-29 Doug Evans <dje@google.com>
9371
9372 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
9373 Delete arg is_dwp. All callers updated.
9374 (open_dwp_file): New function.
9375 (open_and_init_dwp_file): Call it.
9376 (get_dwp_file): New function.
9377 (lookup_dwo_cutu): Call it.
9378
9379 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
9380 unnecessary, cleanup.
9381
9382 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
9383
9384 * dwarf2read.c (read_cutu_die_from_dwo): New function.
9385 (lookup_dwo_unit): New function.
9386 (init_cutu_and_read_dies): Move DWO handling to new functions.
9387
9388 * dwarf2read.c (struct signatured_type): Tweak comment.
9389 (struct dwo_unit): Tweak comment.
9390 (create_debug_types_hash_table): Tweak comment. Reformat long line.
9391 (create_dwo_debug_info_hash_table): Tweak comment.
9392 (dwarf2_per_cu_offset_and_type): Tweak comment.
9393
9394 * dwarf2read.c (lookup_signatured_type): Remove complaint about
9395 missing .debug_types section.
9396
9397 2013-03-29 Yao Qi <yao@codesourcery.com>
9398
9399 * corelow.c: Include "completer.h".
9400 (_initialize_corelow): Call add_target_with_completer with
9401 argument 'filename_completer'.
9402 * tracepoint.c: Likewise.
9403 * exec.c (_initialize_exec): Likewise.
9404 * target.c (add_target): Rename to ...
9405 (add_target_with_completer): ... this. Call set_cmd_completer
9406 if parameter completer is not NULL.
9407 (add_target): New.
9408 * target.h: Include "command.h".
9409 (add_target_with_completer): Declare it.
9410
9411 2013-03-28 Joel Brobecker <brobecker@adacore.com>
9412
9413 * coffread.c (is_import_fixup_symbol): New function.
9414 (record_minimal_symbol): Use is_import_fixup_symbol to
9415 detect import fixup symbols, and discard them.
9416
9417 2013-03-28 Doug Evans <dje@google.com>
9418
9419 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
9420 types hash table until we know we need it.
9421
9422 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
9423 index numbers.
9424
9425 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
9426 All callers updated.
9427 (dw2_print_stats): Print #read CUs too.
9428 (dump_die_shallow): Print signatured types better.
9429
9430 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
9431 info_or_types_section to section. All uses updated.
9432 (struct dwo_unit): Ditto.
9433
9434 2013-03-28 Pedro Alves <palves@redhat.com>
9435
9436 * NEWS (New options): New section.
9437 (New options): Mention set/show remote trace-status-packet.
9438 * remote.c (PACKET_qTStatus): New enumeration value.
9439 (remote_get_trace_status): Skip sending qTStatus if the packet is
9440 disabled. Use packet_ok.
9441 (_initialize_remote): Register a configuration command for
9442 qTStatus packet.
9443
9444 2013-03-28 Doug Evans <dje@google.com>
9445
9446 * symfile.c (find_separate_debug_file): Add comment.
9447 (terminate_after_last_dir_separator): Tweak comment.
9448
9449 * dwarf2read.c (create_partial_symtab): Add forward decl.
9450 (create_partial_symtab): Move to be closer to other psymtab functions.
9451 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
9452
9453 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
9454 (compute_symtab_includes): Remove unnecessary forward declaration.
9455 (die_needs_namespace): Add comment marking group of functions for
9456 dwarf2 name computation.
9457
9458 * typeprint.c (_initialize_typeprint): Improve type help text.
9459
9460 * python/python.c (finish_python_initialization): Provide suggestion
9461 for how to tell gdb to find its python files.
9462
9463 2013-03-28 Pedro Alves <palves@redhat.com>
9464
9465 PR gdb/15294
9466
9467 * source.c (_initialize_source): Change back "set listsize" to an
9468 integer command.
9469
9470 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
9471
9472 PR gdb/15275
9473 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
9474
9475 2013-03-27 Pedro Alves <palves@redhat.com>
9476
9477 * top.c (history_size): Rename to ...
9478 (history_size_setshow_var): ... this. Add comment.
9479 (show_commands): Use readline's 'history_length' instead of
9480 computing the history length by calling history_get in a loop.
9481 (set_history_size_command): Error out for sizes over INT_MAX.
9482 Restore previous history size on invalid size.
9483 (init_history): If HISTSIZE is negative, leave the history size as
9484 zero. Add comments.
9485 (init_main): Adjust.
9486
9487 2013-03-27 Pedro Alves <palves@redhat.com>
9488
9489 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
9490 coff_pe_read" command to "set debug coff-pe-read".
9491
9492 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
9493
9494 * record.c (command_size_to_target_size): Fix size comparison.
9495 Change parameter type from pointer to integer to integer.
9496 Update all users.
9497
9498 2013-03-27 Pierre Muller <muller@sourceware.org>
9499
9500 * windows-nat.c (handle_output_debug_string): Avoid typecast
9501 from integer of different size warning.
9502
9503 2013-03-26 Joel Brobecker <brobecker@adacore.com>
9504
9505 * windows-nat.c (handle_output_debug_string): Add empty line
9506 after local block variable definition.
9507
9508 2013-03-26 Pedro Alves <palves@redhat.com>
9509
9510 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
9511 (net_open): Make 'polls' local unsigned.
9512
9513 2013-03-26 Pedro Alves <palves@redhat.com>
9514
9515 * remote.c (_initialize_remote): Make "set remoteaddresssize"
9516 a zuinteger command instead of uinteger.
9517
9518 2013-03-26 Pedro Alves <palves@redhat.com>
9519
9520 * record-full.c (record_full_insn_num): Make it unsigned.
9521 (record_full_check_insn_num, record_full_message)
9522 (record_full_registers_change, record_full_xfer_partial): Remove
9523 record_full_insn_max_num check (it's always != 0).
9524 (record_full_info, record_full_restore): Use %u as format string.
9525 (): Use %u as format string.
9526 (set_record_full_insn_max_num): Remove record_full_insn_max_num
9527 check (it's always != 0).
9528
9529 2013-03-26 Pedro Alves <palves@redhat.com>
9530
9531 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
9532 and "set dcache size" commands zuinteger instead of uinteger.
9533
9534 2013-03-26 Pedro Alves <palves@redhat.com>
9535
9536 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
9537 command zuinteger instead of uinteger.
9538
9539 2013-03-26 Pedro Alves <palves@redhat.com>
9540
9541 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
9542 zuinteger instead of uinteger.
9543
9544 2013-03-26 Pedro Alves <palves@redhat.com>
9545
9546 * record.c (record_insn_history_size_setshow_var)
9547 (record_call_history_size_setshow_var): New globals.
9548 (command_size_to_target_size): New function.
9549 (cmd_record_insn_history, cmd_record_call_history): Use
9550 command_size_to_target_size instead of cast.
9551 (validate_history_size, set_record_insn_history_size)
9552 (set_record_call_history_size): New functions.
9553 (_initialize_record): Install set_record_insn_history_size and
9554 set_record_call_history_size as "set" hooks of "set record
9555 instruction-history-size" and "set record
9556 function-call-history-size".
9557
9558 2013-03-26 Pedro Alves <palves@redhat.com>
9559
9560 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
9561 use with history_max_entries use. Remove FIXME note.
9562
9563 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
9564
9565 * record-btrace.c (record_btrace_close): Call
9566 record_btrace_auto_disable.
9567
9568 2013-03-25 Joel Brobecker <brobecker@adacore.com>
9569
9570 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
9571
9572 2013-03-25 Doug Evans <dje@google.com>
9573
9574 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
9575
9576 2013-03-25 Tom Tromey <tromey@redhat.com>
9577
9578 PR symtab/11462:
9579 * c-exp.y (exp): Add new productions for destructors after '.' and
9580 '->'.
9581 (write_destructor_name): New function.
9582
9583 2013-03-25 Tom Tromey <tromey@redhat.com>
9584
9585 PR c++/9197:
9586 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
9587 value_struct_elt, not lookup_struct_elt_type.
9588 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
9589 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
9590 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
9591
9592 2013-03-25 Yao Qi <yao@codesourcery.com>
9593
9594 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
9595 instead of '_mkdir'.
9596
9597 2013-03-23 Eli Zaretskii <eliz@gnu.org>
9598
9599 * windows-nat.c (windows_get_absolute_argv0): New function.
9600 * windows-nat.h: Add its prototype.
9601
9602 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
9603 Use IS_DIR_SEPARATOR instead of looking for a character inside
9604 SLASH_STRING. Include filenames.h.
9605 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
9606 relocate_gdb_directory works when passed gdb_program_name.
9607 Include windows-nat.h.
9608
9609 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9610
9611 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
9612 * remote.c (trace_error): Remove the special handling of '2'.
9613 (readchar) <SERIAL_EOF>
9614 (readchar) <SERIAL_ERROR>
9615 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
9616 (remote_get_trace_status): Call throw_exception if EX is
9617 TARGET_CLOSE_ERROR.
9618 * utils.c (perror_with_name): Rename to ...
9619 (throw_perror_with_name): ... here. New parameter errcode, describe it
9620 in the function comment.
9621 (perror_with_name): New function wrapper.
9622 * utils.h (enum errors): New stub declaration.
9623 (throw_perror_with_name): New declaration.
9624
9625 2013-03-22 Pedro Alves <palves@redhat.com>
9626 Yao Qi <yao@codesourcery.com>
9627 Mark Kettenis <kettenis@gnu.org>
9628
9629 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
9630 Don't let the user set the value to UINT_MAX directly.
9631 <var_integer>: Don't let the user set the value to INT_MAX
9632 directly.
9633
9634 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 * remote.c (remote_unpush_target): New function.
9637 (remote_open_1): Remove two pop_target calls, update one comment, add
9638 comment to target_preopen call. Replace pop_target call by
9639 remote_unpush_target call.
9640 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
9641 pop_target calls by remote_unpush_target calls.
9642
9643 2013-03-22 Pedro Alves <palves@redhat.com>
9644
9645 * linux-nat.c (linux_child_follow_fork): Don't call
9646 linux_enable_event_reporting.
9647 (linux_handle_extended_wait): Don't call
9648 linux_enable_event_reporting.
9649
9650 2013-03-22 Pedro Alves <palves@redhat.com>
9651
9652 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
9653 use it to rewrite the trampoline buffers with type gdb_byte[], and
9654 undefine the macro. Remove char* cast.
9655
9656 2013-03-21 Doug Evans <dje@google.com>
9657
9658 New commands "mt set per-command {space,time,symtab} {on,off}".
9659 * NEWS: Add entry.
9660 * event-top.c: #include "maint.h".
9661 * main.c: #include "maint.h".
9662 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
9663 timeval-utils.h, maint.h, cli/cli-setshow.h.
9664 (per_command_time, per_command_space): New static globals.
9665 (per_command_symtab): New static global.
9666 (per_command_setlist, per_command_showlist): New static globals.
9667 (struct cmd_stats): Move here from utils.c.
9668 (set_per_command_time): Renamed from set_display_time in utils.c
9669 and moved here. All callers updated.
9670 (set_per_command_space): Renamed from set_display_space in utils.c
9671 and moved here. All callers updated.
9672 (count_symtabs_and_blocks): New function.
9673 (report_command_stats): Moved here from utils.c. Add support for
9674 printing symtab stats. Only print data if enabled before command
9675 executed.
9676 (make_command_stats_cleanup): Ditto.
9677 (sert_per_command_cmd, show_per_command_cmd): New functions.
9678 (_initialize_maint_cmds): Add new commands
9679 mt set per-command {space,time,symtab} {on,off}.
9680 * maint.h: New file.
9681 * top.c: #include "maint.h".
9682 * utils.c (reset_prompt_for_continue_wait_time): New function.
9683 (get_prompt_for_continue_wait_time): New function.
9684 * utils.h (reset_prompt_for_continue_wait_time): Declare
9685 (get_prompt_for_continue_wait_time): Declare.
9686 (make_command_stats_cleanup): Moved to maint.h.
9687 (set_display_time, set_display_space): Moved to maint.h and renamed
9688 to set_per_command_time, set_per_command_space.
9689 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
9690 parse_binary_operation and made non-static. Don't call error,
9691 just return an error marker. All callers updated.
9692 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
9693
9694 2013-03-21 Tom Tromey <tromey@redhat.com>
9695
9696 * symfile.c (alloc_section_addr_info): Update header. Don't set
9697 'num_sections' field.
9698 (build_section_addr_info_from_section_table): Set 'num_sections'.
9699 (build_section_addr_info_from_bfd): Likewise.
9700 (build_section_addr_info_from_objfile): Remove dead loop
9701 condition.
9702 (free_section_addr_info): Unconditionally call xfree.
9703 (relative_addr_info_to_section_offsets, addrs_section_sort)
9704 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
9705 condition.
9706 (syms_from_objfile_1): Remove dead 'if' condition. Check
9707 'num_sections'.
9708 (add_symbol_file_command): Set 'num_sections'.
9709 * symfile-mem.c (symbol_file_add_from_memory): Set
9710 'num_sections'.
9711 * somread.c (som_symfile_offsets): Remove dead loop condition.
9712 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
9713 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
9714
9715 2013-03-21 Tom Tromey <tromey@redhat.com>
9716
9717 * tracepoint.h (decode_agent_options): Add 'trace_string'
9718 argument.
9719 * tracepoint.c (decode_agent_options): Add 'trace_string'
9720 argument.
9721 (validate_actionline): Update.
9722 (collect_symbol): Add 'trace_string' argument.
9723 (struct add_local_symbols_data) <trace_string>: New field.
9724 (do_collect_symbol): Update.
9725 (add_local_symbols): Add 'trace_string' argument.
9726 (encode_actions_1): Update.
9727 (trace_dump_actions): Update.
9728 * dwarf2loc.c (access_memory): Update.
9729 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
9730 * ax-general.c (new_agent_expr): Update.
9731 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
9732 (gen_trace_for_return_address): Add argument.
9733 (trace_kludge, trace_string_kludge): Remove.
9734 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
9735 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
9736 (gen_trace_for_var): Add 'trace_string' argument.
9737 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
9738 (gen_printf, agent_eval_command_one): Update.
9739
9740 2013-03-21 Tom Tromey <tromey@redhat.com>
9741
9742 PR exp/15109:
9743 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
9744 Handle FILENAME token.
9745
9746 2013-03-21 Tom Tromey <tromey@redhat.com>
9747
9748 * c-exp.y (YYPRINT): Define.
9749 (c_print_token): New function.
9750
9751 2013-03-21 Tom Tromey <tromey@redhat.com>
9752
9753 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
9754
9755 2013-03-21 Yao Qi <yao@codesourcery.com>
9756
9757 * ctf.c: Include "gdb_stat.h".
9758 [USE_WIN32API]: New macro 'mkdir'.
9759 (ctf_start): Use permission bits macros if they are defined.
9760
9761 2013-03-20 Keith Seitz <keiths@redhat.com>
9762
9763 * breakpoint.h (struct breakpoint): Add comment to
9764 extra_string indicating that this member is mallod'd.
9765 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
9766
9767 2013-03-20 Pedro Alves <palves@redhat.com>
9768
9769 PR gdb/15289
9770
9771 * cli/cli-setshow.c (do_set_command)
9772 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
9773 the result of parsing the command argument. Throw error if the
9774 value is greater than UINT_MAX. Print the invalid value with
9775 plongest.
9776 <var_integer, var_zinteger>: Use LONGEST for variable holding the
9777 result of parsing the command argument. Throw error if the value
9778 is greater than INT_MAX, not greater or equal. Also throw error
9779 if the value is less than INT_MIN. Print the invalid value with
9780 plongest.
9781 <var_zuinteger_unlimited>: Throw error if the value is greater
9782 than INT_MAX, not greater or equal.
9783 (do_show_command) <var_integer, var_zinteger,
9784 var_zuinteger_unlimited>: Use %d for printing int, not %u.
9785
9786 2013-03-20 Tom Tromey <tromey@redhat.com>
9787
9788 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
9789 if possible.
9790 * dwarf2read.c (read_func_scope): Remove old FIXME.
9791 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
9792 not LOC_COMPUTED.
9793 * findvar.c (symbol_read_needs_frame, default_read_var_value):
9794 Unconditionally call via computed ops, if possible.
9795 * printcmd.c (address_info): Unconditionally call via computed ops,
9796 if possible.
9797 * stack.c (read_frame_arg): Unconditionally call via computed ops,
9798 if possible.
9799 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
9800 * tracepoint.c (scope_info): Unconditionally call via computed ops,
9801 if possible.
9802
9803 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9804 Tom Tromey <tromey@redhat.com>
9805
9806 PR symtab/8421:
9807 * coffread.c (coff_register_index): New global.
9808 (process_coff_symbol, coff_read_enum_type): Set
9809 SYMBOL_ACLASS_INDEX.
9810 (_initialize_coffread): Initialize new global.
9811 * dwarf2loc.c (locexpr_find_frame_base_location)
9812 (dwarf2_block_frame_base_locexpr_funcs)
9813 (loclist_find_frame_base_location)
9814 (dwarf2_block_frame_base_loclist_funcs): New.
9815 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
9816 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
9817 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
9818 (dwarf2_block_frame_base_loclist_funcs): New.
9819 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
9820 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
9821 globals.
9822 (read_func_scope): Update.
9823 (fixup_go_packaging, mark_common_block_symbol_computed)
9824 (var_decode_location, new_symbol_full, dwarf2_const_value):
9825 Set SYMBOL_ACLASS_INDEX.
9826 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
9827 (_initialize_dwarf2_read): Initialize new globals.
9828 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
9829 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
9830 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
9831 globals.
9832 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
9833 (_initialize_mdebugread): Initialize new globals.
9834 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
9835 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
9836 (stab_register_index, stab_regparm_index): New globals.
9837 (define_symbol, read_enum_type, common_block_end): Set
9838 SYMBOL_ACLASS_INDEX.
9839 (_initialize_stabsread): Initialize new globals.
9840 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
9841 globals.
9842 (MAX_SYMBOL_IMPLS): New define.
9843 (register_symbol_computed_impl, register_symbol_block_impl)
9844 (register_symbol_register_impl)
9845 (initialize_ordinary_address_classes): New functions.
9846 (_initialize_symtab): Call initialize_ordinary_address_classes.
9847 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
9848 (struct symbol_impl): New.
9849 (SYMBOL_ACLASS_BITS): New define.
9850 (struct symbol) <aclass, ops>: Remove fields.
9851 <aclass_index>: New field.
9852 (symbol_impls): Declare.
9853 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
9854 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
9855 (register_symbol_computed_impl, register_symbol_block_impl)
9856 (register_symbol_register_impl): Declare.
9857 (struct symbol_computed_ops): Add location_has_loclist.
9858 (struct symbol_block_ops): New.
9859 (SYMBOL_BLOCK_OPS): New.
9860 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
9861
9862 2013-03-20 Tom Tromey <tromey@redhat.com>
9863
9864 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
9865 (print_partial_symbols, recursively_search_psymtabs): Use
9866 PSYMBOL_CLASS.
9867
9868 2013-03-20 Pierre Muller <muller@sourceware.org>
9869
9870 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
9871 addtion, subtraction, multiplication and division binary operator.
9872
9873 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 Code cleanup.
9876 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
9877 * bsd-kvm.c (bsd_kvm_close): Likewise.
9878 * bsd-uthread.c (bsd_uthread_close): Likewise.
9879 * corelow.c (core_close): Likewise.
9880 (core_close_cleanup): Remove parameter quitting from a caller.
9881 * event-top.c (async_disconnect): Likewise.
9882 * exec.c (exec_close_1): Remove parameter quitting.
9883 * go32-nat.c (go32_close): Likewise.
9884 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
9885 parameter quitting from a caller.
9886 * mips-linux-nat.c (super_close): Remove parameter quitting from the
9887 variable.
9888 (mips_linux_close): Remove parameter quitting. Remove parameter
9889 quitting from a caller.
9890 * monitor.c (monitor_close): Remove parameter quitting.
9891 * monitor.h (monitor_close): Likewise.
9892 * record-btrace.c (record_btrace_close): Likewise.
9893 * record-full.c (record_full_close): Likewise.
9894 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
9895 it also from fprintf_unfiltered.
9896 * remote-mips.c (mips_close): Remove parameter quitting.
9897 (mips_detach): Remove parameter quitting from a caller.
9898 * remote-sim.c (gdbsim_close): Remove parameter quitting.
9899 (gdbsim_close): Remove duplicate function comment. Remove parameter
9900 quitting and remove it also from printf_filtered.
9901 * remote.c (remote_close): Remove parameter quitting.
9902 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
9903 * target.c (update_current_target): Remove parameter int from to_close
9904 de_fault.
9905 (push_target, unpush_target, pop_target): Remove parameter quitting from
9906 a caller.
9907 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
9908 Remove parameter quitting from a caller.
9909 (target_preopen): Remove parameter quitting from a caller.
9910 (target_close): Remove parameter quitting. Remove parameter quitting
9911 from a caller two times. Remove parameter quitting also from
9912 fprintf_unfiltered.
9913 * target.h (struct target_ops): Remove parameter quitting and as int
9914 from fields to_xclose and to_close.
9915 (extern struct target_ops current_target):
9916 (target_close, pop_all_targets): Remove parameter quitting. Update the
9917 comment.
9918 (pop_all_targets_above): Remove parameter quitting.
9919 * top.c (quit_target): Remove parameter quitting from a caller.
9920 * tracepoint.c (tfile_close): Remove parameter quitting.
9921 * windows-nat.c (windows_close): Remove parameter quitting.
9922
9923 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
9924
9925 * windows-nat.c (handle_output_debug_string): Replace call
9926 to string_to_core_addr with call to strtoull.
9927
9928 2013-03-20 Yao Qi <yao@codesourcery.com>
9929
9930 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
9931 and write it to CTF metadata.
9932
9933 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
9934
9935 * windows-nat.c (handle_output_debug_string): Change type of n to
9936 SIZE_T to avoid crash on 64 bit systems.
9937
9938 2013-03-17 Eli Zaretskii <eliz@gnu.org>
9939
9940 * python/python-internal.h (HAVE_SNPRINTF)
9941 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
9942 about redefinition of snprintf by pyerrors.h.
9943
9944 2013-03-15 Steve Ellcey <sellcey@mips.com>
9945
9946 * remote-sim.c (sim_command_completer): Make char arguments const.
9947
9948 2013-03-15 Tom Tromey <tromey@redhat.com>
9949
9950 PR c++/15116:
9951 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
9952
9953 2013-03-14 Tom Tromey <tromey@redhat.com>
9954
9955 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
9956 New fields.
9957 (get_file_crc): Move from symfile.c.
9958 (gdb_bfd_crc): New function.
9959 * gdb_bfd.h (gdb_bfd_crc): Declare.
9960 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
9961 * symfile.c (get_file_crc): Move to gdb_bfd.c.
9962 (separate_debug_file_exists): Use gdb_bfd_crc.
9963
9964 2013-03-14 Tom Tromey <tromey@redhat.com>
9965
9966 * symfile.c (get_debug_link_info): Remove.
9967 (find_separate_debug_file_by_debuglink): Use
9968 bfd_get_debug_link_info.
9969
9970 2013-03-14 Tom Tromey <tromey@redhat.com>
9971
9972 * symtab.c (error_in_psymtab_expansion): New function.
9973 (lookup_symbol_aux_quick)
9974 (basic_lookup_transparent_type_quick): Remove "last resort"
9975 code. Use error_in_psymtab_expansion.
9976
9977 2013-03-14 Doug Evans <dje@google.com>
9978 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
9981 any successful compare_filenames_for_search or FILENAME_CMP.
9982 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9983 * symtab.c (iterate_over_some_symtabs): Likewise.
9984
9985 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9986
9987 * source.c (print_source_lines_base): Make a local copy of
9988 symtab_to_fullname.
9989
9990 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
9991 Jan Kratochvil <jan.kratochvil@redhat.com>
9992
9993 * source.c (print_source_lines_base): Suppress "file" for TUI.
9994
9995 2013-03-14 Keith Seitz <keiths@redhat.com>
9996 Alan Matsuoka <alanm@redhat.com>
9997
9998 PR c++/15203
9999 PR c++/15210
10000 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
10001 TYPE_CODE_METHOD.
10002 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
10003 symbols.
10004
10005 2013-03-14 Yao Qi <yao@codesourcery.com>
10006
10007 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
10008 status to tfile if trace is stopped by command 'tstop'.
10009
10010 2013-03-14 Yao Qi <yao@codesourcery.com>
10011
10012 * tracepoint.c (tfile_write_status): Write trace notes and user
10013 name into tfile if they are not NULL.
10014
10015 2013-03-14 Hui Zhu <hui@codesourcery.com>
10016 Yao Qi <yao@codesourcery.com>
10017
10018 * Makefile.in (REMOTE_OBS): Add ctf.o.
10019 (SFILES): Add ctf.c.
10020 (HFILES_NO_SRCDIR): Add ctf.h.
10021 * ctf.c, ctf.h: New files.
10022 * tracepoint.c: Include 'ctf.h'.
10023 (collect_pseudocommand): Remove static.
10024 (trace_save_command): Parse option "-ctf".
10025 Produce different trace file writers per option.
10026 Adjust output message.
10027 (trace_save_tfile, trace_save_ctf): New.
10028 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
10029 * mi/mi-main.c: Include 'ctf.h'.
10030 (mi_cmd_trace_save): Handle option '-ctf'. Call either
10031 trace_save_tfile or trace_save_ctf.
10032 * NEWS: Mention these changes.
10033
10034 2013-03-14 Yao Qi <yao@codesourcery.com>
10035
10036 * tracepoint.c (trace_file_writer_xfree): New.
10037 (struct tfile_writer_data): New.
10038 (tfile_dtor, tfile_can_target_save, tfile_start): New.
10039 (tfile_write_header, tfile_write_regblock_type): New.
10040 (tfile_write_status, tfile_write_uploaded_tsv): New.
10041 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
10042 (tfile_write_raw_data, (tfile_end): New.
10043 (tfile_write_ops): New global variable.
10044 (TRACE_WRITE_R_BLOCK): New macro.
10045 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
10046 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
10047 (TRACE_WRITE_V_BLOCK): New macro.
10048 (trace_save): Add extra one parameter WRITER. Make it static.
10049 Use WRITER to writer trace.
10050 (tfile_trace_file_writer_new): New.
10051 (trace_save_command): Caller update.
10052 (trace_save_tfile): Write trace data in TFILE format.
10053 * tracepoint.h (struct trace_frame_write_ops): New.
10054 (struct trace_file_write_ops): New.
10055 (struct trace_file_writer): New.
10056 (trace_save): Remove its declaration.
10057 (trace_save_tfile): Declare it.
10058 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
10059 instead of trace_save.
10060
10061 2013-03-13 Pedro Alves <palves@redhat.com>
10062
10063 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
10064
10065 2013-03-13 Pedro Alves <palves@redhat.com>
10066
10067 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
10068 commented out code.
10069 * demangle.c (current_demangling_style_string): Make it const.
10070 (set_demangling_command): Assert the demangling style is known.
10071 Remove all handling of unknown styles. Set
10072 'current_demangling_style_string' to an element of the
10073 demangling_style_names array.
10074 (set_demangling_style): Delete.
10075 (_initialize_demangler): Set current_demangling_style_string to the
10076 element of the demangling_style_names array that corresponds to
10077 the default demangling style. Remove FIXME note. Don't call
10078 set_demangling_style.
10079 * gdb-demangle.h (set_demangling_style): Remove declaration.
10080
10081 2013-03-13 Pedro Alves <palves@redhat.com>
10082
10083 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
10084 fields const.
10085 (ada_make_symbol_completion_list): Make "text0" parameter const.
10086 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
10087 * breakpoint.c (condition_completer): Make "text" and "word"
10088 parameters const. Adjust.
10089 (check_tracepoint_command): Adjust to validate_actionline
10090 prototype change.
10091 (catch_syscall_completer): Make "text" and "word" parameters
10092 const.
10093 * cli/cli-cmds.c (show_user): Make "comname" local const.
10094 (valid_command_p): Make "command" parameter const.
10095 (alias_command): Make "alias_prefix" and "command_prefix" locals
10096 const.
10097 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
10098 (add_alias_cmd): Make "name" and "oldname" parameters const.
10099 Adjust. No longer make copy of OLDNAME.
10100 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
10101 (add_setshow_cmd_full, add_setshow_enum_cmd)
10102 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10103 (add_setshow_filename_cmd, add_setshow_string_cmd)
10104 (add_setshow_string_noescape_cmd)
10105 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10106 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10107 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
10108 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
10109 Make "name" parameter const.
10110 (help_cmd): Rename "command" parameter to "arg". New const local
10111 "command".
10112 (find_cmd): Make "command" parameter const.
10113 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
10114 deprecated_cmd_warning prototype change.
10115 (undef_cmd_error): Make "cmdtype" parameter const.
10116 (lookup_cmd): Make "line" parameter const.
10117 (deprecated_cmd_warning): Change type of "text" parameter to
10118 pointer to const char, from pointer to pointer to char. Adjust.
10119 (lookup_cmd_composition): Make "text" parameter const.
10120 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
10121 parameters const.
10122 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
10123 const.
10124 * cli/cli-script.c (validate_comname): Make "tem" local const.
10125 (define_command): New const local "tem_c". Use it in calls to
10126 lookup_cmd.
10127 (document_command): Make "tem" and "comfull" locals const.
10128 (show_user_1): Make "prefix" and "name" parameters const.
10129 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
10130 const.
10131 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
10132 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
10133 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
10134 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
10135 (complete_on_enum, add_setshow_enum_cmd)
10136 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
10137 (add_setshow_filename_cmd, add_setshow_string_cmd)
10138 (add_setshow_string_noescape_cmd)
10139 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
10140 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
10141 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
10142 Change prototypes, constifying strings.
10143 * completer.c (noop_completer, filename_completer): Make "text"
10144 and "prefix" parameters const.
10145 (location_completer, expression_completer)
10146 (complete_line_internal): Make "text" and "prefix" parameters
10147 const and adjust.
10148 (command_completer, signal_completer): Make "text" and "prefix"
10149 parameters const.
10150 * completer.h (noop_completer, filename_completer)
10151 (expression_completer, location_completer, command_completer)
10152 (signal_completer): Change prototypes.
10153 * corefile.c (complete_set_gnutarget): Make "text" and "word"
10154 parameters const.
10155 * cp-abi.c (cp_abi_completer): Likewise.
10156 * expression.h (parse_expression_for_completion): Change
10157 prototype.
10158 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
10159 parameters const.
10160 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
10161 * infrun.c (handle_completer): Make "text" and "word" parameters
10162 const.
10163 * interps.c (interpreter_completer): Make "text" and "word"
10164 parameters const.
10165 * language.h (struct language_defn)
10166 <la_make_symbol_completion_list>: Make "text" and "word"
10167 parameters const.
10168 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
10169 (parse_exp_in_context): Rename to ...
10170 (parse_exp_in_context_1): ... this.
10171 (parse_exp_in_context): Reimplement, with const hack from
10172 parse_exp_1.
10173 (parse_expression_for_completion): Make "string" parameter const.
10174 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
10175 to pointer to const char. Adjust.
10176 (print_command_1): Make "exp" parameter const.
10177 (output_command): Rename to ...
10178 (output_command_const): ... this. Make "exp" parameter const.
10179 (output_command): Reimplement.
10180 (x_command): Adjust.
10181 (display_command): Rename "exp" parameter to "arg". New "exp"
10182 local, const version of "arg".
10183 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
10184 "cmd_name" local const.
10185 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
10186 call.
10187 (cmdpy_completer): Make "text" and "word" parameters const.
10188 (gdbpy_parse_command_name): Make "prefix_text2" local const.
10189 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
10190 const.
10191 * remote.c (_initialize_remote): Make "cmd_name" local const.
10192 * symtab.c (language_search_unquoted_string): Make "text" and "p"
10193 parameters const. Adjust.
10194 (completion_list_add_fields): Make "sym_text", "text" and "word"
10195 parameters const.
10196 (struct add_name_data) <sym_text, text, word>: Make fields const.
10197 (default_make_symbol_completion_list_break_on): Make "text" and
10198 "word" parameters const. Adjust locals.
10199 (default_make_symbol_completion_list)
10200 (make_symbol_completion_list, make_symbol_completion_type)
10201 (make_symbol_completion_list_fn): Make "text" and "word"
10202 parameters const.
10203 (make_file_symbol_completion_list): Make "text", "word" and
10204 "srcfile" parameters const. Adjust locals.
10205 (add_filename_to_list): Make "text" and "word" parameters const.
10206 (struct add_partial_filename_data) <text, word>: Make fields
10207 const.
10208 (make_source_files_completion_list): Make "text" and "word"
10209 parameters const.
10210 * symtab.h (default_make_symbol_completion_list_break_on)
10211 (default_make_symbol_completion_list, make_symbol_completion_list)
10212 (make_symbol_completion_type enum type_code)
10213 (make_symbol_completion_list_fn make_file_symbol_completion_list)
10214 (make_source_files_completion_list): Change prototype.
10215 * top.c (execute_command): Adjust to pass pointer to pointer to
10216 const char to lookup_cmd, and to deprecated_cmd_warning prototype
10217 change.
10218 (set_verbose): Make "cmdname" local const.
10219 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
10220 and adjust.
10221 (validate_actionline): Make "line" parameter a pointer to const
10222 char, and adjust.
10223 (encode_actions_1): Make "action_exp" local const, and adjust.
10224 (encode_actions): Adjust.
10225 (replace_comma): Delete.
10226 (trace_dump_actions): Make "action_exp" and "next_comma" locals
10227 const, and adjust. Don't frob the action string while splitting
10228 it at commas. Instead, make a copy of each split substring in
10229 turn.
10230 (trace_dump_command): Adjust to validate_actionline prototype
10231 change.
10232 * tracepoint.h (decode_agent_options, decode_agent_options)
10233 (encode_actions, validate_actionline): Change prototypes.
10234 * valprint.h (output_command): Delete declaration.
10235 (output_command_const): Declare.
10236 * value.c (function_destroyer): Cast const away in xfree call.
10237
10238 2013-03-13 Pedro Alves <palves@redhat.com>
10239
10240 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
10241 rather than casting 'const char * const *' to 'const char **'.
10242 * ada-lex.l (processInt): Make "trailer" local const. Remove
10243 'const char **' cast.
10244 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
10245 locals, and use those as strtol output pointer, instead than doing
10246 invalid casts to from 'const char **' to 'char **'.
10247 (_initialize_demangle): Remove cast.
10248 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
10249 locals, and use those as strtol output pointer, instead than doing
10250 invalid casts to from 'const char **' to 'char **'.
10251 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
10252 casts.
10253 * stap-probe.c (stap_parse_register_operand)
10254 (stap_parse_single_operand): Likewise.
10255
10256 2013-03-13 Yao Qi <yao@codesourcery.com>
10257
10258 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
10259 the last matched 'V' blcok in trace frame.
10260
10261 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10262
10263 * NEWS: Create a new section for the next release branch.
10264 Rename the section of the current branch, now that it has
10265 been cut.
10266
10267 2013-03-12 Joel Brobecker <brobecker@adacore.com>
10268
10269 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
10270 * version.in: Bump version to 7.6.50.20130312-cvs.
10271
10272 2013-03-12 Keith Seitz <keiths@redhat.com>
10273
10274 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
10275 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
10276 Remove temporary copy of input string.
10277 (mi_execute_command_wrapper): Make "cmd" const.
10278 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
10279 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
10280 Use const strings.
10281 (mi_parse): Make "cmd" const.
10282 Use const strings.
10283 * mi/mi-parse.h (mi_parse): Make "cmd" const.
10284
10285 2013-03-12 Keith Seitz <keiths@redhat.com>
10286
10287 * ada-lang.c (ada_read_renaming_var_value): Pass const
10288 pointer to expression string to parse_exp_1.
10289 (create_excep_cond_exprs): Likewise.
10290 * ax-gdb.c (agent_eval_command_one): Likewise.
10291 (maint_agent_printf_command): Likewise.
10292 Constify much of the string handling/parsing.
10293 * breakpoint.c (set_breakpoint_condition): Pass const
10294 pointer to expression string to parse_exp_1.
10295 (update_watchpoint): Likewise.
10296 (parse_cmd_to_aexpr): Constify string handling.
10297 Pass const pointer to parse_exp_1.
10298 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
10299 (find_condition_and_thread): Likewise.
10300 Make TOK const.
10301 (watch_command_1): Make "arg" const.
10302 Constify string handling.
10303 Copy the expression string instead of changing the input
10304 string.
10305 (update_breakpoint_location): Pass const pointer to
10306 parse_exp_1.
10307 * eval.c (parse_and_eval_address): Make "exp" const.
10308 (parse_to_comma_and_eval): Make "expp" const.
10309 (parse_and_eval): Make "exp" const.
10310 * expression.h (parse_expression): Make argument const.
10311 (parse_exp_1): Make first argument const.
10312 * findcmd.c (parse_find_args): Treat "args" as const.
10313 * linespec.c (parse_linespec): Pass const pointer to
10314 linespec_expression_to_pc.
10315 (linespec_expression_to_pc): Make "exp_ptr" const.
10316 * parse.c (parse_exp_1): Make "stringptr" const.
10317 Make a copy of the expression to pass to parse_exp_in_context until
10318 this whole interface can be constified.
10319 (parse_expression): Make "string" const.
10320 * printcmd.c (ui_printf): Treat "arg" as const.
10321 Handle const strings.
10322 * tracepoint.c (validate_actionline): Pass const pointer to
10323 all calls to parse_exp_1.
10324 (encode_actions_1): Likewise.
10325 * value.h (parse_to_comma_and_eval): Make argument const.
10326 (parse_and_eval_address): Likewise.
10327 (parse_and_eval): Likewise.
10328 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
10329 (varobj_set_value): Likewise.
10330 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
10331 constify string handling.
10332 Pass const pointers to parse_and_eval_address and
10333 parse_to_comman_and_eval.
10334 * cli/cli-utils.c (skip_to_space): Rename to ...
10335 (skip_to_space_const): ... this. Handle const strings.
10336 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
10337 skip_to_space_const.
10338 (skip_to_space_const): Declare.
10339 * common/format.c (parse_format_string): Make "arg" const.
10340 Handle const strings.
10341 * common/format.h (parse_format_string): Make "arg" const.
10342 * gdbserver/ax.c (ax_printf): Make "format" const.
10343 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
10344 of the expression string.
10345
10346 2013-03-12 Hui Zhu <hui@codesourcery.com>
10347
10348 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
10349
10350 2013-03-12 Yao Qi <yao@codesourcery.com>
10351 Hui Zhu <hui@codesourcery.com>
10352
10353 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
10354 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
10355 DW_OP_deref_size.
10356
10357 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
10358
10359 * ada-lex.l (rules): Only recognize 'thread' as a
10360 delimiter when followed by numerals, as for c-exp.y.
10361 Use new rewind_to_char function to rewind the input for
10362 expression-delimiting tokens.
10363 (rewind_to_char): New function.
10364
10365 2013-03-11 Pedro Alves <palves@redhat.com>
10366 Jan Kratochvil <jan.kratochvil@redhat.com>
10367
10368 * configure: Regenerate.
10369 * configure.ac (check dynamic export flag): Link python test with
10370 $PYTHON_LIBS.
10371
10372 2013-03-11 Doug Evans <dje@google.com>
10373 Keith Seitz <keiths@redhat.com>
10374
10375 * linespec.c (find_linespec_symbols): Call find_function_symbols
10376 first, and then call lookup_prefix_sym/find_method.
10377
10378 2013-03-11 Pedro Alves <palves@redhat.com>
10379
10380 * charset.c (convert_between_encodings): Don't cast between
10381 different pointer to pointer types. Instead, make the 'inp' local
10382 be of the type iconv expects.
10383 (wchar_iterate): Don't cast between different pointer to pointer
10384 types. Instead, use new pointer local of the type iconv expects.
10385 * target.c (target_read_stralloc, target_fileio_read_stralloc):
10386 Add new local of type char pointer, and use it to get a
10387 char/string view of the byte buffer, instead of casting between
10388 pointer to pointer types.
10389
10390 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
10391
10392 * remote.c (remote_set_trace_buffer_size): Move != operator
10393 to the start of next line to fix an ARI warning.
10394
10395 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10396
10397 * NEWS: Add record changes.
10398
10399 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10400
10401 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
10402 the instruction history disassembly.
10403 * disasm.c (dump_insns): Omit the pc prefix, if requested.
10404 * disasm.h (DISASSEMBLY_OMIT_PC): New.
10405
10406 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10407
10408 * Makefile.in (SFILES): Add record-btrace.c
10409 (COMMON_OBS): Add record-btrace.o
10410 * record-btrace.c: New.
10411 * objfiles.c: Include btrace.h.
10412 (free_objfile): call btrace_free_objfile.
10413
10414 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10415
10416 * target.c (target_call_history, target_call_history_from,
10417 target_call_history_range): New.
10418 * target.h (target_ops) <to_call_history, to_call_history_from,
10419 to_call_history_range>: New fields.
10420 (target_call_history, target_call_history_from,
10421 target_call_history_range): New declaration.
10422 * record.c (get_call_history_modifiers, cmd_record_call_history,
10423 record_call_history_size): New.
10424 (_initialize_record): Add the "record function-call-history" command.
10425 Add "set/show record function-call-history-size" commands.
10426 * record.h (record_print_flag): New.
10427
10428 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10429
10430 * target.h (target_ops) <to_insn_history, to_insn_history_from,
10431 to_insn_history_range>: New fields.
10432 (target_insn_history): New.
10433 (target_insn_history_from): New.
10434 (target_insn_history_range): New.
10435 * target.c (target_insn_history): New.
10436 (target_insn_history_from): New.
10437 (target_insn_history_range): New.
10438 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
10439 (record_insn_history_size): New.
10440 (get_insn_number): New.
10441 (get_context_size): New.
10442 (no_chunk): New.
10443 (get_insn_history_modifiers): New.
10444 (cmd_record_insn_history): New.
10445 (_initialize_record): Add "set/show record instruction-history-size"
10446 command. Add "record instruction-history" command.
10447
10448 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10449
10450 * record.h (record_disconnect): New.
10451 (record_detach): New.
10452 (record_mourn_inferior): New.
10453 (record_kill): New.
10454 * record-full.c (record_disconnect, record_detach,
10455 record_mourn_inferior, record_kill): Move to...
10456 * record.c: ...here.
10457 (DEBUG): New.
10458 (record_stop): New.
10459 (record_unpush): New.
10460 (cmd_record_stop): Call record_stop. Replace unpush_target
10461 call with record_unpush call.
10462 (record_disconnect, record_detach): Assert that the target
10463 is of record stratum. Call record_unpush, record_stop, and
10464 DEBUG.
10465 (record_mourn_inferior, record_kill): Assert that the target
10466 is of record stratum. Call record_unpush and DEBUG.
10467
10468 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10469
10470 * record-full.h, record-full.c (record_memory_query): Rename
10471 to ...
10472 (record_full_memory_query): ...this. Update all users.
10473 (record_arch_list_add_reg): Rename to ...
10474 (record_full_arch_list_add_reg): ...this. Update all users.
10475 (record_arch_list_add_mem): Rename to ...
10476 (record_full_arch_list_add_mem): ...this. Update all users.
10477 (record_arch_list_add_end): Rename to ...
10478 (record_full_arch_list_add_end): ...this. Update all users.
10479 (record_gdb_operation_disable_set): Rename to ...
10480 (record_full_gdb_operation_disable_set): ...this.
10481 Update all users.
10482
10483 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10484
10485 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
10486 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
10487 (RECORD_IS_REPLAY): Renamed to ...
10488 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
10489 (RECORD_FILE_MAGIC): Renamed to ...
10490 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
10491 (record_mem_entry): Renamed to ...
10492 (record_full_mem_entry): ... this. Updated all users.
10493 (record_reg_entry): Renamed to ...
10494 (record_full_reg_entry): ... this. Updated all users.
10495 (record_end_entry): Renamed to ...
10496 (record_full_end_entry): ... this. Updated all users.
10497 (record_type) <record_end, record_reg, record_mem>: Renamed
10498 to ...
10499 (record_full_type) <record_full_end, record_full_reg,
10500 record_full_mem>: ... this. Updated all users.
10501 (record_entry): Renamed to ...
10502 (record_full_entry): ... this. Updated all users.
10503 (record_core_buf_entry): Renamed to ...
10504 (record_full_core_buf_entry): ... this. Updated all users.
10505 (record_core_regbuf): Renamed to ...
10506 (record_full_core_regbuf): ... this. Updated all users.
10507 (record_core_start): Renamed to ...
10508 (record_full_core_start): ... this. Updated all users.
10509 (record_core_end): Renamed to ...
10510 (record_full_core_end): ... this. Updated all users.
10511 (record_core_buf_list): Renamed to ...
10512 (record_full_core_buf_list): ... this. Updated all users.
10513 (record_first): Renamed to ...
10514 (record_full_first): ... this. Updated all users.
10515 (record_list): Renamed to ...
10516 (record_full_list): ... this. Updated all users.
10517 (record_arch_list_head): Renamed to ...
10518 (record_full_arch_list_head): ... this. Updated all users.
10519 (record_arch_list_tail): Renamed to ...
10520 (record_full_arch_list_tail): ... this. Updated all users.
10521 (record_stop_at_limit): Renamed to ...
10522 (record_full_stop_at_limit): ... this. Updated all users.
10523 (record_insn_max_num): Renamed to ...
10524 (record_full_insn_max_num): ... this. Updated all users.
10525 (record_insn_num): Renamed to ...
10526 (record_full_insn_num): ... this. Updated all users.
10527 (record_insn_count): Renamed to ...
10528 (record_full_insn_count): ... this. Updated all users.
10529 (record_ops): Renamed to ...
10530 (record_full_ops): ... this. Updated all users.
10531 (record_core_ops): Renamed to ...
10532 (record_full_core_ops): ... this. Updated all users.
10533 (set_record_cmdlist): Renamed to ...
10534 (set_record_full_cmdlist): ... this. Updated all users.
10535 (show_record_cmdlist): Renamed to ...
10536 (show_record_full_cmdlist): ... this. Updated all users.
10537 (record_cmdlist): Renamed to ...
10538 (record_full_cmdlist): ... this. Updated all users.
10539 (record_beneath_to_resume_ops): Renamed to ...
10540 (record_full_beneath_to_resume_ops): ... this. Updated all users.
10541 (record_beneath_to_resume): Renamed to ...
10542 (record_full_beneath_to_resume): ... this. Updated all users.
10543 (record_beneath_to_wait_ops): Renamed to ...
10544 (record_full_beneath_to_wait_ops): ... this. Updated all users.
10545 (record_beneath_to_wait): Renamed to ...
10546 (record_full_beneath_to_wait): ... this. Updated all users.
10547 (record_beneath_to_store_registers_ops): Renamed to ...
10548 (record_full_beneath_to_store_registers_ops): ... this.
10549 Updated all users.
10550 (record_beneath_to_store_registers): Renamed to ...
10551 (record_full_beneath_to_store_registers): ... this.
10552 Updated all users.
10553 (record_beneath_to_xfer_partial_ops): Renamed to ...
10554 (record_full_beneath_to_xfer_partial_ops): ... this.
10555 Updated all users.
10556 (record_beneath_to_xfer_partial): Renamed to ...
10557 (record_full_beneath_to_xfer_partial): ... this.
10558 Updated all users.
10559 (record_beneath_to_insert_breakpoint): Renamed to ...
10560 (record_full_beneath_to_insert_breakpoint): ... this.
10561 Updated all users.
10562 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
10563 (record_full_beneath_to_stopped_by_watchpoint): ... this.
10564 Updated all users.
10565 (record_beneath_to_stopped_data_address): Renamed to ...
10566 (record_full_beneath_to_stopped_data_address): ... this.
10567 Updated all users.
10568 (record_beneath_to_async): Renamed to ...
10569 (record_full_beneath_to_async): ... this. Updated all users.
10570 (record_goto_insn): Renamed to ...
10571 (record_full_goto_insn): ... this. Updated all users.
10572 (record_save): Renamed to ...
10573 (record_full_save): ... this. Updated all users.
10574 (record_reg_alloc): Renamed to ...
10575 (record_full_reg_alloc): ... this. Updated all users.
10576 (record_reg_release): Renamed to ...
10577 (record_full_reg_release): ... this. Updated all users.
10578 (record_mem_alloc): Renamed to ...
10579 (record_full_mem_alloc): ... this. Updated all users.
10580 (record_mem_release): Renamed to ...
10581 (record_full_mem_release): ... this. Updated all users.
10582 (record_end_alloc): Renamed to ...
10583 (record_full_end_alloc): ... this. Updated all users.
10584 (record_end_release): Renamed to ...
10585 (record_full_end_release): ... this. Updated all users.
10586 (record_entry_release): Renamed to ...
10587 (record_full_entry_release): ... this. Updated all users.
10588 (record_list_release): Renamed to ...
10589 (record_full_list_release): ... this. Updated all users.
10590 (record_list_release_following): Renamed to ...
10591 (record_full_list_release_following): ... this.
10592 Updated all users.
10593 (record_list_release_first): Renamed to ...
10594 (record_full_list_release_first): ... this. Updated all users.
10595 (record_arch_list_add): Renamed to ...
10596 (record_full_arch_list_add): ... this. Updated all users.
10597 (record_get_loc): Renamed to ...
10598 (record_full_get_loc): ... this. Updated all users.
10599 (record_check_insn_num): Renamed to ...
10600 (record_full_check_insn_num): ... this. Updated all users.
10601 (record_arch_list_cleanups): Renamed to ...
10602 (record_full_arch_list_cleanups): ... this. Updated all users.
10603 (record_message): Renamed to ...
10604 (record_full_message): ... this. Updated all users.
10605 (record_message_wrapper): Renamed to ...
10606 (record_full_message_wrapper): ... this. Updated all users.
10607 (record_message_wrapper_safe): Renamed to ...
10608 (record_full_message_wrapper_safe): ... this. Updated all users.
10609 (record_gdb_operation_disable): Renamed to ...
10610 (record_full_gdb_operation_disable): ... this. Updated all users.
10611 (record_hw_watchpoint): Renamed to ...
10612 (record_full_hw_watchpoint): ... this. Updated all users.
10613 (record_exec_insn): Renamed to ...
10614 (record_full_exec_insn): ... this. Updated all users.
10615 (record_restore): Renamed to ...
10616 (record_full_restore): ... this. Updated all users.
10617 (record_async_inferior_event_token): Renamed to ...
10618 (record_full_async_inferior_event_token): ... this.
10619 Updated all users.
10620 (record_async_inferior_event_handler): Renamed to ...
10621 (record_full_async_inferior_event_handler): ... this.
10622 Updated all users.
10623 (record_core_open_1): Renamed to ...
10624 (record_full_core_open_1): ... this. Updated all users.
10625 (record_open_1): Renamed to ...
10626 (record_full_open_1): ... this. Updated all users.
10627 (record_open): Renamed to ...
10628 (record_full_open): ... this. Updated all users.
10629 (record_close): Renamed to ...
10630 (record_full_close): ... this. Updated all users.
10631 (record_resume_step): Renamed to ...
10632 (record_full_resume_step): ... this. Updated all users.
10633 (record_resumed): Renamed to ...
10634 (record_full_resumed): ... this. Updated all users.
10635 (record_execution_dir): Renamed to ...
10636 (record_full_execution_dir): ... this. Updated all users.
10637 (record_resume): Renamed to ...
10638 (record_full_resume): ... this. Updated all users.
10639 (record_get_sig): Renamed to ...
10640 (record_full_get_sig): ... this. Updated all users.
10641 (record_sig_handler): Renamed to ...
10642 (record_full_sig_handler): ... this. Updated all users.
10643 (record_wait_cleanups): Renamed to ...
10644 (record_full_wait_cleanups): ... this. Updated all users.
10645 (record_wait_1): Renamed to ...
10646 (record_full_wait_1): ... this. Updated all users.
10647 (record_wait): Renamed to ...
10648 (record_full_wait): ... this. Updated all users.
10649 (record_stopped_by_watchpoint): Renamed to ...
10650 (record_full_stopped_by_watchpoint): ... this. Updated all users.
10651 (record_disconnect): Renamed to ...
10652 (record_full_disconnect): ... this. Updated all users.
10653 (record_detach): Renamed to ...
10654 (record_full_detach): ... this. Updated all users.
10655 (record_mourn_inferior): Renamed to ...
10656 (record_full_mourn_inferior): ... this. Updated all users.
10657 (record_kill): Renamed to ...
10658 (record_full_kill): ... this. Updated all users.
10659 (record_stopped_data_address): Renamed to ...
10660 (record_full_stopped_data_address): ... this. Updated all users.
10661 (record_registers_change): Renamed to ...
10662 (record_full_registers_change): ... this. Updated all users.
10663 (record_store_registers): Renamed to ...
10664 (record_full_store_registers): ... this. Updated all users.
10665 (record_xfer_partial): Renamed to ...
10666 (record_full_xfer_partial): ... this. Updated all users.
10667 (record_breakpoint): Renamed to ...
10668 (record_full_breakpoint): ... this. Updated all users.
10669 (record_breakpoint_p): Renamed to ...
10670 (record_full_breakpoint_p): ... this. Updated all users.
10671 (record_breakpoints): Renamed to ...
10672 (record_full_breakpoints): ... this. Updated all users.
10673 (record_sync_record_breakpoints): Renamed to ...
10674 (record_full_sync_record_breakpoints): ... this.
10675 Updated all users.
10676 (record_init_record_breakpoints): Renamed to ...
10677 (record_full_init_record_breakpoints): ... this.
10678 Updated all users.
10679 (record_insert_breakpoint): Renamed to ...
10680 (record_full_insert_breakpoint): ... this. Updated all users.
10681 (record_remove_breakpoint): Renamed to ...
10682 (record_full_remove_breakpoint): ... this. Updated all users.
10683 (record_can_execute_reverse): Renamed to ...
10684 (record_full_can_execute_reverse): ... this. Updated all users.
10685 (record_get_bookmark): Renamed to ...
10686 (record_full_get_bookmark): ... this. Updated all users.
10687 (record_goto_bookmark): Renamed to ...
10688 (record_full_goto_bookmark): ... this. Updated all users.
10689 (record_async): Renamed to ...
10690 (record_full_async): ... this. Updated all users.
10691 (record_can_async_p): Renamed to ...
10692 (record_full_can_async_p): ... this. Updated all users.
10693 (record_is_async_p): Renamed to ...
10694 (record_full_is_async_p): ... this. Updated all users.
10695 (record_execution_direction): Renamed to ...
10696 (record_full_execution_direction): ... this. Updated all users.
10697 (record_info): Renamed to ...
10698 (record_full_info): ... this. Updated all users.
10699 (record_delete): Renamed to ...
10700 (record_full_delete): ... this. Updated all users.
10701 (record_is_replaying): Renamed to ...
10702 (record_full_is_replaying): ... this. Updated all users.
10703 (record_goto_entry): Renamed to ...
10704 (record_full_goto_entry): ... this. Updated all users.
10705 (record_goto_begin): Renamed to ...
10706 (record_full_goto_begin): ... this. Updated all users.
10707 (record_goto_end): Renamed to ...
10708 (record_full_goto_end): ... this. Updated all users.
10709 (record_goto): Renamed to ...
10710 (record_full_goto): ... this. Updated all users.
10711 (init_record_ops): Renamed to ...
10712 (init_record_full_ops): ... this. Updated all users.
10713 (record_core_resume): Renamed to ...
10714 (record_full_core_resume): ... this. Updated all users.
10715 (record_core_kill): Renamed to ...
10716 (record_full_core_kill): ... this. Updated all users.
10717 (record_core_fetch_registers): Renamed to ...
10718 (record_full_core_fetch_registers): ... this. Updated all users.
10719 (record_core_prepare_to_store): Renamed to ...
10720 (record_full_core_prepare_to_store): ... this. Updated all users.
10721 (record_core_store_registers): Renamed to ...
10722 (record_full_core_store_registers): ... this. Updated all users.
10723 (record_core_xfer_partial): Renamed to ...
10724 (record_full_core_xfer_partial): ... this. Updated all users.
10725 (record_core_insert_breakpoint): Renamed to ...
10726 (record_full_core_insert_breakpoint): ... this. Updated all users.
10727 (record_core_remove_breakpoint): Renamed to ...
10728 (record_full_core_remove_breakpoint): ... this. Updated all users.
10729 (record_core_has_execution): Renamed to ...
10730 (record_full_core_has_execution): ... this. Updated all users.
10731 (init_record_core_ops): Renamed to ...
10732 (init_record_full_core_ops): ... this. Updated all users.
10733 (cmd_record_restore): Renamed to ...
10734 (cmd_record_full_restore): ... this. Updated all users.
10735 (record_save_cleanups): Renamed to ...
10736 (record_full_save_cleanups): ... this. Updated all users.
10737 (cmd_record_start): Renamed to ...
10738 (cmd_record_full_start): ... this. Updated all users.
10739 (set_record_insn_max_num): Renamed to ...
10740 (set_record_full_insn_max_num): ... this. Updated all users.
10741 (set_record_command): Renamed to ...
10742 (set_record_full_command): ... this. Updated all users.
10743 (show_record_command): Renamed to ...
10744 (show_record_full_command): ... this. Updated all users.
10745 (_initialize_record): Renamed to ...
10746 (_initialize_record_full): ... this. Updated all users.
10747
10748 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10749
10750 * record.h: Split into this and ...
10751 * record-full.h: ... this.
10752 * record.c: Split into this and ...
10753 * record-full.c: ... this.
10754 * target.h (target_ops): Add new fields to_info_record,
10755 to_save_record, to_delete_record, to_record_is_replaying,
10756 to_goto_record_begin, to_goto_record_end, to_goto_record.
10757 (target_info_record): New.
10758 (target_save_record): New.
10759 (target_supports_delete_record): New.
10760 (target_delete_record): New.
10761 (target_record_is_replaying): New.
10762 (target_goto_record_begin): New.
10763 (target_goto_record_end): New.
10764 (target_goto_record): New.
10765 * target.c (target_info_record): New.
10766 (target_save_record): New.
10767 (target_supports_delete_record): New.
10768 (target_delete_record): New.
10769 (target_record_is_replaying): New.
10770 (target_goto_record_begin): New.
10771 (target_goto_record_end): New.
10772 (target_goto_record): New.
10773 * record.h: Declare struct cmd_list_element.
10774 (record_cmdlist): New declaration.
10775 (set_record_cmdlist): New declaration.
10776 (show_record_cmdlist): New declaration.
10777 (info_record_cmdlist): New declaration.
10778 (cmd_record_goto): New declaration.
10779 * record.c: Remove unnecessary includes.
10780 Include inferior.h.
10781 (cmd_record_goto): Remove declaration.
10782 (record_cmdlist): Now extern. Initialize.
10783 (set_record_cmdlist): Now extern. Initialize.
10784 (show_record_cmdlist): Now extern. Initialize.
10785 (info_record_cmdlist): Now extern. Initialize.
10786 (find_record_target): New.
10787 (require_record_target): New.
10788 (cmd_record_start): Update.
10789 (cmd_record_delete): Remove target-specific code.
10790 Call target_delete_record.
10791 (cmd_record_stop): Unpush any record target.
10792 (set_record_insn_max_num): Move to record-full.c
10793 (set_record_command): Add comment.
10794 (show_record_command): Add comment.
10795 (info_record_command): Update comment.
10796 Remove target-specific code.
10797 Call the record target's to_info_record.
10798 (cmd_record_start): New.
10799 (cmd_record_goto): Now extern.
10800 Remove target-specific code.
10801 Call target_goto_begin, target_goto_end, or target_goto.
10802 (_initialize_record): Move record target ops initialization to
10803 record-full.c.
10804 Change "record" command help text.
10805 Move "record restore", "record set", and "record show" commands to
10806 record-full.c.
10807 * Makefile.in (SFILES): Add record-full.c.
10808 (HFILES_NO_SRCDIR): Add record-full.h.
10809 (COMMON_OBS): Add record-full.o.
10810 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
10811 * arm-tdep.c: Include record-full.h.
10812 * i386-linux-tdep.c: Include record-full.h instead of record.h.
10813 * i386-tdep.c: Include record-full.h.
10814 * infrun.c: Include record-full.h.
10815 * linux-record.c: Include record-full.h.
10816 * moxie-tdep.c: Include record-full.h.
10817 * record-full.c: Include record-full.h.
10818 Change module comment.
10819 (set_record_full_cmdlist): New.
10820 (show_record_full_cmdlist): New.
10821 (record_full_cmdlist): New.
10822 (record_goto_insn): New declaration.
10823 (record_save): New declaration.
10824 (record_check_insn_num): Change query string.
10825 (record_info): New.
10826 (record_delete): New.
10827 (record_is_replaying): New.
10828 (record_goto_entry): New.
10829 (record_goto_begin): New.
10830 (record_goto_end): New.
10831 (record_goto): New.
10832 (init_record_ops): Update.
10833 (init_record_core_ops): Update.
10834 (cmd_record_save): Rename to record_save. Remove target and arg checks.
10835 (cmd_record_start): New.
10836 (set_record_insn_max_num): Moved from record.c
10837 (set_record_full_command): New.
10838 (show_record_full_command): New.
10839 (_initialize_record_full): New.
10840
10841 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10842
10843 * target.h (add_deprecated_target_alias): New.
10844 * target.c (add_deprecated_target_alias): New.
10845
10846 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10847
10848 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
10849 and signal.h.
10850 (linux_supports_btrace): Add kernel and
10851 cpuid check.
10852 (kernel_supports_btrace): New function.
10853 (cpu_supports_btrace): New function.
10854 (intel_supports_btrace): New function.
10855
10856 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10857
10858 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
10859 * remote.c: Include btrace.h.
10860 (struct btrace_target_info): New struct.
10861 (remote_supports_btrace): New function.
10862 (send_Qbtrace): New function.
10863 (remote_enable_btrace): New function.
10864 (remote_disable_btrace): New function.
10865 (remote_teardown_btrace): New function.
10866 (remote_read_btrace): New function.
10867 (init_remote_ops): Add btrace ops.
10868 (enum <unnamed>): Add btrace packets.
10869 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
10870 (_initialize_remote): Add packet configuration for branch tracing.
10871
10872 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10873
10874 * features/btrace.dtd: New file.
10875 * Makefile.in (XMLFILES): Add btrace.dtd.
10876 * btrace.h (parse_xml_btrace): New declaration.
10877 * btrace.c: Include xml-support.h.
10878 (parse_xml_btrace): New function.
10879 (parse_xml_btrace_block): New function.
10880 (block_attributes): New struct.
10881 (btrace_attributes): New struct.
10882 (btrace_children): New struct.
10883 (btrace_elements): New struct.
10884
10885 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10886
10887 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
10888 (amd64_linux_enable_btrace): New.
10889 (amd64_linux_disable_btrace): New.
10890 (amd64_linux_teardown_btrace): New.
10891 (_initialize_amd64_linux_nat): Initialize btrace ops.
10892 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
10893 (i386_linux_enable_btrace): New.
10894 (i386_linux_disable_btrace): New.
10895 (i386_linux_teardown_btrace): New.
10896 (_initialize_i386_linux_nat): Initialize btrace ops.
10897 * config/i386/linux.mh: Add linux-btrace.o.
10898 * config/i386/linux64.mh: Add linux-btrace.o.
10899
10900 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10901
10902 * common/linux_btrace.h: New file.
10903 * common/linux_btrace.c: New file.
10904 * Makefile.in (SFILES): Add btrace.c.
10905 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
10906 (COMMON_OBS): Add btrace.o.
10907 (linux-btrace.o): New rule.
10908
10909 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * target.h: Include btrace.h.
10912 (struct target_ops) <to_supports_btrace, to_enable_btrace,
10913 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
10914 * target.c (target_supports_btrace): New function.
10915 (target_enable_btrace): New function.
10916 (target_disable_btrace): New function.
10917 (target_teardown_btrace): New function.
10918 (target_read_btrace): New function.
10919 * btrace.h: New file.
10920 * btrace.c: New file.
10921 * Makefile.in: Add btrace.c.
10922 * gdbthread.h: Include btrace.h.
10923 (struct thread_info): Add btrace field.
10924 * thread.c: Include btrace.h.
10925 (clear_thread_inferior_resources): Call target_teardown_btrace.
10926 * common/btrace-common.h: New file.
10927
10928 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10929
10930 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
10931 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
10932 kill_status to outer block.
10933
10934 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10935
10936 Fix entry-values if the callee called a noreturn function.
10937 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10938 get_frame_address_in_block. Add new comment.
10939
10940 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10941
10942 Fix entry-values in C++ across CUs.
10943 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
10944 lookup_minimal_symbol. Add a comment.
10945 * dwarf2read.c
10946 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
10947 DW_AT_linkage_name.
10948
10949 2013-03-08 Yao Qi <yao@codesourcery.com>
10950
10951 * tracepoint.c (_initialize_tracepoint): Indent the code.
10952
10953 2013-03-08 Pedro Alves <palves@redhat.com>
10954
10955 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
10956 (parse_find_args, find_command): Change type of pattern buffer
10957 locals to 'gdb_byte *'.
10958
10959 2013-03-08 Stan Shebs <stan@codesourcery.com>
10960 Hafiz Abid Qadeer <abidh@codesourcery.com>
10961
10962 * NEWS: Mention set and show trace-buffer-size commands.
10963 Mention new packet.
10964 * target.h (struct target_ops): New method
10965 to_set_trace_buffer_size.
10966 (target_set_trace_buffer_size): New macro.
10967 * target.c (update_current_target): Set up new method.
10968 * tracepoint.c (trace_buffer_size): New global.
10969 (start_tracing): Send it to the target.
10970 (set_trace_buffer_size): New function.
10971 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
10972 * remote.c (remote_set_trace_buffer_size): New function.
10973 (_initialize_remote): Use it.
10974 (QTBuffer:size) New remote command.
10975 (PACKET_QTBuffer_size): New enum.
10976 (remote_protocol_features): Add an entry for
10977 PACKET_QTBuffer_size.
10978
10979 2013-03-08 Tom Tromey <tromey@redhat.com>
10980
10981 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
10982 variable.
10983
10984 2013-03-07 Pedro Alves <palves@redhat.com>
10985
10986 * target.c (target_read_stralloc, target_fileio_read_alloc):
10987 *Cast pointer to 'gdb_byte *' in target call.
10988
10989 2013-03-07 Pedro Alves <palves@redhat.com>
10990
10991 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
10992 call.
10993
10994 2013-03-07 Keith Seitz <keiths@redhat.com>
10995
10996 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
10997 (trace_pass_command): Likewise.
10998 * cli/cli-cmds.c: Include cli/cli-utils.h.
10999 (source_command): Use skip-spaces.
11000 (disassemble_command): Likewise.
11001 * findcmd.c: Include cli/cli-utils.h.
11002 (parse_find_args): Use skip_spaces.
11003 * go32-nat.c: Include cli/cli-utils.h.
11004 (go32_sldt): Use skip_spaces.
11005 (go32_sgdt): Likewise.
11006 (go32_sidt): Likewise.
11007 (go32_pde): Likewise.
11008 (go32_pte): Likewise.
11009 (go32_pte_for_address): Likewise.
11010 * infcmd.c: Include cli/cli-utils.h.
11011 (registers_info): Use skip_spaces.
11012 * linux-tdep.c (read_mapping): Use skip_spaces_const.
11013 (linux_info_proc): Likewise.
11014 * linux-thread-db.c: Include cli/cli-utils.h.
11015 (info_auto_load_libthread_db): Use skip_spaces_const.
11016 * m32r-rom.c: Include cli/cli-utils.h.
11017 (m32r_upload_command): Use skip_spaces.
11018 * maint.c: Include cli/cli-utils.h.
11019 (maintenance_translate_address): Use skip_spaces.
11020 * mi/mi-parse.c: Include cli/cli-utils.h.
11021 (mi_parse_argv): Use skip_spaces.
11022 (mi_parse): Likewise.
11023 * minsyms.c: Include cli/cli-utils.h.
11024 (msymbol_hash_iw): Use skip_spaces_const.
11025 * objc-lang.c: Include cli/cli-utils.h.
11026 (parse_selector): Use skip_spaces.
11027 (parse_method): Likewise.
11028 * python/python.c: Include cli/cli-utils.h.
11029 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
11030 (python_command)[HAVE_PYTHON]: Likewise.
11031 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
11032 * remote-m32r-sdi.c: Include cli/cli-utils.h.
11033 (m32r_load): Use skip_spaces.
11034 * serial.c: Include cli/cli-utils.h.
11035 (serial_open): Use skip_spaces_const.
11036 * stack.c: Include cli/cli-utils.h.
11037 (parse_frame_specification_1): Use skip_spaces_const.
11038 * symfile.c: Include cli/cli-utils.h.
11039 (set_ext_lang_command): Use skip_spaces.
11040 * symtab.c: Include cli/cli-utils.h.
11041 (rbreak_command): Use skip_spaces.
11042 * thread.c (thread_name_command): Use skip_spaces.
11043 * tracepoint.c (validate_actionline): Use skip_spaces.
11044 (encode_actions_1): Likewise.
11045 (trace_find_range_command): Likewise.
11046 (trace_find_outside_command): Likewise.
11047 (trace_dump_actions): Likewise.
11048
11049 2013-03-07 Pedro Alves <palves@redhat.com>
11050
11051 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
11052 * expprint.c (print_subexp_standard): Likewise.
11053 * utils.c (host_char_to_target): Likewise.
11054 * valprint.c (generic_emit_char, generic_printstr): Likewise.
11055 * varobj.c (value_get_print_value): Change type of local to char*.
11056 Cast it gdb_byte * in call to language printer.
11057
11058 2013-03-07 Pedro Alves <palves@redhat.com>
11059
11060 * charset.c (struct wchar_iterator) <input>: Change type to 'const
11061 gdb_byte *'.
11062 (make_wchar_iterator): Remove cast to char*.
11063 (wchar_iterate): Change type of local.
11064
11065 2013-03-07 Pedro Alves <palves@redhat.com>
11066
11067 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
11068 for 'regcache->register_status'.
11069
11070 2013-03-07 Pedro Alves <palves@redhat.com>
11071
11072 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
11073 int.
11074
11075 2013-03-07 Pedro Alves <palves@redhat.com>
11076
11077 * stap-probe.c (handle_stap_probe): Add cast to char*.
11078
11079 2013-03-07 Pedro Alves <palves@redhat.com>
11080
11081 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
11082 RECORD_MSGRCV>: Pass a signed variable to
11083 regcache_raw_read_signed, instead of an unsigned one.
11084
11085 2013-03-07 Pedro Alves <palves@redhat.com>
11086
11087 * remote-notif.c (notif_debug): Change type to int.
11088 * remote-notif.h (notif_debug): Likewise.
11089
11090 2013-03-07 Pedro Alves <palves@redhat.com>
11091
11092 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
11093
11094 2013-03-07 Pedro Alves <palves@redhat.com>
11095
11096 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
11097 * remote.h (hex2bin, bin2hex): ... here.
11098 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
11099
11100 2013-03-07 Eli Zaretskii <eliz@gnu.org>
11101
11102 * utils.c (initialize_utils): Improve doc strings of "set/show
11103 width", "set/show height", and "set/show pagination".
11104
11105 2013-03-06 Keith Seitz <keiths@redhat.com>
11106
11107 * ax-gdb.c (gen_printf): Make FORMAT const.
11108 * ax-gdb.h (gen_printf): Likewise.
11109 * ax-general.c (ax_string): Make STR const.
11110 * ax.h (ax_string): Likewise.
11111
11112 2013-03-06 Doug Evans <dje@google.com>
11113
11114 * elfread.c (elf_symfile_read): Move debugging printf to more
11115 logical location.
11116
11117 2013-03-06 Pedro Alves <palves@redhat.com>
11118
11119 * python/py-utils.c (target_string_to_unicode): Delete function.
11120 * python/python-internal.h (target_string_to_unicode): Delete
11121 declaration.
11122
11123 2013-03-06 Pierre Muller <muller@sourceware.org>
11124
11125 * linespec.c (get_current_search_block): ARI fix, use (void)
11126 for empty parameter list.
11127
11128 2013-03-05 Doug Evans <dje@google.com>
11129
11130 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
11131 of old ada_lookup_symbol_list. In !full_search case, don't
11132 search superblocks.
11133 (ada_lookup_symbol_list): Delete arg full_search, all callers
11134 updated. Call ada_lookup_symbol_list_worker.
11135 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
11136 * ada-lang.h (ada_lookup_symbol_list): Update.
11137 * language.h (language_defn): Update comment for
11138 la_iterate_over_symbols.
11139 * linespec.c (iterate_over_file_blocks): New function.
11140 (iterate_over_all_matching_symtabs): Call it.
11141 (lookup_prefix_sym): Ditto.
11142 (get_current_search_block): New function.
11143 (get_search_block): Delete.
11144 (find_label_symbols): Call get_current_search_block.
11145 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
11146 * symtab.c (iterate_over_symbols): Don't search superblocks.
11147
11148 2013-03-05 Yao Qi <yao@codesourcery.com>
11149
11150 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
11151 parameter VAR's type from "unsigned int" to "int".
11152 * command.h (var_zuinteger_unlimited): Update its comments.
11153 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
11154
11155 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11156
11157 * NEWS: Mention new target x86_64-*-cygwin*.
11158
11159 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11160
11161 * configure.host: Add x86_64-*-cygwin* as host.
11162 * configure.tgt: Add x86_64-*-cygwin* as target.
11163 * config/i386/cygwin64.mh: New file.
11164
11165 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11166
11167 * linespec.c (decode_line_2): Fix duplicate request off by two message.
11168
11169 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11170
11171 * linespec.c (struct linespec_canonical_name): New.
11172 (struct linespec_state): Change canonical_names type to it.
11173 (add_sal_to_sals): Change variable canonical_name to canonical. Change
11174 xrealloc element size. Initialize the different CANONICAL fields.
11175 (canonical_to_fullform): New.
11176 (filter_results): Use it. Add variables canonical, fullform and
11177 cleanup.
11178 (struct decode_line_2_item, decode_line_2_compare_items): New.
11179 (decode_line_2): Remove variables iter and item_names, add variables
11180 items and items_count. Modify the code for these new variables.
11181
11182 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
11183
11184 * coff-pe-read.c (read_pe_exported_syms): Don't return without
11185 calling do_cleanup.
11186
11187 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
11188
11189 * tracepoint.c (build_traceframe_info): Add code for byte order.
11190
11191 2013-03-02 Kevin Buettner <kevinb@redhat.com>
11192
11193 * v850-tdep.c: (v850e2_register_name): Revise system register
11194 names to match current V850E2M architecture specifications.
11195 Update register number enum comments too.
11196
11197 2013-03-01 Jiong Wang <jiwang@tilera.com>
11198 Pedro Alves <palves@redhat.com>
11199
11200 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
11201 to END_ADDR.
11202 (tilegx_skip_prologue): Limit prologue analysis to section end.
11203
11204 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11205
11206 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
11207 use it.
11208
11209 2013-03-01 Pedro Alves <palves@redhat.com>
11210
11211 Use gdb_byte for bytes from the program being debugged.
11212
11213 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
11214 Change type of local 'buf' to gdb_byte.
11215 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
11216 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
11217 * cris-tdep.c (cris_sigcontext_addr)
11218 (cris_sigtramp_frame_unwind_cache): Likewise.
11219 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
11220 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
11221 Likewise.
11222 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
11223 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
11224 (hppa32_hpux_search_dummy_call_sequence)
11225 (hppa_hpux_supply_save_state): Likewise.
11226 * hppa-linux-tdep.c (insns_match_pattern)
11227 (hppa_linux_find_global_pointer): Likewise.
11228 * hppa-tdep.c (hppa_in_function_epilogue_p)
11229 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
11230 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
11231 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
11232 (i386fbsd_collect_uthread): Likewise.
11233 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
11234 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
11235 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
11236 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
11237 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
11238 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
11239 (ia64_libunwind_frame_prev_register)
11240 (ia64_libunwind_sigtramp_frame_this_id)
11241 (ia64_find_global_pointer_from_dynamic_section)
11242 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
11243 (ia64_unwind_pc): Likewise.
11244 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
11245 * m68hc11-tdep.c (m68hc11_push_dummy_call)
11246 (m68hc11_extract_return_value): Likewise.
11247 * m68klinux-nat.c (fetch_register, store_register): Likewise.
11248 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
11249 (mep_get_insn, mep_push_dummy_call): Likewise.
11250 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
11251 (mips_linux_in_dynsym_stub): Likewise.
11252 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
11253 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
11254 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
11255 to gdb_byte.
11256 * remote-mips.c (mips_set_register): Likewise.
11257 * remote-sim.c (gdbsim_fetch_register): Likewise.
11258 * score-tdep.c (score7_fetch_inst): Change type of parameter
11259 'memblock' and local 'buf' to gdb_byte.
11260 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
11261 Change type of local 'buf' to gdb_byte. Adjust.
11262 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
11263 to gdb_byte**.
11264 (score7_analyze_prologue): Change type of 'memblock' and
11265 'memblock_ptr' locals to gdb_byte*.
11266 * sh64-tdep.c (sh64_extract_return_value)
11267 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
11268 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
11269 * solib-pa64.c (pa64_solib_create_inferior_hook)
11270 (pa64_open_symbol_file_object): Remove local 'buf'.
11271 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
11272 (som_open_symbol_file_object): Likewise.
11273 * solib-spu.c (spu_current_sos): Likewise.
11274 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
11275 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
11276 (spu_store_registers): Likewise.
11277 * target.c (debug_print_register): Likewise.
11278 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
11279 * xstormy16-tdep.c (xstormy16_store_return_value)
11280 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
11281 (xstormy16_find_jmp_table_entry): Likewise.
11282
11283 2013-03-01 Jiong Wang <jiwang@tilera.com>
11284
11285 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
11286 (tilegx_gdbarch_init): Install it.
11287
11288 2013-02-28 Tom Tromey <tromey@redhat.com>
11289
11290 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
11291 PyLong_Check.
11292
11293 2013-02-28 Doug Evans <dje@google.com>
11294
11295 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
11296 * python/python.c (gdbpy_find_pc_line): Ditto.
11297
11298 2013-02-28 Tom Tromey <tromey@redhat.com>
11299
11300 * contrib/excheck.py: New file.
11301 * contrib/exsummary.py: New file.
11302 * contrib/gcc-with-excheck: New file.
11303
11304 2013-02-28 Tom Tromey <tromey@redhat.com>
11305
11306 * python/python.c (gdbpy_print_stack): Call begin_line and
11307 fprintf_filtered inside TRY_CATCH.
11308
11309 2013-02-28 Tom Tromey <tromey@redhat.com>
11310
11311 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
11312 inside TRY_CATCH.
11313
11314 2013-02-28 Tom Tromey <tromey@redhat.com>
11315
11316 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
11317 frame_object_to_frame_info inside TRY_CATCH.
11318
11319 2013-02-28 Tom Tromey <tromey@redhat.com>
11320
11321 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
11322 TRY_CATCH.
11323
11324 2013-02-28 Tom Tromey <tromey@redhat.com>
11325
11326 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
11327
11328 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
11329
11330 * windows-nat.c: Throughout, fix format strings and casts of
11331 printf-like functions to avoid type related warnings on all
11332 platforms.
11333 (handle_output_debug_string): Fetch context information address
11334 from debug string using string_to_core_addr.
11335
11336 2013-02-27 Jiong Wang <jiwang@tilera.com>
11337
11338 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
11339 * regformats/reg-tilegx32.dat: New.
11340
11341 2013-02-27 Jiong Wang <jiwang@tilera.com>
11342
11343 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
11344
11345 2013-02-27 Jiong Wang <jiwang@tilera.com>
11346
11347 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
11348
11349 2013-02-27 Yao Qi <yao@codesourcery.com>
11350 Pedro Alves <palves@redhat.com>
11351
11352 * tracepoint.c (tfile_trace_find): For tfind
11353 pc/tp/range/outside, look for the next trace frame instead of
11354 always starting from frame 0.
11355
11356 2013-02-26 Anthony Green <green@moxielogic.com>
11357
11358 * configure.tgt: Add support for moxie-*-rtems* target.
11359
11360 2013-02-25 Pedro Alves <palves@redhat.com>
11361
11362 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
11363 warning text.
11364
11365 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11366
11367 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
11368 if $fp is used as the virtual frame pointer.
11369
11370 2013-02-23 Alan Modra <amodra@gmail.com>
11371
11372 * elfread.c (elf_symtab_read): Do not use udata.p here to find
11373 symbol size.
11374 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
11375 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
11376 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
11377 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
11378
11379 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11380
11381 Code cleanup.
11382 * elfread.c (build_id_bfd_get): Make the return type const.
11383 (build_id_verify): Make the check parameter const.
11384 (build_id_to_debug_filename): Make the build_id parameter and variable
11385 data const.
11386 (find_separate_debug_file_by_buildid): Make the variable build_id const.
11387
11388 2013-02-21 Alan Modra <amodra@gmail.com>
11389
11390 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
11391
11392 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
11393
11394 Add a new method 'disassemble' to gdb.Architecture class.
11395 * python/py-arch.c (archpy_disassmble): Implementation of the
11396 new method gdb.Architecture.disassemble.
11397 (arch_object_methods): Add entry for the new method.
11398
11399 2013-02-20 Jiong Wang <jiwang@tilera.com>
11400
11401 * MAINTAINERS (Write After Approval): Add myself to the list.
11402
11403 2013-02-19 Pedro Alves <palves@redhat.com>
11404
11405 Garbage collect 'struct monitor_ops'::load_routine.
11406
11407 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
11408 * monitor.c (monitor_load): No longer call
11409 current_monitor->load_routine.
11410 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
11411 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
11412 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
11413
11414 2013-02-19 Pedro Alves <palves@redhat.com>
11415
11416 PR gdb/15161
11417
11418 Harmonize with generic_load.
11419
11420 * monitor.c: Include "readline/readline.h".
11421 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
11422 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
11423 long/strtol for the 'load_offset' local. Error out if no argument
11424 is given or if too many arguments are given. Tilde expand the
11425 passed in file name.
11426
11427 2013-02-19 Kai Tietz <ktietz@redhat.com>
11428
11429 PR gdb/15161
11430 * symfile.c (load_section_data): Change type of load_offset
11431 to CORE_ADDR.
11432 (generic_load): User strtoulst instead of strtoul for conversion
11433 of load_offset.
11434
11435 2013-02-19 Jiong Wang <jiwang@tilera.com>
11436
11437 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
11438 for return address, "lr" register, saved on stack.
11439 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
11440 after we invoke tilegx_analyze_prologue.
11441
11442 2013-02-19 Jiong Wang <jiwang@tilera.com>
11443
11444 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
11445
11446 2013-02-19 Jiong Wang <jiwang@tilera.com>
11447
11448 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
11449
11450 2013-02-19 Jiong Wang <jiwang@tilera.com>
11451
11452 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
11453 (tilegx_write_pc): New function.
11454 (tilegx_cannot_reference_register): Return zero if REGNO
11455 is TILEGX_FAULTNUM_REGNUM.
11456 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
11457 (tilegx_register_name): Add handling of "faultnum" register.
11458 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
11459 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
11460 handling of TILEGX_FAULTNUM_REGNUM.
11461 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
11462
11463 2013-02-19 Jiong Wang <jiwang@tilera.com>
11464
11465 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
11466 should be aligned to 64bit.
11467
11468 2013-02-19 Kai Tietz <ktietz@redhat.com>
11469
11470 * windows-nat.c (windows_xfer_memory): Fix debug-output
11471 for LLP64.
11472
11473 2013-02-19 Lei Liu <lei.liu2@windriver.com>
11474
11475 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
11476 Don't check DSP register number if HAVE_DSP is not set.
11477
11478 2013-02-19 Alan Modra <amodra@gmail.com>
11479
11480 * elfread.c (struct build_id): Delete. Use struct elf_build_id
11481 throughout file instead.
11482 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11483 Don't xmalloc return value.
11484 (build_id_verify): Similarly. Don't xfree.
11485 (build_id_to_debug_filename): Update.
11486 (find_separate_debug_file_by_buildid): Update, don't xfree.
11487
11488 2013-02-18 Tom Tromey <tromey@redhat.com>
11489
11490 PR gdb/15102:
11491 * dwarf2read.c (read_subrange_type): Use result of
11492 'check_typedef'.
11493
11494 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
11495
11496 * frame.c: Remove one extra white space after #include
11497 directive.
11498
11499 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
11502
11503 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11504
11505 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
11506 and dir commands into an if block.
11507
11508 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
11509
11510 * python/py-breakpoint (struct pybp_code): Use int instead of
11511 enum type_code.
11512
11513 2013-02-15 Pedro Alves <pedro@codesourcery.com>
11514 Hafiz Abid Qadeer <abidh@codesourcery.com>
11515
11516 * NEWS: Mention new field "trace-file".
11517 * tracepoint.c (trace_status_mi): Output "trace-file" field.
11518 (tfile_open): Record the trace file's filename in the trace
11519 status.
11520 (tfile_files_info): Mention the name of the trace file.
11521 Check the "filename" field explicitely.
11522 (trace_status_command): Explicitely check "filename" field.
11523 (trace_find_command): Ditto.
11524 (trace_find_pc_command): Ditto.
11525 (trace_find_tracepoint_command): Ditto.
11526 (trace_find_line_command): Ditto.
11527 (trace_find_range_command): Ditto.
11528 (trace_find_outside_command): Ditto.
11529 * tracepoint.h (struct trace_status) <from_file>: Rename it
11530 to "filename" and make it hold the trace file's filename
11531 instead of a boolean.
11532 * remote.c (remote_get_trace_status): Initialize "filename"
11533 field with NULL instead of 0.
11534
11535 2013-02-15 Yao Qi <yao@codesourcery.com>
11536
11537 * remote.c: Fix a typo.
11538
11539 2013-02-14 Pierre Muller <muller@sourceware.org>
11540
11541 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
11542
11543 2013-02-14 Pedro Alves <palves@redhat.com>
11544
11545 * utils.c (savestring): Don't #undef it. Move function to
11546 common/common-utils.c.
11547 * common/common-utils.c: Include gdb_string.h.
11548 (savestring): Move here from utils.c.
11549 * common/common-utils.h (savestring): Declare.
11550
11551 2013-02-14 Pedro Alves <palves@redhat.com>
11552
11553 * utils.c (savestring): Rename parameter 'size' to 'len'.
11554
11555 2013-02-14 Pedro Alves <palves@redhat.com>
11556 Yufeng Zhang <yufeng.zhang@arm.com>
11557
11558 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
11559 (aarch64_inferior_data, struct aarch64_inferior_data):
11560 Delete.
11561 (struct aarch64_process_info): New.
11562 (aarch64_process_list): New global.
11563 (aarch64_find_process_pid, aarch64_add_process)
11564 (aarch64_process_info_get): New functions.
11565 (aarch64_inferior_data_get): Delete.
11566 (aarch64_process_info_get): New function.
11567 (aarch64_forget_process): New function.
11568 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
11569 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
11570 aarch64_get_debug_reg_state.
11571 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
11572 instead of linux_nat_iterate_watchpoint_lwps.
11573 (aarch64_linux_new_fork): New function.
11574 (aarch64_linux_child_post_startup_inferior): Use
11575 aarch64_forget_process instead of aarch64_init_debug_reg_state.
11576 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
11577 (aarch64_linux_remove_hw_breakpoint)
11578 (aarch64_handle_aligned_watchpoint)
11579 (aarch64_handle_unaligned_watchpoint)
11580 (aarch64_linux_insert_watchpoint)
11581 (aarch64_linux_remove_watchpoint)
11582 (aarch64_linux_stopped_data_address): Adjust to pass the current
11583 process id to aarch64_debug_reg_state.
11584 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
11585 linux_nat_new_fork hook, and aarch64_forget_process as
11586 linux_nat_forget_process hook; remove the call to
11587 register_inferior_data_with_cleanup.
11588
11589 2013-02-14 Pedro Alves <palves@redhat.com>
11590
11591 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
11592 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
11593 lval_memory.
11594
11595 2013-02-14 Pedro Alves <pedro@codesourcery.com>
11596 Hafiz Abid Qadeer <abidh@codesourcery.com>
11597
11598 * tracepoint.h (validate_trace_state_variable_name): Declare.
11599 * tracepoint.c (validate_trace_state_variable_name): New.
11600 (trace_variable_command): Parse the trace state variable's name
11601 without using parse_expression. Do several validations.
11602 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
11603 trace state variable's name with parse_expression. Validate it.
11604
11605 2013-02-14 Yao Qi <yao@codesourcery.com>
11606
11607 * infcmd.c (breakpoint_proceeded): Remove it.
11608
11609 2013-02-14 Yao Qi <yao@codesourcery.com>
11610
11611 * tracepoint.c (end_actions_pseudocommand): Make it static.
11612 (while_stepping_pseudocommand): Likewise.
11613 * tracepoint.h (end_actions_pseudocommand): Remove the
11614 declaration.
11615 (while_stepping_pseudocommand): Likewise.
11616
11617 2013-02-14 Yao Qi <yao@codesourcery.com>
11618
11619 * cli/cli-decode.c (help_cmd): Remove the declaration of
11620 "cmdlist".
11621 (help_all): Likewise.
11622
11623 2013-02-13 Pedro Alves <palves@redhat.com>
11624
11625 * amd64-linux-nat.c (update_debug_registers_callback):
11626 Update comment.
11627 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11628 iterate_over_lwps.
11629 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
11630 i386_debug_reg_state.
11631 (amd64_linux_new_fork): New function.
11632 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
11633 linux_nat_new_fork hook, and i386_forget_process as
11634 linux_nat_forget_process hook.
11635 * i386-linux-nat.c (update_debug_registers_callback):
11636 Update comment.
11637 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11638 iterate_over_lwps.
11639 (i386_linux_prepare_to_resume): Pass the lwp's pid to
11640 i386_debug_reg_state.
11641 (i386_linux_new_fork): New function.
11642 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
11643 linux_nat_new_fork hook, and i386_forget_process as
11644 linux_nat_forget_process hook.
11645 * i386-nat.c (i386_init_dregs): Delete.
11646 (i386_inferior_data, struct i386_inferior_data):
11647 Delete.
11648 (struct i386_process_info): New.
11649 (i386_process_list): New global.
11650 (i386_find_process_pid, i386_add_process, i386_process_info_get):
11651 New functions.
11652 (i386_inferior_data_get): Delete.
11653 (i386_process_info_get): New function.
11654 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
11655 (i386_forget_process): New function.
11656 (i386_cleanup_dregs): Rewrite.
11657 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
11658 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
11659 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11660 (i386_remove_hw_breakpoint): Adjust to pass the current process id
11661 to i386_debug_reg_state.
11662 (i386_use_watchpoints): Don't register inferior data.
11663 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
11664 adjust comment.
11665 (i386_forget_process): Declare.
11666 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
11667 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
11668 New static globals.
11669 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
11670 (add_initial_lwp): New, factored out from ...
11671 (add_lwp): ... this. Don't check the number of lwps before
11672 calling linux_nat_new_thread.
11673 (linux_nat_iterate_watchpoint_lwps): Delete.
11674 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
11675 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
11676 forks and vforks.
11677 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
11678 initial lwp.
11679 (linux_nat_kill, linux_nat_mourn_inferior): Call
11680 linux_nat_forget_process.
11681 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11682 (linux_nat_forget_process): New functions.
11683 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
11684 type.
11685 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
11686 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
11687 types.
11688 (linux_nat_set_new_fork, linux_nat_set_forget_process)
11689 (linux_nat_forget_process): New declarations.
11690
11691 * amd64fbsd-nat.c (super_mourn_inferior): New global.
11692 (amd64fbsd_mourn_inferior): New function.
11693 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
11694 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
11695
11696 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11697
11698 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
11699 Adding _().
11700
11701 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11702
11703 * aarch64-linux-nat.c (debug_reg_change_callback)
11704 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
11705 %s and phex().
11706
11707 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11708
11709 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
11710 with LONGEST.
11711
11712 2013-02-13 Pedro Alves <palves@redhat.com>
11713 Hafiz Abid Qadeer <abidh@codesourcery.com>
11714
11715 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
11716
11717 2013-02-12 Tom Tromey <tromey@redhat.com>
11718
11719 PR symtab/11464:
11720 * c-exp.y (lex_one_token): Initialize other fields of yylval on
11721 NAME return.
11722 (classify_inner_name): Remove 'first_name' argument, add
11723 'context'. Remove unused variable.
11724 (yylex): Explicitly maintain the context type. Exit loop earlier
11725 if NAME result is seen.
11726
11727 2013-02-12 Pedro Alves <palves@redhat.com>
11728
11729 * amd64-darwin-tdep.c: Add (C) after Copyright.
11730 * cli/cli-cmds.h: Ditto.
11731 * cli/cli-decode.c: Ditto.
11732 * cli/cli-decode.h: Ditto.
11733 * cli/cli-dump.c: Ditto.
11734 * cli/cli-dump.h: Ditto.
11735 * cli/cli-interp.c: Ditto.
11736 * cli/cli-logging.c: Ditto.
11737 * cli/cli-script.c: Ditto.
11738 * cli/cli-script.h: Ditto.
11739 * cli/cli-setshow.c: Ditto.
11740 * cli/cli-setshow.h: Ditto.
11741 * cli/cli-utils.c: Ditto.
11742 * cli/cli-utils.h: Ditto.
11743 * config/alpha/nm-osf3.h: Ditto.
11744 * config/djgpp/djconfig.sh: Ditto.
11745 * config/i386/nm-fbsd.h: Ditto.
11746 * config/i386/nm-i386gnu.h: Ditto.
11747 * config/nm-linux.h: Ditto.
11748 * config/nm-nto.h: Ditto.
11749 * config/rs6000/nm-rs6000.h: Ditto.
11750 * config/sparc/nm-sol2.h: Ditto.
11751 * darwin-nat-info.c: Ditto.
11752 * dfp.c: Ditto.
11753 * dfp.h: Ditto.
11754 * gdb-demangle.h: Ditto.
11755 * i386-darwin-nat.c: Ditto.
11756 * i386-darwin-tdep.c: Ditto.
11757 * linux-fork.h: Ditto.
11758 * m32c-tdep.c: Ditto.
11759 * microblaze-linux-tdep.c: Ditto.
11760 * microblaze-rom.c: Ditto.
11761 * microblaze-tdep.c: Ditto.
11762 * microblaze-tdep.h: Ditto.
11763 * mips-linux-tdep.h: Ditto.
11764 * ppc-ravenscar-thread.c: Ditto.
11765 * ppc-ravenscar-thread.h: Ditto.
11766 * prologue-value.c: Ditto.
11767 * prologue-value.h: Ditto.
11768 * ravenscar-thread.c: Ditto.
11769 * ravenscar-thread.h: Ditto.
11770 * sparc-ravenscar-thread.c: Ditto.
11771 * sparc-ravenscar-thread.h: Ditto.
11772 * tilegx-linux-tdep.c: Ditto.
11773 * unwind_stop_reasons.def: Ditto.
11774 * windows-nat.h: Ditto.
11775 * xtensa-linux-tdep.c: Ditto.
11776 * xtensa-xtregs.c: Ditto.
11777 * regformats/regdat.sh: Ditto.
11778 * regformats/regdef.h: Ditto.
11779
11780 2013-02-12 Pedro Alves <palves@redhat.com>
11781
11782 * break-catch-sig.c: Update copyright years.
11783
11784 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
11785
11786 Add support for a destructor for ui_out data and use it to
11787 provide a ui_out destructor.
11788 * ui-out.h: Declare the new ui_out destructor.
11789 (ui_out_impl): Add a field for data destructor in ui_out_impl.
11790 * ui-out.c (default_data_destroy): Add a default data destructor
11791 which does nothing.
11792 (default_ui_out_impl): Set the new data_destroy field to
11793 default_data_destroy
11794 (uo_data_destroy): Local function which invokes the data
11795 destructor if present.
11796 (clear_table): Local function which clears the table data of a
11797 ui_out object.
11798 (ui_out_destroy): Public function which frees a ui_out object.
11799 (ui_out_table_end): Use the new clear_table function.
11800 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
11801 NULL.
11802 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
11803 to NULL.
11804
11805 2013-02-11 Doug Evans <dje@google.com>
11806
11807 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
11808 (printf_decfloat): New function. Broken out from ui_printf.
11809 Remove unnecessary code to shift the entire format string down.
11810 (printf_pointer): New function.
11811 (ui_printf): Code to print C strings, wide C strings, decfloats,
11812 and pointers moved to separate functions.
11813
11814 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
11815
11816 * valops.c (value_assign): Handling bitfield offset in
11817 `lval_internalvar_component' case.
11818
11819 2013-02-08 Doug Evans <dje@google.com>
11820
11821 * common/format.c (parse_format_string): Fix whitespace.
11822
11823 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11824
11825 * stack.c (return_command): Work around uninitialized variable
11826 warning.
11827
11828 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
11829
11830 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
11831 number of the registers from 36 to 34.
11832
11833 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11834
11835 * NEWS: Mention new AArch64 native and target support.
11836
11837 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
11838
11839 * MAINTAINERS (Write After Approval): Add myself.
11840
11841 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
11842 Marcus Shawcroft <marcus.shawcroft@arm.com>
11843 Nigel Stephens <nigel.stephens@arm.com>
11844 Yufeng Zhang <yufeng.zhang@arm.com>
11845
11846 * aarch64-linux-nat.c: New file.
11847 * config/aarch64/linux.mh: New file.
11848 * configure.host: Add AArch64.
11849 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
11850
11851 2013-02-07 Doug Evans <dje@google.com>
11852
11853 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
11854 disassemble command.
11855
11856 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11857
11858 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
11859 set_gdbarch_fetch_tls_load_module_address.
11860
11861 2013-02-06 David S. Miller <davem@davemloft.net>
11862
11863 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
11864 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11865 * value.c (struct_return_convention): New function.
11866 (using_struct_return): Implement in terms of struct_return_convention.
11867 * value.h (struct_return_convention): Declare.
11868 * stack.c (return_command): Allow successful overriding of the return
11869 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
11870
11871 2013-02-06 Tom Tromey <tromey@redhat.com>
11872
11873 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
11874 outside of TRY_CATCH.
11875
11876 2013-02-06 Yao Qi <yao@codesourcery.com>
11877
11878 * mi/mi-interp.c: Include "tracepoint.h".
11879 (mi_tsv_modified): Declare.
11880 (mi_tsv_created, mi_tsv_deleted): Update declaration.
11881 (mi_interpreter_init): Call observer_attach_tsv_modified.
11882 (mi_tsv_modified): New.
11883 (mi_tsv_created, mi_tsv_deleted): Update.
11884 * tracepoint.c (trace_variable_command): Call
11885 observer_notify_tsv_modified if the initial value of tsv is
11886 changed.
11887 (delete_trace_state_variable): Call
11888 observer_notify_tsv_deleted earlier.
11889 (trace_variable_command): Caller update.
11890 (create_tsv_from_upload): Likewise.
11891 * observer.sh: Declare "struct trace_state_variable".
11892
11893 * NEWS: Mention the new MI notification "=tsv-modified".
11894
11895 2013-02-05 Doug Evans <dje@google.com>
11896
11897 * completer.c (location_completer): Fix typo in comment.
11898
11899 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11900
11901 * breakpoint.c (add_location_to_breakpoint): Insert the location with
11902 ADDRESS sorted.
11903
11904 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11905
11906 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
11907 Refactor if statement to avoid trailing || operator.
11908
11909 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
11910
11911 * NEWS: Add PowerPC FreeBSD as a new native configuration.
11912
11913 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
11914
11915 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
11916 * configure.host: Add powerpc*-*-freebsd* target.
11917 * configure.tgt: Add target info for powerpc*-*-freebsd*.
11918 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
11919 * config/powerpc/fbsd.mh: New file.
11920
11921 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
11922 Denys Vlasenko <dvlasenk@redhat.com>
11923 Pedro Alves <palves@redhat.com>
11924
11925 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
11926 (struct elf_internal_linux_prpsinfo): Forward declare.
11927 * gdbarch.h, gdbarch.c: Regenerate.
11928 * linux-tdep.c: Include `cli/cli-utils.h'.
11929 (linux_fill_prpsinfo): New function.
11930 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
11931 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
11932 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
11933 depending on gdbarch pointer bitness.
11934 * ppc-linux-tdep.c: Include elf-bfd.h.
11935 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
11936 on 32-bit.
11937
11938 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11939 Marcus Shawcroft <marcus.shawcroft@arm.com>
11940 Nigel Stephens <nigel.stephens@arm.com>
11941 Yufeng Zhang <yufeng.zhang@arm.com>
11942
11943 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
11944
11945 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11946 Marcus Shawcroft <marcus.shawcroft@arm.com>
11947 Nigel Stephens <nigel.stephens@arm.com>
11948 Yufeng Zhang <yufeng.zhang@arm.com>
11949
11950 * aarch64-newlib-tdep.c: New file.
11951 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
11952 aarch64*-*-elf.
11953 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
11954 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
11955 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
11956 * osabi.c (gdb_osabi_names): Add "Newlib".
11957
11958 2013-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 aarch64-linux-tdep.o.
11964 (ALLDEPFILES): Add aarch64-linux-tdep.c.
11965 * aarch64-linux-tdep.c: New file.
11966 * aarch64-linux-tdep.h: New file.
11967 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
11968 * configure.tgt: Add aarch64-none-linux-gnu.
11969
11970 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11971 Marcus Shawcroft <marcus.shawcroft@arm.com>
11972 Nigel Stephens <nigel.stephens@arm.com>
11973 Yufeng Zhang <yufeng.zhang@arm.com>
11974
11975 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
11976 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
11977 (ALLDEPFILES): Add aarch64-tdep.c.
11978 * aarch64-tdep.c: New file.
11979 * aarch64-tdep.h: New file.
11980 * configure.tgt: Add AArch64.
11981 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
11982 (aarch64-expedite): New definition.
11983 * features/aarch64-core.xml: New file.
11984 * features/aarch64-fpu.xml: New file.
11985 * features/aarch64-without-fpu.c: New file (generated).
11986 * features/aarch64-without-fpu.xml: New file.
11987 * features/aarch64.c: New file (generated).
11988 * features/aarch64.xml: New file.
11989 * regformats/aarch64-without-fpu.dat: New file (generated).
11990 * regformats/aarch64.dat: New file (generated).
11991
11992 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11993
11994 * contrib/expect-read1.c: New file.
11995 * contrib/expect-read1.sh: New file.
11996
11997 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11998
11999 * dwarf2read.c (file_file_name): New function with code from
12000 file_full_name.
12001 (file_full_name): Move most of the code to file_file_name.
12002 (macro_start_file): Rename variable full_name to file_name and use
12003 file_file_name for it. Add comp_dir parameter to new_macro_table.
12004 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
12005 macro_source_file->filename access by macro_source_fullname call.
12006 * macroscope.c (_initialize_macroscope): Update the new_macro_table
12007 caller.
12008 * macrotab.c (struct macro_table): New field comp_dir.
12009 (macro_include): New variables link_fullname and source_fullname.
12010 Replace any macro_source_file->filename access by macro_source_fullname
12011 call.
12012 (macro_lookup_inclusion): Remove the partial filenames checking code.
12013 (check_for_redefinition): New variables source_fullname and
12014 found_key_fullname. Replace any macro_source_file->filename access by
12015 macro_source_fullname call.
12016 (macro_undef): New variables source_fullname and key_fullname. Replace
12017 any macro_source_file->filename access by macro_source_fullname call.
12018 (macro_lookup_definition): New variables retval and source_fullname.
12019 Replace any macro_source_file->filename access by macro_source_fullname
12020 call.
12021 (foreach_macro): New variable key_fullname. Replace any
12022 macro_source_file->filename access by macro_source_fullname call.
12023 (foreach_macro_in_scope): New variable datum_fullname. Replace any
12024 macro_source_file->filename access by macro_source_fullname call.
12025 (new_macro_table): Add parameter comp_dir. Initialize T with it.
12026 (macro_source_fullname): New function.
12027 * macrotab.h (struct macro_source_file): Extent the filename field
12028 comment.
12029 (new_macro_table): New parameter comp_dir, add a comment for it.
12030 (macro_source_fullname): new declaration.
12031
12032 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12033
12034 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
12035 this_real_name to outer block. Use it also for
12036 compare_filenames_for_search.
12037 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
12038 with dw2_get_real_path for file_matcher, considering also
12039 BASENAMES_MAY_DIFFER.
12040 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
12041
12042 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12043
12044 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
12045 to the file_matcher parameter. Pass 0 to it.
12046 (dwarf2_create_include_psymtab): Copy also DIRNAME.
12047 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
12048 NULL psymtab_to_fullname result.
12049 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
12050 an expected filename instead.
12051 (expand_symtabs_matching_via_partial): Add basenames parameter to the
12052 file_matcher parameter. Call also psymtab_to_fullname, after newly
12053 considering BASENAMES_MAY_DIFFER.
12054 * source.c (rewrite_source_path): Remove static.
12055 * source.h (rewrite_source_path): New declaration.
12056 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
12057 the expand_symtabs_matching field. Comment it.
12058 * symtab.c (file_matches): New function comment. Add parameter
12059 basenames, implement it.
12060 (search_symbols_file_matches): Add basenames parameter. Update the
12061 file_matches caller.
12062 (search_symbols): Match FILES also against symtab_to_fullname.
12063 Optimize it for BASENAMES_MAY_DIFFER.
12064
12065 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12066
12067 * source.c (print_source_lines_base): Print for TUI also "fullname".
12068 * tui/tui-data.c (init_content_element): Change tui_locator_element
12069 field to full_name.
12070 * tui/tui-data.h (struct tui_locator_element): Likewise.
12071 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
12072 tui_update_locator_filename calls to tui_update_locator_fullname.
12073 Replace symtab->filename refererence by symtab_to_fullname call.
12074 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
12075 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
12076 field to full_name. Replace symtab->filename refererence by
12077 symtab_to_fullname call.
12078 (tui_show_symtab_source): Rename parameter to fullname. Change
12079 tui_locator_element field to full_name.
12080 * tui/tui-stack.c: Include source.h.
12081 (tui_set_locator_filename): Rename the declaration to ...
12082 (tui_set_locator_fullname): ... here. Rename its parameter to
12083 fullname, updates its comment.
12084 (tui_set_locator_info): Rename its parameter to fullname.
12085 (tui_set_locator_filename): Rename the definition to ...
12086 (tui_set_locator_fullname): ... here. Rename its parameter to
12087 fullname, updates its comment. Change tui_locator_element field to
12088 full_name.
12089 (tui_set_locator_info): Rename its parameter to fullname.
12090 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
12091 (tui_update_locator_filename): Rename to ...
12092 (tui_update_locator_fullname): ... here. Rename callee to
12093 tui_set_locator_fullname.
12094 (tui_show_frame_info): Replace symtab->filename refererence by
12095 symtab_to_fullname call.
12096 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
12097 (tui_update_locator_fullname): ... here.
12098 * tui/tui-winsource.c (tui_display_main): Rename the callee to
12099 tui_update_locator_fullname. Replace symtab->filename refererence by
12100 symtab_to_fullname call.
12101 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
12102 Rename the callee to tui_update_locator_fullname.
12103 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
12104
12105 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12106
12107 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
12108 by symtab_to_filename_for_display calls.
12109 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
12110 (clear_command): New variable sal_fullname, initialize it. Replace
12111 compare_filenames_for_search by filename_cmp with sal_fullname.
12112 (say_where, update_static_tracepoint): Replace symtab->filename
12113 refererences by symtab_to_filename_for_display calls.
12114 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
12115 Likewise.
12116 * dwarf2read.c: Include source.h.
12117 (fixup_go_packaging): Replace symtab->filename refererences by
12118 symtab_to_filename_for_display calls.
12119 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
12120 Replace symtab->filename refererences by symtab_to_filename_for_display
12121 calls.
12122 (create_sals_line_offset, convert_linespec_to_sals): New variable
12123 fullname, initialize it, replace symtab->filename reference by the
12124 variable.
12125 * linux-fork.c: Include source.h.
12126 (info_checkpoints_command): Replace symtab->filename refererences by
12127 symtab_to_filename_for_display calls.
12128 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
12129 by symtab_to_filename_for_display calls.
12130 * mdebugread.c: Include source.h.
12131 (psymtab_to_symtab_1): Replace symtab->filename refererences by
12132 symtab_to_filename_for_display calls.
12133 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
12134 (mi_cmd_file_list_exec_source_files): Likewise.
12135 * printcmd.c: Include source.h.
12136 (build_address_symbolic): Replace symtab->filename refererences by
12137 symtab_to_filename_for_display calls.
12138 * psymtab.c (partial_map_symtabs_matching_filename)
12139 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
12140 with psymtab_to_fullname.
12141 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
12142 by symtab_to_filename_for_display calls.
12143 (stpy_get_filename): New variable filename, initialize it, use instead
12144 of symtab->filename refererences.
12145 (salpy_str): Make variable filename const char *. Replace
12146 symtab->filename refererences by symtab_to_filename_for_display calls.
12147 * skip.c: Include source.h and filenames.h.
12148 (skip_file_command): Remove const from the symtab variable. Replace
12149 symtab->filename refererences by symtab_to_fullname call.
12150 (function_name_is_marked_for_skip): New variables searched_for_fullname
12151 and fullname. Use them to search also with symtab's fullname.
12152 * source.c (find_source_lines): Replace symtab->filename refererences
12153 by symtab_to_filename_for_display calls.
12154 (print_source_lines_base): New variable filename, use it instead of
12155 symtab->filename. Replace symtab->filename refererences by
12156 symtab_to_filename_for_display calls.
12157 (line_info, forward_search_command): Replace symtab->filename
12158 refererences by symtab_to_filename_for_display calls.
12159 (reverse_search_command): Replace symtab->filename refererences by
12160 symtab_to_filename_for_display calls. New variable filename for it.
12161 * stack.c (frame_info): Likewise.
12162 * symmisc.c: Include source.h.
12163 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
12164 (maintenance_info_symtabs): Replace symtab->filename refererences by
12165 symtab_to_filename_for_display calls.
12166 * symtab.c (iterate_over_some_symtabs): Call
12167 compare_filenames_for_search also with symtab_to_fullname.
12168 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
12169 symtab->filename refererences by symtab_to_filename_for_display calls.
12170 (find_line_symtab): Replace symtab->filename refererences by
12171 symtab_to_filename_for_display calls.
12172 (file_matches): Replace filename_cmp by compare_filenames_for_search.
12173 (print_symbol_info): Make the last parameter const char *. New
12174 variable s_filename. Use it in the function.
12175 (symtab_symbol_info): Make the last_filename variable const char *.
12176 Replace symtab->filename refererences by symtab_to_filename_for_display
12177 calls.
12178 (rbreak_command): New variable fullname. Use it. Replace
12179 symtab->filename refererence by symtab_to_filename_for_display call.
12180 * tracepoint.c (set_traceframe_context, trace_find_line_command)
12181 (print_one_static_tracepoint_marker): Replace symtab->filename
12182 refererences by symtab_to_filename_for_display calls.
12183 * tui/tui-source.c (tui_set_source_content): New variables filename and
12184 s_filename. Replace symtab->filename refererences by this variable.
12185 Replace other symtab->filename refererences by
12186 symtab_to_filename_for_display calls.
12187
12188 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
12189 Jan Kratochvil <jan.kratochvil@redhat.com>
12190
12191 Add a new variable that controls a way in which filenames are
12192 displayed.
12193 * NEWS (set filename-display): New entry.
12194 * source.c (filename_display_basename, filename_display_relative)
12195 (filename_display_absolute, filename_display_kind_names)
12196 (filename_display_string, show_filename_display_string)
12197 (symtab_to_filename_for_display): New.
12198 (_initialize_source): Added initialization of 'filename-display'
12199 variable.
12200 * source.h (symtab_to_filename_for_display): Added declaration.
12201 * stack.c (print_frame): Added new variable and calling of a new
12202 function and condition with this variable. Changed third argument of
12203 calling of a function.
12204
12205 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
12208 Rename field reference filename to fullname.
12209 * tui/tui-data.h (struct tui_source_info): Rename field filename to
12210 fullname. New comment for it.
12211 * tui/tui-source.c (tui_set_source_content): Rename field reference
12212 filename to fullname. Initialize field by symtab_to_fullname now.
12213 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
12214 reference filename to fullname. Use symtab_to_fullname during
12215 comparison.
12216
12217 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12218
12219 Code cleanup.
12220 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
12221 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
12222 filename to fullname. Rename variable this_name to this_fullname.
12223 Lowercase FILENAME_CMP call.
12224 (dw2_find_symbol_file): New comment for the returned string.
12225 (dwarf2_gdb_index_functions): Rename the function to
12226 dw2_expand_symtabs_with_fullname.
12227 * psymtab.c (read_psymtabs_with_filename): Rename to ...
12228 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
12229 fullname.
12230 (psym_functions): Rename the function to read_psymtabs_with_fullname.
12231 * symfile.h (struct quick_symbol_functions): Rename field
12232 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
12233 parameter filename to fullname. Document returned string meaning for
12234 find_symbol_file.
12235 * symtab.c (find_line_symtab): Rename the called function to
12236 expand_symtabs_with_fullname.
12237
12238 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12239
12240 Code cleanup.
12241 * breakpoint.c (clear_command): Remove variable is_abs, unify the
12242 call of filename_cmp with compare_filenames_for_search.
12243 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
12244 is_abs, unify the call of FILENAME_CMP with
12245 compare_filenames_for_search. New gdb_asserts for real_path and name.
12246 Unify the call of compare_filenames_for_search with FILENAME_CMP.
12247 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
12248 * symfile.h (struct quick_symbol_functions): Extend the comment for
12249 map_symtabs_matching_filename.
12250 * symtab.c (compare_filenames_for_search): Remove the function comment
12251 relative path requirement. Handle absolute filenames, with a comment.
12252 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
12253 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
12254 real_path and name. Unify the call of compare_filenames_for_search
12255 with FILENAME_CMP.
12256 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
12257
12258 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12259
12260 Code cleanup.
12261 * breakpoint.c (print_breakpoint_location): Replace bp_location field
12262 source_file references by symtab field references. Remove variables
12263 sal and fullname.
12264 (momentary_breakpoint_from_master, add_location_to_breakpoint):
12265 (clear_command, say_where): Replace bp_location field source_file
12266 references by symtab field references.
12267 (bp_location_dtor): Remove the source_file reference.
12268 (update_static_tracepoint): Replace bp_location field source_file
12269 references by symtab field references.
12270 (breakpoint_free_objfile): New function.
12271 * breakpoint.h (struct bp_location): Extend the comment for line_number.
12272 Replace the field source_file by field symtab, extend its comment.
12273 (breakpoint_free_objfile): New declaration.
12274 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
12275 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
12276 field source_file references by symtab field references.
12277
12278 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12279
12280 Replace xfullpath calls by gdb_realpath calls.
12281 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
12282 function comment.
12283 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
12284 Remove it from the iterate_over_some_symtabs call.
12285 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
12286 Remove it from the dw2_map_expand_apply calls, remove a block handling
12287 it.
12288 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
12289 Remove it from the iterate_over_some_symtabs call.
12290 (partial_map_symtabs_matching_filename): Remove parameter full_path.
12291 Remove it from the partial_map_expand_apply calls, remove a block
12292 handling it. Drop gdb_realpath call and cleanups from the real_path
12293 handling.
12294 * source.c (openp): Drop the comment part about xfullpath. Replace
12295 xfullpath calls by gdb_realpath calls.
12296 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
12297 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
12298 from method map_symtabs_matching_filename and its comment.
12299 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
12300 gdb_realpath call.
12301 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
12302 remove it also from the function comment, remove a block handling it.
12303 Drop gdb_realpath call and cleanups from the real_path handling.
12304 (iterate_over_symtabs): Drop variable full_path and its use.
12305 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
12306 * utils.c (xfullpath): Remove.
12307 * utils.h (xfullpath): Remove.
12308
12309 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
12310
12311 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
12312 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
12313 (ALLDEPFILES): Add ppc64-tdep.c.
12314 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
12315 ppc64-tdep.o to gdb_target_obs.
12316 * ppc64-tdep.h: New file.
12317 * ppc64-tdep.c: New file.
12318 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
12319 ppc-linux-tdep.c to here.
12320 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
12321 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
12322 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
12323 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
12324 from ppc-linux-tdep.c to here.
12325 (ppc64_convert_from_func_ptr_addr): Rename from
12326 ppc64_linux_convert_from_func_ptr_addr to
12327 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
12328 here.
12329 * rs6000-tdep.c:
12330 (read_insn): Move from ppc-linux-tdep.c to here.
12331 (insns_match_pattern, insn_d_field, insn_ds_field): Move
12332 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
12333 * ppc-linux-tdep.c: Include ppc64-tdep.h.
12334 Removed above functions.
12335 (ppc_linux_init_abi): Adjust.
12336
12337 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12338
12339 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
12340
12341 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
12342
12343 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
12344
12345 2013-02-01 Pedro Alves <palves@redhat.com>
12346
12347 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
12348 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
12349
12350 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12351
12352 * elfread.c (elf_symfile_read): Limit separate debug info additions to
12353 files with no separate debug info.
12354 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
12355 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
12356 only for files with no separate debug info.
12357
12358 2013-01-31 Tom Tromey <tromey@redhat.com>
12359
12360 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
12361 change type.
12362 (struct jit_program_space_data): Rename from jit_inferior_data.
12363 Update comments.
12364 (get_jit_program_space_data): Rename from get_jit_inferior_data.
12365 Change return type. Attach data to program space.
12366 (jit_program_space_data_cleanup): Rename from
12367 jit_inferior_data_cleanup; change argument type.
12368 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
12369 change type.
12370 (jit_register_code): Update.
12371 (jit_update_inferior_cache): Remove.
12372 (jit_breakpoint_deleted): Get jit data from the location's program
12373 space.
12374 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
12375 'ps_data', change type.
12376 (jit_inferior_init, jit_breakpoint_re_set_internal)
12377 (jit_event_handler): Update.
12378 (free_objfile_data): Get data from objfile's program space.
12379 (_initialize_jit): Update.
12380
12381 2013-01-31 Tom Tromey <tromey@redhat.com>
12382
12383 PR gdb/13987:
12384 * jit.c (struct jit_inferior_data) <cached_code_address,
12385 jit_breakpoint>: New fields.
12386 (jit_breakpoint_re_set_internal): Fix logging. Only create
12387 breakpoint if cached address has changed.
12388 (jit_update_inferior_cache, jit_breakpoint_deleted): New
12389 functions.
12390 (_initialize_jit): Register breakpoint deleted observer.
12391
12392 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12393
12394 * infrun.c (handle_syscall_event): Remove unused gdbarch.
12395 (save_infcall_suspend_state): Ifdef out unused inf.
12396 (restore_infcall_suspend_state): Ifdef out unused inf.
12397 * jit.c (jit_register_code): Remove unused i, b, inf_data.
12398 (jit_frame_sniffer): Remove unused inf_data.
12399
12400 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12401
12402 * c-exp.y (classify_inner_name): Remove unused type.
12403 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
12404 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
12405 need_escape.
12406 (c_get_string): Remove unused kind.
12407 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
12408
12409 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12410
12411 * charset.c (intermediate_encoding): Remove unused i.
12412 * completer.c (signal_completer): Remove unused i.
12413 * continuations.c (discard_my_continuations_1): Remove unused
12414 continuation_ptr.
12415 * corelow.c (core_close): Remove unuseD name.
12416 (get_core_siginfo): Remove unused pid.
12417 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
12418 i, cps.
12419 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
12420 (loclist_describe_location): Remove unused first.
12421 * event-top.c (command_line_handler): Remove unused got_eof.
12422 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
12423 (resize_section_table): Remove unused old_value.
12424 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
12425 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
12426 * i386-tdep.c (i386_process_record): Remove unused rex.
12427 * infcmd.c (get_return_value): Remove unused uiout.
12428 * jv-lang.c (type_from_class): Remove unused is_array.
12429 * jv-valprint.c (java_val_print): Remove unused i.
12430 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
12431 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
12432 * m2-typeprint.c (m2_print_type): Remove unused code.
12433 * macroexp.c (get_character_constant): Remove unused body_start.
12434 (macro_stringify): Remove unused result.
12435 * objc-lang.c (find_methods): Remove unused gdbarch.
12436 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
12437 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
12438 * stack.c (print_frame_args): Remove unused summary.
12439 * thread.c (thread_apply_command): Remove unused p.
12440 * valarith.c (value_x_unop): Remove unused mangle_ptr.
12441 * valops.c (search_struct_method): Remove unused skip.
12442 * valprint.c (generic_val_print): Remove unused byte_order.
12443 * varobj.c (varobj_update): Remove unused changed.
12444 * cli/cli-cmds.c (complete_command): Remove unused next_item.
12445 (alias_command): Remove unused c.
12446 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
12447 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
12448 format.
12449 (mi_cmd_data_write_memory): Remove unused word_format.
12450 (mi_cmd_data_write_memory_bytes): Remove unused r.
12451 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
12452 p_start, p_end.
12453 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
12454 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
12455 line_width.
12456
12457 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12458
12459 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
12460 * symtab.c (iterate_over_symtabs): Remove unused s.
12461 (find_pc_sect_symtab): Remove unused pspAce.
12462 (find_pc_sect_line): Remove unused alt_symtab.
12463 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
12464 (completion_list_add_name): Remove unused newsize.
12465
12466 2013-01-31 Tom Tromey <tromey@redhat.com>
12467
12468 PR c++/14998:
12469 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
12470 TYPE_CODE_FUNC.
12471
12472 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12473
12474 * target.c (target_read_string): Remove unused origlen.
12475
12476 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12477
12478 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
12479 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
12480 * ax-general.c (ax_print): Remove unused is_float.
12481 * blockframe.c (block_innermost_frame): Remove unused start, end.
12482 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
12483
12484 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
12485
12486 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
12487 (svr4_read_so_list): Remove unused lmo.
12488 * solib-target.c (solib_target_relocate_section_addresses): Remove
12489 unused flags.
12490
12491 2013-01-30 Tom Tromey <tromey@redhat.com>
12492
12493 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
12494
12495 2013-01-30 Tom Tromey <tromey@redhat.com>
12496
12497 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
12498 * utils.c (gnu_debuglink_crc32): Remove.
12499 * utils.h (gnu_debuglink_crc32): Don't declare.
12500
12501 2013-01-30 Tom Tromey <tromey@redhat.com>
12502
12503 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
12504 (read_structure_type, read_enumeration_type): Remove cast.
12505
12506 2013-01-30 Tom Tromey <tromey@redhat.com>
12507
12508 * dwarf2read.c (read_namespace_type): Remove cast.
12509 (read_typedef): Likewise.
12510
12511 2013-01-29 Tom Tromey <tromey@redhat.com>
12512
12513 * dwarf2read.c (free_dwo_file): Remove assert.
12514
12515 2013-01-29 Tom Tromey <tromey@redhat.com>
12516
12517 * value.c (deprecated_set_value_modifiable): Remove.
12518 * value.h (deprecated_set_value_modifiable): Remove.
12519
12520 2013-01-28 Doug Evans <dje@google.com>
12521
12522 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
12523 to addresses from dwo files.
12524
12525 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
12526
12527 * valops.c (find_overload_match): Remove unused argument 'lax'.
12528 * value.h: Remove unused argument 'lax' from the declaration of
12529 find_overload_match.
12530 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
12531 to find_overload_match.
12532 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
12533 argument to find_overload_match.
12534
12535 2013-01-25 Tom Tromey <tromey@redhat.com>
12536
12537 * dwarf2read.c (processing_has_namespace_info): Remove.
12538 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
12539 (process_die, read_func_scope, dwarf2_start_symtab)
12540 (new_symbol_full): Update.
12541
12542 2013-01-25 Tom Tromey <tromey@redhat.com>
12543
12544 * cp-namespace.c (cp_set_block_scope): Remove.
12545 * cp-support.h (cp_set_block_scope): Remove.
12546 * dbxread.c: Include block.h.
12547 (cp_set_block_scope): New function.
12548 (process_one_symbol): Update.
12549 * dwarf2read.c (read_func_scope): Use block_set_scope.
12550
12551 2013-01-25 Pedro Alves <palves@redhat.com>
12552
12553 * remote.c (add_current_inferior_and_thread): Tweak comment.
12554
12555 2013-01-25 Tom Tromey <tromey@redhat.com>
12556
12557 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
12558 (cp_add_using_directive): Add 'copy_names' argument.
12559 * cp-support.h (cp_add_using_directive): Update.
12560 (struct using_direct) <import_src, import_dest, alias,
12561 declaration>: Now const.
12562 * dwarf2read.c (read_import_statement): Use obconcat.
12563 Don't copy names passed to cp_add_using_directive.
12564
12565 2013-01-25 Tom Tromey <tromey@redhat.com>
12566
12567 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
12568
12569 2013-01-25 Pedro Alves <palves@redhat.com>
12570
12571 * remote.c (stop_reply_extract_thread): New.
12572 (add_current_inferior_and_thread): New parameter 'wait_status'.
12573 Handle it.
12574 (remote_start_remote): Pass wait status to
12575 add_current_inferior_and_thread.
12576 (extended_remote_run): Update comment.
12577 (extended_remote_create_inferior_1): Pass wait status to
12578 add_current_inferior_and_thread.
12579
12580 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
12581 Ulrich Weigand <uweigand@de.ibm.com>
12582
12583 * valarith.c (value_vector_widen): New function for replicating a
12584 scalar into a vector.
12585 (value_binop): Use value_vector_widen to widen scalar to vector
12586 rather than casting, this better matches gcc C behaviour.
12587 * valops.c (value_casst): Update logic for casting between vector
12588 types, and for casting from scalar to vector, try to match gcc C
12589 behaviour.
12590 * value.h (value_vector_widen): Declare.
12591 * opencl-lang.c (opencl_value_cast): New opencl specific casting
12592 function, handle special case for casting scalar to vector.
12593 (opencl_relop): Use opencl_value_cast.
12594 (evaluate_subexp_opencl): Use opencl_value_cast instead of
12595 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
12596 in order to use opencl_value_cast.
12597
12598 2013-01-25 Yao Qi <yao@codesourcery.com>
12599
12600 * event-loop.c: Include "queue.h".
12601 (gdb_event_p): New typedef.
12602 (DECLARE_QUEUE_P): Use.
12603 (DEFINE_QUEUE_P): Use.
12604 (async_queue_event): Remove.
12605 (gdb_event_xfree): New.
12606 (initialize_event_loop): New.
12607 (process_event): Use QUEUE macros.
12608 (event_queue): Remove.
12609 (gdb_wait_for_event): Caller update.
12610 (check_async_event_handlers): Likewise.
12611 (poll_timers): Likewise.
12612 * event-loop.h (initialize_event_loop): Declare.
12613 * event-loop.c (gdb_event_xfree): New.
12614 * top.c (gdb_init): Call initialize_event_loop.
12615
12616 2013-01-25 Yao Qi <yao@codesourcery.com>
12617
12618 * event-loop.c (async_queue_event): Remove one parameter
12619 'position'. Remove code handling 'position' == TAIL.
12620 (gdb_wait_for_event): Caller update.
12621 (check_async_event_handlers): Caller update.
12622 (poll_timers): Caller update.
12623 * event-loop.h (enum queue_position): Remove.
12624
12625 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
12626
12627 * MAINTAINERS: Update my email.
12628
12629 2013-01-25 Yao Qi <yao@codesourcery.com>
12630
12631 * main.c (print_gdb_help): Remove "--epoch" from the help
12632 message.
12633
12634 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
12635
12636 * symtab.c (skip_prologue_using_sal): Consider a file
12637 change the same as an increased line number
12638
12639 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
12640
12641 * MAINTAINERS (Write After Approval): Add myself to the list.
12642
12643 2013-01-24 Tom Tromey <tromey@redhat.com>
12644
12645 * ada-lang.h (ada_decode_symbol): Make return type const.
12646 * ada-lang.c (ada_decode_symbol): Likewise.
12647
12648 2013-01-23 Doug Evans <dje@google.com>
12649
12650 * linespec.c (find_linespec_symbols): Make static.
12651
12652 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
12653
12654 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
12655 type on float conversion for complex type.
12656
12657 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
12658
12659 Add a new class gdb.Architecture which exposes GDB's
12660 internal representation of architecture via GDB Python API.
12661 * Makefile.in: Add entries corresponding to the new file
12662 python/py-arch.c.
12663 * NEWS (Python Scripting): Add entries for the new class
12664 gdb.Architecture and the new method gdb.Frame.architecture.
12665 * python/py-arch.c: Implement gdb.Architecture class.
12666 * python/py-frame.c (frapy_arch): Implement the method
12667 gdb.Frame.architecture().
12668 (frame_object_methods): Add 'architecture' to the method table.
12669 * python/python-internal.h: Add declarations of new utility
12670 functions.
12671 * python/python.c (_initialize_python): Initialize
12672 gdb.Architecture class.
12673
12674 2013-01-23 Doug Evans <dje@google.com>
12675
12676 Work around binutils/15021.
12677 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
12678 type_unit_group out of union s. All uses updated.
12679 (read_index_from_section): Watch for index version 8.
12680 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
12681 an imported symtab.
12682 (write_psymtabs_to_index): Increment version number to 8.
12683
12684 2013-01-22 Pedro Alves <palves@redhat.com>
12685
12686 * annotate.c (breakpoint_changed): Skip if breakpoint is not
12687 user-visible.
12688
12689 2013-01-22 Pedro Alves <palves@redhat.com>
12690
12691 * annotate.c (annotate_breakpoints_changed): Rename to ...
12692 (annotate_breakpoints_invalid): ... this. Make static.
12693 (breakpoint_changed): Adjust.
12694 (_initialize_annotate): Always install the observers. Install a
12695 "breakpoint_created" observer.
12696 * annotate.h (annotate_breakpoints_changed): Delete declaration.
12697 * breakpoint.c (set_breakpoint_condition)
12698 (breakpoint_set_commands, do_map_commands_command)
12699 (init_raw_breakpoint, clear_command, set_ignore_count)
12700 (enable_breakpoint_disp): No longer call
12701 annotate_breakpoints_changed.
12702
12703 2013-01-22 Pedro Alves <palves@redhat.com>
12704
12705 * annotate.c: Include "inferior.h".
12706 (frames_invalid_emitted)
12707 (breakpoints_invalid_emitted): New globals.
12708 (async_background_execution_p): New function.
12709 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
12710 emitting the annotation if it has already been emitted.
12711 (annotate_display_prompt): New function.
12712 * annotate.h (annotate_display_prompt): New declaration.
12713 * event-top.c: Include annotate.h.
12714 (display_gdb_prompt): Call annotate_display_prompt.
12715
12716 2013-01-22 Pedro Alves <palves@redhat.com>
12717
12718 * annotate.c (ignore_count_changed): Delete.
12719 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
12720 (annotate_ignore_count_change): Delete.
12721 (annotate_stopped): Don't emit a delayed breakpoints-changed
12722 annotation.
12723 * annotate.h (annotate_ignore_count_change): Delete.
12724 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
12725 annotate_ignore_count_change.
12726
12727 2013-01-22 Tom Tromey <tromey@redhat.com>
12728
12729 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
12730 require_rvalue for a register location.
12731
12732 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
12733
12734 * breakpoint.c (print_one_breakpoint_location): Add MI
12735 field 'thread-groups' when printing a breakpoint.
12736 (output_thread_groups): New function.
12737
12738 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
12739
12740 * python/lib/gdb/commands/explore.py
12741 (CompoundExplorer.explore_expr): Correct the name of a method
12742 being invoked.
12743 (ExploreTypeCommand.invoke): Add a missing 'return'.
12744
12745 2013-01-21 Tom Tromey <tromey@redhat.com>
12746
12747 * gdb_obstack.h (obconcat): Move declaration here, from...
12748 * symfile.h (obconcat): ... here.
12749 * gdb_obstack.c: New file.
12750 (obconcat): Move from...
12751 * symfile.c (obconcat): ... here.
12752 * Makefile.in (SFILES): Add gdb_obstack.c.
12753 (COMMON_OBS): Add gdb_obstack.o.
12754
12755 2013-01-21 Tom Tromey <tromey@redhat.com>
12756
12757 * symfile.h (obsavestring): Don't declare.
12758 * symfile.c (obsavestring): Remove.
12759 * ada-exp.y: Use obstack_copy0, not obsavestring.
12760 * ada-lang.c: Use obstack_copy0, not obsavestring.
12761 * coffread.c: Use obstack_copy0, not obsavestring.
12762 * cp-namespace.c: Use obstack_copy0, not obsavestring.
12763 * dbxread.c: Use obstack_copy0, not obsavestring.
12764 * dwarf2read.c: Use obstack_copy0, not obsavestring.
12765 * jit.c: Use obstack_copy0, not obsavestring.
12766 * mdebugread.c: Use obstack_copy0, not obsavestring.
12767 * psymtab.c: Use obstack_copy0, not obsavestring.
12768 * stabsread.c: Use obstack_copy0, not obsavestring.
12769 * xcoffread.c: Use obstack_copy0, not obsavestring.
12770
12771 2013-01-21 Tom Tromey <tromey@redhat.com>
12772
12773 * dwarf2read.c (fixup_go_packaging): Save package name
12774 on objfile obstack.
12775 * gdbtypes.c (init_type): Don't copy name.
12776
12777 2013-01-21 Tom Tromey <tromey@redhat.com>
12778
12779 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
12780 const.
12781 (struct attribute) <u.str>: Now const.
12782 (struct fnfieldlist) <name>: Now const.
12783 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
12784 (partial_die_parent_scope): Make return type const.
12785 (partial_die_full_name, add_partial_symbol): Update.
12786 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
12787 'name' const.
12788 (find_file_and_directory): Make 'name' and 'comp_dir' const.
12789 (read_file_scope, read_func_scope, dwarf2_add_field)
12790 (dwarf2_add_member_fn, read_structure_type)
12791 (process_enumeration_scope, read_array_type, read_module_type)
12792 (read_base_type, read_subrange_type): Update.
12793 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
12794 (new_symbol_full, guess_full_die_structure_name): Update.
12795 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
12796 (dwarf2_name): Return const type.
12797 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
12798 const.
12799
12800 2013-01-21 Tom Tromey <tromey@redhat.com>
12801
12802 * gdbtypes.c (init_type): Make 'name' const.
12803 * gdbtypes.h (init_type): Update.
12804
12805 2013-01-21 Tom Tromey <tromey@redhat.com>
12806
12807 * buildsym.c (patch_subfile_names): Use set_last_source_file.
12808 (start_symtab): Make 'name' and 'dirname' const. Use
12809 set_last_source_file.
12810 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
12811 (last_source_file): Define. Now static.
12812 (set_last_source_file, get_last_source_file): New functions.
12813 * buildsym.h (last_source_file): Don't declare.
12814 (start_symtab): Update.
12815 (set_last_source_file, get_last_source_file): Declare.
12816 * coffread.c (complete_symtab): Use set_last_source_file.
12817 (coff_end_symtab): Likewise.
12818 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
12819 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
12820 set_last_source_file.
12821 (process_one_symbol): Use get_last_source_file.
12822 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
12823 (psymtab_to_symtab_1): Use get_last_source_file.
12824 * xcoffread.c (process_linenos): Use get_last_source_file.
12825 (complete_symtab): Use set_last_source_file.
12826 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
12827 (scan_xcoff_symtab): Use set_last_source_file.
12828
12829 2013-01-21 Tom Tromey <tromey@redhat.com>
12830
12831 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
12832 (symbol_set_names): Remove casts. Handle field const-ness.
12833
12834 2013-01-21 Tom Tromey <tromey@redhat.com>
12835
12836 * dwarf2read.c (new_symbol_full): Remove cast.
12837 * symtab.c (symbol_set_demangled_name): Make 'name' const.
12838 * symtab.h (symbol_set_demangled_name): Update.
12839
12840 2013-01-21 Tom Tromey <tromey@redhat.com>
12841
12842 * main.c (captured_main): Call bfd_init.
12843
12844 2013-01-21 Tom Tromey <tromey@redhat.com>
12845
12846 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
12847 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
12848 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
12849 * NEWS: Update.
12850
12851 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12852
12853 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
12854
12855 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12856
12857 Fix gdb.fortran/common-block.exp crash in PIE mode.
12858 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
12859 LOC_COMMON_BLOCK.
12860 * f-valprint.c (info_common_command_for_block): Expect
12861 LOC_COMMON_BLOCK in gdb_assert.
12862 * symtab.h (struct general_symbol_info): Update comment for the
12863 common_block member.
12864 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
12865 (enum address_class): New member LOC_COMMON_BLOCK.
12866
12867 2013-01-18 David Blaikie <dblaikie@gmail.com>
12868
12869 * MAINTAINERS (Write After Approval): Add "David Blaikie".
12870
12871 2013-01-18 Tom Tromey <tromey@redhat.com>
12872
12873 PR c++/14999:
12874 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
12875 Call require_rvalue.
12876
12877 2013-01-18 Yao Qi <yao@codesourcery.com>
12878
12879 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
12880 (dbx_read_symtab): New declaration.
12881 (dbx_psymtab_to_symtab): Delete.
12882 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
12883 Rename parameter PST to SELF. Exchanged two parameters.
12884 (start_psymtab): Caller update.
12885 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
12886 (dwarf2_read_symtab): New declaration.
12887 (dwarf2_psymtab_to_symtab): Delete.
12888 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
12889 Rename parameter PST to SELF. Exchanged two parameters.
12890 (create_partial_symtab): Caller update.
12891 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
12892 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
12893 Rename parameter PST to SELF. Exchanged two parameters.
12894 (parse_partial_symbols, new_psymtab): Caller update.
12895 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
12896 two parameters.
12897 * psymtab.c (psymtab_to_symtab): Caller update.
12898 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
12899 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
12900 Rename parameter PST to SELF. Exchanged two parameters.
12901 (xcoff_start_psymtab): Caller update.
12902
12903 2013-01-18 Yao Qi <yao@codesourcery.com>
12904
12905 * infrun.c (proceed): Rename local variable 'oneproc' to
12906 'force_step'.
12907
12908 2013-01-17 Doug Evans <dje@google.com>
12909
12910 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
12911 (dw2_build_type_unit_groups): Delete. All uses updated.
12912
12913 * symtab.h (struct symbol_search): Add comment.
12914
12915 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12916
12917 * symtab.c (compare_filenames_for_search): New comment for
12918 HAS_DRIVE_SPEC.
12919
12920 2013-01-17 Tom Tromey <tromey@redhat.com>
12921
12922 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
12923
12924 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12925
12926 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
12927 initialize it by existing make_cleanup. Call new do_cleanups.
12928
12929 2013-01-17 Tom Tromey <tromey@redhat.com>
12930
12931 * cp-abi.c (cp_abi_completer): New function.
12932 (_initialize_cp_abi): Set completer for "set cp-abi".
12933
12934 2013-01-17 Tom Tromey <tromey@redhat.com>
12935
12936 * mem-break.c: Remove obsolete comment.
12937 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
12938
12939 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12940
12941 * jit.c (jit_reader_load_command): Interpret the jit reader name
12942 as an absolute path if it begins with a forward slash.
12943
12944 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
12945
12946 PR gdb/14550
12947
12948 * jit.c (finalize_symtab): Ensure that only the global block has a
12949 NULL superblock.
12950
12951 2013-01-17 Pedro Alves <palves@redhat.com>
12952
12953 * acinclude.m4: Include ../config/plugins.m4,
12954 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
12955 * Makefile.in (aclocal_m4_deps): Update.
12956 * aclocal.m4: Renegerate.
12957
12958 2013-01-16 Doug Evans <dje@google.com>
12959
12960 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
12961
12962 2013-01-16 Pedro Alves <palves@redhat.com>
12963 Tom Tromey <tromey@redhat.com>
12964
12965 PR cli/7221:
12966 * NEWS: Add "catch signal".
12967 * breakpoint.c (base_breakpoint_ops): No longer static.
12968 (bpstat_explains_signal): New function.
12969 (init_catchpoint): No longer static.
12970 (base_breakpoint_explains_signal): New function.
12971 (base_breakpoint_ops): Initialize new field.
12972 * breakpoint.h (enum bpstat_signal_value): New.
12973 (struct breakpoint_ops) <explains_signal>: New field.
12974 (bpstat_explains_signal): Remove macro, declare as function.
12975 (base_breakpoint_ops, init_catchpoint): Declare.
12976 * break-catch-sig.c: New file.
12977 * inferior.h (signal_catch_update): Declare.
12978 * infrun.c (signal_catch): New global.
12979 (handle_syscall_event): Update for change to
12980 bpstat_explains_signal.
12981 (handle_inferior_event): Likewise. Always handle random signals
12982 via bpstats.
12983 (signal_cache_update): Check signal_catch.
12984 (signal_catch_update): New function.
12985 (_initialize_infrun): Initialize signal_catch.
12986 * Makefile.in (SFILES): Add break-catch-sig.c.
12987 (COMMON_OBS): Add break-catch-sig.o.
12988
12989 2013-01-16 Tom Tromey <tromey@redhat.com>
12990
12991 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
12992 (print_one_catch_solib, print_one_catch_syscall)
12993 (print_one_catch_exec, print_one_exception_catchpoint): Emit
12994 "catch-type".
12995
12996 2013-01-16 Yao Qi <yao@codesourcery.com>
12997
12998 * printcmd.c (current_display_number): Make it static.
12999
13000 2013-01-16 Yao Qi <yao@codesourcery.com>
13001
13002 * infcmd.c (step_once): Don't check '!single_inst' as it was
13003 checked before.
13004
13005 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13006
13007 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
13008
13009 2013-01-14 Tom Tromey <tromey@redhat.com>
13010
13011 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
13012 set command.
13013 * command.h (add_setshow_string_noescape_cmd): Update.
13014 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
13015 (complete_set_gnutarget): New function.
13016 (_initialize_core): Set the "set gnutarget" completer.
13017
13018 2013-01-14 Tom Tromey <tromey@redhat.com>
13019
13020 PR symtab/14442:
13021 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
13022 (c_type_print_modifier): Likewise.
13023 * dwarf2read.c (read_tag_restrict_type): New function.
13024 (read_type_die_1): Handle DW_TAG_restrict_type.
13025 * gdbtypes.c (make_restrict_type): New function.
13026 (recursive_dump_type): Handle TYPE_RESTRICT.
13027 * gdbtypes.h (enum type_flag_values): Renumber.
13028 (enum type_instance_flag_value): Add
13029 TYPE_INSTANCE_FLAG_RESTRICT.
13030 (TYPE_RESTRICT): New macro.
13031 (make_restrict_type): Declare.
13032
13033 2013-01-14 Tom Tromey <tromey@redhat.com>
13034
13035 PR symtab/14931:
13036 * psymtab.c (struct psymtab_state): New.
13037 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
13038 functions.
13039 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
13040 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
13041
13042 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
13043 Pedro Alves <palves@redhat.com>
13044
13045 PR remote/14786
13046
13047 * remote.c (remote_threads_info): Make a copy of the reply from
13048 qfThreadInfo and use that instead of rs->buf.
13049
13050 2013-01-14 Yao Qi <yao@codesourcery.com>
13051
13052 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
13053 (dbx_psymtab_to_symtab): Likewise.
13054 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
13055 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
13056 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
13057
13058 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13059
13060 * parse.c (parse_exp_in_context): New variable inner_chain. Call
13061 make_cleanup_restore_current_language. Call set_language. Move
13062 OLD_CHAIN and INNER_CHAIN cleanups.
13063 * utils.c (do_restore_current_language)
13064 (make_cleanup_restore_current_language): New functions.
13065 * utils.h (make_cleanup_restore_current_language): New declaration.
13066
13067 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13068
13069 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
13070 non-existing files.
13071
13072 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
13073 non-existing files if FILENAME is already absolute.
13074
13075 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
13076
13077 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
13078 fputs_filtered. Append trailing newline.
13079
13080 2013-01-11 Yao Qi <yao@codesourcery.com>
13081 Stan Shebs <stan@codesourcery.com>
13082
13083 * psymtab.c (init_psymbol_list): Clarify the comment.
13084
13085 2013-01-11 Yao Qi <yao@codesourcery.com>
13086
13087 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
13088 (update_dprintf_command_list): Assert that 'printf_line' is
13089 non-null. Remove condition check.
13090
13091 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
13092
13093 Code cleanup.
13094 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
13095 type const char *.
13096 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
13097 const char *.
13098 * tui/tui-source.h (tui_source_is_displayed): Likewise.
13099
13100 2013-01-09 Anthony Green <green@moxielogic.com>
13101
13102 * cp-abi.c (cplus_print_vtable): Don't return value from void
13103 function.
13104 * ada-lang.c (re_set_catch_assert): Ditto.
13105
13106 2013-01-09 Doug Evans <dje@google.com>
13107
13108 * symfile.h (quick_symbol_functions): Delete member
13109 pre_expand_symtabs_matching. All uses removed.
13110 * dwarf2read.c (dw2_lookup_symbol): Implement.
13111 (dw2_do_expand_symtabs_matching): Delete.
13112 (dw2_pre_expand_symtabs_matching): Delete.
13113 (struct dw2_symtab_iterator): New type.
13114 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
13115 (dw2_expand_symtabs_for_function): Rewrite.
13116 (dwarf2_gdb_index_functions): Update.
13117 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
13118 (psym_functions): Update.
13119
13120 2013-01-09 Tom Tromey <tromey@redhat.com>
13121
13122 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
13123 * configure: Rebuild.
13124 * configure.ac: Add somread.o to the build if BFD has SOM
13125 support.
13126 * somread.c: Include som/aout.h, not syms.h.
13127 (som_symtab_read): Use som_external_symbol_dictionary_record.
13128 Unpack records manually.
13129 (_initialize_somread): Declare.
13130
13131 2012-01-08 Mike Frysinger <vapier@gentoo.org>
13132
13133 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
13134 Cast return_address to 64bits.
13135
13136 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
13137
13138 * printcmd.c: Remove define of function output_command.
13139 * tracepoint.c: Remove extern of function output_command.
13140 * valprint.h: (output_command): New extern.
13141
13142 2013-01-07 Tom Tromey <tromey@redhat.com>
13143
13144 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
13145 Remove.
13146 (objc_language_defn): Use c_printchar, c_printstr,
13147 c_emit_char.
13148
13149 2013-01-07 Tom Tromey <tromey@redhat.com>
13150
13151 PR cli/7719:
13152 * NEWS: Update.
13153 * ada-valprint.c (printstr, print_field_values): Remove
13154 "inspect_it" code.
13155 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
13156 code.
13157 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
13158 code.
13159 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
13160 * main.c (captured_main): Remove "epoch" argument.
13161 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
13162 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
13163 * p-valprint.c (pascal_object_print_value_fields): Remove
13164 "inspect_it" code.
13165 * printcmd.c (print_command_1): Remove 'inspect' argument.
13166 (print_command, call_command): Update.
13167 (inspect_command): Remove.
13168 (_initialize_printcmd): Make "inspect" an alias for "print".
13169 * top.c (epoch_interface): Remove.
13170 * top.h (epoch_interface): Remove.
13171 * valprint.c (user_print_options): Update.
13172 (print_converted_chars_to_obstack): Remove "inspect_it" code.
13173 * valprint.h (struct value_print_options) <inspect_it>: Remove
13174 field.
13175
13176 2013-01-04 Tom Tromey <tromey@redhat.com>
13177
13178 * valprint.h (read_string): Add 'extern'.
13179
13180 2013-01-07 Joel Brobecker <brobecker@adacore.com>
13181
13182 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
13183 used to decide whether to define darwin_read_dyld_info or not.
13184
13185 2013-01-03 Pierre Muller <muller@sourceware.org>
13186
13187 * main.c (relocate_gdb_directory): Avoid calling stat function
13188 if DIR is empty.
13189
13190 2013-01-03 Yao Qi <yao@codesourcery.com>
13191
13192 * psymtab.c (fixup_psymbol_section): Update declaration.
13193 (fixup_psymbol_section): Remove code returning value.
13194
13195 2013-01-03 Yao Qi <yao@codesourcery.com>
13196
13197 * symtab.h: Remove some out of date comments.
13198 (enum exception_event_kind): Move it ...
13199 * breakpoint.c: ... here.
13200
13201 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
13202
13203 PR gdb/14405
13204 * darwin-nat.c (darwin_read_dyld_info): Only build if
13205 TASK_DYLD_INFO_COUNT is defined.
13206 (darwin_xfer_partial): Call darwin_read_dyld_info only if
13207 TASK_DYLD_INFO_COUNT is defined.
13208
13209 2013-01-02 Tom Tromey <tromey@redhat.com>
13210
13211 * symfile.h (struct ecoff_debug_hack): Remove.
13212 * objfiles.c: Don't include mdebugread.h.
13213
13214 2013-01-02 Tom Tromey <tromey@redhat.com>
13215
13216 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
13217 * configure.ac: Check for Mach-O support in BFD. Update
13218 CONFIG_OBS.
13219 * configure: Rebuild.
13220
13221 2013-01-02 Tom Tromey <tromey@redhat.com>
13222
13223 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
13224 * configure.ac: Use GDB_AC_CHECK_BFD.
13225 * configure: Rebuild.
13226
13227 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
13228
13229 * MAINTAINERS: Update my email.
13230
13231 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13232
13233 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
13234
13235 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13236
13237 * rs6000-nat.c (bss_data_overlap): New function.
13238 (vmap_symtab): Use it to adjust the .bss section's offset.
13239
13240 2013-01-01 Joel Brobecker <brobecker@adacore.com>
13241
13242 Update year range in copyright notice of all files.
13243
13244 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
13245
13246 * top.c (print_gdb_version): Update copyright year.
13247
13248 For older changes see ChangeLog-2012.
13249 \f
13250 Local Variables:
13251 mode: change-log
13252 left-margin: 8
13253 fill-column: 74
13254 version-control: never
13255 coding: utf-8
13256 End:
This page took 0.3511 seconds and 4 git commands to generate.