3 Fix crash on lval_computed values.
4 * valops.c (value_zero): Use not_lval for lval_computed.
8 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
9 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
13 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
14 "ptype" by their typedefs difference.
18 * dwarf2expr.c (ctx_no_read_reg): New function.
19 * dwarf2expr.h (ctx_no_read_reg): New declaration.
20 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
21 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
22 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
26 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
27 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
29 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
30 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
31 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
32 (ctx_no_get_base_type): Move the functions here.
33 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
34 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
35 (ctx_no_get_base_type): New declarations.
39 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
41 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
42 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
46 * cli/cli-dump.c (dump_binary_file): Change parameter type to
48 (dump_bfd_file): Likewise.
52 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
53 (remote_hw_watchpoint_length_limit): New variable.
54 (_initialize_remote) add set,show cmds for this new variable.
55 * gdb.texinfo: document these new commands.
56 * NEWS: Mention these new commands.
60 * breakpoint.c (works_in_software_mode_watchpoint): Also return
61 true for software watchpoints.
69 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
70 * dwarf2read.c (read_indirect_string_at_offset): New function.
71 (read_indirect_string): Use it.
72 (dwarf_decode_macro_bytes): New function, taken from
73 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
74 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
75 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
77 (struct dwarf2_per_objfile) <macro>: New field.
78 (dwarf2_elf_names): Add .debug_macro.
79 (dwarf2_macros_too_long_complaint): Add 'section' argument.
80 (dwarf2_locate_sections): Handle new section.
81 (read_file_scope): Handle DW_AT_GNU_macros.
82 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
86 * NEWS: Mention dcache configuration.
87 * dcache.c (dcache_set_list, dcache_show_list): New variables.
88 (dcache_size, dcache_line_size): New variables.
89 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
90 (struct dcache_block): Make it expandable.
91 (struct dcache_struct): New field.
92 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
93 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
94 (dcache_poke_byte, dcache_print_line): Adjust.
95 (set_dcache_size, set_dcache_line_size): New functions.
96 (set_dcache_command, show_dcache_command): New functions.
97 (_initialize_dcache): Add new commands.
101 * progspace.h (struct program_space): Add solib_add_generation.
102 * infcmd.c (post_create_inferior): Only call solib_add if not
104 * solib.c (solib_add): Increment solib_add_generation.
108 Fix implicit pointer offsets.
109 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
114 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
116 (ada_exception_sal): Make 'ops' const.
117 (ada_decode_exception_location): Likewise.
118 (ada_decode_assert_location): Likewise.
119 (catch_assert_command): Update.
120 (catch_ada_exception_command): Update.
121 (create_ada_exception_catchpoint): Make 'ops' const.
122 * breakpoint.c (set_raw_breakpoint_without_location)
123 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
125 (create_internal_breakpoint): Update.
126 (init_raw_breakpoint_without_location): Make 'ops' const.
127 (init_raw_breakpoint, init_catchpoint)
128 (create_fork_vfork_event_catchpoint)
129 (create_syscall_event_catchpoint, init_breakpoint_sal)
130 (create_breakpoint_sal, create_breakpoints_sal)
131 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
132 * breakpoint.h (struct breakpoint) <ops>: Now const.
133 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
138 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
142 * breakpoint.h (print_recreate_thread): Declare.
143 (struct breakpoint): Move step_count, pass_count,
144 number_on_target, static_trace_marker_id,
145 static_trace_marker_id_idx ...
146 (struct tracepoint): ... to this new struct.
147 (get_tracepoint, get_tracepoint_by_number_on_target)
148 (get_tracepoint_by_number): Change return type to struct
150 * breakpoint.c (is_tracepoint_type): New, factored out from
152 (is_tracepoint): Adjust.
153 (print_one_breakpoint_location): Cast to struct tracepoint as
154 necessary, and adjust.
155 (print_recreate_catch_fork, print_recreate_catch_vfork)
156 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
157 print_recreate_thread.
158 (init_breakpoint_sal): New, factored out from
159 create_breakpoint_sal.
160 (create_breakpoint_sal): Reimplement.
161 (create_breakpoint): Allocate a struct tracecepoint if the caller
162 wanted a tracepoint. Use init_breakpoint_sal and
164 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
165 (print_recreate_masked_watchpoint)
166 (print_recreate_exception_catchpoint): Call print_recreate_thread.
167 (tracepoint_print_one_detail): Adjust.
168 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
169 Dump the pass count here.
170 (update_static_tracepoint): Adjust.
171 (addr_string_to_sals): Adjust.
172 (create_tracepoint_from_upload): Adjust. Change return type to
173 struct tracepoint pointer.
174 (trace_pass_set_count): Change parameter type to struct tracepoint
176 (trace_pass_command): Adjust.
177 (get_tracepoint, get_tracepoint_by_number_on_target)
178 (get_tracepoint_by_number): Change return type to struct
179 tracepoint pointer, and adjust.
180 (print_recreate_thread): New, factored out from save_breakpoints.
181 (save_breakpoints): Don't print thread and task and passcount
183 * remote.c (remote_download_tracepoint): Adjust.
184 * tracepoint.c (trace_actions_command, validate_actionline)
185 (start_tracing, tfind_1, trace_find_tracepoint_command)
186 (trace_dump_command): Adjust.
187 (find_matching_tracepoint): Change return type to struct
188 tracepoint pointer, and adjust.
189 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
190 (tfile_trace_find, tfile_fetch_registers): Adjust.
191 * tracepoint.h (create_tracepoint_from_upload): Change return type
192 to struct tracepoint pointer.
193 * ada-lang.c (print_recreate_exception): Call
194 print_recreate_thread.
195 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
199 * breakpoint.h (struct breakpoint): Move ops as first field. Move
200 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
201 cond_exp_valid_block, val, val_valid, watchpoint_frame,
202 watchpoint_thread, watchpoint_triggered ...
203 (struct watchpoint): ... to this new struct.
204 (is_watchpoint): Declare.
205 (install_breakpoint): Add new `internal' parameter.
206 * breakpoint.c (is_watchpoint): Delete declaration.
207 (set_breakpoint_condition): Handle watchpoints.
208 (is_watchpoint): Make public.
209 (watchpoint_in_thread_scope): Change parameter type to struct
211 (watchpoint_del_at_next_stop): Change parameter type to struct
212 watchpoint. Remove assertion. Adjust.
213 (update_watchpoint): Ditto.
214 (insert_breakpoints, breakpoint_init_inferior)
215 (watchpoints_triggered, watchpoint_check)
216 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
217 (bpstat_stop_status, print_one_breakpoint_location)
218 (print_one_breakpoint_location, watchpoint_locations_match): Cast
219 to struct watchpoint as necessary, and adjust.
220 (install_breakpoint): Add `internal' argument. If true, don't
221 mention the new breakpoint. Use set_breakpoint_number.
222 (create_fork_vfork_event_catchpoint)
223 (create_syscall_event_catchpoint): Adjust.
224 (dtor_watchpoint): New.
225 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
226 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
227 (print_it_watchpoint, print_mention_watchpoint)
228 (print_recreate_watchpoint, insert_masked_watchpoint)
229 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
230 (print_one_detail_masked_watchpoint)
231 (print_mention_masked_watchpoint)
232 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
233 necessary, and adjust.
234 (watch_command_1): Allocate and initialize a struct watchpoint
235 instead of a struct breakpoint. Use install_breakpoint.
236 (catch_exec_command_1): Adjust.
237 (base_breakpoint_dtor): Delete accesses to watchpoint specific
239 (delete_breakpoint, enable_breakpoint_disp)
240 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
241 as necessary, and adjust.
242 (initialize_breakpoint_ops): Install dtor_watchpoint as
243 watchpoints' dtor method.
244 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
245 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
246 to struct watchpoint as necessary, and adjust.
250 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
251 the the base class ops table.
252 (catch_exception_breakpoint_ops)
253 (catch_exception_unhandled_breakpoint_ops)
254 (catch_assert_breakpoint_ops): Don't statically initialize.
255 (initialize_ada_catchpoint_ops): New.
256 (_initialize_ada_language): Call it.
257 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
258 (bkpt_breakpoint_ops): Forward declare.
259 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
260 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
261 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
262 (masked_watchpoint_breakpoint_ops)
263 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
264 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
265 base class ops table.
266 (null_re_set, null_check_status, null_works_in_software_mode)
267 (null_resources_needed, null_print_one_detail): Delete.
268 (bkpt_dtor): Rename to ...
269 (base_breakpoint_dtor): ... this. Make static.
270 (bkpt_allocate_location): Rename to ...
271 (base_breakpoint_allocate_location): ... this. Make static.
272 (base_breakpoint_re_set): New.
273 (internal_error_pure_virtual_called): New.
274 (base_breakpoint_insert_location, base_breakpoint_remove_location)
275 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
276 (base_breakpoint_works_in_software_mode)
277 (base_breakpoint_resources_needed, base_breakpoint_print_it)
278 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
279 (base_breakpoint_print_recreate): New functions.
280 (base_breakpoint_ops): New global.
281 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
282 (bkpt_breakpoint_hit): Make static.
283 (bkpt_check_status): Delete.
284 (bkpt_resources_needed): Make static.
285 (bkpt_works_in_software_mode): Delete.
286 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
288 (bkpt_breakpoint_ops, internal_breakpoint_ops)
289 (momentary_breakpoint_ops): Don't statically initialize.
290 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
292 (tracepoint_insert_location, tracepoint_remove_location)
293 (tracepoint_check_status, tracepoint_works_in_software_mode)
294 (tracepoint_print_it): Delete.
295 (tracepoint_breakpoint_ops): Don't statically initialize.
296 (initialize_breakpoint_ops): New.
297 (_initialize_breakpoint): Call it.
298 * breakpoint.h (null_re_set, null_works_in_software_mode)
299 (null_resources_needed, null_check_status, null_print_one_detail):
300 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
301 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
302 (bkpt_check_status, bkpt_resources_needed)
303 (bkpt_works_in_software_mode, bkpt_print_it)
304 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
306 (initialize_breakpoint_ops): Declare.
310 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
311 (momentary_bkpt_print_it): Simplify.
315 Split internal, momentary and user breakpoints breakpoint_ops
318 * breakpoint.c (internal_breakpoint_ops)
319 (momentary_breakpoint_ops): Forward declare.
320 (create_internal_breakpoint): Add new breakpoint_ops parameter.
321 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
322 (create_overlay_event_breakpoint)
323 (create_std_terminate_master_breakpoint)
324 (create_exception_master_breakpoint): Create breakpoints with
325 internal_breakpoint_ops vtable.
326 (set_longjmp_breakpoint): Create momentary breakpoints with
327 momentary_breakpoint_ops vtable, using
328 momentary_breakpoint_from_master.
329 (create_thread_event_breakpoint, create_jit_event_breakpoint)
330 (create_solib_event_breakpoint): Create breakpoints with
331 internal_breakpoint_ops vtable.
332 (set_momentary_breakpoint): Create breakpoints with
333 momentary_breakpoint_ops vtable.
334 (momentary_breakpoint_from_master): New, factored out from
335 clone_momentary_breakpoint.
336 (clone_momentary_breakpoint): Adjust.
337 (watch_command_1): Create scope breakpoints with
338 momentary_breakpoint_ops vtable.
339 (bkpt_re_set): Remove handling of internal and momentary
341 (bkpt_print_mention, bkpt_print_recreate): New.
342 (bkpt_breakpoint_ops): Adjust.
343 (internal_bkpt_re_set, internal_bkpt_check_status)
344 (internal_bkpt_print_it, internal_bkpt_print_mention)
345 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
346 (momentary_bkpt_re_set, momentary_bkpt_check_status)
347 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
348 (momentary_bkpt_print_recreate): New.
349 (momentary_breakpoint_ops): New.
353 Implement most breakpoint_ops methods for all breakpoint types,
354 and move the default handlings to the proper callbacks.
356 * breakpoint.c (update_watchpoint): Always call the breakpoint's
357 works_in_software_mode method.
358 (insert_bp_location): Go through breakpoint_ops->insert_location
359 for software and hardware watchpoints.
360 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
362 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
363 for software and hardware watchpoints.
364 (print_it_typical): Delete.
365 (print_bp_stop_message): Always call the breakpoint_ops->print_it
367 (watchpoint_check): Adjust comment.
368 (bpstat_check_location): Simply always call the breakpoint's
369 breakpoint_hit method.
370 (bpstat_stop_status): Always call the breakpoint's check_status
371 method. Remove special cases for watchpoints and internal event
372 breakpoints from here (moved to the check_status implementations).
373 (print_one_breakpoint_location): Assume b->ops is never NULL.
374 Remove static tracepoint marker id printing from here (moved to
375 the print_one_detail callback implementation of tracepoints).
376 (init_bp_location): Assert OPS is never NULL.
377 (allocate_bp_location): Always call the breakpoint's
378 allocate_location method, and remove the default code from here.
379 (free_bp_location): Always call the location's dtor method, and
380 remove the default code from here.
381 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
382 (set_raw_breakpoint_without_location): Add new breakpoint_ops
383 parameter. Pass it down.
384 (set_raw_breakpoint): Ditto.
385 (print_it_catch_fork): Adjust to take a bpstat as argument.
386 (catch_fork_breakpoint_ops): Install methods.
387 (print_it_catch_vfork): Adjust to take a bpstat as argument.
388 (catch_vfork_breakpoint_ops): Install methods.
389 (dtor_catch_syscall): Call the base dtor.
390 (print_it_catch_syscall): Adjust to take a bpstat as argument.
391 (catch_syscall_breakpoint_ops): Install methods.
392 (dtor_catch_exec): Call the base dtor.
393 (print_it_catch_exec): Adjust to take a bpstat as argument.
394 (catch_exec_breakpoint_ops): Install methods.
395 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
396 the breakpoint's resources_needed method, and remove the default
398 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
400 (clone_momentary_breakpoint): Clone the original's ops.
401 (mention): Always call the breakpoint's print_mention method, and
402 remove the default code from here.
403 (create_breakpoint_sal): Adjust to pass the ops to
404 set_raw_breakpoint rather than setting it manually.
405 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
406 ops to set_raw_breakpoint_without_location rather than setting it
408 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
409 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
410 (ranged_breakpoint_ops): Install methods.
411 (break_range_command): Adjust to pass the ops to
412 set_raw_breakpoint rather than setting it manually.
413 (re_set_watchpoint, breakpoint_hit_watchpoint)
414 (check_status_watchpoint, resources_needed_watchpoint)
415 (works_in_software_mode_watchpoint, print_it_watchpoint)
416 (print_mention_watchpoint, print_recreate_watchpoint): New
418 (watchpoint_breakpoint_ops): Install new methods.
419 (print_it_masked_watchpoint): New function.
420 (masked_watchpoint_breakpoint_ops): Install new methods.
421 (watch_command_1): Adjust to pass the right breakpoint_ops to
422 set_raw_breakpoint_without_location rather than setting it
423 manually later. Record the current pspace.
424 (print_it_exception_catchpoint): Adjust to take a bpstat as
426 (gnu_v3_exception_catchpoint_ops): Install new methods.
427 (say_where): New function.
428 (null_re_set, null_check_status, null_works_in_software_mode)
429 (null_resources_needed, null_print_one_detail, bp_location_dtor):
431 (bp_location_ops): New global.
432 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
433 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
434 (bkpt_check_status, bkpt_resources_needed)
435 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
436 (bkpt_print_recreate): New functions.
437 (bkpt_breakpoint_ops): New global.
438 (tracepoint_re_set, tracepoint_insert_location)
439 (tracepoint_remove_location, tracepoint_breakpoint_hit)
440 (tracepoint_check_status, tracepoint_works_in_software_mode)
441 (tracepoint_print_it, tracepoint_print_one_detail)
442 (tracepoint_print_mention, tracepoint_print_recreate): New
444 (tracepoint_breakpoint_ops): New global.
445 (delete_breakpoint): Always call the breakpoint's dtor method, and
446 remove the default handling from here.
447 (breakpoint_re_set_default): Make static.
448 (breakpoint_re_set_one): Always call the breakpoints re_set
449 method, and remove the default handling from here.
450 (trace_command, ftrace_command, strace_command)
451 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
452 to create_breakpoint.
453 (save_breakpoints): Always call the breakpoint's print_recreate
454 method, and remove the default handling from here.
456 * ada-lang.c (dtor_exception): Call the base dtor.
457 (re_set_exception): Call the base method.
458 (print_it_exception, print_it_catch_exception): Adjust to take a
460 (catch_exception_breakpoint_ops): Install methods.
461 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
463 (catch_exception_unhandled_breakpoint_ops): Install methods.
464 (print_it_catch_assert): Adjust to take a bpstat as argument.
465 (catch_assert_breakpoint_ops): Install methods.
467 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
468 to take a bpstat as argument.
469 (enum print_stop_action): Add describing comments to each enum
471 (breakpoint_re_set_default): Delete declaration.
472 (null_re_set, null_works_in_software_mode, null_resources_needed)
473 (null_check_status, null_print_one_detail): Declare.
474 (bkpt_breakpoint_ops): Declare.
475 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
476 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
477 (bkpt_check_status, bkpt_resources_needed)
478 (bkpt_works_in_software_mode, bkpt_print_it)
479 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
482 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
484 * python/py-breakpoint.c (bppy_init): Ditto.
488 * MAINTAINERS (Write After Approval): Add myself to the list.
492 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
496 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
497 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
498 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
500 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
501 (struct i386_debug_reg_state): New.
502 (i386_init_dregs): New.
504 (i386_cleanup_dregs): Use i386_init_dregs.
505 (i386_show_dr): Add state parameter and adjust.
506 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
508 (i386_remove_aligned_watchpoint): Likewise.
509 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
510 (i386_update_inferior_debug_regs): New.
511 (i386_insert_watchpoint): Work on a local mirror of the debug
512 registers, and only update the inferior on success.
513 (i386_remove_watchpoint): Ditto.
514 (i386_region_ok_for_watchpoint): Adjust.
515 (i386_stopped_data_address): Adjust.
516 (i386_insert_hw_breakpoint): Adjust.
517 (i386_remove_hw_breakpoint): Adjust.
521 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
522 from amd64_pseudo_register_read. Change arguments. Call
523 mark_value_bytes_unavailable when needed.
524 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
525 set_gdbarch_pseudo_register_read.
526 * sentinel-frame.c (sentinel_frame_prev_register): Use
527 regcache_cooked_read_value.
528 * regcache.h (regcache_cooked_read_value): Declare.
529 * regcache.c (regcache_cooked_read_value): New function.
530 (regcache_cooked_read): Call
531 gdbarch_pseudo_register_read_value if available.
532 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
533 (i386_pseudo_register_read): Remove.
534 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
535 i386_pseudo_register_read. Change arguments. Call
536 mark_value_bytes_unavailable when needed.
537 (i386_pseudo_register_read_value): New function.
538 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
539 not set_gdbarch_pseudo_register_read.
540 * gdbarch.sh (pseudo_register_read_value): New method.
541 * gdbarch.c, gdbarch.h: Rebuild.
542 * findvar.c (value_from_register): Call get_frame_register_value.
546 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
548 (display_gdb_prompt): Likewise.
549 (change_annotation_level): Likewise.
550 (push_prompt): Likewise.
551 (pop_prompt): Likewise.
552 (handle_stop_sig): Use get_prompt with a level.
553 * top.c (command_loop): Use get_prompt with a level.
554 (set_async_annotation_level): Use set_prompt with a level.
555 (get_prefix): New function.
559 (get_prompt): Accept a level argument.
560 (set_prompt): Accept a level argument. Free old prompts. Set
561 new_async_prompt if level is 0.
562 (init_main): Use set_prompt with a level. Do not set
564 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
565 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
566 Modify set_prompt, get_prompt to account for levels.
567 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
569 * python/python.c (before_prompt_hook): Use set_prompt.
573 * defs.h: Add guard against inclusion in gdbserver.
574 (struct ptid, ptid_t): Move to common/ptid.h.
575 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
576 xsnprintf, internal_error): Move to common/common-utils.h.
578 * gdb_assert.h: Move into common/ sub-directory.
579 * gdb_locale.h: Ditto.
580 * gdb_dirent.h: Ditto.
581 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
582 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
583 Move into common/ptid.h.
584 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
585 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
586 Change nomem to malloc_failure.
587 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
588 * utils.c (nomem): Rename to malloc_failure.
589 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
590 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
591 (gdb_buildargv): Change nomem to malloc_failure.
592 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
593 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
594 ptid_is_pid): Move into common/ptid.c.
595 (initialize_infrun): Delete initialization of null_ptid and
597 * linux-nat.c (linux_nat_xfer_osdata): Defer to
598 linux_common_xfer_osdata.
599 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
600 common/ptid.c and common/buffer.c.
601 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
602 common/ptid.h, common/buffer.h and common/linux-osdata.h.
603 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
604 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
606 * common/gdb_assert.h: New.
607 * common/gdb_dirent.h: New.
608 * common/gdb_locale.h: New.
609 * common/buffer.c: New.
610 * common/buffer.h: New.
611 * common/ptid.c: New.
612 * common/ptid.h: New.
613 * common/xml-utils.c: New.
614 * common/xml-utils.h: New.
615 * common/common-utils.c: New.
616 * common/common-utils.h: New.
617 * common/linux-osdata.c: New.
618 * common/linux-osdata.h: New.
619 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
620 * config/arm/linux.mh (NATDEPFILES): Ditto.
621 * config/i386/linux.mh (NATDEPFILES): Ditto.
622 * config/i386/linux64.mh (NATDEPFILES): Ditto.
623 * config/ia64/linux.mh (NATDEPFILES): Ditto.
624 * config/m32r/linux.mh (NATDEPFILES): Ditto.
625 * config/m68k/linux.mh (NATDEPFILES): Ditto.
626 * config/mips/linux.mh (NATDEPFILES): Ditto.
627 * config/pa/linux.mh (NATDEPFILES): Ditto.
628 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
629 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
630 * config/s390/s390.mh (NATDEPFILES): Ditto.
631 * config/sparc/linux.mh (NATDEPFILES): Ditto.
632 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
633 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
637 * NEWS: Add info macros and info definitions commands.
641 * NEWS: Document Python prompt substitution hook.
646 * macrotab.h (macro_callback_fn): Add new arguments to callback.
647 * macrotab.c (foreach_macro): Ditto.
648 (foreach_macro_in_scope): Ditto.
649 * macrocmd.c (print_macro_callback): New function.
650 (info_macro_command): Move some code to print_macro_definition.
651 (print_macro_definition): New function.
652 (print_one_macro): Add new arguments to callback.
653 (info_definitions_command): New function.
654 (info_macros_command): Ditto.
655 (_initialize_macrocmd): Add info macros and info definitions commands.
656 * symtab.c (add_macro_name): Add new arguments to callback.
661 * top.c (set_prompt): Rewrite to free previous prompt, free
662 asynch_new_prompt and set both on new prompts.
663 * event-top.c (display_gdb_prompt): Add prompt substitution
665 * python/python.c (before_prompt_hook): New function.
669 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
670 arguments to store_unsigned_integer.
674 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
675 in some declaration-only cases.
680 * dwarf2read.c (dwarf2_section_info_def): New typedef.
681 (struct dwarf2_per_objfile) <types>: Change to a VEC.
682 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
683 <debug_type_section>: New field.
684 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
685 (load_cu): Use appropriate section.
686 (create_signatured_type_table_from_index): Add 'section'
688 (dwarf2_read_index): Only allow a single .debug_types section.
689 (dw2_get_file_names): Use appropriate section.
690 (read_type_comp_unit_head): Add 'section' argument.
691 (create_debug_types_hash_table): Loop over all .debug_types
693 (init_cu_die_reader): Use appropriate section.
694 (process_psymtab_comp_unit, load_partial_comp_unit)
695 (load_full_comp_unit, read_die_and_children, find_partial_die)
696 (lookup_die_type, determine_prefix, follow_die_offset): Update.
697 (lookup_signatured_type_at_offset): Add 'section' argument.
698 (read_signatured_type_at_offset): Add 'sect' argument.
699 (read_signatured_type): Use appropriate section.
700 (set_die_type, get_die_type_at_offset): Update.
701 (dwarf2_per_objfile_free): Free all .debug_types sections, and
703 (write_psymtabs_to_index): Don't allow index with more than one
704 .debug_types section.
708 Fix crash if referenced CU is aged out.
709 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
711 (indirect_pieced_value): New variable back_to, use to for xfree of
713 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
715 * dwarf2read.c (dwarf2_find_base_address): New prototype.
716 (load_cu): New function from ...
717 (dw2_do_instantiate_symtab): ... the code here ...
718 (process_full_comp_unit): ... and here.
719 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
724 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
729 * infrun.c (struct execution_control_state): New member
731 (clear_stop_func, fill_in_stop_func): New functions.
732 (handle_inferior_event): Call clear_stop_func rather than
733 manipulating the execution control state directly.
734 Call fill_in_stop_func lazily as required rather than
735 directly calling find_pc_partial_function in all cases.
739 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
740 checking for variable-sized array.
744 * varobj.h (varobj_languages): Add vlang_ada definition to the list
745 of supported languages.
746 * varobj.c: Add top definitions and basic implementation of the
747 following callbacks: ada_number_of_children, ada_name_of_variable,
748 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
749 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
750 (languages): Register Ada-specific callbacks.
751 (variable_language): Add the Ada case in the language setter switch.
755 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
760 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
761 (execute_stack_op): Use dwarf2_frame_ctx_funcs
762 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
763 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
764 get_frame_cfa, get_tls_address and dwarf_call via funcs.
765 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
766 (struct dwarf_expr_context_funcs): New, move here methods from ...
767 (struct dwarf_expr_context): ... here. New fields funcs.
768 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
769 (dwarf_expr_ctx_funcs): New.
770 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
771 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
772 (needs_frame_ctx_funcs): New.
773 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
777 * MAINTAINERS (Write After Approval): Add myself to the list.
781 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
782 that CIE pointer of an FDE really points to a CIE .
786 * remote.c (remote_get_trace_status): Add comments.
790 Code cleanup - constify struct lval_funcs.
791 * dwarf2loc.c (pieced_value_funcs): Make it const.
792 * infrun.c (siginfo_value_funcs): Likewise.
793 * opencl-lang.c (opencl_value_funcs): Likewise.
794 * valops.c (value_assign, value_ind): Make the funcs variable const.
795 * value.c (struct value): Make location.computed.funcs target const.
796 Rearrange the comments.
797 (allocate_computed_value): Make the funcs parameter target const.
798 (value_computed_funcs): Return the funcs target const.
799 (value_free, value_copy, set_value_component_location): Make the funcs
801 * value.h (allocate_computed_value): Make the funcs parameter target
803 (value_computed_funcs): Return the funcs target const.
804 * windows-tdep.c (tlb_value_funcs): Make it const.
808 * remote.c (remote_get_trace_status): Initialize p.
813 * remote.c (remote_get_trace_status): New variable ex. Put
814 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
818 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
819 value_from_contents for final conversion.
824 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
825 Indent prototypes so they do not get into tags.
829 Code cleanup making also optimized out values lazy.
830 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
831 allocate_optimized_out_value. Twice.
832 (loclist_read_variable) Use allocate_optimized_out_value. Once.
833 * findvar.c (read_var_value): Likewise.
834 * value.c (allocate_optimized_out_value): New function.
835 * value.h (allocate_optimized_out_value): New declaration.
839 Fix occasional crash of CTRL-C during DWARF read in.
840 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
844 * regcache.c (struct regcache_descr): Fix typo.
845 * i387-tdep.c (i387_supply_xsave): Fix typo.
849 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
850 (read_file_scope, read_type_unit_scope): Use it.
854 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
860 * python/python.c: Set gdbpy_should_print_stack default to off.
861 (set_python): Deprecate maint set python print-stack to
863 (_initialize_python): Deprecate maint set/show python print-stack.
864 Add new prefix command, python. Add new setting, print-backtrace.
865 * NEWS: Document set python print-stack. Document default change.
869 * python/py-inferior.c (infpy_dealloc): New function.
870 (inferior_to_inferior_object): Return a new object, or a
871 new reference to the existing object.
872 (find_thread_object): Cleanup references to inferior.
873 (delete_thread_object): Ditto.
874 * python/py-infthread.c (create_thread_object): Do not increment
875 inferior reference count.
879 * dwarf2loc.c (locexpr_regname): New function.
880 (locexpr_describe_location_piece): Use it.
881 (disassemble_dwarf_expression): Add per_cu argument. Use
883 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
884 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
886 (locexpr_describe_location_1): Add per_cu argument.
887 (locexpr_describe_location): Update.
888 (loclist_describe_location): Update.
892 * dwarf2expr.c (execute_stack_op): Add QUIT.
898 * remote.c (remote_start_remote): Add TRY_CATCH for
899 remote_get_trace_status.
900 * tracepoint.c (disconnect_tracing): Ditto.
904 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
905 variables as signed, not unsigned.
909 * jit.c (jit_inferior_init): Reformat forward declaration.
913 * MAINTAINERS (Write After Approval): Add myself to the list.
917 * remote.c (remote_start_remote): Add TRY_CATCH for
918 remote_get_trace_status.
919 * tracepoint.c (disconnect_tracing): Ditto.
923 * symtab.c (operator_chars): Now static.
924 * linespec.c (operator_chars): Don't declare.
928 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
932 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
933 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
934 (TYPE_CPLUS_REALLY_JAVA): New macro.
935 * dwarf2read.c (process_structure_scope): Set
936 TYPE_CPLUS_REALLY_JAVA.
940 * ada-lang.c: Fix typos.
941 * amd64-tdep.c: Likewise.
942 * breakpoint.c: Likewise.
943 * cli/cli-decode.c: Likewise.
944 * findcmd.c: Likewise.
945 * inline-frame.c: Likewise.
946 * mi/mi-main.c: Likewise.
947 * minsyms.c: Likewise.
948 * monitor.c: Likewise.
949 * monitor.h: Likewise.
950 * prologue-value.c: Likewise.
951 * reverse.c: Likewise.
952 * s390-tdep.c: Likewise.
956 * jit.c (jit_inferior_init): Forward declare.
957 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
961 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
965 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
966 (tcb_fieldno): Add activation_link field.
967 (get_known_tasks_addr): Moved and rewritten.
968 (get_tcb_types_info): Set activation_link field.
969 (read_known_tasks_array): Add parameter. Rewritten.
970 (read_known_tasks_list): New function.
971 (read_known_tasks): New function.
972 (ada_build_task_list): Call read_known_tasks instead of
973 read_known_tasks_array.
974 * ravenscar-thread.c: Add first_task_name constant.
975 (has_ravenscar_runtime): Check for task list too.
979 * ada-tasks.c: Renames fieldno to actb_fieldno.
980 (ada_get_task_number): Indentation.
981 (get_tcb_types_info): Remove all parameters. Write directly
983 (ptid_from_atcb_common): Adjust.
988 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
992 * ui-out.c (ui_out_field_core_addr): Mention that the function
993 description is in the header file.
994 * ui-out.h (ui_out_field_core_addr): Document function.
998 * ui-out.c (ui_out_get_field_separator): Remove unused function.
999 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1003 * symtab.c (expand_line_sal): Remove empty line.
1007 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1008 same way as ELFOSABI_NONE.
1009 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1013 * breakpoint.c: Fix typos in comments.
1014 * linespec.c: Likewise.
1015 * symtab.c: Likewise.
1019 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1020 section in separate object files.
1024 Fix false GCC warning.
1025 * linespec.c (decode_line_1): Initialize values.
1029 * linespec.c (find_method): Accept the function type automatically only
1030 if it was specified with parameter types.
1034 Stop on first linespec terminator instead of eating what we can.
1035 * linespec.c (is_linespec_boundary): New function.
1036 (name_end): Remove function.
1037 (keep_name_info): New parameter on_boundary, replace the body.
1038 (decode_line_1): Provide the parameter to keep_name_info.
1039 (decode_compound): Likewise. Drop the trailing java return type
1044 Fall back linespec to minimal symbols.
1045 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1046 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1047 (find_method, symbol_found): Change error to cplusplus_error.
1051 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1056 * dwarf2read.c (check_physname): New variable.
1057 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1058 (show_check_physname): New function.
1059 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1063 * machoread.c (macho_symfile_read): Delete OBE comment.
1067 * machoread.c (struct macho_oso_data): Delete.
1068 (current_oso): Delete.
1069 (macho_relocate_common_syms): New function, mostly extracted
1071 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1072 Remove code that sets and unset current_oso.
1073 (macho_symfile_relocate): Delete handling of common symbols,
1074 now moved to macho_relocate_common_syms.
1078 * darwin-nat.c (darwin_ptrace): Add documentation.
1079 Set errno to zero before calling ptrace. If ptrace returns
1080 -1 and errno is zero, then change then return zero.
1081 (darwin_kill_inferior): Issue a warning instead of triggering
1082 a failed assertion when the PT_KILL ptrace operations returned
1087 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1088 only when inf->private->no_ptrace.
1092 * ada-lang.c (print_it_exception): Print temporary catchpoints
1093 as "Temporary catchpoint".
1094 (print_mention_exception): Likewise.
1098 * jv-lang.c (java_language_defn): Use java_printchar,
1100 (java_get_encoding): New function.
1101 (java_emit_char): Use generic_emit_char.
1102 (java_printchar): New function.
1103 (java_printstr): Likewise.
1107 * ada-typeprint.c (print_record_type): If unable to decode
1108 the name of the parent type, use the encoded name.
1112 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1113 pointer to constrained packed array type output.
1114 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1115 packed array output.
1119 * ada-typeprint.c (print_array_type): removed if condition on show
1120 being negative for bounds printing.
1124 * ada-lang.c (ada_identical_enum_types_p): New function.
1125 (symbols_are_identical_enums): New function.
1126 (remove_extra_symbols): Do nothing if NSYMS < 2.
1127 Use symbols_are_identical_enums.
1131 * ada-valprint.c (ada_value_print): Handle typedefs.
1135 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1139 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1140 (decode_constrained_packed_array): Likewise.
1141 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1145 * ada-exp.y (convert_char_literal): Handle typedef types.
1149 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1153 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1154 * valops.c (find_overload_match): Call do_cleanups on early exit
1156 * solib.c (solib_find): Call do_cleanups on early exit path.
1160 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1161 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1162 return paths. Defer final do_cleanups until last return.
1163 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1168 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1172 * MAINTAINERS (Write After Approval): Add myself to the list.
1176 Disable epilogue unwinders on recent GCCs.
1177 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1178 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1179 * dwarf2read.c (process_full_comp_unit): Initialize
1180 EPILOGUE_UNWIND_VALID.
1181 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1182 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1183 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1187 Code cleanup - reformatting.
1188 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1189 (producer_is_gcc_ge_4): ... here, change the return value.
1190 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1195 Fix non-only rename list for Fortran modules import.
1196 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1197 cp_add_using_directive caller.
1198 (cp_add_using_directive): New parameter excludes, describe it. New
1199 variables ix and param. Compare if also excludes match. Allocate NEW
1200 with variable size, initialize EXCLUDES there.
1201 (cp_lookup_symbol_imports): New variable excludep, test
1202 current->EXCLUDES with it.
1203 * cp-support.h: Include vec.h.
1204 (struct using_direct): New field excludes, describe it.
1205 (DEF_VEC_P (const_char_ptr)): New.
1206 (cp_add_using_directive): New parameter excludes.
1207 * defs.h (const_char_ptr): New typedef.
1208 * dwarf2read.c (read_import_statement): New variables child_die,
1209 excludes and cleanups, read in excludes.
1210 (read_namespace): Adjust the cp_add_using_directive caller.
1215 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1216 negative comparisons.
1220 * mi/mi-main.c (mi_cmd_list_features): Emit
1221 breakpoint-notifications.
1226 * valprint.h (generic_emit_char, generic_printstr): Declare.
1227 * valprint.c (wchar_printable, append_string_as_wide)
1228 (print_wchar): Move from c-lang.c.
1229 (generic_emit_char): New function; mostly taken from c_emit_char.
1230 (generic_printstr): New function; mostly taken from c_printstr.
1231 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1232 represented as arrays.
1233 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1235 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1236 identically to TYPE_CODE_INT.
1237 * f-lang.c (f_get_encoding): New function.
1238 (f_emit_char): Use generic_emit_char.
1239 (f_printchar): Replace comment.
1240 (f_printstr): Use generic_printstr.
1241 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1242 "character" types specially.
1243 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1245 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1247 (c_emit_char): Call generic_emit_char.
1248 (c_printstr): Call generic_printstr.
1252 * breakpoint.c (bpstat_what): Removed duplicated case.
1256 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1260 * valops.c (find_overload_match): Call do_cleanups before early
1262 * top.c (execute_command): Call do_cleanups before early return.
1263 (command_loop): Likewise.
1264 * stack.c (backtrace_command): Make a null cleanup early. Don't
1265 conditionally call do_cleanups.
1266 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1268 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1269 so cleanups are always run.
1270 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1271 * findcmd.c (parse_find_args): Call do_cleanups on early return
1273 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1274 Don't conditionally call do_cleanups.
1275 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1280 * MAINTAINERS (Write After Approval): Use default email address.
1284 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1288 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1289 saved_regs_mask and copied_regs_mask fields.
1290 (sparc_record_save_insn): New prototype.
1291 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1292 (sparc_record_save_insn): New function.
1293 (sparc_analyze_prologue): Add head comment. Recognize store insns
1294 of call-saved registers. Use OFFSET consistently. Recognize flat
1295 frames and cache their settings.
1296 (sparc32_skip_prologue): Handle flat frames.
1297 (sparc_frame_cache): Add frame_offset to the base address.
1298 (sparc32_frame_cache): Adjust to new frame description.
1299 (sparc32_frame_prev_register): Likewise.
1300 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1301 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1302 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1303 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1304 frame by calling sparc_record_save_insn.
1305 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1306 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1307 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1311 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1312 field by map_addr and map_len.
1313 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1314 (munmap_section_buffer): Likewise.
1318 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1319 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1320 * python/python.c (gdbpy_parameter): Make 'arg' const.
1321 (execute_gdb_command): Likewise.
1322 (gdbpy_decode_line): Likewise. Copy it.
1323 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1324 (gdbpy_write): Make 'arg' const.
1325 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1327 (gdbpy_lookup_type): Likewise.
1328 * python/py-prettyprint.c (print_children): Make 'name' const.
1329 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1330 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1332 * python/py-function.c (fnpy_init): Make 'name' const.
1333 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1334 (gdbpy_string_to_argv): Make 'input' const.
1335 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1337 * gdbtypes.h (lookup_typename): Update.
1338 * gdbtypes.c (lookup_typename): Make 'name' const.
1339 (lookup_struct): Likewise.
1340 (lookup_union): Likewise.
1341 (lookup_enum): Likewise.
1345 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1346 gdb_thread_db.h. Move all common/ entries to be together.
1347 (TAGS): Don't depend on DEPFILES.
1351 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1352 * remote.c (remote_start_remote): ... here.
1353 * monitor.c (monitor_open): ... here.
1357 * gdbtypes.c (append_composite_type_field_aligned): Fix
1358 calculation of bit position based on alignment.
1362 * breakpoint.c (bpstat_stop_status): Call the check_status
1363 breakpoint_ops method.
1364 (print_one_breakpoint_location): Also print the condition for Ada
1365 exception catchpoints.
1366 (allocate_bp_location): New, factored out from
1367 allocate_bp_location.
1368 (allocate_bp_location): Adjust. Call the owner breakpoint's
1369 allocate_location method, if there is one.
1370 (free_bp_location): Call the locations's dtor method, if there is
1372 (init_raw_breakpoint_without_location): New breakpoint_ops
1374 (set_raw_breakpoint_without_location): Adjust.
1375 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1376 (set_raw_breakpoint): Adjust.
1377 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1378 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1379 re_set and check_status methods.
1380 (init_catchpoint): Don't memset, initialize thread, addr_string
1381 and enable_state. Pass the ops down to init_raw_breakpoint.
1382 (install_catchpoint): Rename to ...
1383 (install_breakpoint): ... this, and make extern.
1384 (create_fork_vfork_event_catchpoint): Adjust.
1385 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1386 re_set and check_status methods.
1387 (create_syscall_event_catchpoint): Adjust.
1388 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1389 (masked_watchpoint_breakpoint_ops): Install NULL
1390 allocate_location, re_set and check_status methods.
1391 (catch_exec_command_1): Adjust.
1392 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1393 re_set and check_status methods.
1394 (create_ada_exception_breakpoint): Rename to ...
1395 (init_ada_exception_breakpoint): ... this. Add a struct
1396 breakpoint parameter, and delete the exp_string, cond_string and
1397 cond parameters. Use init_raw_breakpoint, and don't install or
1398 mention the breakpoint yet. Don't clear breakpoint fields that
1399 init_raw_breakpoint already clears.
1400 (re_set_breakpoint): Delete, split into ...
1401 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1403 (breakpoint_re_set_one): Call the breakpoint's
1404 breakpoint_ops->re_set implementation, if there's one. Adjust.
1405 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1406 (struct bp_location_ops): New type.
1407 (struct bp_location): New field `ops'.
1408 (struct breakpoint_ops): New `allocate_location', `re_set' and
1409 `check_status' fields. Make `breakpoint_hit''s description match
1411 (init_bp_location): Declare.
1412 (breakpoint_re_set_default): Declare.
1413 (create_ada_exception_breakpoint): Rename to ...
1414 (init_ada_exception_breakpoint): ... this. Add a struct
1415 breakpoint parameter, and delete the exp_string, cond_string and
1417 (install_breakpoint): Declare.
1418 * ada-lang.c: Include exceptions.h.
1419 <Ada exceptions description>: Update.
1420 (struct ada_catchpoint_location): New type.
1421 (ada_catchpoint_location_dtor): New function.
1422 (ada_catchpoint_location_ops): New global.
1423 (ada_catchpoint): New type.
1424 (create_excep_cond_exprs): New function.
1425 (dtor_exception, allocate_location_exception, re_set_exception)
1426 (should_stop_exception, check_status_exception): New functions.
1427 (print_one_exception, print_mention_exception)
1428 (print_recreate_exception): Adjust.
1429 (dtor_catch_exception, allocate_location_catch_exception)
1430 (re_set_catch_exception, check_status_catch_exception): New
1432 (catch_exception_breakpoint_ops): Install them.
1433 (dtor_catch_exception_unhandled)
1434 (allocate_location_catch_exception_unhandled)
1435 (re_set_catch_exception_unhandled)
1436 (check_status_catch_exception_unhandled): New functions.
1437 (catch_exception_unhandled_breakpoint_ops): Install them.
1438 (dtor_catch_assert, allocate_location_catch_assert)
1439 (re_set_catch_assert, check_status_catch_assert): New functions.
1440 (catch_assert_breakpoint_ops): Install them.
1441 (ada_exception_catchpoint_p): Delete.
1442 (catch_ada_exception_command_split)
1443 (ada_exception_catchpoint_cond_string): Rename exp_string
1444 parameter to excep_string. Adjust.
1445 (ada_parse_catchpoint_condition): Delete.
1446 (ada_exception_sal): Rename the exp_string parameter to
1447 excep_string. Delete the cond_string and cond parameters.
1449 (ada_decode_exception_location): Rename the exp_string parameter
1450 to excep_string. Delete the cond_string and cond parameters.
1452 (create_ada_exception_catchpoint): New function.
1453 (catch_ada_exception_command, ada_decode_assert_location)
1454 (catch_assert_command): Adjust.
1455 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1459 * ada-lang.c: Include arch-utils.h.
1460 (ada_decode_exception_location): Make static.
1461 (catch_ada_exception_command): Moved here from breakpoint.c.
1462 (ada_decode_assert_location): Make static.
1463 (catch_assert_command): Moved here from breakpoint.c.
1464 (_initialize_ada_lang): Install the exception and assert
1465 catchpoint commands here.
1466 * ada-lang.h (ada_decode_exception_location)
1467 (ada_decode_assert_location): Delete declarations.
1468 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1470 (create_ada_exception_breakpoint): Make extern.
1471 (catch_ada_exception_command, catch_assert_command): Moved to
1473 (add_catch_command): Make extern.
1474 (_initilize_breakpoint): Don't install the exception and assert
1475 catchpoint commands here.
1476 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1478 (add_catch_command, create_ada_exception_breakpoint): Declare.
1482 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1483 the breakpoint to the breakpoint chain here.
1484 (set_raw_breakpoint_without_location): Add the breakpoint to the
1485 breakpoint chain here.
1486 (init_raw_breakpoint): Adjust comments.
1487 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1489 (init_catchpoint): Don't set the catchpoint's breakpoint number
1491 (install_catchpoint): New function.
1492 (create_fork_vfork_event_catchpoint)
1493 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1494 use install_catchpoint.
1498 * breakpoint.c (create_catchpoint_without_mention)
1499 (create_catchpoint): Delete.
1503 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1504 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1505 reference to exec_pathname.
1506 (struct exec_catchpoint): New type.
1507 (dtor_catch_exec): New function.
1508 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1509 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1510 (catch_exec_command_1): Adjust to use init_catchpoint.
1511 (delete_breakpoint): Remove reference to exec_pathname.
1515 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1516 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1517 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1518 reference to syscalls_to_be_caught.
1519 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1521 (struct syscall_catchpoint): New type.
1522 (dtor_catch_syscall): New function.
1523 (insert_catch_syscall, remove_catch_syscall)
1524 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1525 (print_recreate_catch_syscall): Adjust.
1526 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1527 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1528 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1529 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1530 (masked_watchpoint_breakpoint_ops)
1531 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1532 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1533 there is one. Remove references to syscalls_to_be_caught.
1534 (catching_syscall_number): Adjust.
1535 * ada-lang.c (catch_exception_breakpoint_ops)
1536 (catch_exception_unhandled_breakpoint_ops)
1537 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1541 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1543 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1544 reference to forked_inferior_pid.
1545 (struct fork_catchpoint): New type.
1546 (breakpoint_hit_catch_fork, print_it_catch_fork)
1547 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1548 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1549 (create_fork_vfork_event_catchpoint): Adjust to use
1554 * breakpoint.c (add_to_breakpoint_chain)
1555 (init_raw_breakpoint_without_location): New functions, factored
1557 (set_raw_breakpoint_without_location): ... this one.
1558 (init_raw_breakpoint): New function, factored out from
1559 set_raw_breakpoint and adjusted to use
1560 init_raw_breakpoint_without_location.
1561 (set_raw_breakpoint): Adjust.
1562 (init_catchpoint): New function, factored out from
1563 create_catchpoint_without_mention and adjusted to use
1564 init_raw_breakpoint.
1565 (create_catchpoint_without_mention): Adjust.
1569 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1570 argument of 0 specially.
1574 * infrun.c (handle_inferior_event): Remove write-only local variable
1575 `sw_single_step_trap_p'.
1579 * symtab.c (lookup_language_this): End loop if block is NULL.
1583 * valops.c (value_of_this): Use lookup_language_this.
1584 * symtab.h (lookup_language_this): Declare.
1585 * symtab.c (lookup_language_this): New function.
1586 (lookup_symbol_aux): Use lookup_language_this.
1587 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1591 * value.h (value_of_this): Update.
1592 (value_of_local): Remove.
1593 * valops.c (value_of_this): Rename from value_of_local. Change
1595 * p-exp.y (exp): Update.
1596 (variable): Likewise.
1597 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1601 * valops.c (value_of_local): Complain if NAME is NULL.
1602 * std-operator.def (OP_OBJC_SELF): Remove.
1603 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1604 * objc-exp.y (name_not_typename): Use OP_THIS.
1605 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1607 <OP_OBJC_SELF>: Remove.
1608 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1612 * python/py-events.h (gdb_py_events): Make it extern.
1613 * python/py-evtregistry.c (gdb_py_events): Declare.
1617 * remote.c (remote_trace_set_readonly_regions): Add check for
1618 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1623 * arm-linux-tdep.c: Include "auxv.h".
1625 (ARM_LINUX_SIZEOF_VFP): Define.
1626 (arm_linux_supply_vfp): New function.
1627 (arm_linux_collect_vfp): Likewise.
1628 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1629 (arm_linux_fpa_regset_sections): New variable.
1630 (arm_linux_vfp_regset_sections): Likewise.
1631 (arm_linux_core_read_description): New function.
1632 (arm_linux_init_abi): Install arm_linux_core_read_description and
1633 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1634 appropriate for the architecture.
1635 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1636 (tdesc_arm_with_m): Declare.
1637 (tdesc_arm_with_iwmmxt): Likewise.
1638 (tdesc_arm_with_vfpv2): Likewise.
1639 (tdesc_arm_with_vfpv3): Likewise.
1640 (tdesc_arm_with_neon): Likewise.
1641 * arm-linux-nat.c: Move features/*.c includes ...
1642 * arm-tdep.c: ... here.
1643 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1644 target description data structures ...
1645 * arm-tdep.c (_initialize_arm_tdep): ... here.
1646 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1647 HWCAP_VFPv3D16): Move definitions ...
1648 * arm-linux-tdep.h: ... here.
1652 * remote.c (remote_trace_set_readonly_regions): Add a check for
1657 * coffread.c (coffread_objfile): Rename from current_objfile.
1658 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1659 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1663 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1664 (class_symtab): Remove.
1665 (jv_dynamics_progspace_key): New global.
1666 (jv_per_objfile_free): Reset program space data. Update assert.
1667 Don't clear globals.
1668 (get_dynamics_objfile): Use and set program space data.
1669 (get_java_class_symtab): Use get_dynamics_objfile.
1670 (add_class_symbol): Likewise.
1671 (java_link_class_type): Likewise.
1672 (java_object_type, jv_clear_object_type, set_java_object_type):
1674 (get_java_object_type): Update. Don't cache result.
1675 (is_object_type): Don't call set_java_object_type.
1676 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1677 initialize jv_dynamics_progspace_key.
1681 * symtab.h (current_objfile): Don't declare.
1682 * objfiles.h (current_objfile): Don't declare.
1683 * objfiles.c (current_objfile): Remove.
1684 * mdebugread.c (current_objfile): New file-scope global.
1685 * dbxread.c (current_objfile): New file-scope global.
1686 * coffread.c (current_objfile): New file-scope global.
1690 * top.h (line): Rename to ...
1691 (saved_command_line): ... this.
1692 (linesize): Rename to ...
1693 (saved_command_line_size): ... this.
1694 * top.c (line): Rename to ...
1695 (saved_command_line): ... this.
1696 (linesize): Rename to ...
1697 (saved_command_line_size): ... this.
1698 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1699 * event-top.c (command_line_handler): Adjust.
1700 * main.c (captured_main): Adjust.
1704 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1705 get_frame_func instead of get_frame_pc to determine the code
1706 address used to construct the frame ID.
1707 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1708 (i386_epilogue_frame_this_id): Likewise.
1709 (i386_epilogue_frame_prev_register): New function.
1710 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1711 (i386_stack_tramp_frame_sniffer): Fix coding style.
1712 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1713 (i386_gdbarch_init): Fix comments.
1717 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1718 instruction when walking back through the instruction stream.
1722 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1723 fullname parameters order.
1728 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1730 * psymtab.c (map_symbol_filenames_psymtab)
1731 (map_partial_symbol_filenames): Likewise.
1732 * psymtab.h: Include symfile.h.
1733 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1734 * symfile.h (symbol_filename_ftype): New.
1735 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1736 map_symbol_filenames, clarify more the naming in comment.
1740 * cc-with-index.sh: Fix typos in comment.
1741 Look for ../../gdb, for fullname.exp.
1746 * cli/cli-cmds.c (shell_escape): Use waitpid.
1747 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1751 * xcoffread.c (dwarf2_xcoff_names): New variable.
1752 (aix_process_linenos): Add a guard.
1753 (xcoff_symfile_finish): Free dwarf2.
1754 (xcoff_initial_scan): Add dwarf2 support.
1758 * infcall.c (run_inferior_call): Don't mask async. Instead force
1759 a synchronous wait, if the target can async.
1761 * target.h (struct target_ops): Delete to_async_mask.
1762 (target_async_mask): Delete.
1763 * target.c (update_current_target): Delete references to to_async_mask.
1764 * linux-nat.c (linux_nat_async_mask_value): Delete.
1765 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1766 to linux_nat_async_mask_value.
1767 (linux_nat_async_mask): Delete.
1768 (linux_nat_async, linux_nat_close): Remove references to
1769 linux_nat_async_mask_value.
1770 * record.c (record_async_mask_value): Delete.
1771 (record_async): Remove references to record_async_mask_value.
1772 (record_async_mask): Delete.
1773 (record_can_async_p, record_is_async_p): Remove references to
1774 record_async_mask_value.
1775 (init_record_ops, init_record_core_ops): Remove references to
1777 * remote.c (remote_async_mask_value): Delete.
1778 (init_remote_ops): Remove reference to remote_async_mask.
1779 (remote_can_async_p, remote_is_async_p): Remove references to
1780 remote_async_mask_value.
1781 (remote_async): Remove references to remote_async_mask_value.
1782 (remote_async_mask): Delete.
1784 * infrun.c (fetch_inferior_event): Don't claim registers changed
1785 if the current thread is already not executing.
1790 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1791 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1795 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1796 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1800 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1802 * python/py-exitedevent.c (create_exited_event_object): Change
1803 type of 'exit_code'. Optionally add exit_code attribute.
1804 (emit_exited_event): Change type of 'exit_code'.
1805 * python/py-event.h (emit_exited_event): Update.
1806 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1807 * infrun.c (handle_inferior_event): Set exit code fields on
1809 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1811 * inferior.c (exit_inferior_1): Initialize new fields.
1815 * dwarf2expr.c (get_signed_type): New function.
1816 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1820 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1824 * top.h (simplified_command_loop): Delete declaration.
1828 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1829 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1833 * objfiles.h (obj_section_addr): Update reference to objfile from
1835 (obj_section_endaddr): Likewise.
1839 * MAINTAINERS: Update my email address and affiliation. Also
1845 * linespec.c (get_search_block): New function.
1846 (find_methods): Add FILE_SYMTATB parameter and use it and
1847 get_search_block to pass an appropriate block to
1848 lookup_symbol_in_namespace.
1849 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1850 Check if *ARGPTR starts with a filename first.
1851 If it does, call locate_first_half again to locate the next
1852 "first half" of the linespec.
1853 Pass FILE_SYMTATB to decode_objc and decode_compound.
1854 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1855 (locate_first_half): Stop on the first colon seen.
1856 (decode_compound): Add FILE_SYMTAB parameter.
1857 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1858 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1859 get_search_block with lookup_symbol.
1860 (find_method): Add FILE_SYMTAB parameter and pass it to
1862 (decode_objc): Use get_search_block.
1867 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1868 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1869 and CP_ANONYMOUS_NAMESPACE_LEN.
1870 (cp_is_anonymous): Likewise.
1871 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1872 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1873 * dwarf2read.c (namespace_name): Likewise.
1874 (fixup_partial_die): Likewise.
1875 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1876 seen in the input, keep it.
1880 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1881 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1882 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1883 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1884 * remote.c (_initialize_remote): Register
1885 async_remote_interrupt_twice directly as
1886 sigint_remote_twice_token event.
1890 * target.h (enum inferior_event_type): Delete INF_ERROR.
1891 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1895 * interps.c (interp_set): Don't cancel continuations.
1899 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1903 * continuations.h (continuation_ftype): Add `err' parameter.
1904 Document parameters.
1905 (do_all_continuations, do_all_continuations_thread)
1906 (do_all_intermediate_continuations)
1907 (do_all_intermediate_continuations_thread)
1908 (do_all_inferior_continuations): Add `err' parameter.
1909 * continuations.c (do_my_continuations_1, do_my_continuations)
1910 (do_all_inferior_continuations, do_all_continuations_ptid)
1911 (do_all_continuations_thread_callback)
1912 (do_all_continuations_thread, do_all_continuations)
1913 (do_all_intermediate_continuations_thread_callback)
1914 (do_all_intermediate_continuations_thread)
1915 (do_all_intermediate_continuations): Add `err' parameter, and pass
1916 it down all the way to the continuations proper.
1917 * inf-loop.c (inferior_event_handler): If fetching an inferior
1918 event throws an error, don't pop the target, and still call the
1919 continuations, but with `err' set. Adjust all other continuation
1921 * breakpoint.c (until_break_command_continuation): Add `err'
1923 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1924 issue another step if `err' is set.
1925 (struct until_next_continuation_args): New.
1926 (until_next_continuation): Add `err' parameter. Adjust.
1927 (until_next_command): Adjust.
1928 (struct finish_command_continuation_args): Add `thread' field.
1929 (finish_command_continuation): Add `err' parameter. Handle it.
1930 (finish_forward): Adjust.
1931 (attach_command_continuation): Add `err' parameter. Handle it.
1932 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1933 cancel the continuations.
1934 * interps.c (interp_set): Adjust to cancel the continuations.
1935 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1936 continuations rather than discarding.
1937 (free_thread): Don't clear thread inferior resources here.
1938 (delete_thread_1): Do it here instead. And do it before removing
1939 the thread from the threads list. Tag the thread as exited before
1940 clearing thread inferior resources.
1944 * infcall.c (call_function_by_hand): Rephrase error message.
1948 * defs.h (struct thread_info, struct inferior): Delete forward
1950 * breakpoint.h (struct thread_info): New forward declaration.
1951 * observer.sh (struct inferior): New forward declaration.
1952 * python/python-internal.h (struct inferior): New forward
1957 * defs.h (struct continuation, continuation_ftype)
1958 (continuation_free_arg_ftype, add_continuation)
1959 (do_all_continuations, do_all_continuations_thread)
1960 (discard_all_continuations, discard_all_continuations_thread)
1961 (add_intermediate_continuation, do_all_intermediate_continuations)
1962 (do_all_intermediate_continuations_thread)
1963 (discard_all_intermediate_continuations)
1964 (discard_all_intermediate_continuations_thread)
1965 (add_inferior_continuation, do_all_inferior_continuations)
1966 (discard_all_inferior_continuations): Move to ...
1967 * continuations.h: ... this new file.
1968 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1969 infcmd.c, inferior.c, infrun.c, interps.c: Include
1975 Fix PR 10970, PR 12702.
1976 * linux-nat.c (linux_lwp_is_zombie): New function.
1977 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1978 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1982 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1984 (add_continuation, add_intermediate_continuation)
1985 (add_inferior_continuation): Use them.
1986 * continuations.c (struct continuation): Use them.
1987 (make_continuation_ftype): Delete.
1988 (make_continuation, add_inferior_continuation, add_continuation)
1989 (add_intermediate_continuation): Use continuation_ftype and
1990 continuation_free_arg_ftype. Rename parameters to shorter names.
1994 * continuations.c (make_continuation): Make it return void.
1995 (do_my_continuations): Rename to ...
1996 (do_my_continuations_1): ... this. Remove old_chain parameter and
1998 (do_my_continuations): New.
1999 (discard_my_continuations): Rename to ...
2000 (discard_my_continuations_1): ... this. Remove old_chain
2001 parameter and adjust.
2002 (discard_my_continuations): New.
2003 (add_inferior_continuation): Simplify.
2004 (do_all_inferior_continuations): Reimplement on top
2005 do_my_continuations.
2006 (discard_all_inferior_continuations): Simplify.
2007 (add_continuation): Simplify.
2008 (do_all_continuations_ptid): Simplify.
2009 (discard_all_continuations_thread_callback): Simplify.
2010 (add_intermediate_continuation): Simplify.
2011 (discard_all_intermediate_continuations_thread_callback):
2016 * utils.c (struct continuation, add_continuation)
2017 (add_inferior_continuation)
2018 (do_all_inferior_continuations, discard_all_inferior_continuations)
2019 (restore_thread_cleanup, do_all_continuations_ptid)
2020 (do_all_continuations_thread_callback)
2021 (do_all_continuations_thread, do_all_continuations)
2022 (discard_all_continuations_thread_callback)
2023 (discard_all_continuations_thread, discard_all_continuations)
2024 (add_intermediate_continuation)
2025 (do_all_intermediate_continuations_thread_callback)
2026 (do_all_intermediate_continuations_thread)
2027 (do_all_intermediate_continuations)
2028 (discard_all_intermediate_continuations_thread_callback)
2029 (discard_all_intermediate_continuations_thread)
2030 (discard_all_intermediate_continuations): Move to ...
2031 * continuations.c: ... this new file, and adjust to no longer
2032 implement continuations on top of cleanups.
2033 * Makefile.in (SFILES): Add continuations.c.
2034 (COMMON_OBS): Add continuations.o.
2038 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2039 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2040 Internal error on invalid values.
2041 * reverse.c: Don't handle EXEC_ERROR.
2042 * mi/mi-main.c: Don't handle EXEC_ERROR.
2046 * record.c: Include event-loop.h, inf-loop.h.
2047 (record_beneath_to_async): New global.
2048 (tmp_to_async): New global.
2049 (record_async_inferior_event_token): New global.
2050 (record_open_1): Don't error out if async is enabled.
2051 (record_open): Handle to_async. Create an async event source in
2053 (record_close): Delete the async event source.
2054 (record_resumed): New global.
2055 (record_execution_dir): New global.
2056 (record_resume, record_core_resume): Set them. Register the
2057 target on the event loop.
2058 (record_wait): Rename to ...
2059 (record_wait_1): ... this. Add more debug output. Handle
2060 TARGET_WNOHANG, and the target beneath returning
2061 TARGET_WAITKIND_IGNORE.
2062 (record_wait): Reimplement on top of record_wait_1.
2063 (record_async_mask_value): New global.
2064 (record_async, record_async_mask, record_can_async_p)
2065 (record_is_async_p, record_execution_direction): New functions.
2066 (init_record_ops, init_record_core_ops): Install new methods.
2067 * infrun.c (fetch_inferior_event): Temporarily switch the global
2068 execution direction to the direction the target was going.
2069 (execution_direction): Change type to int.
2070 * target.c (default_execution_direction): New function.
2071 (update_current_target): Inherit and de_fault
2072 to_execution_direction.
2073 * target.h (struct target_ops) <to_execution_direction>: New
2075 (target_execution_direction): New macro.
2076 * inferior.h (execution_direction): Change type to int.
2080 * infcall.c (call_function_by_hand): Don't allow calling functions
2081 in reverse execution mode.
2085 * infcmd.c (finish_command): Allow async finish in reverse.
2089 * gdb_thread_db.h: Delete. Move to ...
2090 * common/gdb_thread_db.h: ... here.
2094 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2095 function's entry point instead of a manually managed momentary
2096 breakpoint, and only ever issue one proceed call.
2097 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2098 doing a reverse-finish, switch to stepi mode, to do another step.
2099 (insert_step_resume_breakpoint_at_sal): Make public.
2100 (normal_stop): No need to save function value return registers if
2102 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2106 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2107 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2108 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2110 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2111 step-resume breakpoints.
2112 (print_it_typical): Handle bp_hp_step_resume.
2113 (bpstat_what): Ditto.
2114 (bptype_string): Ditto.
2115 (print_one_breakpoint_location): Ditto.
2116 (allocate_bp_location): Ditto.
2118 (breakpoint_re_set_one): Ditto.
2119 * infrun.c (handle_inferior_event): Adjust. Split
2120 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2121 BPSTAT_WHAT_HP_STEP_RESUME.
2122 (insert_step_resume_breakpoint_at_sal): Rename to ...
2123 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2124 parameter. Handle it.
2125 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2126 insert_step_resume_breakpoint_at_sal_1.
2127 (insert_step_resume_breakpoint_at_frame): Rename to ...
2128 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2129 set a high-priority step-resume breakpoint.
2130 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2131 (insert_step_resume_breakpoint_at_caller): Ditto.
2135 * breakpoint.c (iterate_over_related_breakpoints): New.
2136 (do_map_delete_breakpoint): New.
2137 (delete_command): Pass do_map_delete_breakpoint to
2138 map_breakpoint_numbers.
2139 (do_disable_breakpoint): New.
2140 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2142 (do_enable_breakpoint): Rename to ...
2143 (enable_breakpoint_disp): ... this.
2144 (enable_breakpoint): Adjust.
2145 (do_enable_breakpoint): New.
2146 (enable_once_breakpoint): Delete.
2147 (do_map_enable_breakpoint): New.
2148 (do_map_enable_once_breakpoint): New.
2149 (enable_once_command, enable_delete_command)
2150 (delete_trace_command): Iterate over the breakpoint's related
2155 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2156 for ALPHA_ZERO_REGNUM.
2157 (alpha_supply_int_regs): Explicitly supply zero as the value for
2158 ALPHA_ZERO_REGNUM in the register cache.
2159 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2163 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2167 * symfile.h (struct dwarf2_section_names): New type.
2168 (struct dwarf2_debug_sections): New type.
2169 (dwarf2_has_info): Add parameter.
2170 * dwarf2read.c (dwarf2_elf_names): New variable.
2171 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2172 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2173 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2174 (dwarf2_has_info): Add names parameter. Pass names
2175 to dwarf2_locate_sections.
2176 (section_is_p): Rewrite using the names parameter.
2177 (dwarf2_locate_sections): Use section names from the names parameter.
2178 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2179 * elfread.c (read_psyms): Ditto.
2180 * machoread.c (macho_symfile_read): Ditto.
2185 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2190 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2191 (decode_compound): Unconditionally call keep_name_info.
2195 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2196 scope, clear its command list.
2197 (map_breakpoint_numbers): Don't walk the related breakpoints list
2202 * MAINTAINERS: Move Jim Blandy to past maintainers.
2206 * symfile.h (enum dwarf2_section_enum): New type.
2207 (dwarf2_get_section_info): New prototype.
2208 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2209 section_name by sect. Use a switch to select the info.
2210 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2211 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2215 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2216 shared library event breakpoint if there's no execution.
2220 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2221 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2225 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2230 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2231 entry for RuntimeError to doc string.
2235 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2236 sequence for probing loops.
2240 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2245 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2246 zero as the value for %g0 in the register cache.
2247 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2248 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2252 * infrun.c (proceed): Set previous_inferior_ptid here.
2253 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2254 inferior_ptid, not null_ptid.
2255 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2256 (fetch_inferior_event): Nor here.
2260 * inf-loop.c (inferior_event_handler): Only output a message if
2265 * MAINTAINERS: Update my e-mail address.
2269 * infrun.c (proceed): Switch the inferior event loop to
2270 INF_EXEC_COMPLETE if the target refused to resume from a
2275 * infcmd.c: Include "inf-loop.h".
2276 (step_once): When stepping into an inline subroutine, pretend the
2277 target has run. If the target can async, switch the inferior
2278 event loop to INF_EXEC_COMPLETE.
2279 * inferior.h (user_visible_resume_ptid): Declare.
2280 * infrun.c (user_visible_resume_ptid): New function, factored out
2283 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2284 that the current thread is running. Merge async and sync
2289 * infcmd.c (step_1): Simplify synchronous case.
2293 * tracepoint.c: Include exceptions.h.
2294 (TFILE_PID): Move higher in file.
2295 (tfile_open): Delay pushing the tfile target until we're assured
2296 the tfile header is present in the file. Wrap reading the initial
2297 newline-terminated lines in TRY_CATCH. Pop the target if the
2298 initial setup failed. Add the tfile's thread immediately
2299 aftwards, before any non-essential setup. Don't skip
2300 post_create_inferior if there are no traceframes present in the
2302 (tfile_close): Remove redundant check for null before xfree call.
2303 (tfile_thread_alive): New function.
2304 (init_tfile_ops): Register it as to_thread_alive callback.
2308 * tracepoint.c (tfile_open): Delete #if 0'd code.
2312 Fix -readnow for -gdwarf-4 unused type units.
2313 * dwarf2read.c (struct signatured_type): Remove the field offset.
2314 (create_signatured_type_table_from_index): Remove its initialization.
2315 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2316 instead. Add a complaint call.
2317 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2318 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2319 (lookup_signatured_type_at_offset, read_signatured_type)
2320 (write_one_signatured_type): Update the field for per_cu.
2324 * python/py-inferior.c (python_inferior_exit): Use
2326 (python_on_resume): Likewise.
2330 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2334 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2338 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2342 * dwarf2read.c (dwarf2_add_field): Constify.
2343 * value.c (value_static_field): Constify.
2344 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2346 * ax-gdb.c (gen_static_field): Constify
2350 * linux-nat.c (kill_callback): Use SIGKILL first.
2354 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2358 * value.c (value_fn_field): Constify.
2359 * symtab.c (gdb_mangle_name): Constify.
2360 * stabsread.c (update_method_name_from_physname): Make 'physname'
2362 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2363 const. Use explicit fputc_filtered loop.
2364 (pascal_type_print_base): Constify.
2365 * p-lang.h (pascal_type_print_method_args): Update.
2366 * linespec.c (add_matching_methods): Constify.
2367 (add_constructors): Likewise.
2368 * jv-typeprint.c (java_type_print_base): Constify.
2369 * gdbtypes.h (struct cplus_struct_type)
2370 <fn_fieldlist.fn_field.physname>: Now const.
2371 * dwarf2read.c (compute_delayed_physnames): Constify.
2372 (dwarf2_add_member_fn): Likewise.
2373 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2377 * infrun.c (resume): Mention which is the current thread, and its
2378 current PC in debug output.
2379 (prepare_to_proceed): Mention the thread switching in debug
2384 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2385 path check. Use xmalloc and cleanups.
2386 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2390 * cp-valprint.c (cp_print_value_fields): Catch errors from
2395 * dwarf2read.c (dwarf2_get_die_type): Call
2396 get_die_type_at_offset.
2397 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2398 get_base_type function.
2402 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2407 * python/py-auto-load.c (source_section_scripts): Mention objfile
2412 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2413 (try_thread_db_load_from_pdir): Call it. If unable to find
2414 libthread_db in directory of libpthread, see if we're looking at
2415 the separate-debug-info copy.
2417 * python/py-autoload.c (print_script): Print "Missing" instead of
2418 "No" for missing scripts.
2419 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2423 * ui-file.c (stdio_file_write_async_safe): Add comment.
2427 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2431 Support $pdir and $sdir in libthread-db-search-path.
2432 * NEWS: Mention $sdir,$pdir.
2433 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2434 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2435 (try_thread_db_load_from_sdir): New function.
2436 (try_thread_db_load_from_dir): New function.
2437 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2438 system directories if search of libthread-db-search-path fails,
2439 that is now done via $sdir.
2440 (has_libpthread): New function.
2441 (thread_db_load): Remove search for libthread_db in directory of
2442 libpthread, that is now done via $pdir.
2444 * NEWS: Mention "info auto-load-scripts".
2445 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2446 script_not_found_warning_printed.
2447 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2448 all callers updated. Initialize script_not_found_warning_printed.
2449 (get_auto_load_pspace_data_for_loading): New function.
2450 (maybe_add_script): New function.
2451 (source_section_scripts): Simplify. Only print one warning regardless
2452 of the number of auto-load scripts not found.
2453 (clear_section_scripts): Clear script_not_found_warning_printed.
2454 (auto_load_objfile_script): Record script in hash table.
2455 (count_matching_scripts): New function.
2456 (maybe_print_script): Renamed from maybe_print_section_script, all
2457 callers updated. Rewrite to use ui_out_*.
2458 (info_auto_load_scripts): Renamed from
2459 maintenance_print_section_scripts, all callers updated.
2460 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2461 renamed as "info auto-load-scripts".
2465 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2466 (read_sleb128): Likewise.
2470 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2475 * linux-nat.c (debug_linux_nat_async): Delete.
2476 Replace all references to use debug_linux_nat instead.
2477 (show_debug_linux_nat_async): Delete.
2478 (sigchld_handler): Call ui_file_write_async_safe instead of
2480 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2481 * ui-file.c (struct ui_file): New member to_write_async_safe.
2482 (null_file_write_async_safe): New function.
2483 (ui_file_write_async_safe): New function.
2484 (set_ui_file_write_async_safe): New function.
2485 (ui_file_new): Initialize to_write_async_safe.
2486 (stdio_file_write_async_safe): New function.
2487 (struct stdio_file): New member fd.
2488 (stdio_file_new): Initialize to_write_async_safe, fd.
2489 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2491 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2492 (set_ui_file_write_async_safe): Declare.
2493 (ui_file_write_async_safe): Declare.
2497 * utils.c (do_value_free): New function.
2498 (make_cleanup_value_free): Likewise.
2499 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2501 (dwarf2_loc_desc_needs_frame): Call
2502 make_cleanup_value_free_to_mark.
2503 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2504 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2506 (new_dwarf_expr_context): Don't call value_mark.
2507 * dwarf2-frame.c (execute_stack_op): Call
2508 make_cleanup_value_free_to_mark.
2509 * defs.h (make_cleanup_value_free): Declare.
2513 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2514 prepare_execute_command.
2515 * top.c (prepare_execute_command): Return cleanup.
2516 (execute_command): Use cleanup from prepare_execute_command.
2517 * top.h (prepare_execute_command): Change prototype to return
2519 * defs.h (struct value): Add opaque declaration.
2520 (make_cleanup_value_free_to_mark): Add prototype.
2521 * utils.c (do_value_free_to_mark): New function.
2522 (make_cleanup_value_free_to_mark): Likewise.
2526 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2527 cast left-hand-side to unsigned.
2532 * value.h (value_from_contents): Declare.
2533 * value.c (value_from_contents): New function.
2534 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2535 (dwarf2_get_die_type): New function.
2536 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2537 (allocate_piece_closure): Acquire reference to values.
2538 (read_pieced_value): Update for value-based expressions.
2539 (write_pieced_value): Likewise.
2540 (free_pieced_value_closure): Call value_free as needed.
2541 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2542 Update for value-based expressions.
2543 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2544 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2545 <get_base_type>: New field.
2546 (struct dwarf_expr_piece) <v.value>: Change type.
2547 <v.regno>: New field.
2548 (struct dwarf_expr_context) <mark>: New field.
2549 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2550 (dwarf_expr_pop, dwarf_expr_push): Remove.
2551 (dwarf_expr_push_address): Declare.
2552 * dwarf2expr.c (dwarf_arch_cookie): New global.
2553 (struct dwarf_gdbarch_types): New.
2554 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2556 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2558 (dwarf_expr_push_address): New function.
2559 (dwarf_expr_pop): Now static.
2560 (dwarf_expr_fetch): Change return type.
2561 (dwarf_require_integral): New function.
2562 (dwarf_expr_fetch): Simplify.
2563 (add_piece): Update.
2564 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2566 (execute_stack_op) <sign_ext>: Remove.
2567 Use values for DWARF stack.
2568 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2569 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2571 (_initialize_dwarf2expr): New function.
2572 (add_piece): Update.
2573 (new_dwarf_expr_context): Set new field.
2574 (free_dwarf_expr_context): Call value_free_to_mark.
2575 * dwarf2-frame.c (no_base_type): New function.
2576 (execute_stack_op): Set get_base_type field. Update.
2580 * dwarf2read.c (read_common_block): Fix formatting.
2584 * breakpoint.c (disable_breakpoint): Disable all locations
2585 associated with a tracepoint on target if a trace experiment is
2587 (disable_command): Disable a specific tracepoint location on target if
2588 a trace experiment is running.
2589 (do_enable_breakpoint): Enable all locations associated with a
2590 tracepoint on target if a trace experiment is running.
2591 (enable_command) Enable a specific tracepoint location on target if a
2592 trace experiment is running.
2593 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2594 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2595 to_disable_tracepoint.
2596 * target.h: Add declaration of struct bp_location.
2597 (struct target_ops): Add new functions
2598 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2599 to_disable_tracepoint to target operations.
2600 (target_supports_enable_disable_tracepoint): New macro.
2601 (target_enable_tracepoint): New macro.
2602 (target_disable_tracepoint): New macro.
2603 * remote.c (struct remote_state): Add new field.
2604 (remote_enable_disable_tracepoint_feature): New.
2605 (remote_protocol_features): Add new entry.
2606 (remote_supports_enable_disable_tracepoint): New.
2607 (remote_enable_tracepoint): New.
2608 (remote_disable_tracepoint): New.
2609 (init_remote_ops): Add remote_enable_tracepoint,
2610 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2611 to remote operations.
2612 * tracepoint.c (start_tracing): Allow tracing to start without any
2613 tracepoints enabled with just a warning if they can be re-enabled
2615 * NEWS: Add news item for the new behaviour of the enable and disable
2616 GDB commands when applied to tracepoints.
2617 Add news items for the new remote packets QTEnable and QTDisable.
2621 * config.in: Regenerate.
2622 * configure: Regenerate.
2623 * configure.ac <--with-system-readline> (for readline_echoing_p):
2625 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2626 (tui_old_rl_echoing_p): ... here.
2627 (tui_setup_io): Rename extern declaration readline_echoing_p to
2628 _rl_echoing_p. Adjust assignments for the both renames.
2632 * symtab.c (lookup_symtab): Run cleanup before returning.
2636 * dwarf2read.c (handle_data_member_location): New function.
2637 (dwarf2_add_field): Use it.
2638 (read_common_block): Likewise.
2642 Make addrs->SECTINDEX always defined.
2643 * symfile.c (relative_addr_info_to_section_offsets): Check for
2644 SECTINDEX -1, not for zero ADDR.
2645 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2646 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2647 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2652 * linux-thread-db.c: Whitespace cleanup.
2653 (try_thread_db_load_1): Fix comment.
2655 * linux-thread-db.c (set_libthread_db_search_path): New function.
2656 (_initialize_thread_db): Add setter for libthread-db-search-path.
2660 * NEWS: Mention --with-iconv-bin.
2661 * configure.ac: New option --with-iconv-bin.
2662 * configure: Regenerate.
2663 * config.in: Regenerate.
2664 * defs.h (relocate_gdb_directory): Declare.
2665 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2666 removed progname parameter, and exported. All callers updated.
2667 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2669 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2670 adding missing call to restore_child_signals_mask.
2674 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2676 * infrun.c (proceed, start_remote): Adjust.
2677 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2678 and adjust to not handle it.
2679 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2680 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2681 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2682 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2683 * windows-nat.c (do_initial_windows_stuff): Adjust.
2684 * infcmd.c (attach_command): Adjust.
2685 (notice_new_inferior): Adjust.
2689 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2690 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2691 * spu-tdep.c (op_selb): Use correct value.
2695 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2696 "parent" parameter to symbol_file_add_from_bfd call.
2701 Implement support for PowerPC BookE masked watchpoints.
2702 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2704 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2705 method. Initialize to NULL in all existing breakpoint_ops instances.
2706 (struct breakpoint) <hw_wp_mask>: New field.
2707 * breakpoint.c (is_masked_watchpoint): Add prototype.
2708 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2709 breakpoint's breakpoint_ops.works_in_software_mode if available.
2710 (watchpoints_triggered): Handle the case of a hardware masked
2712 (watchpoint_check): Likewise.
2713 (works_in_software_mode_watchpoint): New function.
2714 (insert_masked_watchpoint, remove_masked_watchpoint)
2715 (resources_needed_masked_watchpoint)
2716 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2717 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2718 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2720 (masked_watchpoint_breakpoint_ops): New structure.
2721 (watch_command_1): Check for the existence of the `mask' parameter.
2722 Set b->ops according to the type of hardware watchpoint being created.
2723 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2724 (ppc_linux_remove_mask_watchpoint)
2725 (ppc_linux_masked_watch_num_registers): New functions.
2726 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2727 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2728 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2729 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2730 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2731 (target_masked_watch_num_registers): New functions.
2732 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2733 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2735 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2736 (target_masked_watch_num_registers): Add prototypes.
2741 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2742 (producer_is_gcc_ge_4_0): New function.
2743 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2744 symtab->language code.
2745 (var_decode_location): Set cu->has_loclist.
2746 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2747 skip. Intialize force_skip from locations_valid. Move the prologue
2748 skipping code into two passes.
2749 * symtab.h (struct symtab): Make the primary field a bitfield. New
2750 field locations_valid.
2754 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2755 (classify_inner_name): Call cp_lookup_nested_type with
2757 * cp-namespace.c (cp_lookup_nested_type): New variable
2758 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2759 type_name_no_tag_or_error with saved_parent_type.
2760 * dwarf2read.c (load_partial_dies): Read in any children of
2761 DW_TAG_typedef with complaint in such case.
2762 * gdbtypes.c (type_name_no_tag_or_error): New function.
2763 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2764 * valops.c (destructor_name_p): New comment for parameter type. Remove
2765 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2766 * value.h (destructor_name_p): Remove type const.
2770 * symtab.c (compare_symbol_name): New function.
2771 (completion_list_add_name, expand_partial_symbol_name): Call it,
2772 remove the variable ncmp.
2773 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2778 Demote to sw watchpoint only in update_watchpoint.
2779 * breakpoint.c (update_watchpoint): Change between software and
2780 hardware watchpoint for all kinds of watchpoints, not just
2781 read/write ones. Determine b->exact value here instead of
2782 in watch_command_1. Error out if there are not enough resources
2783 for a read or access hardware watchpoint.
2784 (watch_command_1): Remove logic of checking whether there are
2785 enough resources available, since update_watchpoint will do that
2786 work now. Don't set b->exact here. Catch exceptions thrown by
2787 update_watchpoint and delete the watchpoint.
2788 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2789 Use target_exact_watchpoints instead.
2790 (delete_breakpoint): Notify observers only if deleted watchpoint
2791 has a breakpoint number assigned to it.
2795 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2799 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2801 (i386_stack_tramp_frame_unwind): New static global.
2802 (i386_match_pattern): New function, extracted from i386_match_insn.
2803 (i386_match_insn): Use i386_match_pattern.
2804 (i386_match_insn_block): New function.
2805 (i386_tramp_chain_in_reg_insns)
2806 (i386_tramp_chain_on_stack_insns): New static variables.
2807 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2812 * configure.host (xscale*): Don't handle target.
2813 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2818 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2824 | * elfread.c (elf_symtab_read): Stop memory leak.
2828 * nto-tdep.c (nto_target): Replace deprecated call to
2829 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2833 Fix false GCC warning.
2834 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2838 * breakpoint.c (update_watchpoint): Move code to change
2839 the enable state of breakpoint from here ...
2840 (do_enable_breakpoint): ... to here.
2844 * valprint.c (val_print_array_elements): Fixed poor performance
2845 of printing very large arrays with repeat_count_threshold set
2846 to unlimited. New comment.
2850 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2851 (mi_parse): Likewise.
2852 * breakpoint.c (break_range_command): Use sizeof char*, not
2854 (create_breakpoint): Likewise.
2855 (parse_breakpoint_sals): Likewise.
2859 * linux-nat.c (linux_child_remove_fork_catchpoint)
2860 (linux_child_remove_vfork_catchpoint)
2861 (linux_child_remove_exec_catchpoint): New functions.
2862 (linux_target_install_ops): Install them.
2868 * varobj.c (install_default_visualizer): Do not install a
2869 visualizer if the varobj is CPLUS_FAKE_CHILD.
2870 (construct_visualizer): Likewise.
2874 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2875 case insensitive comparison.
2879 * infrun.c (proceed): Revert previous change.
2880 (resume): Instead, handle the case of signal delivery while stepping
2881 off a breakpoint location here, and only if software single-stepping
2882 is used. Handle nested signals.
2886 * arm-tdep.c (copy_unmodified): Rename to ...
2887 (arm_copy_unmodified): .. this. New.
2888 (copy_preload): Move common part to ...
2889 (install_preload): .. this. New.
2890 (arm_copy_preload): New.
2891 (copy_preload_reg): Move common part to ...
2892 (install_preload_reg): ... this. New.
2893 (arm_copy_preload_reg): New.
2894 (copy_b_bl_blx): Move common part to ...
2895 (install_b_bl_blx): .. this. New.
2896 (arm_copy_b_bl_blx): New.
2897 (copy_bx_blx_reg): Move common part to ...
2898 (install_bx_blx_reg): ... this. New.
2899 (arm_copy_bx_blx_reg): New.
2900 (copy_alu_reg): Move common part to ...
2901 (install_alu_reg): ... this. New.
2902 (arm_copy_alu_reg): New.
2903 (copy_alu_shifted_reg): Move common part to ...
2904 (install_alu_shifted_reg): ... this. New.
2905 (copy_ldr_str_ldrb_strb): Move common part to ...
2906 (install_ldr_str_ldrb_strb): ... this. New.
2907 (arm_copy_ldr_str_ldrb_strb): New.
2908 (copy_copro_load_store): Move some common part to ...
2909 (install_copy_copro_load_store): ... this. New.
2910 (arm_copy_copro_load_store): New.
2912 (arm_copy_svc): Renamed from copy_svc.
2913 (copy_undef): Delete.
2914 (arm_copy_undef): Renamed from copy_undef.
2915 (decode_ext_reg_ld_st): Delete.
2916 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2917 (decode_svc_copro): Delete.
2918 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2919 (copy_copro_load_store, copy_alu_imm): update callers.
2920 (copy_extra_ld_st, copy_block_xfer): Likewise.
2921 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2922 (decode_miscellaneous, decode_dp_misc): Likewise.
2923 (decode_ld_st_word_ubyte, decode_media): Likewise.
2924 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2925 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2926 (decode_unconditional, decode_miscellaneous): Likewise.
2927 (decode_media, decode_b_bl_ldmstm): Likewise.
2928 (arm_process_displaced_insn): Likewise..
2929 (decode_misc_memhint_neon): Delete.
2930 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2931 (decode_miscellaneous): Delete.
2932 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2933 (decode_dp_misc): Delete.
2934 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2935 (decode_ld_st_word_ubyte): Delete.
2936 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2937 (decode_media): Delete.
2938 (arm_decode_media): Renamed from decode_media.
2939 (decode_b_bl_ldmstm): Delete.
2940 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2941 (decode_ext_reg_ld_st): Delete.
2942 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2943 (decode_unconditional): Delete.
2944 (arm_decode_unconditional): Renamed from decode_unconditional.
2948 Case insensitive lookups implementation.
2949 * dwarf2read.c: Include ctype.h.
2950 (struct mapped_index): New field version.
2951 (mapped_index_string_hash): New parameter index_version. New comment
2952 for it. Call tolower appropriately.
2953 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2954 Choose the right index version for mapped_index_string_hash.
2955 (dwarf2_read_index): Support also the index version 5. Initialize the
2956 new struct mapped_index field version.
2957 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2958 (find_slot): Explain the version needs. Pass INT_MAX for the new
2960 (write_psymtabs_to_index): Produce version 5.
2961 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2962 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2963 * psymtab.c (lookup_partial_symbol): Find the
2964 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2966 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2968 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2969 (completion_list_add_name): New variable ncmp, initialize it, use it.
2970 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2971 * utils.c (strcmp_iw): Support case_sensitive_off.
2972 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2973 New function comment part. New variables saved_string1,
2974 saved_string2 and case_pass. Add a proper second pass.
2978 Replace re_comp/re_exec by regcomp/regexec.
2979 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2980 (search_symbols_name_matches): Use them, use regexec.
2981 (search_symbols): New variable retval_chain, adjust the use of
2982 old_chain against it. Replace re_comp by regcomp. Use the new struct
2983 search_symbols_data fields, use regexec instead of re_exec.
2987 Format the code for the next patch.
2988 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2989 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2990 New variables c1 and c2.
2994 * infrun.c (proceed): Do not single-step into signal delivery
2995 when stepping off a breakpoint location.
2996 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2997 (insert_step_resume_breakpoint_at_caller): Likewise.
2998 (insert_step_resume_breakpoint_at_sal): Likewise.
2999 (insert_longjmp_resume_breakpoint): Likewise.
3003 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3007 * procfs.c (procfs_pass_signals): Fix advance declaration.
3011 * target.h (struct target_ops): Remove to_notice_signals;
3012 add to_pass_signals.
3013 (target_notice_signals): Remove.
3014 (target_pass_signals): Add prototype.
3015 * target.c (update_current_target): Remove to_notice_signals;
3016 mention to_pass_signals.
3017 (target_pass_signals): New function.
3018 (debug_to_notice_signals): Remove.
3019 (setup_target_debug): Do not install debug_to_notice_signals.
3021 * infrun.c (signal_pass): New global.
3022 (resume): Call target_pass_signals.
3023 (handle_inferior_event): Report all signals while stepping over
3024 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3025 are re-inserted when stepping over a signal handler.
3026 (signal_cache_update): New function.
3027 (signal_stop_update): Call it.
3028 (signal_print_update): Likewise.
3029 (signal_pass_update): Likewise.
3030 (handle_command): Call signal_cache_update and target_pass_signals
3031 instead of target_notice_signals.
3032 (_initialize_infrun): Initialize signal_pass.
3034 * linux-nat.c (pass_mask): New global.
3035 (linux_nat_pass_signals): New function.
3036 (linux_nat_create_inferior): Report all signals initially.
3037 (linux_nat_attach): Likewise.
3038 (linux_nat_resume): Use pass_mask to decide whether to directly
3039 handle an inferior signal.
3040 (linux_nat_wait_1): Likewise.
3041 (linux_nat_add_target): Install to_pass_signals callback.
3043 * nto-procfs.c (notice_signals): Remove.
3044 (procfs_resume): Do not call notice_signals.
3045 (procfs_notice_signals): Remove.
3046 (procfs_pass_signals): New function.
3047 (init_procfs_ops): Install to_pass_signals callback instead of
3048 to_notice_signals callback.
3049 (_initialize_procfs): Report all signals initially.
3051 * procfs.c (procfs_notice_signals): Remove.
3052 (procfs_pass_signals): New function.
3053 (procfs_target): Install to_pass_signals callback instead of
3054 to_notice_signals callback.
3055 (register_gdb_signals): Remove.
3056 (procfs_debug_inferior): Report all signals initially.
3057 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3059 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3060 parameters; use them instead of calling signal_..._state routines.
3061 (remote_notice_signals): Remove.
3062 (remote_start_remote): Report all signals initially.
3063 (remote_resume): Do not call remote_pass_signals.
3064 (_initialize_remote): Install to_pass_signals callback instead of
3065 to_notice_signals callback.
3069 * breakpoint.c (user_settable_breakpoint): Delete.
3070 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3071 (delete_command): Check user_breakpoint_p instead of looking at
3072 the breakpoint's type.
3073 (disable_command): Ditto.
3074 (enable_command): Ditto.
3075 (delete_trace_command): Use user_breakpoint_p instead of looking
3076 at the breakpoint number directly. When checking if there are
3077 user visible tracepoints, in order to know whether to ask the user
3078 for confirmation, check whether the breakpoint is actually a
3083 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3088 MI breakpoint notifications.
3090 * annotate.c (breakpoint_changed): Adjust parameter type.
3091 * breakpoint.c (set_breakpoint_condition): Adjust to change
3092 in breakpoint_modified type.
3093 (breakpoint_set_commands): Likewise.
3094 (do_map_commands_command): Likewise.
3095 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3096 changed after bumping hit count.
3097 (bpstat_stop_status): Likewise.
3098 (print_one_breakpoint_location): Don't wrap in tuple here.
3099 (print_one_breakpoint): Always print individual locations.
3100 For locations, use unnamed tuple.
3101 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3103 (create_catchpoint, create_syscall_event_catchpoint): Call
3104 breakpoint_created obsever.
3105 (mention): Don't call breakpoint_created observer.
3106 (create_breakpoint_sal): Call breakpoint_created observer.
3107 (create_breakpoint, watch_command_1): Likewise.
3108 (create_ada_exception_breakpoint): Likewise.
3109 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3110 (locations_are_equal): New.
3111 (update_breakpoint_locations): If locations were changed, notify.
3112 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3113 Call breakpoint_modified observer.
3115 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3116 (mi_cmd_break_insert): Don't set observers for modify and delete.
3117 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3118 (mi_breakpoint_created, mi_breakpoint_deleted)
3119 (mi_breakpoint_modified): New.
3120 (mi_interpreter_init): Hook the above.
3121 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3122 while -break-* commands are executing.
3123 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3124 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3126 (mi_ui_out_impl): Hook in mi_redirect.
3127 (mi_field_skip): True to the name, skip the field, don't output
3128 a field with an empty value.
3130 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3131 (gdbpy_breakpoint_deleted): Adjust.
3132 * tui/tui-hooks.c (tui_event_create_breakpoint)
3133 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3137 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3138 (procfs_remove_hw_watchpoint): Likewise.
3142 * remote.c (remote_start_remote): Ack packet after sending the
3147 * linux-nat.c: Move common macros to ...
3148 Include linux-ptrace.h.
3149 * common/linux-ptrace.h: ... here. New.
3153 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3154 !objfile_has_partial_symbols. New comment.
3155 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3156 SYM_READ_PSYMBOLS is not present. Extend the comment.
3157 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3161 * defs.h (ENUM_BITFIELD): Remove.
3166 * NEWS: Document the new gdbserver --once option.
3170 * MAINTAINERS: Update my email address.
3174 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3175 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3176 function call if __STDC_ISO_10646__ macro is defined.
3177 (intermediate_encoding): New prototype.
3178 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3179 to generate compile time error for unsupported gdb_wchar_t size.
3180 (ENDIAN_SUFFIX): New macro.
3181 (intermediate_encoding): New function.
3185 * ada-lang.c (struct add_partial_datum): Update the comment for
3186 expand_partial_symbol_name.
3187 (ada_add_partial_symbol_completions): Rename to ...
3188 (ada_expand_partial_symbol_name): ... here, change return type, update
3189 function comment, call symbol_completion_match instead of
3190 symbol_completion_add.
3191 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3192 and ada_expand_partial_symbol_name.
3193 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3195 (dw2_map_symbol_names): Remove.
3196 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3197 * psymtab.c (map_symbol_names_psymtab): Remove.
3198 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3199 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3201 (psym_functions): Unlist map_symbol_names_psymtab.
3202 (map_partial_symbol_names): Rename to ...
3203 (expand_partial_symbol_names): ... here, change the FUN type, call
3204 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3205 * psymtab.h (map_partial_symbol_names): Rename to ...
3206 (expand_partial_symbol_names): ... here, change the FUN type.
3207 * symfile.h (struct quick_symbol_functions): Update the description of
3208 expand_symtabs_matching. Remove map_symbol_names.
3209 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3210 (struct add_name_data): Update the comment for
3211 expand_partial_symbol_name.
3212 (add_partial_symbol_name): Rename to ...
3213 (expand_partial_symbol_name): ... here. Replace
3214 completion_list_add_name call by strncmp.
3215 (default_make_symbol_completion_list_break_on): Use now
3216 expand_partial_symbol_names and expand_partial_symbol_name.
3217 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3221 * dwarf2read.c (save_gdb_index_command): Replace format
3222 documentation with a pointer to the manual.
3226 * regcache.c: Include remote.h.
3227 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3228 (regcache_dump): Handle regcache_dump_remote.
3229 (maintenance_print_remote_registers): New function.
3230 (_initialize_regcache): Install "maint print remote-registers"
3232 * remote.c (map_regcache_remote_table): New function, factored out
3234 (init_remote_state): ... here.
3235 (remote_register_number_and_offset): New.
3236 * remote.h (remote_register_number_and_offset): Declare.
3240 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3241 null_ptid, assume and allow a NULL address space, instead of
3242 asking the target for the ptid's address space.
3243 * infrun.c (ptid_is_pid): Remove assertion.
3247 * windows-tdep.c (windows_xfer_shared_library):
3248 * windows-nat.c (get_module_name, windows_make_so):
3249 * v850-tdep.c (v850_handle_pushm):
3250 * utils.c (null_cleanup, gdb_realpath):
3251 * ui-out.c (get_next_header):
3252 * tracepoint.c (clear_traceframe_info):
3253 * symtab.c (lookup_symtab):
3254 * serial.h (struct serial_ops):
3255 * mipsread.c (read_alphacoff_dynamic_symtab):
3256 * infcmd.c (print_return_value):
3257 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3258 * f-exp.y (parse_number):
3259 * exceptions.c (catch_exceptions):
3260 * dummy-frame.c (dummy_frame_this_id):
3261 * defs.h (struct cleanup):
3262 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3263 * arm-tdep.c (arm_push_dummy_call):
3264 * amd64-tdep.h (amd64_collect_xsave):
3265 * amd64-tdep.c (amd64_collect_xsave):
3266 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3267 * README (typing): Remove duplicate words.
3268 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3269 * infrun.c (siginfo_value_read): Fix typo.
3270 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3271 * top.c (source_line_number): Add comma.
3275 * thread.c (any_live_thread_of_process): Prioritize threads
3276 that are not executing.
3277 * gdbthread.h (any_live_thread_of_process): Update comment
3278 as per above change.
3282 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3283 (scan_xcoff_symtab): Likewise.
3287 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3293 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3294 variables to simplify code and avoid == operator at end of
3295 line as this is against GNU coding standards.
3299 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3300 lm_name to name_lm to avoid conflict with lm_name function.
3304 ARI fixes: Use only lowercase function name for static functions.
3305 * nto-tdep.c (LM_ADDR): Rename to...
3306 (lm_addr): New function name.
3307 (nto_relocate_section_addresses): Adapt to change above.
3308 * solib-sunos.c (LM_ADDR): Rename to...
3309 (lm_addr): New function name.
3310 (LM_NEXT): Rename to...
3311 (lm_next): New function name.
3312 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3313 function name changes above.
3314 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3315 (lm_addr_from_link_map): New function name.
3316 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3317 (has_lm_dynamic_from_link_map): New function name.
3318 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3319 (lm_dynamic_from_link_map): New function name.
3320 (LM_ADDR_CHECK): Rename to...
3321 (lm_addr_check): New function name.
3322 (LM_NEXT): Rename to...
3323 (lm_next): New function name.
3324 (LM_PREV): Rename to...
3325 (lm_prev): New function name.
3326 (LM_NAME): Rename to...
3327 (lm_name): New function name.
3328 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3329 (ignore_first_link_map_entry): New function name.
3330 (svr4_keep_data_in_core): Adapt to function name changes above.
3331 (svr4_current_sos): Likewise.
3332 (enable_break): Likewise.
3333 (svr4_relocate_section_addresses): Likewise.
3338 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3339 sprintf. Simplify code and avoid loosing memory.
3340 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3341 (call0_frame_cache): Remove && operator from end of line.
3345 Fix libraries displacement if they change whether they were prelinked.
3346 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3347 does not match. Comment why.
3351 * corelow.c: Include wrapper.h.
3352 (core_open): Call now gdb_target_find_new_threads.
3353 * wrapper.c: Include target.h.
3354 (gdb_target_find_new_threads): New.
3355 * wrapper.h (gdb_target_find_new_threads): New declaration.
3359 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3360 even if !TARGET_HAS_EXECUTION.
3364 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3365 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3366 bfd_get_synthetic_symtab.
3367 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3368 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3369 parameter parent, remove the call to add_separate_debug_objfile.
3370 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3371 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3372 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3373 parent, new comment for it, call add_separate_debug_objfile for it.
3374 (symbol_file_add_separate): Pass objfile as the parameter parent,
3375 remove the call to add_separate_debug_objfile.
3376 (symbol_file_add_from_bfd): New parameter parent, pass it.
3377 (symbol_file_add): Pass NULL to the new parameter parent.
3378 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3382 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3387 Fix Python access to inlined frames.
3388 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3389 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3393 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3397 * MAINTAINERS: Add myself to write-after-approval section.
3401 * remote-sim.c (sim_command_completer): New function.
3402 (_initialize_remote_sim): Set completer to sim_command_completer.
3406 * breakpoint.c (print_exception_catchpoint): Rename to ...
3407 (print_it_exception_catchpoint): ... this.
3408 (gnu_v3_exception_catchpoint_ops): Update with new name
3409 for print_it_exception_catchpoint.
3413 * MAINTAINERS: Add myself for write after approval privileges.
3417 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3421 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3425 * breakpoint.c (save_breakpoints): Verify whether
3426 breakpoint_ops.print_recreate is defined before calling it.
3430 Fix failure with --enable-maintainer-mode.
3431 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3436 * symtab.c (search_symbols): Reorder the KIND description in the
3437 function comment. Remove the unused 4th element of types, types2,
3438 types3 and types4. New gdb_assert on KIND.
3439 (symtab_symbol_info): Remove the unused 4th element of classnames.
3440 New gdb_assert on KIND.
3441 * symtab.h (enum search_domain): New warning in the enum comment.
3442 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3447 Fix crash of gdb save-index on a STABS file.
3448 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3453 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3454 * dwarf2read.c: Include ctype.h.
3455 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3457 (dwarf2_add_field): Fix new_field->accessibility by calling
3458 dwarf2_default_access_attribute. Restructure setting accessibility
3460 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3461 is_private and is_protected by calling
3462 dwarf2_default_access_attribute.
3466 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3467 to the initialization.
3471 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3476 Remove support for old Cygwin 1.5 versions.
3477 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3478 function on old Cygwin version.
3479 * windows-nat.c: Remove cygwin version check and always define
3480 __USEWIDE for Cygwin compilation.
3484 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3486 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3487 (arm_copy_svc): Remove parameters INSN and TO.
3488 (decode_svc_copro): Update caller.
3489 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3490 from function pointer `copy_svc_os'.
3494 * arm-tdep.c (cleanup_branch): Set a correct return address in
3495 LR for ARM and Thumb.
3500 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3501 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3502 in the function comment, a new note on values compatibility.
3503 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3504 * symtab.h (SYMBOL_HASH_NEXT): New.
3508 * ppc-linux-nat.c (check_condition): Add len output parameter.
3509 Set it based on the memory region referenced in the condition
3510 expression. Update all callers.
3514 Fix crash regression on systems featuring .gdb_index.
3515 * objfiles.c (free_objfile): Move the
3516 forget_cached_source_info_for_objfile call earlier. Comment it.
3517 Extend the comment for objfile_free_data.
3521 Fix regression of displaying the debug format.
3522 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3527 * cli/cli-interp.c (struct captured_execute_command_args):
3529 (do_captured_execute_command): Remove.
3530 (safe_execute_command): Use TRY_CATCH.
3531 * cli/cli-script.c (struct wrapped_read_command_file_args):
3533 (wrapped_read_command_file): Remove.
3534 (script_from_file): Use TRY_CATCH.
3535 * exceptions.c (catch_exception): Remove.
3536 * exceptions.h (catch_exception): Remove.
3537 (deprecated_throw_reason): Update comment.
3538 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3539 argument to 'context'.
3540 (mi_execute_command): Use TRY_CATCH.
3541 * remote.c (struct start_remote_args): Remove.
3542 (remote_start_remote): Update; change arguments.
3543 (remote_open_1): Use TRY_CATCH.
3547 * tracepoint.c (scope_info): Update.
3548 * symtab.c (decode_line_spec): Update.
3549 * python/python.c (gdbpy_decode_line): Update.
3550 * linespec.h (decode_line_1): Update.
3551 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3552 (decode_compound, find_method, symtab_from_filename)
3553 (decode_variable): Likewise.
3554 * cli/cli-cmds.c (edit_command): Update.
3555 (list_command): Update.
3556 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3558 (create_breakpoint): Update.
3559 (until_break_command): Update.
3560 (addr_string_to_sals): Update.
3561 (decode_line_spec_1): Update.
3565 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3566 (do_captured_parse_breakpoint): Remove.
3567 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3568 Use TRY_CATCH directly.
3572 * symtab.h (free_symtab): Remove.
3573 (forget_cached_source_info_for_objfile): Declare.
3574 * symmisc.c (free_symtab): Remove.
3575 * source.c (forget_cached_source_info_for_objfile): New function.
3576 (forget_cached_source_info): Use it.
3577 * objfiles.c (free_objfile): Simplify check before calling
3578 clear_current_source_symtab_and_line. Call
3579 forget_cached_source_info_for_objfile.
3583 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3584 (new_symtab): Don't set `free_code' on symtab.
3585 (new_linetable): Properly handle size==0.
3586 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3587 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3589 * jv-lang.c (struct jv_per_objfile_data): New.
3590 (jv_per_objfile_free): Free the data.
3591 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3592 (get_java_class_symtab): Set the `dict' field on the
3593 jv_per_objfile_data.
3594 (free_class_block): Remove.
3595 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3600 * symfile.c (reread_symbols): Update.
3601 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3603 * objfiles.c (allocate_objfile): Update.
3604 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3606 * cp-namespace.c (lookup_symbol_file): Don't call
3607 lookup_possible_namespace_symbol.
3608 (initialize_namespace_symtab, get_possible_namespace_block)
3609 (free_namespace_block, cp_check_possible_namespace_symbols)
3610 (check_possible_namespace_symbols_loop)
3611 (check_one_possible_namespace_symbol)
3612 (lookup_possible_namespace_symbol): Remove.
3613 (maintenance_cplus_namespace): Replace with notice.
3614 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3618 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3619 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3620 * symmisc.c (free_symtab): Don't free debugformat.
3621 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3622 (record_debugformat, record_producer): Document.
3623 * buildsym.c (end_symtab): Don't save debugformat and producer
3625 (end_symtab): Don't free debugformat and producer fields.
3626 (record_debugformat): Don't call xstrdup.
3627 (record_producer): Likewise.
3631 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3632 (source_line_charpos, source_charpos_line): Remove.
3636 * symtab.h (domain_enum): Split in two...
3637 (enum search_domain): New.
3638 (search_symbols): Update.
3639 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3640 redundant declarations.
3641 (search_symbols): Change 'kind' argument to search_domain.
3643 (print_symbol_info): Likewise.
3644 (symtab_symbol_info): Likewise.
3645 * symfile.h (struct quick_symbol_functions)
3646 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3647 <expand_symtabs_matching>: Likewise.
3648 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3649 (expand_symtabs_matching_via_partial): Update.
3650 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3651 (dw2_expand_symtabs_for_function): Update.
3652 * block.h: Moved anonymous enum...
3653 * defs.h (enum block_enum): ... here. Now named.
3657 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3658 * version.in: Bump version to 7.3.50.20110403-cvs.
3662 * NEWS: Create a new section for the next release branch.
3663 Rename the section of the current branch, now that it has
3668 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3669 for "fpscr" in target description.
3673 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3674 initialize it. Delay HASH initialization. Strip the part after open
3675 parenthesis for languages with qualifiers. Call do_cleanups.
3679 * utils.c (report_command_stats): Don't print `-' for negative
3684 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3685 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3690 * breakpoint.h (bpdisp_text): Add declaration.
3691 * breakpoint.c (bpdisp_text): Make non-static.
3692 * ada-lang.c: #include "mi/mi-common.h".
3693 (print_it_exception): Rewrite to improve GDB/MI output.
3697 * arm-tdep.h (struct address_space): Add forward declaration.
3701 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3702 * arm-tdep.c (arm_override_mode): New global.
3703 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3704 execution mode heuristics.
3705 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3706 second single-step breakpoint if needed, using
3707 arm_insert_single_step_breakpoint.
3708 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3709 ARM execution mode, do not call thumb_get_next_pc_raw.
3710 (arm_get_next_pc): Encode execution mode in return value. Call
3711 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3712 (arm_insert_single_step_breakpoint): New function.
3713 (arm_software_single_step): Call it.
3714 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3715 argument to return execution mode of sigreturn target.
3716 (arm_linux_syscall_next_pc): Use it.
3717 (arm_linux_copy_svc): Update call.
3718 (arm_linux_software_single_step): Call
3719 arm_insert_single_step_breakpoint.
3723 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3728 * varobj.c (update_dynamic_varobj_children): Properly handle
3729 errors from iterator.
3733 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3734 struct linkage name twice.
3738 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3739 missing ">" to message.
3743 * varobj.c (instantiate_pretty_printer): Remove duplicate
3748 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3749 if neither saved value nor register available (e.g. signal frame).
3753 * macroexp.c (expand): Avoid uninitialized variable
3758 * breakpoint.c (break_range_command): Fix typo in comment.
3763 Implement support for PowerPC BookE ranged breakpoints.
3764 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3765 * breakpoint.h (struct bp_target_info) <length>: New member
3767 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3768 instead of struct breakpoint as argument, and also add ASPACE
3769 and BP_ADDR arguments. Update all callers.
3770 (struct breakpoint_ops) <print_one_detail>: New method.
3771 (struct breakpoint) <addr_string_range_end>: New member variable.
3772 * breakpoint.c (breakpoint_location_address_match): Add function
3774 (insert_bp_location): Set bl->target_info.length.
3775 (breakpoint_here_p): Call breakpoint_location_address_match.
3776 (moribund_breakpoint_here_p): Likewise.
3777 (regular_breakpoint_inserted_here_p): Likewise.
3778 (breakpoint_thread_match): Likewise.
3779 (bpstat_stop_status): Likewise.
3780 (bpstat_check_location): Move call to
3781 breakpoint_ops.breakpoint_hit to the top.
3782 (print_one_breakpoint_location): Call
3783 breakpoint_ops.print_one_detail if available.
3784 (breakpoint_address_match_range): New function.
3785 (breakpoint_location_address_match): Likewise.
3786 (breakpoint_locations_match): Compare the length field of the
3788 (hw_breakpoint_used_count): Count resources used by all locations
3789 in a breakpoint, and use breakpoint_ops.resources_needed if
3791 (breakpoint_hit_ranged_breakpoint): New function.
3792 (resources_needed_ranged_breakpoint): Likewise.
3793 (print_it_ranged_breakpoint): Likewise.
3794 (print_one_ranged_breakpoint): Likewise.
3795 (print_one_detail_ranged_breakpoint): Likewise.
3796 (print_mention_ranged_breakpoint): Likewise.
3797 (print_recreate_ranged_breakpoint): Likewise.
3798 (ranged_breakpoint_ops): New structure.
3799 (find_breakpoint_range_end): New function.
3800 (break_range_command): Likewise.
3801 (delete_breakpoint): Free addr_string_range_end.
3802 (update_breakpoint_locations): Add SALS_END argument. Update
3803 all callers. Calculate breakpoint length if a non-zero SALS_END
3804 is given. Call breakpoint_locations_match instead of
3805 breakpoint_address_match.
3806 (reset_breakpoint): Find SaL of the end of the range if B is a
3808 (_initialize_breakpoint): Register break-range command.
3809 * defs.h (print_core_address): Add function prototype.
3810 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3812 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3813 (ppc_linux_remove_hw_breakpoint): Likewise.
3814 (_initialize_ppc_linux_nat): Initialize
3815 to_ranged_break_num_registers.
3816 * target.c (update_current_target): Add comment about
3817 to_ranged_break_num_registers.
3818 (target_ranged_break_num_registers): New function.
3819 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3821 (target_ranged_break_num_registers): Add function prototype.
3822 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3823 * utils.c (print_core_address): ... here.
3827 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3828 variable compiler warning.
3832 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3834 (re_set_breakpoint): ... to here ...
3835 (addr_string_to_sals): ... and here.
3839 * Makefile.in (SFILES): Add missing C sources.
3840 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3841 Add missing headers.
3845 * .gitignore: New file.
3849 * NEWS: Mention new cfi device simulation.
3853 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3854 otherwise anonymous types.
3855 (dwarf2_name): Likewise.
3856 * valops.c (value_struct_elt_for_reference): Refine artificial
3857 type logic. Call error if j==-1.
3861 Fix false GCC warning.
3862 * infcall.c (find_function_addr): Initialize funaddr.
3866 Fix mingw compilation with --enable-targets=all.
3867 * remote-mips.c (gdb_usleep.h): Include header.
3868 (mips_enter_debug): Use gdb_usleep instead of sleep.
3872 Support resolution of STT_GNU_IFUNC via breakpoints.
3873 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3874 bp_gnu_ifunc_resolver_return.
3875 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3876 the loop. Support bp_gnu_ifunc_resolver and
3877 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3878 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3880 (bptype_string, print_one_breakpoint_location): Support
3881 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3882 (user_settable_breakpoint): Return true also for
3883 bp_gnu_ifunc_resolver.
3884 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3885 bp_gnu_ifunc_resolver_return.
3886 (set_breakpoint_location_function): New parameter explicit_loc,
3887 describe it. Call find_pc_partial_function_gnu_ifunc with new
3888 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3889 EXPLICIT_LOC is not set.
3890 (set_raw_breakpoint): Set EXPLICIT_LOC for
3891 set_breakpoint_location_function.
3892 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3893 set_breakpoint_location_function.
3894 (mention): Support bp_gnu_ifunc_resolver and
3895 bp_gnu_ifunc_resolver_return.
3896 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3897 set_breakpoint_location_function.
3898 (update_breakpoint_locations): Remove static.
3899 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3900 bp_gnu_ifunc_resolver_return.
3901 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3902 bp_gnu_ifunc_resolver_return.
3903 (update_breakpoint_locations): New declaration.
3904 * elfread.c: Include gdbthread.h and regcache.h.
3905 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3907 (elf_gnu_ifunc_fns): Install them.
3908 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3909 (stub_gnu_ifunc_resolver_return_stop): New functions.
3910 (stub_gnu_ifunc_fns): Install them.
3911 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3912 and gnu_ifunc_resolver_return_stop.
3913 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3917 STT_GNU_IFUNC reader implementation.
3918 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3919 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3920 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3921 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3922 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3923 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3924 (elf_gnu_ifunc_resolve_addr): New.
3925 (elf_symfile_read): Call elf_rel_plt_read.
3926 (elf_gnu_ifunc_fns): New.
3927 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3928 Install elf_gnu_ifunc_fns.
3929 * infcall.c (find_function_return_type): New function.
3930 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3931 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3932 (stub_gnu_ifunc_resolve_name): New functions.
3933 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3934 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3935 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3939 Code cleanup for later STT_GNU_IFUNC support.
3940 * infcall.c (find_function_addr): Remove variable code, use explicit
3941 dereferences for it. Move VALUE_TYPE initialization later.
3945 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3946 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3947 (clear_pc_function_cache): Clear it.
3948 (find_pc_partial_function): Rename to ...
3949 (find_pc_partial_function_gnu_ifunc): ... this function. New
3950 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3951 (find_pc_partial_function): New wrapper for this function.
3952 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3956 GDB internal type support for STT_GNU_IFUNC.
3957 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3958 (elf_symtab_read): Set mst_text_gnu_ifunc for
3959 BSF_GNU_INDIRECT_FUNCTION.
3960 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3961 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3962 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3963 nodebug_got_plt_symbol.
3964 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3965 (TYPE_GNU_IFUNC): New.
3966 (struct main_type): New field flag_gnu_ifunc.
3967 (struct builtin_type): New field builtin_func_func.
3968 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3969 nodebug_got_plt_symbol.
3970 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3971 (in_gnu_ifunc_stub): New.
3972 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3974 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3975 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3976 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3978 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3979 * symtab.c (search_symbols): Likewise.
3980 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3981 and mst_slot_got_plt.
3982 (in_gnu_ifunc_stub): New declaration.
3986 Support a ring of related breakpoints.
3987 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3988 other functions, add gdb_assert.
3989 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3990 watchpoint_del_at_next_stop.
3991 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3992 (bpstat_stop_status): Handle ring in related_breakpoint.
3993 (set_raw_breakpoint_without_location): Initialize ring in
3995 (delete_breakpoint): Handle ring in related_breakpoint, use
3996 watchpoint_del_at_next_stop.
3997 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4002 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4003 with `language_minimal'.
4007 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4008 instead of checking for STT_ARM_TFUNC symbol type.
4012 * linespec.c (symbol_found): Restore line-based result for
4013 non-LOC_LABEL symbols.
4017 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4018 instead of strcmp for comparison.
4019 (tui_source_is_displayed): Likewise.
4020 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4024 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4026 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4027 (find_partial_die_in_comp_unit): Likewise in comment.
4028 (read_attribute_value): Likewise.
4029 (lookup_die_type): Likewise.
4030 (dwarf_form_name): Likewise.
4031 (dump_die_shallow): Likewise.
4032 (follow_die_ref_or_sig): Likewise.
4036 PR breakpoints/11816:
4037 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4038 (decode_compound): Update.
4039 (find_function_symbol): New function.
4040 (decode_dollar): Update.
4041 (decode_label): Add 'function_symbol' parameter. Handle
4042 function-relative labels.
4043 (decode_variable): Update.
4044 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4045 not its line. Set `special_display' and canonical name for
4050 * linespec.h (struct linespec_result) <special_display>: New
4052 * breakpoint.h (struct breakpoint) <display_canonical>: New
4054 * breakpoint.c (print_breakpoint_location): Respect
4056 (create_breakpoint_sal): Add 'display_canonical' parameter.
4057 (create_breakpoints_sal): Update.
4058 (create_breakpoint): Update.
4062 * symtab.c (decode_line_spec): Update.
4063 * linespec.c (build_canonical_line_spec): Change type of
4065 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4066 (find_method, decode_all_digits, decode_dollar, decode_label)
4067 (symbol_found): Likewise.
4068 (init_linespec_result): New function.
4069 * breakpoint.c (struct captured_parse_breakpoint_args)
4070 <canonical_p>: New field, replaces addr_string_p.
4071 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4073 (parse_breakpoint_sals): Likewise.
4074 (do_captured_parse_breakpoint): Update.
4075 (create_breakpoint): Use struct linespec_result.
4076 (until_break_command): Update.
4077 (breakpoint_re_set_one): Update.
4078 (decode_line_spec_1): Update.
4079 * linespec.h (struct linespec_result): New.
4080 (init_linespec_result): Declare.
4084 * regcache.c (regcache_raw_read): If the target didn't supply a
4085 given raw register, mark it as unavailable.
4089 * breakpoint.c (clear_command): Use filename_cmp
4090 instead of strcmp for comparison.
4091 * buildsym.c (watch_main_source_file_lossage): Likewise.
4092 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4093 checking just for slash.
4094 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4095 strrchr and filename_cmp instead of strcmp for filenames.
4096 (add_old_header_file): Use filename_cmp
4097 instead of strcmp for comparison.
4098 * exec.c (exec_set_section_address): Likewise.
4099 * macrotab.c (macro_lookup_inclusion): Likewise.
4100 (macro_lookup_inclusion): Likewise.
4101 * elfread.c (_initialize_elfread): Likewise.
4102 (elfstab_offset_sections): Likewise.
4103 (elfstab_offset_sections): Use lbasename instead of
4105 * mdebugread.c (parse_partial_symbols): Likewise.
4106 (arse_partial_symbols): Use filename_(n)cmp instead of
4107 str(n)cmp for comparison.
4108 * minsyms.c (lookup_minimal_symbol): Likewise.
4109 * psymtab.c (read_psymtabs_with_filename): Likewise.
4110 * solib.c (solib_read_symbols): Likewise.
4111 (reload_shared_libraries_1): Likewise.
4112 * symmisc.c (maintenance_print_symbols): Likewise.
4113 * symfile.c (separate_debug_file_exists): Likewise.
4114 (reread_symbols): Likewise.
4115 (find_separate_debug_file_by_debuglink): Likewise.
4116 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4117 * source.c (add_path): Likewise.
4118 * symtab.c (filename_seen): Likewise.
4119 (file_matches): Likewise.
4120 (print_symbol_info): Likewise.
4121 (maybe_add_partial_symtab_filename): Likewise.
4122 (make_source_files_completion_list): Likewise.
4123 * xml-syscall.c (init_sysinfo): Likewise.
4124 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4125 IS_DIR_SEPARATOR for checking for trailing path separator.
4129 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4130 label abort_expression.
4131 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4132 DWARF_VALUE_OPTIMIZED_OUT.
4137 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4138 to linkage_name. Invert its value. Update the function comment.
4139 (c_type_print_varspec_suffix): Invert it at the caller.
4140 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4144 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4145 errors when reading the `stop_pc'.
4146 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4151 * NEWS: Document gdb.Write stream keyword.
4157 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4158 (dwarf2_add_field): Fix new_field->accessibility for
4159 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4165 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4166 other error classes. Do not print stack trace.
4170 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4171 (dwarf2_add_field): Fix new_field->accessibility for
4172 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4176 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4177 encountering a load via a non-SP register.
4181 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4182 field in returned unwinder.
4186 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4190 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4195 * frame.c (frame_unwind_register): Throw an error if unwinding the
4197 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4198 an unwind stop reason.
4199 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4200 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4201 UNWIND_UNAVAILABLE>: New.
4202 * inline-frame.c (inline_frame_unwind): Install
4203 default_frame_unwind_stop_reason.
4204 * frame-unwind.c: Include "exceptions.h".
4205 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4206 (default_frame_unwind_stop_reason): New.
4207 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4208 (default_frame_unwind_stop_reason): Declare.
4209 (struct frame_unwind) <stop_reason>: New function pointer.
4211 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4212 * dwarf2-frame.c: Include exceptions.h.
4213 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4214 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4215 computing the CFA. If such an error was thrown, set
4216 unavailable_retaddr.
4217 (dwarf2_frame_unwind_stop_reason): New.
4218 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4220 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4221 (dwarf2_signal_frame_unwind): Ditto.
4223 * amd64-tdep.c: Include "exceptions.h".
4224 (struct amd64_frame_cache): New field "base_p".
4225 (amd64_init_frame_cache): Clear it.
4226 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4227 Avoid reading registers with functions that throw if the register
4228 is not necessary to compute the frame base.
4229 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4230 swallowing NOT_AVAILABLE_ERROR.
4231 (amd64_frame_unwind_stop_reason): New.
4232 (amd64_frame_this_id): Don't build a frame id if the frame base
4234 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4235 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4236 base_p if the frame base was computable.
4237 (amd64_sigtramp_frame_unwind_stop_reason): New.
4238 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4239 frame base was unavailable.
4240 (amd64_sigtramp_frame_unwind): Install
4241 amd64_sigtramp_frame_unwind_stop_reason.
4242 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4243 base_p if the frame base was computable.
4244 (amd64_epilogue_frame_unwind_stop_reason): New.
4245 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4246 frame base was unavailable.
4247 (amd64_epilogue_frame_unwind): Install
4248 amd64_epilogue_frame_unwind_stop_reason.
4249 * i386-tdep.c: Include "exceptions.h".
4250 (struct i386_frame_cache): New field "base_p".
4251 (i386_init_frame_cache): Clear it.
4252 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4253 Avoid reading registers with functions that throw if the register
4254 is not necessary to compute the frame base.
4255 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4256 swallowing NOT_AVAILABLE_ERROR.
4257 (i386_frame_unwind_stop_reason): New.
4258 (i386_frame_this_id): Don't build a frame id if the frame base was
4260 (i386_frame_prev_register): Handle unavailable SP.
4261 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4262 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4263 base_p if the frame base was computable.
4264 (i386_epilogue_frame_unwind_stop_reason): New.
4265 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4266 base was unavailable.
4267 (i386_epilogue_frame_unwind): Install
4268 i386_epilogue_frame_unwind_stop_reason.
4269 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4270 base_p if the frame base was computable.
4271 (i386_sigtramp_frame_unwind_stop_reason): New.
4272 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4273 base was unavailable.
4274 (i386_sigtramp_frame_unwind): Install
4275 i386_sigtramp_frame_unwind_stop_reason.
4276 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4277 type's size, not the register's.
4278 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4280 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4281 default_frame_unwind_stop_reason.
4282 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4283 (alpha_heuristic_frame_unwind): Ditto.
4284 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4285 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4286 * avr-tdep.c (avr_frame_unwind): Ditto.
4287 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4289 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4290 * frv-tdep.c (frv_frame_unwind): Ditto.
4291 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4292 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4293 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4294 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4295 (hppa_stub_frame_unwind): Ditto.
4296 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4297 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4298 (ia64_libunwind_frame_unwind)
4299 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4300 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4301 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4302 * m32c-tdep.c (m32c_unwind): Ditto.
4303 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4304 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4305 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4306 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4307 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4308 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4309 * mep-tdep.c (mep_frame_unwind): Ditto.
4310 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4311 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4312 (mips_stub_frame_unwind): Ditto.
4313 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4314 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4315 * mt-tdep.c (mt_frame_unwind): Ditto.
4316 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4317 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4318 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4319 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4320 (s390_sigtramp_frame_unwind): Ditto.
4321 * score-tdep.c (score_prologue_unwind): Ditto.
4322 * sh-tdep.c (sh_frame_unwind): Ditto.
4323 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4324 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4325 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4326 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4327 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4328 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4329 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4330 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4331 (sparc64obsd_trapframe_unwind): Ditto.
4332 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4333 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4334 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4335 * v850-tdep.c (v850_frame_unwind): Ditto.
4336 * vax-tdep.c (vax_frame_unwind): Ditto.
4337 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4338 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4339 * xtensa-tdep.c (xtensa_unwind): Ditto.
4343 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4344 there's always a frame. Use get_frame_pc_if_available instead of
4345 get_frame_pc, and if there's no PC available, don't look up a
4350 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4355 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4360 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4361 * frame.c (frame_unwind_caller_pc_if_available): New.
4362 * stack.c (frame_info): Handle unavailable PC.
4366 * frame.c (frame_unwind_pc): Rename to ...
4367 (frame_unwind_pc_if_available): ... this. New `pc' output
4368 parameter. Change return type to int. Gracefully handle
4369 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4370 happened, or 1 otherwise.
4371 (frame_unwind_pc): Reimplement on top of
4372 frame_unwind_pc_if_available.
4373 (get_frame_func): Rename to ...
4374 (get_frame_func_if_available): New `pc' output parameter. Change
4375 return type to int. Gracefully handle the PC not being available.
4376 (get_frame_func): Reimplement on top of
4377 get_frame_func_if_available.
4378 (select_frame): Handle the PC being unavailable.
4379 (get_prev_frame): Handle the PC being unavailable.
4380 (get_frame_pc_if_available): New.
4381 (get_frame_address_in_block_if_available): New.
4382 (find_frame_sal): Handle the frame PC not being available.
4383 * frame.h (get_frame_pc_if_available): Declare.
4384 (get_frame_address_in_block_if_available): Declare.
4385 (get_frame_func_if_available): Declare.
4386 * stack.c (print_frame_info): Handle the PC being unavailable.
4387 (find_frame_funname): Ditto.
4388 (print_frame): Handle the PC being unavailable.
4389 (get_frame_language): Ditto.
4390 * blockframe.c (get_frame_block): Ditto.
4391 * macroscope.c (default_macro_scope): Ditto.
4392 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4396 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4397 NOT_AVAILABLE_ERROR when evaluating the location expression.
4401 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4402 returning that the register piece is unavailable/optimized out.
4403 (write_pieced_value): Handle get_frame_register_bytes returning
4404 that the register piece is unavailable/optimized out when doing a
4405 read-modify write of a bitfield.
4406 * findvar.c (value_from_register): Handle get_frame_register_bytes
4407 returning that the register piece is unavailable/optimized out.
4408 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4409 and `unavailablep'. Throw error on bad debug info. Use
4410 frame_register instead of frame_register_read, to fill in the new
4412 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4414 * valops.c: (value_assign): Adjust, and handle
4415 get_frame_register_bytes failing.
4416 * spu-tdep.c: Include exceptions.h.
4417 (spu_software_single_step): Adjust, and handle
4418 get_frame_register_bytes failing.
4419 (spu_get_longjmp_target): Ditto.
4420 * gdbarch.sh (register_to_value): Change to return int. New
4421 parameters `optimizedp' and `unavailablep'.
4422 * gdbarch.h, gdbarch.c: Regenerate.
4423 * i386-tdep.c (i386_register_to_value): Adjust to new
4424 gdbarch_register_to_value interface.
4425 * i387-tdep.c (i387_register_to_value): Ditto.
4426 * i387-tdep.h (i387_register_to_value): Ditto.
4427 * alpha-tdep.c (alpha_register_to_value): Ditto.
4428 * ia64-tdep.c (ia64_register_to_value): Ditto.
4429 * m68k-tdep.c (m68k_register_to_value): Ditto.
4430 * mips-tdep.c (mips_register_to_value): Ditto.
4431 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4435 * findvar.c (value_of_register): Mark the value as unavailable, if
4436 the register is unavailable.
4437 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4438 (frame_register): New `unavailablep' parameter.
4439 (frame_register_read): Update comment.
4440 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4441 Set it if the register is unavailable. If the register is
4442 unavailable, clear the output buffer.
4443 (frame_register): New `unavailablep' parameter. Pass it down.
4444 (frame_unwind_register): Adjust.
4445 (put_frame_register): Adjust.
4446 (frame_register_read): Adjust. Also return false if the register
4448 (frame_register_unwind_location): Adjust.
4449 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4450 is unavailable, mark the value accordingly.
4451 * stack.c (frame_info): Handle unavailable registers.
4455 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4456 simplify, using regcache_cooked_read.
4460 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4461 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4462 (regcache_raw_read_unsigned, regcache_raw_read_part)
4463 (regcache_cooked_read, regcache_cooked_read_signed)
4464 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4465 (regcache_cooked_read_ftype): Change return to enum
4467 * regcache.c: Include exceptions.h
4468 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4469 (do_cooked_read): Change return to enum register_status. Always
4470 forward to regcache_cooked_read.
4471 (regcache_raw_read): Change return to enum register_status. If
4472 the register is not REG_VALID, memset the buffer. Return the
4474 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4475 return the register's status.
4476 (regcache_raw_read_unsigned): Ditto.
4477 (regcache_cooked_read): Change return to enum register_status.
4478 Assert that with read-only regcaches, the register's status must
4479 be known. If the regcache is read-only, and the register is not
4480 REG_VALID, memset the buffer. Return the register's status.
4481 (regcache_cooked_read_signed): Change return to enum
4482 register_status. Handle non-REG_VALID registers and return the
4484 (regcache_cooked_read_unsigned): Change return to enum
4485 register_status. Handle non-REG_VALID registers and return the
4487 (regcache_xfer_part, regcache_raw_read_part)
4488 (regcache_cooked_read_part): Change return to enum
4489 register_status. Return the register's status.
4490 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4492 (regcache_dump): Handle unavailable cooked registers.
4493 * frame.c (do_frame_register_read): Adjust interface to match
4494 regcache_cooked_read_ftype.
4495 * gdbarch.sh (pseudo_register_read): Change return to enum
4497 * gdbarch.h, gdbarch.c: Regenerate.
4499 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4501 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4502 register_status. If reading a raw register indicates the raw
4503 register is not valid, return the raw register's status,
4504 otherwise, return REG_VALID.
4505 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4506 register_status. Handle non-REG_VALID raw registers and return
4507 the register's status.
4508 * arm-tdep.c (arm_neon_quad_read)
4509 (arm_pseudo_read): Change return to enum register_status. Handle
4510 non-REG_VALID raw registers and return the register's status.
4511 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4512 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4513 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4514 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4515 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4517 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4518 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4519 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4520 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4521 (m32c_pseudo_register_read): Change return to enum
4522 register_status. Adjust.
4523 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4524 enum register_status. Return the register's status.
4525 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4526 register_status. Return the register's status.
4527 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4528 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4529 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4530 * rs6000-tdep.c (move_ev_register_func): New typedef.
4531 (e500_move_ev_register): Use it. Change return to enum
4532 register_status. Return the register's status.
4533 (do_regcache_raw_read): New function.
4534 (do_regcache_raw_write): New function.
4535 (e500_pseudo_register_read): Change return to enum
4536 register_status. Return the register's status. Use
4537 do_regcache_raw_read.
4538 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4539 (dfp_pseudo_register_read): Change return to enum register_status.
4540 Return the register's status.
4541 (vsx_pseudo_register_read): Ditto.
4542 (efpr_pseudo_register_read): Ditto.
4543 (rs6000_pseudo_register_read): Ditto.
4544 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4545 register_status. Return the register's status.
4546 * sh64-tdep.c (pseudo_register_read_portions): New function.
4547 (sh64_pseudo_register_read): Change return to enum
4548 register_status. Use pseudo_register_read_portions. Return the
4550 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4551 register_status. Return the register's status.
4552 * sh-tdep.c (pseudo_register_read_portions): New function.
4553 (sh_pseudo_register_read): Change return to enum register_status.
4554 Use pseudo_register_read_portions. Return the register's status.
4555 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4556 enum register_status. Return the register's status.
4557 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4558 * spu-tdep.c (spu_pseudo_register_read_spu)
4559 (spu_pseudo_register_read): Ditto.
4560 * xtensa-tdep.c (xtensa_register_read_masked)
4561 (xtensa_pseudo_register_read): Ditto.
4562 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4566 * python/py-value.c (valpy_getitem): Fix formatting of error function
4571 ARI fixes: Add missing internationalization markups throughout
4573 * darwin-nat-info.c: Ditto.
4576 * mi/mi-main.c: Ditto.
4580 ARI fixes: Add missing internationalization markups throughout
4583 * cp-name-parser.y: Ditto.
4586 * objc-exp.y: Ditto.
4591 ARI fixes: Messages should have no trailing new lines.
4592 * darwin-nat.c (mach_check_error): Remove trailing new line from
4593 warning function call message.
4594 * record.c (bfdcore_read): Idem for error call.
4598 * common/signals.c (target_signal_from_host): Add _ markup to error
4599 function call message.
4600 (target_signal_to_host): Add _ markup and remove trailing new line
4601 from warning call message.
4602 (target_signal_from_command): Add _ markup to error function call
4609 * python/python.c (gdbpy_write): Accept a stream argument and
4610 operate to the appropriate stream.
4611 (gdbpy_flush): Likewise.
4612 (_initialize_python): Add stream constants.
4613 (finish_python_initialization): Add GdbOutputErrorFile class.
4617 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4621 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4622 to store_signed_integer. Add debug message when relocating CALL
4623 instructions. Fix formatting of debug message.
4624 * i386-tdep.c (i386_relocate_instruction): Ditto.
4628 * target.h (struct target_ops): Remove to_lookup_symbol field.
4629 (target_lookup_symbol): Delete macro.
4630 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4631 (update_current_target, setup_target_debug): Remove handling
4632 of to_lookup_symbol target_ops field.
4633 * ada-tasks.c (get_known_tasks_addr): Remove use of
4634 target_lookup_symbol.
4635 * coffread.c (coff_symtab_read): Likewise.
4636 * dbxread.c (read_dbx_symtab): Ditto.
4641 * configure.ac: Add getthrds declaration check.
4642 * configure, config.in: Regenerate.
4643 * aix-thread.c (getthrds): Declare only if not already declared
4644 in procinfo.h. More declaration out of get_signaled_thread to
4649 * python/py-symtab.c: Populate symtab_object_methods,
4651 (stpy_is_valid): New function.
4652 (salpy_is_valid): Ditto.
4653 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4654 (sympy_is_valid): New function.
4655 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4656 (objfpy_is_valid): New function.
4657 * python/py-inferior.c: Populate inferior_object_methods.
4658 (infpy_is_valid): New function.
4659 * python/py-infthread.c: Populate thread_object_methods.
4660 (thpy_is_valid): New function.
4661 * python/py-block.c: Declare block_object_methods. Populate. Declare
4662 block_iterator_object_methods. Populate.
4663 (blpy_is_valid): New function.
4664 (blpy_iter_is_valid): Ditto.
4668 * linespec.c (find_methods): Canonicalize NAME before looking
4670 (name_end): New function.
4671 (keep_name_info): New function.
4672 (decode_line_1): Use keep_name_info.
4673 (decode_compound): Likewise.
4674 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4675 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4678 * linespec.c (locate_first_half): Keep overload information, too.
4679 (decode_compound): Use a string to represent break characters
4681 If P points to a break character, do not increment it.
4682 For C++ and Java, keep overload information and relevant keywords.
4683 If we cannot find a symbol, search the minimal symbols.
4686 * linespec.c (decode_compound): Rename SAVED_ARG to
4688 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4690 Pass a valid block to lookup_symbol.
4691 (lookup_prefix_sym): Likewise.
4692 (find_method): Construct search name based on SYM_CLASS instead
4694 * psymtab.c (lookup_partial_symbol): Add language parameter.
4695 (lookup_symbol_aux_psymtabs): Likewise.
4696 Don't assume that the psymtab we found was the right one. Search
4697 for the desired symbol in the symtab to be certain.
4698 (psymtab_search_name): New function.
4699 (lookup_partial_symbol): Use psymtab_search_name.
4700 Add language parameter.
4701 (read_symtabs_for_function): Add language parameter and pass to
4702 lookup_partial_symbol.
4703 (find_symbol_file_from_partial): Likewise.
4708 * dwarf2read.c (noop_record_line): New function.
4709 (dwarf_decode_lines): Ignore line tables for GCd functions.
4713 Fix ARI warnings about new lines at the end of messages, which
4714 are unneeded as there is a new line added at the end of the message
4716 * darwin-nat.c (darwin_stop_inferior): Ditto.
4717 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4718 * dfp.c (decimal_to_number): Ditto.
4719 * exec.c (print_section_info): Ditto.
4720 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4721 * osdata.c (get_osdata): Ditto.
4722 * record.c (bfdcore_write): Ditto.
4723 * remote-mips.c (mips_readchar): Ditto.
4724 * remote.c (read_ptid): Ditto.
4725 * ser-mingw.c (ser_windows_raw): Ditto.
4726 * tracepoint.c (add_local_symbols): Ditto.
4727 * windows-nat.c (fake_create_process): Ditto.
4731 * tracepoint.c (stop_tracing): Don't declare.
4732 * event-top.c (after_char_processing_hook): Add `(void)'.
4736 * NEWS: Add Parameter sub-classing description.
4740 * MAINTAINERS: Update my e-mail address.
4744 * MAINTAINERS: Add myself for write after approval privileges.
4748 * frame.c (find_frame_sal): Assert sym is not null.
4750 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4752 * objc-lang.c (selectors_info): Check strchr for null result.
4754 * stabsread.c (define_symbol): Guard against bad stabstring input.
4758 Remove trailing spaces and tabulations from pascal language
4763 p-valprint.c: Ditto.
4767 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4768 than LOW. Comment it.
4769 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4770 HIGHPC not strictly higher than LOWPC.
4774 Fix formatting of function declarations returning a pointer in
4776 * varobj.c (varobj_add_child): Ditto.
4777 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4778 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4782 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4783 for the "generic" vector ABI used with GCC 4.3 and later.
4784 (ppc64_sysv_abi_return_value): Likewise.
4788 * infcall.c (call_function_by_hand): Function return value is
4789 always a non_lval, even when using struct_return.
4793 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4794 (map_display_numbers): New.
4795 (do_delete_display): New.
4796 (undisplay_command): Use map_display_numbers.
4797 (do_enable_disable_display): New.
4798 (enable_disable_display_command): New function.
4799 (enable_display): Delete.
4800 (enable_display_command): New.
4801 (disable_display_command): Reimplement.
4802 (_initialize_printcmd): Adjust "enable display" command to use
4803 `enable_display_command' as callback.
4807 * NEWS: Add Python breakpoint 'stop' operation.
4811 * NEWS: Delete duplicate entry. Fix typo.
4815 Fix ARI warning about function names in first column.
4816 Put prototype declaration on same line as return type.
4817 * objc-exp.y: Ditto.
4819 * python/py-stopevent.h: Ditto.
4820 For long function names, split parameters to
4821 allow function name on same line as return type.
4822 * solib-pa64.c: Ditto.
4825 For long function declaration, use single line.
4826 * hppa-tdep.h: Ditto.
4827 * inferior.h: Ditto.
4831 * python/python.h: Declare gdbpy_should_stop and
4832 gdbpy_breakpoint_has_py_cond.
4833 * python/python.c: Add python.h to includes. Remove python.h from
4834 HAVE_PYTHON definition
4835 (gdbpy_should_stop): New dummy function.
4836 (gdbpy_breakpoint_has_py_cond): New dummy function.
4837 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4838 sub-classing capabilities.
4839 (gdbpy_should_stop): New function.
4840 (gdbpy_breakpoint_has_py_cond): New function.
4841 (local_setattro): New function.
4842 * breakpoint.c (condition_command): Add check for Python 'stop'
4844 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4845 operation function as part of stop/continue tests.
4850 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4851 (needs_frame_dwarf_call): Likewise.
4855 Fix ARI warning about functions without parameters that do not
4857 * breakpoint.c (all_tracepoints): Replace () by (void).
4858 * f-exp.y (match_string_literal): Ditto.
4860 * m2-exp.y (yylex): Ditto.
4861 * mep-tdep.c (current_me_module): Ditto.
4862 (current_options): Ditto.
4863 (current_cop_data_bus_width): Ditto.
4864 (current_cr_names): Ditto.
4865 (current_cr_is_float): Ditto.
4866 (current_ccr_names): Ditto.
4867 * objc-exp.y (yylex): Ditto.
4868 * p-exp.y (yylex): Ditto.
4869 * remote.c (send_interrupt_sequence): Ditto.
4870 * tracepoint.c (current_trace_status): Ditto.
4871 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4872 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4876 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4877 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4878 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4879 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4880 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4882 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4883 (delete_async_event_handler): Ditto.
4885 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4887 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4889 * top.c (set_verbose): Assert showcmd was found.
4893 * xtensa-tdep.c (warning_once): Correct style issues.
4897 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4901 * common/aclocal.m4: Remove.
4905 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4906 (xtensa_write_register, xtensa_read_register): Likewise.
4907 (xtensa_hextochar): Removed.
4908 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4912 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
4913 (xtensa_call0_frame_cache_t): Update comments. New fields added.
4914 (xtensa_alloc_frame_cache): Add initialization for new fields.
4915 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4916 (warning_once): New function.
4917 (xtensa_insn_kind): New item c0opc_and.
4918 (call0_classify_opcode): Add the case for AND instruction.
4919 (call0_track_op): Change arguments. New local variable litbase.
4920 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4921 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4923 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
4924 (call0_analyze_prologue): Update the comments. Change arguments.
4925 Add the variety of updates to handle extended prologues, which now can
4926 conduct dynamic stack adjustments.
4927 (call0_frame_cache): Likewise.
4928 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4929 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4933 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4934 (cmd_qtframe): Ditto.
4935 (cmd_qtbuffer): Ditto.
4936 (cmd_bigqtbuffer): Ditto.
4940 * tracepoint.c (trace_actions_command): Update.
4941 * thread.c (thread_apply_command): Update.
4942 * reverse.c (delete_bookmark_command): Update.
4943 (bookmarks_info): Update.
4944 * printcmd.c (undisplay_command): Update.
4945 * memattr.c (mem_enable_command): Update.
4946 (mem_disable_command): Update.
4947 (mem_delete_command): Update.
4948 * inferior.c (detach_inferior_command): Update.
4949 (kill_inferior_command): Update.
4950 (remove_inferior_command): Update.
4951 * cli/cli-utils.h (struct get_number_or_range_state): New.
4952 (init_number_or_range): Declare.
4953 (get_number_or_range): Update.
4954 * cli/cli-utils.c (init_number_or_range): New function.
4955 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4957 (number_is_in_list): Update.
4958 * breakpoint.h (get_tracepoint_by_number): Update.
4959 * breakpoint.c (map_breakpoint_numbers): Update for change to
4960 get_number_or_range.
4961 (find_location_by_number): Use get_number, not
4962 get_number_or_range.
4963 (trace_pass_set_count): New function.
4964 (trace_pass_command): Update for change to get_number_or_range.
4966 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4971 * python/py-param.c (add_setshow_generic): Add set/show callback
4972 parameters. Register Python object context.
4973 (get_show_value): New function.
4974 (get_set_value): New function.
4975 (call_doc_function): New function.
4976 (get_doc_string): Move behind get_show_value/get_set_value.
4980 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4984 * xtensa-tdep.c (xtensa_read_register): Add comment.
4985 (xtensa_write_register): Likewise.
4986 (xtensa_hextochar): Add comment and update to match coding conventions.
4987 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4988 (execute_l32e, execute_s32e, execute_code): Update comments.
4989 (xtensa_exception_handler_t): Update to match coding conventions.
4990 (xtensa_insn_kind): Likewise.
4994 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4998 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5002 * thread.c (restore_selected_frame): Handle frame_level == -1.
5003 (make_cleanup_restore_current_thread): Use
5004 get_selected_frame_if_set.
5005 * frame.h (get_selected_frame_if_set): Declare.
5006 * frame.c (get_selected_frame_if_set): New function.
5010 * cli/cli-cmds.c (shell_escape): Use lbasename.
5011 * coffread.c (coff_start_symtab): Constify parameter.
5012 (complete_symtab): Constify `name' parameter.
5013 (coff_symtab_read): Constify `filestring' local.
5014 (coff_getfilename): Constify return and `result' local.
5016 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5017 * linux-fork.c (info_checkpoints_command): Use lbasename.
5018 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5019 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5020 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5021 * procfs.c (procfs_make_note_section): Use lbasename.
5022 * tui/tui-io.c (printable_part): Constity return and parameter.
5024 (print_filename): Constify parameters, and local `s'.
5025 (tui_rl_display_match_list): Constify local `temp'.
5031 Fix DWARF-3+ DW_AT_accessibility default assumption.
5032 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5033 cu->header.version >= 3.
5037 * common/Makefile.in: Remove.
5038 * common/configure: Remove.
5039 * common/configure.ac: Remove.
5046 * common/Makefile.in: Add copyright header.
5050 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5052 * configure.ac: Add common to sub dir.
5053 * configure: Regenerate.
5057 * xtensa-tdep.c (call0_ret): New function.
5058 (xtensa_skip_prologue): Speed up analysis.
5062 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5063 while executing MI command -data-list-changed-registers.
5067 * xtensa-tdep.c (xtensa_read_register): New function.
5068 (xtensa_write_register): New function.
5069 (xtensa_find_register_by_name): New function.
5070 (xtensa_windowed_frame_cache): Update comments in type description.
5071 (xtensa_frame_cache): Likewise.
5072 (xtensa_window_interrupt_insn): New function.
5073 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5074 (xtensa_insn_kind): Add new instructions.
5075 (rwx_special_register): New function.
5076 (call0_classify_opcode): Add new instructions to the analysis.
5077 (a0_saved, a7_saved, a11_saved): New variables.
5078 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5079 (execute_l32e): New function.
5080 (execute_s32e): New function.
5081 (xtensa_exception_handler_t): New type.
5082 (execute_code): New function.
5083 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5084 analysis for Xtensa Window Exception handlers.
5088 * xtensa-tdep.c (TX_PS): New.
5089 (windowing_enabled): Update to count for Call0 ABI.
5090 (xtensa_hextochar): New.
5091 (xtensa_init_reggroups): Make algorithm generic.
5092 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5096 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5100 * i386-tdep.c (i386_follow_jump): Check return value of
5102 (i386_analyze_struct_return): Ditto.
5103 (i386_skip_probe): Ditto.
5104 (i386_match_insn): Ditto.
5105 (i386_skip_noop): Ditto.
5106 (i386_analyze_frame_setup): Ditto.
5107 (i386_analyze_register_saves): Ditto.
5108 (i386_skip_prologue): Ditto.
5109 (i386_skip_main_prologue): Ditto.
5111 * target.c (read_whatever_is_readable): Fix memory leak.
5113 * i386-tdep.c (i386_process_record): Document fall through.
5117 Fix DWARF-3+ DW_AT_accessibility default assumption.
5118 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5119 cu->header.version >= 3.
5123 * remote.c (remote_check_symbols): Skip if the target has no
5128 * target.c (read_whatever_is_readable): Reformat comment,
5129 with a minor typo fix. Minor reformatting of the code.
5133 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5134 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5135 Use cached result instead of calling displaced_in_arm_mode again.
5136 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5137 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5138 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5139 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5140 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5141 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5142 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5143 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5144 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5145 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5146 (arm_catch_kernel_helper_return): Likewise.
5147 * gdb/arm-tdep.h : Update function declarations.
5151 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5153 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5155 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5157 * elfread.c (elf_symtab_read): Stop memory leak.
5159 * main.c (captured_main): Fix memory leak.
5163 * ada-lang.c (compare_names): Call is_name_suffix with string1
5168 * xcoffread.c (xcoff_sym_fns): Update.
5169 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5170 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5171 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5172 (symbol_file_add_with_addrs_or_offsets): Likewise.
5173 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5174 * somread.c (som_sym_fns): Update.
5175 * psymtab.h (require_partial_symbols): Declare.
5176 * psymtab.c (require_partial_symbols): New function.
5177 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5178 (ALL_OBJFILE_PSYMTABS): Undef.
5179 (ALL_PSYMTABS): Move from psympriv.h.
5180 (lookup_partial_symtab, find_pc_sect_psymtab)
5181 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5182 (find_last_source_symtab_from_partial)
5183 (forget_cached_source_info_partial)
5184 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5185 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5186 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5187 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5188 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5189 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5190 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5191 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5192 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5194 * mipsread.c (ecoff_sym_fns): Update.
5195 * machoread.c (macho_sym_fns): Update.
5196 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5197 (read_psyms): New function.
5198 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5199 (elf_sym_fns_lazy_psyms): New global.
5200 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5201 dwarf2_build_psymtabs.
5202 * dbxread.c (aout_sym_fns): Update.
5203 * coffread.c (coff_sym_fns): Update.
5207 * infrun.c (print_exited_reason): Include inferior id and pid in
5212 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5214 (target_has_execution_1): Update.
5215 (target_has_execution_current): Declare.
5216 (target_has_execution): Call target_has_execution_current.
5217 (default_child_has_execution): Update.
5218 * target.c (default_child_has_execution): Add 'the_ptid'
5220 (target_has_execution_1): Likewise.
5221 (target_has_execution_current): New function.
5222 (add_target): Update.
5223 (init_dummy_target): Update.
5224 * remote-m32r-sdi.c (m32r_has_execution): New function.
5225 (init_m32r_ops): Use it.
5226 * record.c (record_core_has_execution): Now static. Add
5227 'the_ptid' parameter.
5228 * inferior.c (have_live_inferiors): Don't save current thread.
5229 Use target_has_execution_1.
5233 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5237 * elfread.c (elf_symtab_read): Minor reformatting.
5241 * objc-lang.c (selectors_info): Minor reformatting.
5245 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5250 * ada-valprint.c (ada_val_print_array): Move the declaration of
5251 "byte_order" and "elttype" inside the block where these variables
5252 are actually used. Remove some special handling for the case
5253 where "elttype" and "eltlen" are null. Replace by a comment
5254 and a couple of assertion checks.
5258 * source.c (add_path): Replace semicolon at end of block.
5259 * dwarf2expr.c (execute_stack_op): Ditto.
5263 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5264 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5265 (bfin-*-*): Likewise.
5269 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5270 * mdebugread.c (parse_symbol): Ditto.
5271 * parse.c (parse_exp_in_context): Ditto.
5272 * source.c (add_path): Ditto.
5273 * utils.c (gnu_debuglink_crc32): Ditto.
5274 * varobj.c (variable_language): Ditto.
5276 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5280 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5282 * symfile.c (simple_overlay_update): Check for null return value
5283 from lookup_minimal_symbol.
5285 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5289 * eval.c (parse_and_eval_address_1): Remove function.
5290 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5291 instead of parse_and_eval_address_1.
5292 * value.h (parse_and_eval_address_1): Remove prototype.
5296 * remote.c (putpkt_binary): Document that case stmt falls through.
5300 * breakpointc (print_it_typical): Move NULL check from here...
5301 (print_bp_stop_message): ... to here.
5305 * breakpoint.c (enable_command): Use break instead of continue,
5306 and fill in a missing break.
5307 (disable_command): Ditto.
5311 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5312 (terminal_save_ours): Remove misleading comment.
5313 (inflow_inferior_data_cleanup): Free ttystate.
5314 (inflow_inferior_exit): Likewise.
5315 (copy_terminal_info): Copy ttystate.
5317 * serial.c (serial_copy_tty_state): New function.
5318 * serial.h (serial_copy_tty_state): Add prototype.
5319 (struct serial_ops): Add copy_tty_state callback.
5320 * ser-base.c (ser_base_copy_tty_state): New function.
5321 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5322 * ser-go32.c (dos_copy_tty_state): New function.
5323 (dos_ops): Install copy_tty_state callback.
5324 * ser-mingw.c (_initialize_ser_windows): Likewise.
5325 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5326 * ser-unix.c (hardwire_copy_tty_state): New function.
5327 (_initialize_ser_hardwire): Install it.
5331 * breakpoint.c (create_breakpoint): Add missing break statement.
5333 Reverting this patch:
5334 * infcall.c (call_function_by_hand): Add break statements for lint.
5336 Reverting this patch:
5337 * cli/cli-script.c (script_from_file): Add break for lint.
5341 * solib.c (reload_shared_libraries_1): Close memory leak.
5346 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5351 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5352 fields of struct 'st' to zero.
5354 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5355 sal.pspace before calling set_current_source_symtab_and_line.
5359 * Makefile.in (configure-common): Remove. Let Makefile
5360 in dir common to rebuild itself.
5361 (common/Makefile): Likewise.
5365 * utils.c (parse_escape): Add i18n markup in error message.
5369 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5371 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5372 (displaced_write_reg, displaced_read_reg): Likewise.
5373 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5374 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5375 (cleanup_branch): Replace magic number 14 and 15 with
5376 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5380 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5382 * cli/cli-script.c (script_from_file): Add break for lint.
5384 * mdebugread.c (parse_partial_symbols): Fix indent.
5386 * target-descriptions.c (tdesc_gdb_type): No need to call
5387 xstrdup, callee saves a copy.
5389 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5391 * infcall.c (call_function_by_hand): Add break statements for lint.
5393 * utils.c (parse_escape): Escape the escape char.
5395 * python/py-inferior.c (build_inferior_list): Error out if
5396 PyList_Append fails.
5397 (gdbpy_inferiors): Error out if build_inferior_list fails.
5399 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5402 * record.c (record_restore): Move printf to before error return.
5406 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5407 is_thumb and insn_size.
5408 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5409 on both ARM and Thumb mode.
5410 (arm_process_displaced_insn): Set is_thumb and insn_size.
5411 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5412 (arm_displaced_step_fixup): Likewise.
5416 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5418 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5420 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5422 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5424 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5427 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5428 which shadows function parameter.
5430 * tracepoint.c (create_tsv_from_upload): Superfluous call
5431 to xstrdup. Callee already calls xstrdup.
5433 * linespec.c (decode_line_1): Remove unnecessary null check.
5435 * tracepoint.c (scope_info): Fix mem leak, remove underused
5438 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5439 superfluous null check.
5441 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5442 (value_of_builtin_frame_fp_reg): Ditto.
5444 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5446 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5449 * linespec.c (decode_line_1): Check for null before dereference.
5451 * reverse.c (record_restore): Move null-check to before pointer
5454 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5456 * objc-lang.c (selectors_info): Add explanitory comment.
5457 (classes_info): Ditto.
5461 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5462 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5463 versions of the trampoline. Handle Thumb vs. ARM addresses.
5464 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5465 (arm_linux_init_abi): Install it.
5466 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5467 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5471 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5472 a little bigger, to avoid possibility of an overflow.
5474 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5475 buffers a little bigger, to avoid possibility of an overflow.
5477 * coffread.c (coff_getfilename): Add check to avoid overflow.
5479 * objc-lang.c (selectors_info): Add a small safety margin to
5481 (classes_info): Error out on too long REGEXP.
5483 * infrun.c (handle_inferior_event): Remove unused function call.
5485 * fork-child.c (fork_inferior): Remove ifdef'd code and
5488 * linux-thread-db.c (attach_thread): Discard unused value.
5490 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5492 * remote.c (remote_get_noisy_reply): Discard unused value.
5493 (remote_vcont_resume): Ditto.
5494 (remote_stop_ns): Ditto.
5496 * linespec.c (decode_objc): Delete unused variable.
5498 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5500 * dwarf2read.c (add_partial_symbol): Discard unused values.
5501 (read_base_type): Delete unused variable.
5503 * dbxread.c (read_dbx_symtab): Discard unused value.
5505 * eval.c (evaluate_subexp_standard): Delete unused variable,
5506 and discard unused values.
5508 * infcmd.c (_initialize_infcmd): Discard unused values.
5510 * stabsread.c (rs6000_builtin_type): Missing break statement.
5512 * dbxread.c (process_one_symbol): Discard unused value.
5514 * coffread.c (coff_end_symtab): Delete unused variable.
5516 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5517 (dwarf2_add_typedef): Delete unused variable.
5518 (read_namespace): Ditto.
5519 (dwarf_decode_macros): Ditto.
5521 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5523 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5525 * p-valprint.c (pascal_val_print): Discard unused value.
5527 * utils.c (nquery): Call va_end before return;
5531 * proc-service.c (ps_plog): Call va_end before return.
5535 * python/python.c (gdbpy_value_cst): New global.
5536 (_initialize_python): Initialize it.
5537 * python/python-internal.h (gdbpy_value_cst): Declare.
5538 * python/py-value.c (convert_value_from_python): Use
5543 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5545 * breakpoint.c (catch_syscall_completer): Free malloced list.
5547 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5549 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5550 (lval_func_check_synthetic_pointer): Ditto.
5551 (lval_func_free_closure): Fix use-after-free.
5555 * psymtab.c (expand_partial_symbol_tables): Use
5556 ALL_OBJFILE_PSYMTABS.
5560 * objc-lang.c (selectors_info): Error on too long REGEXP.
5564 * python/py-param.c (set_parameter_value): Add missing
5567 * linux-record.c (record_linux_system_call): Add missing
5572 * breakpoint.c (print_one_breakpoint_location): Remove unused
5573 argument PRINT_ADDRESS_BITS. Update callers.
5574 (print_one_breakpoint): Likewise.
5578 * breakpoint.c (wrap_indent_at_field): New function.
5579 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5580 Allocate ui_stream locally instead of using STB argument.
5581 (print_one_breakpoint_location): Update call.
5582 * ui-out.c (ui_out_query_field): New function.
5583 * ui-out.h (ui_out_query_field): Add prototype.
5588 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5592 * objc-lang.c (selectors_info): Prevent string overrun.
5594 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5597 * symtab.c (rbreak_command): Move variable 'file_name' to
5600 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5601 param with a local variable of the same name.
5605 * value.c (value_from_history_ref): New function.
5606 * value.h (value_from_history_ref): Export.
5607 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5608 to parse value history references.
5609 * cli/cli-utils.h (get_number_trailer): Update comment.
5613 * inferior.c (detach_inferior_command): Use get_number_or_range.
5614 (kill_inferior_command): Ditto.
5615 (remove_inferior_command): Ditto.
5616 (initialize_inferiors): Make command names plural.
5617 Update help strings.
5621 * darwin-nat-info.c: Fix comment typo.
5622 * dwarf2expr.h: Ditto.
5623 * fbsd-nat.c: Ditto.
5624 * fbsd-nat.h: Ditto.
5625 * frame-unwind.h: Ditto.
5627 * hppa-hpux-tdep.c: Ditto.
5628 * i386-linux-nat.c: Ditto.
5629 * linux-nat.c: Ditto.
5630 * nbsd-nat.c: Ditto.
5631 * nbsd-nat.h: Ditto.
5632 * ppc-linux-tdep.c: Ditto.
5635 * tui/tui-winsource.c: Ditto.
5639 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5641 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5643 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5644 with a local variable of the same name.
5646 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5647 param with a local variable of the same name.
5648 (i387_supply_xsave): Ditto.
5650 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5651 that it does not shadow a function parameter.
5653 * i386-nat.c (i386_length_and_rw_bits): Document that case
5654 statement is meant to fall through.
5656 * expprint.c (dump_subexp_body_standard): Document that case
5657 statement is meant to fall through.
5659 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5660 dead if statement. Condition can't be false.
5664 * arm-tdep.c: Fix typos in comments.
5665 * bsd-uthread.c: Ditto.
5666 * completer.c: Ditto.
5668 * cp-namespace.c: Ditto.
5669 * cp-support.c: Ditto.
5670 * cris-tdep.c: Ditto.
5672 * dwarf2read.c: Ditto.
5674 * gdbtypes.h: Ditto.
5675 * inferior.h: Ditto.
5676 * mdebugread.c: Ditto.
5677 * mips-tdep.c: Ditto.
5678 * ppc-linux-nat.c: Ditto.
5679 * ppc-linux-tdep.c: Ditto.
5680 * printcmd.c: Ditto.
5681 * sol-thread.c: Ditto.
5682 * solib-frv.c: Ditto.
5684 * sparc64-tdep.c: Ditto.
5685 * spu-tdep.c: Ditto.
5686 * stabsread.c: Ditto.
5691 * python/py-block.c: Ditto.
5692 * python/py-symbol.c: Ditto.
5693 * python/py-symtab.c: Ditto.
5694 * python/py-value.c: Ditto.
5695 * tui/tui-win.c: Ditto.
5699 * inferior.c (print_inferior): Accept a string instead of an int
5700 for requested_inferiors, and use get_number_or_range to parse it.
5701 (info_inferiors_command): Pass args string to print_inferior.
5702 (initialize_inferiors): Change help string for info inferiors.
5703 * inferior.h (print_inferior): Export prototype change.
5707 * common/ax.def (invalid2): Set to 0x31.
5711 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5713 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5715 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5719 * Makefile.in (clean): Make clean should remove generated files
5720 observer.h and observer.inc.
5724 Revert the following patch (not approved yet):
5726 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5727 * ax-gdb.c (gen_printf_expr_callback): New function.
5728 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5729 * ax-general.c (ax_memcpy): New function.
5730 (ax_print): Handle "printf".
5732 * ax.h (ax_memcpy): Forward declare.
5733 * common/ax.def (invalid2): Removed.
5734 (printf): New entry.
5735 * printcmd.c (printcmd.h): New include.
5736 (string_printf): New function.
5737 (ui_printf): Removed.
5738 (printf_command): Remove static. Call string_printf.
5739 (eval_command): Call string_printf.
5740 * printcmd.h: New file.
5741 * tracepoint.c (validate_actionline,
5742 encode_actions_1): handle printf_command.
5746 * ax-general.c (ax_pick): Add missing newline.
5750 * breakpoint.c (breakpoint_1): Change first argument from an int
5751 to a char pointer, so that the function now accepts a list of
5752 breakpoints rather than just one. Use new function
5753 'number_is_in_list' to implement.
5754 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5755 (watchpoints_info): Ditto.
5756 (tracepoints_info): Ditto.
5757 (maintenance_info_breakpoints): Ditto.
5758 (_initialize_breakpoint): Update help strings to reflect the fact
5759 that these functions can now take more than one argument.
5760 * cli/cli-utils.c (number_is_in_list): New function.
5761 * cli/cli-utils.h (number_is_in_list): Export.
5765 * memattr.c (mem_enable_command): Use get_number_or_range.
5766 (mem_disable_command): Ditto.
5767 (mem_delete_command): Ditto.
5768 (_initialize_mem): Tweak usage message to reflect multiple
5773 Add gdb.lookup_global_symbol python function.
5775 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5776 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5777 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5781 * language.c (language_class_name_from_physname): Rename
5782 'curr_language' argument to 'lang'; use in body.
5786 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5790 * frame-unwind.h: Fix comment to mention the this frame, not the
5795 * symfile.c (auto_solib_limit): Remove.
5796 * symfile.h (auto_solib_limit): Remove.
5800 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5804 * gdbthread.h (print_thread_info): Change prototype.
5805 * thread.c (print_thread_info): Accept char* instead of int for
5806 requested_threads argument. Use new function number_is_in_list
5807 to determine which threads to list.
5808 (info_threads_command): Pass char* to print_thread_info.
5809 * cli/cli-utils.c (number_is_in_list): New function.
5810 * cli/cli-utils.h (number_is_in_list): Export.
5811 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
5813 (print_one_inferior): Ditto.
5814 (mi_cmd_list_thread_groups): Ditto.
5818 * common/Makefile.in (CFLAGS): New.
5819 (COMPILE): Add $(CFLAGS).
5823 * breakpoint.c (catch_syscall_command_1): Fix typo.
5827 * reverse.c: Include cli-utils.h.
5828 * printcmd.c: Include cli-utils.h.
5829 (string_printf): Use skip_spaces.
5830 * cli/cli-utils.h: New file.
5831 * cli/cli-utils.c: New file.
5832 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5833 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5834 * breakpoint.h (get_number, get_number_or_range): Move to
5836 * breakpoint.c: Include cli-utils.h.
5837 (get_number_trailer, get_number, get_number_or_range)
5838 (ep_skip_leading_whitespace): Move to cli-utils.c.
5839 (create_breakpoint_sal, find_condition_and_thread)
5840 (decode_static_tracepoint_spec, watch_command_1)
5841 (watch_maybe_just_location, ep_parse_optional_if_clause)
5842 (catch_fork_command_1, catch_exec_command_1)
5843 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5844 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5845 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5846 (HFILES_NO_SRCDIR): Add cli-utils.h.
5847 (cli-utils.o): New target.
5851 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5852 before calling discard_all_inferiors.
5856 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5857 (struct builtin_opencl_type): Remove.
5858 (builtin_opencl_type): Change return type to "struct type **".
5859 (lookup_opencl_vector_type): Update caller.
5860 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5861 (build_opencl_types): Install plain array of "struct type *"
5862 instead of "struct builtin_opencl_type".
5867 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5868 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5869 (struct arm_linux_hwbp_cap): New type.
5870 (arm_linux_get_hwbp_cap): New function.
5871 (arm_linux_get_hw_breakpoint_count): Likewise.
5872 (arm_linux_get_hw_watchpoint_count): Likewise.
5873 (arm_linux_can_use_hw_breakpoint): Likewise.
5874 (arm_hwbp_type): New type.
5875 (arm_hwbp_control_t): Likewise.
5876 (struct arm_linux_hw_breakpoint): Likewise.
5877 (struct arm_linux_thread_points): Likewise.
5878 (arm_threads): New global variable.
5879 (arm_linux_find_breakpoints_by_tid): New function.
5880 (arm_hwbp_control_initialize): Likewise.
5881 (arm_hwbp_control_is_enabled): Likewise.
5882 (arm_hwbp_control_disable): Likewise.
5883 (arm_linux_hw_breakpoint_initialize): Likewise.
5884 (arm_linux_get_hwbp_type): Likewise.
5885 (arm_linux_hw_watchpoint_initialize): Likewise.
5886 (arm_linux_hw_breakpoint_equal): Likewise.
5887 (arm_linux_insert_hw_breakpoint1): Likewise.
5888 (arm_linux_remove_hw_breakpoint1): Likewise.
5889 (arm_linux_insert_hw_breakpoint): Likewise.
5890 (arm_linux_remove_hw_breakpoint): Likewise.
5891 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5892 (arm_linux_insert_watchpoint): Likewise.
5893 (arm_linux_remove_watchpoint): Likewise.
5894 (arm_linux_stopped_data_address): Likewise.
5895 (arm_linux_stopped_by_watchpoint): Likewise.
5896 (arm_linux_watchpoint_addr_within_range): Likewise.
5897 (arm_linux_new_thread): Likewise.
5898 (arm_linux_thread_exit): Likewise.
5899 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5900 related target callbacks. Register arm_linux_new_thread and
5901 arm_linux_thread_exit.
5902 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5903 * arm-tdep.c (arm_pc_is_thumb): Make global.
5904 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5908 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5909 per-frame locations while within a function epilogue.
5913 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5914 to GNU coding standards.
5918 Allow use of mingw native on Windows 95 OS.
5919 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
5920 (ser_windows_close): Only call CancelIo if function exists.
5921 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5922 to check for existence of CancelIo function in kernel32 DLL.
5926 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5927 * ax-gdb.c (gen_printf_expr_callback): New function.
5928 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5929 * ax-general.c (ax_memcpy): New function.
5930 (ax_print): Handle "printf".
5932 * ax.h (ax_memcpy): Forward declare.
5933 * common/ax.def (invalid2): Removed.
5934 (printf): New entry.
5935 * printcmd.c (printcmd.h): New include.
5936 (string_printf): New function.
5937 (ui_printf): Removed.
5938 (printf_command): Remove static. Call string_printf.
5939 (eval_command): Call string_printf.
5940 * printcmd.h: New file.
5941 * tracepoint.c (validate_actionline,
5942 encode_actions_1): handle printf_command.
5946 * reverse.c (delete_one_bookmark): Argument is now bookmark
5947 id rather than pointer to bookmark struct.
5948 (delete_bookmark_command): Use get_number_or_range.
5949 (goto_bookmark_command): Parse with get_number instead of strtoul.
5950 (bookmark_1): New function. Print info for one bookmark.
5951 (bookmarks_info): Use get_number_or_range and bookmark_1.
5955 * thread.c (info_threads_command): Re-implement using
5956 get_number_or_range.
5957 (thread_apply_command): Ditto.
5961 * common/ax.def: New file.
5962 * ax.h (enum agent_op): Use ax.def.
5963 * ax-general.c (aop_map): Use ax.def.
5967 * ax-general.c (aop_map): Add pick and rot.
5968 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5969 <DW_OP_rot>: Implement.
5970 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5972 * ax-general.c (ax_pick): New function.
5976 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5981 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5982 make_symbol_overload_list_block with NULL BLOCK.
5983 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5987 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5988 * breakpoint.h (get_number_or_range): Declare.
5989 * printcmd.c (ALL_DISPLAYS): Declare.
5990 (delete_display): Reimplement taking a display pointer.
5991 (undisplay_command): Accept a range of displays to delete, using
5992 get_number_or_range.
5996 * c-valprint.c (c_val_print): Add embedded_offset to address
5997 for arrays of unspecified length.
5998 * p-valprint.c (pascal_val_print): Likewise.
6002 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6003 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6004 (thumb_process_displaced_insn): New.
6005 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6006 call to arm_process_displaced_insn.
6007 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6011 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6012 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6013 compile_dwarf_to_ax. No longer static. Call
6014 dwarf2_compile_cfa_to_ax.
6015 (locexpr_tracepoint_var_ref): Update.
6016 (loclist_tracepoint_var_ref): Update.
6017 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6018 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6019 argument; add 'gdbarch' and 'pc'.
6020 (dwarf2_compile_cfa_to_ax): New function.
6021 (dwarf2_frame_cache): Update.
6025 * ada-lang.c (ada_type_of_array): Fix the size of the array
6026 in the case of an unconstrained packed array.
6030 * common/Makefile.in: Add more targets for make.
6034 * dwarf2loc.c (unimplemented): Fix typo.
6038 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6039 (compile_dwarf_to_ax) <default>: Use unimplemented.
6040 <DW_OP_deref>: Update.
6041 (disassemble_dwarf_expression): Update.
6042 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6043 (decode_locdesc): Update.
6044 * dwarf2expr.h (dwarf_stack_op_name): Update.
6048 * ax.h (struct aop_map) <name>: Now const.
6052 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6057 * infrun.c (get_displaced_step_closure_by_addr): New.
6058 * inferior.h: Declare it.
6059 * arm-tdep.c: (arm_pc_is_thumb): Call
6060 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6067 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6072 * value.c (value_contents_copy_raw): Extend describing comment.
6073 Assert that the destination contents we're overwriting are wholly
6075 (value_contents_copy): Extend describing comment.
6080 * value.c (value_available_contents_eq): Remove redundant local
6081 variables. Fix available contents comparision.
6082 * value.h (value_available_contents_eq): Extend describing
6087 * thread.c (info_threads_command): Add missing i18n markup and remove
6092 * breakpoint.c (longjmp_names): New variable.
6093 (struct breakpoint_objfile_data): New type.
6094 (breakpoint_objfile_key): New variable.
6095 (msym_not_found): New variable.
6096 (msym_not_found_p): New predicate.
6097 (get_breakpoint_objfile_data): New function.
6098 (create_overlay_event_breakpoint): Check per-objfile cache for
6100 (create_longjmp_master_breakpoint): Likewise.
6101 (create_std_terminate_master_breakpoint): Likewise.
6102 (create_exception_master_breakpoint): Likewise.
6103 (_initialize_breakpoint): Register per-objfile data key.
6107 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6109 (create_longjmp_master_breakpoint): Loop over longjmp names.
6110 (create_std_terminate_master_breakpoint): Const-propagate parameter
6112 (update_breakpoints_after_exec): Adjust.
6113 (breakpoint_re_set): Adjust.
6117 * thread.c (info_threads_command): Process arg as thread id,
6118 or list of thread ids.
6119 (thread_find_command): New command.
6120 (_initialize_thread): Document argument for info threads.
6121 Document 'thread find' command.
6122 * NEWS: Document new command "thread find".
6126 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6127 * aclocal.m4: Regenerated with aclocal-1.11.1.
6128 * common/configure: Regenerate with autoconf-2.64.
6132 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6133 bool data type to a size of one byte.
6138 * target.c (memory_xfer_live_readonly_partial): Document where to
6139 look for interface description.
6144 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6145 order to store PC value on stack instead of text section.
6149 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6150 the EFP register set size.
6151 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6152 data from the VMX register.
6153 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6154 and write data from/to the VMX register.
6158 * command.h (enum command_class): New class 'no_set_class', for
6159 "show" commands without a corresponding "set" command.
6160 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6161 * copying.c (_initialize_copying): Ditto for "show copying" and
6163 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6165 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6166 which there is no corresponding "set" command (eg. "show copying").
6171 * exec.c (section_table_available_memory): Change `len' parameter
6173 * exec.h (section_table_available_memory): Ditto.
6174 * value.h (read_value_memory): Rename the `offset' parameter to
6180 * memrange.c (compare_mem_ranges): Mention sort order in
6182 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6183 * tracepoint.c (traceframe_available_memory): Extend comment to
6184 mention what happens to RESULT when the target does not support
6190 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6195 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6196 No longer handle NULL values.
6200 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6201 * value.c: Include "exceptions.h".
6202 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6204 * cp-abi.c: Include gdb_assert.h.
6205 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6206 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6208 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6209 parameters. No longer returns -1 on error.
6210 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6212 * cp-valprint.c: Include exceptions.h.
6213 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6214 the baseclass_offset. Handle unavailable base classes. Use
6215 val_print_invalid_address.
6216 * p-valprint.c: Include exceptions.h.
6217 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6218 when fetching the baseclass_offset. No longer expect
6219 baseclass_offset returning -1. Handle unavailable base classes.
6220 Use val_print_invalid_address.
6221 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6222 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6223 `embedded_offset' and `val' parameters. Adjust.
6224 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6225 parameter, and change its type to gdb_byte pointer. Add
6226 `embedded_offset' and `val' parameters. Adjust. No longer expect
6227 baseclass_offset returning -1.
6228 (value_dynamic_cast): Use value_contents_for_printing rather than
6229 value_contents. Adjust.
6230 (search_struct_field): No longer expect baseclass_offset returning
6232 (search_struct_method): If reading memory from the target is
6233 necessary, wrap it in a new value to pass to baseclass_offset. No
6234 longer expect baseclass_offset returning -1.
6235 (find_method_list): No longer expect baseclass_offset returning
6236 -1. Use value_contents_for_printing rather than value_contents.
6237 * valprint.c (val_print_invalid_address): New function.
6238 * valprint.h (val_print_invalid_address): Declare.
6239 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6240 and `val' parameters. No longer expect baseclass_offset returning
6242 * gnu-v2-abi.c: Include "exceptions.h".
6243 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6244 parameters. Handle unavailable memory. Recurse through
6245 gnuv2_baseclass_offset directly, rather than through
6246 baseclass_offset. No longer returns -1 on not found, instead
6248 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6249 `val' parameters. Adjust.
6253 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6254 almost but not quite adjacent.
6258 * value.h (value_entirely_available): Declare.
6259 * value.c (value_entirely_available): New function.
6260 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6261 real type if the pointer is unavailable.
6265 * valops.c (value_repeat): Use read_value_memory instead of
6270 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6271 * value.c (value_contents_copy_raw, value_contents_copy): New
6273 (value_primitive_field): Use value_contents_copy_raw instead of
6275 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6277 (value_array, value_slice): Ditto.
6278 * valarith.c (value_subscripted_rvalue): Use
6279 value_contents_copy_raw instead of memcpy.
6283 <unavailable> references.
6285 * valops.c (get_value_at): Use value_from_contents_and_address,
6286 avoiding read_memory.
6290 * c-valprint.c (c_val_print): Print a string with unavailable
6291 contents as an array.
6295 * value.h (unpack_bits_as_long): Delete declaration.
6296 (unpack_value_bits_as_long): Declare.
6297 (unpack_value_field_as_long): Declare.
6298 (value_field_bitfield): Declare.
6299 * value.c (unpack_bits_as_long): Rename to...
6300 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6301 value parameters. Return the extracted result in a new output
6302 parameter. If the value contents are unavailable, return false,
6303 otherwise return true.
6304 (unpack_value_bits_as_long): New.
6305 (unpack_field_as_long): Rename to...
6306 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6307 Add embedded_offset and value parameters. Return the extracted
6308 result in a new output parameter. If the value contents are
6309 unavailable, return false, otherwise return true.
6310 (unpack_value_field_as_long): New.
6311 (unpack_field_as_long_1): New.
6312 (unpack_field_as_long): Reimplement as wrapper around
6313 unpack_value_field_as_long_1.
6314 (value_field_bitfield): New function.
6315 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6316 unpack_value_bits_as_long. Mark the value as unavailable, if it
6318 * jv-valprint.c (java_print_value_fields): Use
6319 value_field_bitfield.
6320 * p-valprint.c (pascal_object_print_value_fields): Use
6321 value_field_bitfield.
6322 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6326 * value.c (get_internalvar_integer): Also return the int value of
6327 TYPE_CODE_INT INTERNALVAR_VALUE values.
6328 (set_internalvar): Don't special case TYPE_CODE_INT.
6332 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6333 INTERNALVAR_POINTER.
6335 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6336 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6337 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6341 * value.h (value_available_contents_eq): Declare.
6342 * value.c (find_first_range_overlap): New function.
6343 (value_available_contents_eq): New function.
6344 * valprint.c (val_print_array_elements): Use
6345 value_available_contents_eq.
6346 * ada-valprint.c (val_print_packed_array_elements): Use
6347 value_available_contents_eq.
6348 * jv-valprint.c (java_value_print): Use
6349 value_available_contents_eq.
6353 * target.c (target_read_live_memory): New function.
6354 (memory_xfer_live_readonly_partial): New.
6355 (memory_xfer_partial): If reading from a traceframe, fallback to
6356 reading unavailable read-only memory from read-only regions of
6358 * tracepoint.c (disconnect_tracing): Adjust.
6359 (set_current_traceframe): New, factored out from
6360 set_traceframe_number.
6361 (set_traceframe_number): Reimplement to only change the traceframe
6362 number on the GDB side.
6363 (do_restore_current_traceframe_cleanup): Adjust.
6364 (make_cleanup_restore_traceframe_number): New.
6365 (cur_traceframe_number): New global.
6366 (tfile_open): Set cur_traceframe_number to no traceframe.
6367 (set_tfile_traceframe): New function.
6368 (tfile_trace_find): If looking up a traceframe using any method
6369 other than by number, make sure the current tfile traceframe
6370 matches gdb's current traceframe. Update the current tfile
6371 traceframe if the lookup succeeded.
6372 (tfile_fetch_registers, tfile_xfer_partial)
6373 (tfile_get_trace_state_variable_value): Make sure the remote
6374 traceframe matches gdb's current traceframe.
6375 * remote.c (remote_traceframe_number): New global.
6376 (remote_open_1): Set it to -1.
6377 (set_remote_traceframe): New function.
6378 (remote_fetch_registers, remote_store_registers)
6379 (remote_xfer_memory, remote_xfer_partial)
6380 (remote_get_trace_state_variable_value): Make sure the remote
6381 traceframe matches gdb's current traceframe.
6382 (remote_trace_find): If looking up a traceframe using any method
6383 other than by number, make sure the current remote traceframe
6384 matches gdb's current traceframe. Update the current remote
6385 traceframe if the lookup succeeded.
6386 * infrun.c (fetch_inferior_event): Adjust.
6387 * tracepoint.h (set_current_traceframe): Declare.
6388 (get_traceframe_number, set_traceframe_number): Add describing
6393 Mark pieces of values as unavailable if the corresponding memory
6396 * valops.c: Include tracepoint.h.
6397 (value_fetch_lazy): Use read_value_memory.
6398 (read_value_memory): New.
6399 * value.h (read_value_memory): Declare.
6400 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6401 * exec.c (section_table_available_memory): New function.
6402 * exec.h (section_table_available_memory): Declare.
6406 * Makefile.in (SFILES): Add memrange.c.
6407 (HFILES_NO_SRCDIR): Add memrange.h.
6408 (COMMON_OBS): Add memrange.o.
6409 * memrange.c: New file.
6410 * memrange.h: New file.
6411 * tracepoint.c: Include memrange.h.
6412 (struct mem_range): Delete.
6413 (mem_range_s): Delete.
6414 (traceframe_available_memory): New function.
6415 * tracepoint.h (traceframe_available_memory): Declare.
6419 * target.h (struct traceframe_info): Forward declare.
6420 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6421 (struct target_ops) <to_traceframe_info>: New field.
6422 (target_traceframe_info): New.
6423 * target.c (update_current_target): Inherit and default
6425 * remote.c (PACKET_qXfer_traceframe_info): New.
6426 (remote_protocol_features): Register qXfer:traceframe-info:read.
6427 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6428 (remote_traceframe_info): New.
6429 (init_remote_ops): Install it.
6430 (_initialize_remote): Install "set/show remote traceframe-info"
6432 * tracepoint.h (parse_traceframe_info): Declare.
6433 * tracepoint.c (struct mem_range): New.
6434 (mem_range_s): New typedef.
6435 (struct traceframe_info): New.
6436 (traceframe_info): New global.
6437 (free_traceframe_info): New function.
6438 (clear_traceframe_info): New function.
6439 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6441 (build_traceframe_info): New function.
6442 (tfile_traceframe_info): New function.
6443 (init_tfile_ops): Install tfile_traceframe_info.
6444 (traceframe_info_start_memory, free_result): New functions.
6445 (memory_attributes, traceframe_info_elements): New globals.
6446 (parse_traceframe_info, get_traceframe_info): New functions.
6447 * features/traceframe-info.dtd: New file.
6448 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6452 Base support for <unavailable> value contents.
6454 * value.h (value_bytes_available): Declare.
6455 (mark_value_bytes_unavailable): Declare.
6456 * value.c (struct range): New struct.
6457 (range_s): New typedef.
6458 (ranges_overlap): New function.
6459 (range_lessthan): New function.
6460 (ranges_contain_p): New function.
6461 (struct value) <unavailable>: New field.
6462 (value_bytes_available): New function.
6463 (mark_value_bytes_unavailable): New function.
6464 (require_not_optimized_out): Constify parameter.
6465 (require_available): New function.
6466 (value_contents_all, value_contents): Require all bytes be
6468 (value_free): Free `unavailable'.
6469 (value_copy): Copy `unavailable'.
6470 * valprint.h (val_print_unavailable): Declare.
6471 * valprint.c (valprint_check_validity): Rename `offset' parameter
6472 to `embedded_offset'. If printing a scalar, check whether the
6473 value chunk is available.
6474 (val_print_unavailable): New.
6475 (val_print_scalar_formatted): Check whether the value is
6477 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6478 pretty-printing unavailable values.
6482 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6483 * c-typeprint.c (c_type_print_args): Update the function comment. New
6484 variable param_type, initialize it. Remove const/volatile qualifiers
6485 for language_cplus and !show_artificial. Use param_type.
6489 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6490 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6491 * symtab.h (struct symtab) <next>: Comment extension.
6495 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6499 * common/Makefile.in: Add copyright header.
6503 * infrun.c (proceed): Move switching out and in of tfind mode from
6505 (fetch_inferior_event): ... to here.
6509 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6511 * configure.ac: Add common to sub dir.
6512 * configure: Regenerate.
6518 * common/Makefile.in: New.
6519 * common/configure.ac: New.
6520 * common/aclocal.m4: New.
6521 * common/configure: Generate.
6525 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6526 side of the parenthesis.
6530 * vec.h (VEC_block_remove): Fix comment.
6534 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6538 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6539 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6545 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6547 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6548 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6552 * dwarf2read.c (read_subroutine_type): Set special calling
6553 convention flag for functions compiled by IBM XL C for OpenCL.
6554 * ppc-sysv-tdep.c: Include "dwarf2.h"
6555 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6557 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6558 IBM OpenCL vector types calling convention.
6559 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6560 (ppc_sysv_abi_broken_return_value): Likewise.
6561 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6562 types calling convention.
6563 (ppc64_sysv_abi_return_value): Likewise.
6564 * spu-tdep.c: Include "dwarf2.h"
6565 (spu_return_value): Implement IBM OpenCL vector types calling
6570 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6571 correct ABI for AltiVec vector arguments.
6575 * valprint.c (val_print): Extend comment.
6576 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6577 interface explanation to val_print.
6578 (ada_val_print_array): Adjust comment to current interface.
6579 (print_field_values): Adjust comment to current interface.
6580 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6581 explanation to val_print.
6582 * f-valprint.c (f_val_print): Ditto.
6583 * jv-valprint.c (java_val_print): Ditto.
6584 * m2-valprint.c (m2_val_print): Ditto.
6585 * p-valprint.c (pascal_val_print): Ditto.
6589 * breakpoint.c (parse_breakpoint_sals): Fix description.
6594 * python/py-inferior.c (python_on_normal_stop): New function.
6595 (python_on_resume): New function.
6596 (python_inferior_exit): New function.
6597 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6598 inferior_exit observers.
6599 * python/py-evtregistry.c: New file.
6600 * python/py-threadevent.c : New file.
6601 * python/py-event.c: New file.
6602 * python/py-evts.c: New file.
6603 * python/py-continueevent.c: New file.
6604 * python/py-bpevent.c: New file.
6605 * python/py-signalevent.c: New file.
6606 * python/py-exetiedevent.c: New file.
6607 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6608 Move struct breakpoint_object from here...
6609 * python/python-internal.h: ... to here.
6610 * python/py-event.h: New file.
6611 * python/py-events.h: New file.
6612 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6613 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6614 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6615 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6616 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6617 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6618 Add build rules for all the above.
6622 * dwarf2read.c (dwarf2_section_empty_p): New function.
6623 (dwarf2_read_section): Use dwarf2_section_empty_p.
6624 (dwarf2_section_size): New function.
6625 (dwarf2_get_section_info): Unconditionally read section.
6626 (dwarf2_read_index): Use dwarf2_section_empty_p.
6627 (partial_read_comp_unit_head): Use dwarf2_section_size.
6628 (dwarf2_symbol_mark_computed): Likewise.
6632 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6636 * mips-linux-tdep.c: Include xml-syscall.h.
6637 (mips_linux_get_syscall_number): New function.
6638 (mips_linux_init_abi): Add calls to
6639 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6640 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6641 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6642 * syscalls/mips-n32-linux.xml: New file.
6643 * syscalls/mips-n64-linux.xml: New file.
6644 * syscalls/mips-o32-linux.xml: New file.
6648 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6649 Complain about inverted range entries.
6650 (dwarf2_record_block_ranges): Likewise.
6655 * breakpoint.c (update_watchpoint): Fix name of the
6656 update_global_location_list function.
6657 (print_one_breakpoint): Fix typo.
6658 (_initialize_breakpoint): Remove extra space in hbreak help
6660 * breakpoint.h (struct bp_location) <length>: Fix field
6665 * regcache.c (registers_changed_ptid): Don't explictly always
6666 clear `current_regcache'. Only clear current_thread_ptid and
6667 current_thread_arch when PTID matches. Only reinit the frame
6668 cache if PTID matches the current inferior_ptid. Move alloca(0)
6670 (registers_changed): ... here.
6674 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6675 starts with __stack_chk_guard as stack guard symbol.
6679 * disasm.c (compare_lines): Handle the end of sequence markers
6680 within the line table to better support disassembling over
6681 compilation unit boundaries.
6685 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6686 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6687 implementation even if no symbols are available.
6688 (thumb_analyze_prologue): Update call to skip_prologue_function.
6689 (arm_analyze_prologue): Likewise.
6693 * arm-tdep.c: Include "observer.h".
6694 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6695 (arm_exidx_data_key): New static variable.
6696 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6697 (struct arm_exidx_data): Likewise.
6698 (arm_exidx_data_free): New function.
6699 (arm_compare_exidx_entries): Likewise.
6700 (arm_obj_section_from_vma): Likewise.
6701 (arm_exidx_new_objfile): Likewise.
6702 (arm_find_exidx_entry): Likewise.
6703 (arm_exidx_fill_cache): Likewise.
6704 (arm_exidx_unwind_sniffer): Likewise.
6705 (arm_exidx_unwind): New global variable.
6706 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6707 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6708 observer. Register arm_exidx_data_key as objfile data.
6712 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6713 due to accessing uninitialized variable. Fix indentation.
6717 * c-valprint.c (c_value_print): When doing virtual base pointer
6718 adjustment, create a new value with adjusted contents rather than
6719 changing the contents of the value being printed (and getting it
6724 * xml-support.c (xml_find_attribute): New.
6725 (xinclude_start_include): Use it.
6726 * xml-support.h (xml_find_attribute): Declare.
6727 * memory-map.c (memory_map_start_memory)
6728 (memory_map_start_property): Use xml_find_attribute.
6729 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6731 * remote.c (start_thread): Use xml_find_attribute.
6732 * solib-target.c (library_list_start_segment)
6733 (library_list_start_section, library_list_start_library)
6734 (library_list_start_list): Use xml_find_attribute.
6735 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6736 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6737 (tdesc_start_field): Use xml_find_attribute.
6741 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6742 (BUILD_OCL_VTYPES): Update.
6746 * configure.ac: Work around non-GNU sed limitation when computing
6747 python version number.
6748 * configure: Regenerate.
6752 Fix debug printing of TYPE_INSTANCE.
6753 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6754 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6758 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6759 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6760 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6761 * ada-operator.inc: Rename the file to ...
6762 * ada-operator.def: ... here, wrap all the entries by macro OP.
6763 * expprint.c (op_name_standard): Remove all the entries. Include
6764 "std-operator.def" instead.
6765 * expression.h (enum exp_opcode): Include "std-operator.def" and
6766 "ada-operator.def". Move all the entries ...
6767 * std-operator.def: ... here, wrap all the entries by macro OP.
6771 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6772 * breakpoint.c (remove_jit_event_breakpoints): New function.
6773 * jit.c (jit_descriptor_addr): Delete.
6774 (registering_code): Delete.
6775 (clear_int): Delete.
6776 (jit_inferior_data): New variable.
6777 (struct jit_inferior_data): New type.
6778 (get_jit_inferior_data): New function.
6779 (jit_inferior_data_cleanup): New function.
6780 (jit_read_descriptor): Adjust.
6781 (jit_register_code): Adjust.
6782 (jit_breakpoint_re_set_internal): New function; move code here ...
6783 (jit_inferior_init): ... from here.
6784 (jit_breakpoint_re_set): Adjust.
6785 (jit_reset_inferior_data_and_breakpoints): New function.
6786 (jit_inferior_created_observer): Adjust.
6787 (jit_inferior_exit_hook): Adjust.
6788 (jit_executable_changed_observer): New function.
6789 (jit_event_handler): Adjust.
6790 (_initialize_jit): Adjust.
6794 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6800 * python/python.c (execute_gdb_command): Call
6801 prevent_dont_repeat.
6802 * top.c (suppress_dont_repeat): New global.
6803 (dont_repeat): Use it.
6804 (prevent_dont_repeat): New function.
6805 * command.h (prevent_dont_repeat): Declare.
6809 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6810 * python/py-breakpoint.c (bppy_set_silent): Use
6811 breakpoint_set_silent.
6812 (bppy_set_thread): Use breakpoint_set_thread.
6813 (bppy_set_task): Use breakpoint_set_task.
6814 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6815 (breakpoint_set_task): Declare.
6816 (make_breakpoint_silent): Remove.
6817 * breakpoint.c (breakpoint_set_silent): New function.
6818 (breakpoint_set_thread): Likewise.
6819 (breakpoint_set_task): Likewise.
6820 (make_breakpoint_silent): Remove.
6824 * breakpoint.h (user_breakpoint_p): Declare.
6825 * breakpoint.c (user_breakpoint_p): New function.
6826 (breakpoint_1): Use it.
6827 (save_breakpoints): Likewise.
6831 * configure.ac: Add handling of Python distribution on Windows.
6832 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6833 sysconfig variables are not defined, then do not use them.
6834 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6835 instead. On Windows, return all paths using forward-slashes
6836 rather than backslashes.
6840 * configure.ac: Remove fallback behavior for building
6841 against Python. Remove tweaking of Python include path.
6842 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6843 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6844 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6845 Always restore CPPFLAGS and LIBS after linking test.
6846 * configure: Regenerated.
6847 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6848 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6849 * python/python-internal.h: Adjust includes of Python .h files.
6853 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6858 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6863 * arm-linux-nat.c: Update calls to regcache_register_status
6864 instead of regcache_valid_p.
6865 * aix-thread.c: Likewise.
6866 * i386gnu-nat.c: Likewise.
6871 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6872 touching TYPE_FIELD_ARTIFICIAL.
6876 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6881 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6882 selected, don't try iterating over the traceframe's blocks.
6883 (tfile_has_stack): If there's no traceframe selected, then there's
6885 (tfile_has_registers): If there's no traceframe selected, then
6886 there's no registers.
6890 * target.c (memory_xfer_partial): No need to restore shadows if we
6891 haven't read anything.
6895 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6896 and val_print_scalar_formatted.
6900 * tracepoint.c (tfile_read): New.
6901 (tfile_open): Use it.
6902 (tfile_get_traceframe_address): Use it.
6903 (tfile_trace_find): Use it.
6904 (walk_blocks_callback_func): New typedef.
6905 (match_blocktype): New function.
6906 (traceframe_walk_blocks): New function.
6907 (traceframe_find_block_type): New function.
6908 (tfile_fetch_registers, tfile_xfer_partial)
6909 (tfile_get_trace_state_variable_value): Use
6910 traceframe_find_block_type and tfile_read.
6914 * remote-mips.c: Add internationalization mark ups. Remove
6915 trailing \n from already marked up strings.
6919 * python/py-prettyprint.c (print_string_repr): Clear
6920 'addressprint' option when calling val_print_string.
6921 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6922 option when calling val_print_string.
6926 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6928 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6930 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6931 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6932 (gdb_py_long_as_ulongest): New defines.
6933 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6934 (gdb_py_int_as_long): Declare.
6935 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6936 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6937 (valpy_long): Add comment.
6938 * python/py-utils.c (get_addr_from_python): Use
6939 gdb_py_long_as_ulongest. Handle overflow properly.
6940 (gdb_py_object_from_longest): New function.
6941 (gdb_py_object_from_ulongest): Likewise.
6942 (gdb_py_int_as_long): Likewise.
6943 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6944 * python/py-symtab.c (salpy_get_pc): Use
6945 gdb_py_long_from_ulongest.
6946 (salpy_get_line): Use PyInt_FromLong.
6947 * python/py-param.c (set_parameter_value): Use
6949 * python/py-lazy-string.c (stpy_get_address): Use
6950 gdb_py_long_from_ulongest.
6951 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6952 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6953 * python/py-breakpoint.c (bppy_set_thread): Use
6955 (bppy_set_task): Likewise.
6956 (bppy_set_ignore_count): Likewise.
6957 (bppy_set_hit_count): Likewise.
6958 * python/py-block.c (blpy_get_start): Use
6959 gdb_py_object_from_ulongest.
6960 (blpy_get_end): Likewise.
6961 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6966 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6967 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6968 equality test for objfile, initialize addr_low if needed.
6972 * tui/tui-regs.c (tui_register_format): Remove dead code.
6976 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6977 instead of print_scalar_formatted.
6978 (print_scalar_formatted): Don't handle 's' format strings here,
6979 and add an assertion that we never see such format here.
6980 * valprint.h (val_print_scalar_formatted): Declare.
6981 * valprint.c (val_print_scalar_formatted): New.
6982 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6983 instead of print_scalar_formatted.
6984 * jv-valprint.c (java_val_print): Ditto.
6985 * p-valprint.c (pascal_val_print): Ditto.
6986 * ada-valprint.c (ada_val_print_1): Ditto.
6987 * f-valprint.c (f_val_print): Ditto.
6988 * infcmd.c (registers_info): Ditto.
6989 * m2-valprint.c (m2_val_print): Ditto.
6993 * m2-valprint.c (print_unbounded_array): Pass
6994 value_contents_for_printing rather than value_contents, to
6995 m2_print_array_contents. Also pass in the value.
6999 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7000 (save_gdb_index_command): Switch to .gdb_index version 4.
7004 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7005 than frame_register, and always pass a valid value to val_print.
7009 Centralize printing "<optimized out>".
7011 * valprint.h (val_print_optimized_out): Declare.
7012 * cp-valprint.c (cp_print_value_fields): Use
7013 val_print_optimized_out.
7014 * jv-valprint.c (java_print_value_fields): Ditto.
7015 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7016 * printcmd.c (print_formatted): Ditto.
7017 * valprint.c (valprint_check_validity): Ditto.
7018 (value_check_printable): Ditto.
7019 (val_print_optimized_out): New.
7023 * infcmd.c (default_print_registers_info): Allocate values so to
7024 never pass a NULL value to val_print.
7028 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7029 boolean. Make sure to always pass a value that matches the
7030 contents buffer to callees. Preserve `address' for following
7032 * value.c (value_contents_for_printing_const): New.
7033 (value_address): Constify value argument.
7034 * value.h (value_contents_for_printing_const): Declare.
7035 (value_address): Constify value argument.
7039 * regcache.c (struct regcache_descr): Rename
7040 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7041 and sizeof_cooked_register_valid_p to
7042 sizeof_cooked_register_status.
7043 (init_regcache_descr): Adjust.
7044 (struct regcache): Rename register_valid_p field to
7046 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7047 (do_cooked_read): Adjust.
7048 (regcache_valid_p): Rename to ...
7049 (regcache_register_status): ... this. Adjust.
7050 (regcache_invalidate): Adjust.
7051 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7053 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7054 as unavailable, not valid.
7055 (regcache_dump): Adjust.
7056 * regcache.h (enum register_status): New.
7057 (regcache_register_status): Declare.
7058 (regcache_invalidate): Delete declaration.
7059 * corelow.c (get_core_registers): Adjust.
7060 * tracepoint.c (tfile_fetch_registers): Adjust.
7061 * trad-frame.c (REG_VALUE): Rename to ...
7062 (TF_REG_VALUE): ... this.
7063 (REG_UNKNOWN): Rename to ...
7064 (TF_REG_UNKNOWN): ... this.
7065 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7066 * mi/mi-main.c (register_changed_p): Adjust.
7070 * regcache.c (struct regcache_descr): Remove outdated comment.
7071 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7073 (regcache_xmalloc): Rename to ...
7074 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7075 Allocate the regcache type accordingly.
7076 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7077 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7078 cooked registers, not raw.
7079 (regcache_dup_no_passthrough): Delete.
7080 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7081 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7082 mention obsolete write_register_bytes.
7083 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7087 Stop remote_read_bytes from handling partial reads itself.
7089 * remote-fileio.c: Include target.h.
7090 (remote_fileio_write_bytes): Delete.
7091 (remote_fileio_func_open, remote_fileio_func_write)
7092 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7094 (remote_fileio_func_stat): Use target_read_memory and
7095 target_write_memory.
7096 (remote_fileio_func_gettimeofday): Use target_write_memory.
7097 (remote_fileio_func_system): Use target_read_memory.
7098 * remote.c (remote_write_bytes): Make it static.
7099 (remote_read_bytes): Don't handle partial reads here.
7100 * remote.h (remote_read_bytes): Delete declaration.
7104 Simplify XML parsing a bit.
7106 * xml-support.h (gdb_xml_parse_quick): Declare.
7107 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7108 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7110 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7111 gdb_xml_create_parser_and_cleanup_1.
7112 (gdb_xml_parse_quick): New.
7113 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7114 * osdata.c (osdata_parse): Ditto.
7115 * remote.c (remote_threads_info): Ditto.
7116 * solib-target.c (solib_target_parse_libraries): Ditto.
7117 * xml-syscall.c (syscall_parse_xml): Ditto.
7118 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7122 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7123 with remote-mips.o added to gdb_target_obs.
7124 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7128 * ada-valprint.c (val_print_packed_array_elements): Pass the
7129 correct struct value to val_print.
7130 (ada_val_print_1): Ditto.
7134 Don't lose embedded_offset in printing routines throughout.
7136 * valprint.h (val_print_array_elements): Change prototype.
7137 * valprint.c (val_print_array_elements): Add `embedded_offset'
7138 parameter, and adjust to pass it down to val_print, while passing
7139 `valaddr' or `address' unmodified. Take embedded_offset into
7140 account when checking repetitions.
7141 * c-valprint.c (c_val_print): Pass embedded_offset to
7142 val_print_array_elements instead of adjusting `valaddr' and
7144 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7145 embedded_offset to val_print_array_elements instead of adjusting
7147 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7148 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7149 val_print_array_elements and pascal_object_print_value_fields
7150 instead of adjusting `valaddr'.
7151 (pascal_object_print_value_fields): Add `offset' parameter, and
7153 (pascal_object_print_value): Add `offset' parameter, and adjust to
7155 (pascal_object_print_static_field): Use
7156 value_contents_for_printing/value_embedded_offset, rather than
7158 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7159 parameter, and adjust to use it. Use
7160 value_contents_for_printing/value_embedded_offset, rather than
7162 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7163 (ada_val_print_array): Add `offset' parameter, and adjust to use
7165 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7166 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7167 Instead work with offsets. Use
7168 value_contents_for_printing/value_embedded_offset, rather than
7169 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7170 and use value_from_pointer to extract a target pointer, rather
7171 than value_from_longest.
7172 (print_variant_part): Add `offset' parameter. Replace
7173 `outer_valaddr' parameter by a new `outer_offset' parameter.
7174 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7175 (ada_value_print): Use
7176 value_contents_for_printing/value_embedded_offset, rather than
7178 (print_record): Add `offset' parameter, and adjust to pass it
7180 (print_field_values): Add `offset' parameter. Replace
7181 `outer_valaddr' parameter by a new `outer_offset' parameter.
7182 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7183 Use value_contents_for_printing/value_embedded_offset, rather than
7185 * d-valprint.c (dynamic_array_type): Use
7186 value_contents_for_printing/value_embedded_offset, rather than
7188 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7189 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7190 (java_print_value_fields): Take `offset' into account. Don't
7191 re-adjust `valaddr'. Instead pass down adjusted offsets.
7192 (java_val_print): Take `embedded_offset' into account. Pass it to
7193 java_print_value_fields.
7194 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7195 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7196 down adjusted offsets.
7197 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7198 (f_val_print): Take `embedded_offset' into account.
7202 * inflow.c: Include "gdbcmd.h".
7203 (interactive_mode): New static global, moved here from top.c.
7204 (show_interactive_mode): New function, moved here from top.c.
7205 use gdb_has_a_terminal instead of input_from_terminal_p to
7206 determine the current mode.
7207 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7209 (_initialize_inflow): Add the "set/show interactive-mode"
7210 commands. Moved here from top.c, after having adjusted slightly
7212 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7214 (input_from_terminal_p): Remove handling of "interactive-mode"
7215 setting, moved to infow.c.
7216 (init_main): Remove creation of the "set/show interactive-mode"
7217 commands, moved to inflow.c.
7221 * NEWS: Add entry for native ia64-hpux support.
7226 * thread.c (free_thread): Free 'name'.
7227 (print_thread_info): Emit thread name. Change CLI output.
7228 (thread_name_command): New function.
7229 (do_captured_thread_select): Emit newline.
7230 (_initialize_thread): Register 'thread name' command.
7231 * target.h (struct target_ops) <to_thread_name>: New field.
7232 (target_thread_name): New macro.
7233 * target.c (update_current_target): Handle to_thread_name.
7234 * python/py-infthread.c (thpy_get_name): New function.
7235 (thpy_set_name): Likewise.
7236 (thread_object_getset): Add "name".
7237 * linux-nat.c (linux_nat_thread_name): New function.
7238 (linux_nat_add_target): Set to_thread_name.
7239 * gdbthread.h (struct thread_info) <name>: New field.
7243 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7244 (ada_val_print_1): Likewise.
7248 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7249 upper limit address is not greater than the function end address
7250 when the upper limit could not be computed using the debugging
7255 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7257 * utils.c: Include gdb_regex.h.
7258 (do_regfree_cleanup): New function.
7259 (make_regfree_cleanup): Likewise.
7260 (get_regcomp_error): Likewise.
7261 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7265 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7270 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7271 for internal variables.
7272 (last_was_structop): New static variable.
7273 (COMPLETE): New token.
7274 (field_exp): New rule to group all '.' suffix handling.
7275 Add mark_struct_expression calls when approriate to be able
7276 to correctly find fields for completion.
7277 (yylex): Adapt to handle field completion and set INTVAR when
7282 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7283 save_reggroup, restore_reggroup and all_reggroup.
7287 * ada-valprint. (ada_printchar): Use the correct type length
7288 in call to ada_emit_char.
7289 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7293 * solib-som.h (hpux_major_release): Declare variable here.
7294 * solib-som.c: Remove <sys/utsname.h> header.
7295 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7296 (hpux_major_release): Make global, change default value to
7297 DEFAULT_HPUX_MAJOR_RELEASE.
7298 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7299 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7300 Add "solib-som.h" header.
7301 (set_hpux_major_release): New function.
7302 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7306 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7310 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7311 new-line at end of warning message.
7312 (ia64_hpux_store_register): Remove trailing new-line at end of
7314 * ia64-hpux-tdep.c: Rephrase comment.
7315 * solib-ia64-hpux.c (struct dld_info): Change type of field
7316 dld_flags from "long long" to ULONGEST.
7320 * target.h (deprecated_child_ops): Delete declaration.
7321 * target.c (deprecated_child_ops): Delete definition.
7325 * Makefile.in (hpux-thread.o): Delete rule.
7326 * configure.ac: Don't check for HPUX DCE threads support.
7327 * configure, config.in: Regenerate.
7328 * hppa-hpux-nat.c (child_suppress_run): Delete.
7329 (hppa_hpux_child_can_run): Delete.
7330 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7331 * hpux-thread.c: Delete.
7335 * hpux-thread.c (hpux_pid_to_str): Delete.
7339 * ada-valprint.c (ada_emit_char): Remove strange code.
7340 Check that c is <= UCHAR_MAX before passing it to isascii.
7341 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7345 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7346 to the case where instream is stdin.
7350 * ia64-tdep.h (struct regcache): Forward declare.
7351 (struct ia64_infcall_ops): New struct type.
7352 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7354 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7355 Renames ia64_find_global_pointer.
7356 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7357 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7358 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7360 (ia64_infcall_ops): New static global constant.
7361 (ia64_gdbarch_init): Set tdep->infcall_ops.
7362 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7363 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7364 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7365 (ia64_hpux_dummy_code): New static global constant.
7366 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7367 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7368 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7370 (ia64_hpux_infcall_ops): New static global constant.
7371 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7372 for inferior function calls to work properly on ia64-hpux.
7376 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7377 * ia64-tdep.h (struct frame_info): forward declaration.
7378 (struct gdbarch_tdep): Add field size_of_register_frame.
7379 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7380 to determine the size of the register frame.
7381 (ia64_size_of_register_frame): New function.
7382 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7383 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7384 (IA64_HPUX_UREG_REASON): New macro.
7385 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7387 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7388 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7389 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7394 Add support for ia64-hpux.
7395 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7396 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7398 * configure.host: Add handling for ia64-hpux hosts. Add associated
7400 * configure.tgt: Add handling for ia64-hpux targets.
7401 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7402 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7403 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7407 [ttrace] Compute thread list immediately after attach.
7408 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7410 (inf_ttrace_attach): Use it.
7414 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7415 if we could not determine the frame's function address. Instead,
7416 use the frame's PC, and then continue.
7420 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7421 not already defined.
7425 * ia64-tdep.c (ia64_struct_type_p): New function.
7426 (ia64_extract_return_value): Handle integral values that are
7427 less than 8 bytes long.
7428 (ia64_push_dummy_call): Likewise.
7432 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7433 floatformat_ia64_ext.
7434 (floatformat_ia64_ext_big): New static const.
7435 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7439 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7441 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7442 (mi_cmd_thread_list_ids): Likewise.
7443 (mi_cmd_data_list_changed_registers): Likewise.
7444 (mi_cmd_data_list_register_values): Likewise.
7445 (mi_cmd_data_write_register_values): Likewise.
7446 (mi_cmd_data_evaluate_expression): Likewise.
7447 (mi_cmd_data_read_memory): Likewise.
7448 (mi_cmd_data_read_memory_bytes): Likewise.
7449 (mi_cmd_data_write_memory): Likewise.
7450 (mi_cmd_enable_timings): Likewise.
7451 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7452 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7453 (mi_cmd_var_delete): Likewise.
7454 (mi_cmd_var_set_format): Likewise.
7455 (mi_cmd_var_show_format): Likewise.
7456 (mi_cmd_var_info_num_children): Likewise.
7457 (mi_cmd_var_list_children): Likewise.
7458 (mi_cmd_var_info_type): Likewise.
7459 (mi_cmd_var_info_expression): Likewise.
7460 (mi_cmd_var_show_attributes): Likewise.
7461 (mi_cmd_var_assign): Likewise.
7462 (mi_cmd_var_update): Likewise.
7463 (mi_cmd_enable_pretty_printing): Likewise.
7464 (mi_cmd_var_set_update_range): Likewise.
7465 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7467 (mi_cmd_target_file_put): Likewise.
7468 (mi_cmd_target_file_delete): Likewise.
7469 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7471 (mi_cmd_stack_info_depth): Likewise.
7472 (mi_cmd_stack_list_locals): Likewise.
7473 (mi_cmd_stack_list_args): Likewise.
7474 (mi_cmd_stack_select_frame): Likewise.
7475 (mi_cmd_stack_select_frame): Likewise.
7476 (mi_cmd_stack_info_frame): Likewise.
7477 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7479 (mi_cmd_file_list_exec_source_files): Likewise.
7480 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7481 (mi_cmd_env_cd): Likewise.
7482 (mi_cmd_env_path): Likewise.
7483 (mi_cmd_env_dir): Likewise.
7484 (mi_cmd_inferior_tty_show): Likewise.
7485 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7486 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7487 (mi_cmd_break_watch): Likewise.
7491 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7492 (ppc_linux_insert_hw_breakpoint): Likewise.
7493 (ppc_linux_remove_hw_breakpoint): Likewise.
7494 (ppc_linux_insert_watchpoint): Likewise.
7499 PR fortran/11104 and DWARF unbound arrays detection.
7500 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7501 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7502 unspecified upper bound.
7503 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7504 variables array_size_array, tmp_type and offset_item. New variable
7505 array. Remove call to f77_get_upperbound. New variables array_type
7506 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7507 the final call to deprecated_set_value_type.
7511 Make value allocations more lazy.
7512 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7513 instead of allocate_value and set_value_lazy when possible.
7514 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7515 instead of allocate_value and set_value_lazy.
7516 * findvar.c (value_of_register_lazy): Likewise.
7517 (read_var_value): Remove V preallocation, call just check_typedef in
7518 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7519 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7520 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7521 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7522 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7523 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7524 the end, remove set_value_lazy there.
7525 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7526 instead of allocate_value and set_value_lazy when possible.
7527 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7528 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7529 of allocate_value and set_value_lazy.
7530 (value_from_contents_and_address): Use allocate_value_lazy instead of
7531 allocate_value and set_value_lazy when possible.
7535 * disasm.c (dump_insns): Support dumping opcodes for MI.
7536 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7537 dumping of instruction opcodes.
7541 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7546 * thread.c (do_captured_thread_select): Emit newline before
7551 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7552 * score-tdep.c: Ditto.
7553 * score-tdep.h: Ditto.
7554 * ser-base.c: Ditto.
7555 * ser-go32.c: Ditto.
7558 * ser-mingw.c: Ditto.
7559 * ser-pipe.c: Ditto.
7561 * ser-unix.c: Ditto.
7562 * sh64-tdep.c: Ditto.
7563 * shnbsd-nat.c: Ditto.
7567 * solib-darwin.c: Ditto.
7568 * solib-frv.c: Ditto.
7570 * solib-irix.c: Ditto.
7571 * solib-osf.c: Ditto.
7572 * solib-pa64.c: Ditto.
7573 * solib-som.c: Ditto.
7574 * solib-spu.c: Ditto.
7575 * solib-sunos.c: Ditto.
7576 * solib-svr4.c: Ditto.
7578 * sol-thread.c: Ditto.
7582 * sparc64-linux-tdep.c: Ditto.
7583 * sparc64-tdep.c: Ditto.
7584 * sparc-linux-nat.c: Ditto.
7585 * sparc-linux-tdep.c: Ditto.
7586 * sparc-sol2-nat.c: Ditto.
7587 * sparc-sol2-tdep.c: Ditto.
7588 * sparc-tdep.c: Ditto.
7589 * sparc-tdep.h: Ditto.
7590 * spu-tdep.c: Ditto.
7591 * stabsread.c: Ditto.
7592 * stabsread.h: Ditto.
7600 * target-descriptions.c: Ditto.
7601 * target-descriptions.h: Ditto.
7603 * target-memory.c: Ditto.
7604 * terminal.h: Ditto.
7607 * tracepoint.c: Ditto.
7608 * tracepoint.h: Ditto.
7609 * trad-frame.h: Ditto.
7610 * typeprint.c: Ditto.
7614 * ui-file.c: Comment cleanup, mostly periods and spaces.
7619 * v850-tdep.c: Ditto.
7620 * valarith.c: Ditto.
7622 * valprint.c: Ditto.
7623 * valprint.h: Ditto.
7628 * vax-tdep.c: Ditto.
7632 * windows-nat.c: Ditto.
7633 * windows-tdep.c: Ditto.
7634 * xcoffread.c: Ditto.
7635 * xcoffsolib.c: Ditto.
7636 * xml-support.c: Ditto.
7637 * xstormy16-tdep.c: Ditto.
7638 * xtensa-tdep.c: Ditto.
7639 * xtensa-tdep.h: Ditto.
7643 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7644 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7649 Implement support for PowerPC BookE ranged watchpoints.
7651 (struct breakpoint_ops) <resources_needed>: New method.
7652 Initialize to NULL in all existing breakpoint_ops instances.
7653 (struct breakpoint) <exact>: New field.
7654 (target_exact_watchpoints): Declare external global.
7655 * breakpoint.c (target_exact_watchpoints): New global flag.
7656 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7657 b->enable_state to bp_enabled before calling
7658 hw_watchpoint_used_count.
7659 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7660 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7662 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7663 if the watchpoint is exact.
7664 (resources_needed_watchpoint): New function.
7665 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7666 (watch_command_1): Set b->exact if the user asked for an exact
7667 watchpoint and one can be set.
7668 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7669 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7670 the user asks for an exact watchpoint and one can be set. Return
7671 number of needed debug registers to watch the expression.
7672 * gdbtypes.c (is_scalar_type): New function, based on
7673 valprint.c:scalar_type_p.
7674 (is_scalar_type_recursive): New function.
7675 * gdbtypes.h (is_scalar_type_recursive): Declare.
7676 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7677 handle regions when ranged watchpoints are available.
7678 (create_watchpoint_request): New function.
7679 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7680 create_watchpoint_request.
7681 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7682 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7683 `set powerpc' and `show powerpc' commands.
7684 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7685 Mention documentation comment in the target macro.
7686 (target_region_ok_for_hw_watchpoint): Document return value.
7690 * breakpoint.c (update_watchpoint): Decide on using a software or
7691 hardware watchpoint after the bp_locations are created.
7695 Convert hardware watchpoints to use breakpoint_ops.
7696 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7697 <insert_location>: ... this. Return int instead of void.
7698 Accept pointer to struct bp_location instead of pointer to
7699 struct breakpoint. Adapt all implementations.
7700 (breakpoint_ops) <remove>: Rename to...
7701 <remove_location>: ... this. Accept pointer to struct bp_location
7702 instead of pointer to struct breakpoint. Adapt all implementations.
7703 * breakpoint.c (insert_catchpoint): Delete function.
7704 (insert_bp_location): Call the watchpoint or catchpoint's
7705 breakpoint_ops.insert method.
7706 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7707 breakpoint_ops.remove method.
7708 (insert_watchpoint, remove_watchpoint): New functions.
7709 (watchpoint_breakpoint_ops): New structure.
7710 (watch_command_1): Initialize the OPS field.
7711 * inf-child.c (inf_child_insert_fork_catchpoint)
7712 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7713 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7714 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7716 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7717 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7718 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7719 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7720 * target.c (update_current_target): Change default implementation of
7721 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7722 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7723 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7724 to_set_syscall_catchpoint to return_one.
7725 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7726 (debug_to_insert_exec_catchpoint): Report return value.
7727 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7728 (to_insert_exec_catchpoint): Change declaration to return int instead
7733 * arm-tdep.c: Internationalization.
7736 * fork-child.c: Ditto.
7737 * nto-procfs.c: Ditto.
7738 * ppc-sysv-tdep.c: Ditto.
7740 * remote-mips.c: Ditto.
7742 * rs6000-nat.c: Ditto.
7743 * rs6000-tdep.c: Ditto.
7747 * xml-support.c: Ditto.
7748 * mi/mi-cmd-break.c: Ditto.
7749 * mi/mi-cmd-var.c: Ditto.
7750 * mi/mi-interp.c: Ditto.
7751 * mi/mi-main.c: Ditto.
7755 * remote-sim.c (gdbsim_store_register): Update API to
7756 sim_store_register to check more error conditions.
7760 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7761 * nto-tdep.c: Ditto.
7762 * nto-tdep.h: Ditto.
7763 * objc-exp.y: Ditto.
7764 * objc-lang.c: Ditto.
7765 * objfiles.c: Ditto.
7766 * objfiles.h: Ditto.
7767 * observer.c: Ditto.
7768 * opencl-lang.c: Ditto.
7771 * parser-defs.h: Ditto.
7774 * posix-hdep.c: Ditto.
7775 * ppcbug-rom.c: Ditto.
7776 * ppc-linux-nat.c: Ditto.
7777 * ppc-linux-tdep.c: Ditto.
7778 * ppc-linux-tdep.h: Ditto.
7779 * ppcnbsd-tdep.c: Ditto.
7780 * ppcobsd-tdep.c: Ditto.
7781 * ppcobsd-tdep.h: Ditto.
7782 * ppc-sysv-tdep.c: Ditto.
7783 * ppc-tdep.h: Ditto.
7784 * printcmd.c: Ditto.
7785 * proc-abi.c: Ditto.
7786 * proc-flags.c: Ditto.
7788 * proc-utils.h: Ditto.
7789 * progspace.h: Ditto.
7790 * prologue-value.c: Ditto.
7791 * prologue-value.h: Ditto.
7792 * psympriv.h: Ditto.
7794 * p-typeprint.c: Ditto.
7795 * p-valprint.c: Ditto.
7796 * ravenscar-sparc-thread.c: Ditto.
7797 * ravenscar-thread.c: Ditto.
7798 * ravenscar-thread.h: Ditto.
7800 * regcache.c: Ditto.
7801 * regcache.h: Ditto.
7803 * remote-fileio.c: Ditto.
7804 * remote-fileio.h: Ditto.
7806 * remote-m32r-sdi.c: Ditto.
7807 * remote-mips.c: Ditto.
7808 * remote-sim.c: Ditto.
7809 * rs6000-aix-tdep.c: Ditto.
7810 * rs6000-nat.c: Ditto.
7811 * rs6000-tdep.c: Ditto.
7815 * charset.c (validate): Internationalization.
7816 * coffread.c (read_one_sym): Ditto.
7817 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7818 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7819 * inflow.c (new_tty): Ditto.
7820 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7821 * m32c-tdep.c (m32c_return_value): Ditto.
7822 * mep-tdep.c (mep_store_return_value): Ditto.
7823 * score-tdep.c (score7_fetch_insn): Ditto.
7824 * ser-mingw.c (pipe_windows_open): Ditto.
7825 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7826 * spu-tdep.c (spu_register_type): Ditto.
7827 * tracepoint.c (trace_find_command): Ditto.
7828 * valarith.c (value_pos): Ditto.
7832 * ada-valprint.c (printstr): Minor comment reformatting.
7836 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7841 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7842 * hppa-hpux-tdep.c: Ditto.
7843 * hppa-linux-nat.c: Ditto.
7844 * hppa-linux-tdep.c: Ditto.
7845 * hppanbsd-tdep.c: Ditto.
7846 * hppa-tdep.c: Ditto.
7847 * hppa-tdep.h: Ditto.
7848 * hpux-thread.c: Ditto.
7849 * i386-cygwin-tdep.c: Ditto.
7850 * i386-darwin-nat.c: Ditto.
7851 * i386gnu-nat.c: Ditto.
7852 * i386-linux-nat.c: Ditto.
7853 * i386-linux-tdep.c: Ditto.
7854 * i386-nat.c: Ditto.
7855 * i386-nat.h: Ditto.
7856 * i386nbsd-tdep.c: Ditto.
7857 * i386-sol2-nat.c: Ditto.
7858 * i386-stub.c: Ditto.
7859 * i386-tdep.c: Ditto.
7860 * i386-tdep.h: Ditto.
7861 * i387-tdep.c: Ditto.
7862 * ia64-linux-nat.c: Ditto.
7863 * ia64-linux-tdep.c: Ditto.
7864 * ia64-tdep.c: Ditto.
7868 * inferior.c: Ditto.
7869 * inferior.h: Ditto.
7875 * iq2000-tdep.c: Ditto.
7876 * irix5-nat.c: Ditto.
7882 * jv-typeprint.c: Ditto.
7883 * jv-valprint.c: Ditto.
7884 * language.c: Ditto.
7885 * language.h: Ditto.
7886 * linespec.c: Ditto.
7887 * linux-fork.c: Ditto.
7888 * linux-nat.c: Ditto.
7889 * linux-thread-db.c: Ditto.
7890 * lm32-tdep.c: Ditto.
7894 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7896 * m2-typeprint.c: Ditto.
7897 * m2-valprint.c: Ditto.
7898 * m32c-tdep.c: Ditto.
7899 * m32r-linux-nat.c: Ditto.
7900 * m32r-rom.c: Ditto.
7901 * m32r-tdep.c: Ditto.
7902 * m32r-tdep.h: Ditto.
7903 * m68hc11-tdep.c: Ditto.
7904 * m58klinux-nat.c: Ditto.
7905 * m68k-tdep.c: Ditto.
7906 * m88k-tdep.c: Ditto.
7907 * m88k-tdep.h: Ditto.
7908 * machoread.c: Ditto.
7909 * macrocmd.c: Ditto.
7910 * macroexp.c: Ditto.
7911 * macrotab.c: Ditto.
7914 * mdebugread.c: Ditto.
7915 * mdebugread.h: Ditto.
7918 * memory-map.h: Ditto.
7919 * mep-tdep.c: Ditto.
7920 * microblaze-rom.c: Ditto.
7921 * microblaze-tdep.c: Ditto.
7923 * mips-irix-tdep.c: Ditto.
7924 * mips-linux-nat.c: Ditto.
7925 * mips-linux-tdep.c: Ditto.
7926 * mips-linux-tdep.h: Ditto.
7927 * mipsnbsd-nat.c: Ditto.
7928 * mipsnbsd-tdep.c: Ditto.
7929 * mipsread.c: Ditto.
7930 * mips-tdep.c: Ditto.
7931 * mips-tdep.h: Ditto.
7932 * mn10300-linux-tdep.c: Ditto.
7933 * mn10300-tdep.c: Ditto.
7934 * mn10300-tdep.h: Ditto.
7937 * moxie-tdep.c: Ditto.
7938 * moxie-tdep.h: Ditto.
7943 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7947 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7951 * charset.c (_initialize_charset): Fix typo in string.
7955 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7957 * tui/tui-layout.c (tui_set_layout_for_display_command):
7958 Split line so that operator goes to beginning of line.
7959 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7960 assignment out of if statement.
7964 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7965 * ada-lang.h: Ditto.
7966 * ada-tasks.c: Ditto.
7967 * ada-valprint.c: Ditto.
7968 * aix-threads.c: Ditto.
7969 * alpha-linux-nat.c: Ditto.
7970 * alpha-linux-tdep.c: Ditto.
7971 * alpha-mdebug-tdep.c: Ditto.
7972 * alpha-nat.c: Ditto.
7973 * alpha-osf1-tdep.c: Ditto.
7974 * alpha-tdep.c: Ditto.
7975 * alphabsd-nat.c: Ditto.
7976 * alphabsd-tdep.c: Ditto.
7977 * amd64-darwin-tdep.c: Ditto.
7978 * amd64-linux-nat.c: Ditto.
7979 * amd64-linux-tdep.c: Ditto.
7980 * amd64-sol2-tdep.c: Ditto.
7981 * amd64-tdep.c: Ditto.
7982 * amd64-fbsd-tdep.c: Ditto.
7983 * amd64-nbsd-tdep.c: Ditto.
7984 * amd64-obsd-tdep.c: Ditto.
7985 * amd64-linux-nat.c: Ditto.
7986 * amd64-linux-tdep.c: Ditto.
7987 * arm-tdep.c: Ditto.
7988 * arm-tdep.h: Ditto.
7989 * armnbsd-nat.c: Ditto.
7990 * avr-tdep.c: Ditto.
7991 * bfin-tdep.c: Ditto.
7993 * c-typeprintc: Ditto.
7994 * c-valprint.c: Ditto.
7995 * coff-pe-read.h: Ditto.
7996 * coffreead.c: Ditto.
7997 * cris-tdep.c: Ditto.
7999 * darwin-nat-info.c: Ditto.
8000 * darwin-nat.c: Ditto.
8001 * dbug-rom.c: Ditto.
8005 * dec-thread.c: Ditto.
8007 * demangle.c: Ditto.
8008 * dicos-tdep.c: Ditto.
8009 * dictionary.c: Ditto.
8010 * dictionary.h: Ditto.
8011 * dink32-rom.c: Ditto.
8013 * doublest.c: Ditto.
8015 * dummy-frame.c: Ditto.
8016 * dwarf2-frame.c: Ditto.
8017 * dwarf2expr.c: Ditto.
8018 * dwarf2loc.c: Ditto.
8019 * dwarf2read.c: Ditto.
8023 * event-top.h: Ditto.
8024 * exceptions.c: Ditto.
8025 * exceptions.h: Ditto.
8027 * expprint.c: Ditto.
8028 * expression.h: Ditto.
8032 * f-typeprint.c: Ditto.
8033 * f-valprint.c: Ditto.
8034 * fbsd-nat.c: Ditto.
8036 * fork-child.c: Ditto.
8039 * frv-linux-tdep.c: Ditto.
8040 * frv-tdep.c: Ditto.
8042 * gdb-stabs.h: Ditto.
8043 * gdb_assert.h: Ditto.
8044 * gdb_string.h: Ditto.
8045 * gdb_thread_db.h: Ditto.
8046 * gdb_wait.h: Ditto.
8047 * gdbarch.sh: Ditto.
8049 * gdbthread.h: Ditto.
8050 * gdbtypes.c: Ditto.
8051 * gdbtypes.h: Ditto.
8054 * gnu-v2-abi.c: Ditto.
8055 * gnu-v3-abi.c: Ditto.
8056 * go32-nat.c: Ditto.
8057 * gdbarch.c: Regenerate.
8058 * gdbarch.h: Regenerate.
8062 * ax-gdb.c: Adjust some long output strings.
8063 * breakpoint.c: Ditto.
8068 * linux-nat.c: Ditto.
8069 * solib-pa64.c: Ditto.
8070 * solib-som.c: Ditto.
8076 * python/python.c (GdbMethods): Add "newest_frame" method.
8077 * python/python-internal.h (gdbpy_newest_frame): Declare.
8078 * python/py-frame.c (gdbpy_newest_frame): New function.
8082 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8083 * jit.c (jit_debug): New variable.
8084 (show_jit_debug): New function.
8085 (struct target_buffer): Use ULONGEST.
8086 (bfd_open_from_target_memory): Likewise.
8087 (jit_register_code, jit_inferior_init): Add debug output.
8088 (_initialize_jit): Register "debug jit" command.
8092 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8093 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8098 * python/py-frame.c (frapy_block): Use get_frame_block.
8102 Do not stop on SIGPRIO signals by default
8103 * infrun.c (_initialize_infrun): Unset signal_stop and
8104 signal_print for TARGET_SIGNAL_PRIO.
8108 * ada-tasks.c: Fix style violation in comment.
8112 * linespec.c (decode_compound, find_method): Remove trailing \n
8113 at end of error string.
8114 * solib-irix.c (irix_current_sos): Likewise.
8115 * varobj.c (uninstall_variable): Likewise.
8119 * copyright.py: New script.
8120 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8121 Launch emacs without exec'ing. Call copyright.py afterwards.
8125 * addrmap.c: Shorten lines of >= 80 columns.
8126 * arch-utils.c: Ditto.
8127 * arch-utils.h: Ditto.
8129 * ax-general.c: Ditto.
8131 * blockframe.c: Ditto.
8132 * breakpoint.c: Ditto.
8133 * buildsym.c: Ditto.
8135 * c-typeprint.c: Ditto.
8137 * coffread.c: Ditto.
8141 * cp-namespace.c: Ditto.
8142 * cp-support.c: Ditto.
8143 * dbug-rom.c: Ditto.
8148 * dictionary.c: Ditto.
8150 * doublest.c: Ditto.
8151 * dwarf2-frame.c: Ditto.
8152 * dwarf2expr.c: Ditto.
8153 * dwarf2loc.c: Ditto.
8154 * dwarf2read.c: Ditto.
8157 * event-loop.c: Ditto.
8158 * event-loop.h: Ditto.
8159 * exceptions.h: Ditto.
8161 * expprint.c: Ditto.
8162 * expression.h: Ditto.
8164 * f-valprint.c: Ditto.
8166 * frame-base.c: Ditto.
8167 * frame-unwind.c: Ditto.
8168 * frame-unwind.h: Ditto.
8172 * gdb-stabs.h: Ditto.
8173 * gdb_assert.h: Ditto.
8174 * gdb_dirent.h: Ditto.
8175 * gdb_obstack.h: Ditto.
8177 * gdbtypes.c: Ditto.
8178 * gdbtypes.h: Ditto.
8179 * inf-ttrace.c: Ditto.
8184 * inline-frame.h: Ditto.
8185 * language.c: Ditto.
8186 * language.h: Ditto.
8187 * libunwind-frame.c: Ditto.
8188 * libunwind-frame.h: Ditto.
8189 * linespec.c: Ditto.
8190 * linux-nat.c: Ditto.
8191 * linux-nat.h: Ditto.
8192 * linux-thread-db.c: Ditto.
8193 * machoread.c: Ditto.
8194 * macroexp.c: Ditto.
8195 * macrotab.c: Ditto.
8198 * mdebugread.c: Ditto.
8203 * objfiles.c: Ditto.
8204 * objfiles.h: Ditto.
8206 * p-typeprint.c: Ditto.
8207 * p-valprint.c: Ditto.
8209 * printcmd.c: Ditto.
8210 * proc-events.c: Ditto.
8212 * progspace.c: Ditto.
8213 * progspace.h: Ditto.
8214 * psympriv.h: Ditto.
8217 * regcache.c: Ditto.
8218 * regcache.h: Ditto.
8219 * remote-fileio.c: Ditto.
8221 * ser-mingw.c: Ditto.
8223 * ser-unix.c: Ditto.
8226 * solib-frv.c: Ditto.
8227 * solib-irix.c: Ditto.
8228 * solib-osf.c: Ditto.
8229 * solib-pa64.c: Ditto.
8230 * solib-som.c: Ditto.
8231 * solib-sunos.c: Ditto.
8232 * solib-svr4.c: Ditto.
8233 * solib-target.c: Ditto.
8237 * stabsread.c: Ditto.
8238 * stabsread.c: Ditto.
8241 * symfile-mem.c: Ditto.
8247 * target-descriptions.c: Ditto.
8248 * target-memory.c: Ditto.
8251 * terminal.h: Ditto.
8254 * tracepoint.c: Ditto.
8255 * tracepoint.h: Ditto.
8259 * user-regs.c: Ditto.
8260 * user-regs.h: Ditto.
8262 * valarith.c: Ditto.
8264 * valprint.c: Ditto.
8265 * valprint.h: Ditto.
8270 * xcoffread.c: Ditto.
8271 * xcoffsolib.c: Ditto.
8272 * xcoffsolib.h: Ditto.
8273 * xml-syscall.c: Ditto.
8274 * xml-tdesc.c: Ditto.
8278 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8279 * cli/cli-decode.c: Ditto.
8280 * cli/cli-dump.c: Ditto.
8281 * cli/cli-logging.c: Ditto.
8282 * cli/cli-script.c: Ditto.
8283 * cli/cli-setshow.c: Ditto.
8284 * common/signals.c: Ditto.
8285 * mi/mi-cmd-break.c: Ditto.
8286 * mi/mi-cmd-disas.c: Ditto.
8287 * mi/mi-cmd-stack.c: Ditto.
8288 * mi/mi-cmd-var.c: Ditto.
8289 * mi/mi-cmds.c: Ditto.
8290 * mi/mi-common.h: Ditto.
8291 * mi/mi-console.c: Ditto.
8292 * mi/mi-interp.c: Ditto.
8293 * mi/mi-main.c: Ditto.
8294 * osf-share/cma_attr.c: Ditto.
8295 * osf-share/cma_deb_core.h: Ditto.
8296 * osf-share/cma_debug_client.h: Ditto.
8297 * osf-share/cma_handle.h: Ditto.
8298 * osf-share/cma_mutex.h: Ditto.
8299 * osf-share/cma_stack_int.h: Ditto.
8300 * osf-share/cma_tcb_defs.h: Ditto.
8301 * python/py-auto-load.c: Ditto.
8302 * python/py-breakpoint.c: Ditto.
8303 * python/py-cmd.c: Ditto.
8304 * python/py-frame.c: Ditto.
8305 * python/py-objfile.c: Ditto.
8306 * python/py-param.c: Ditto.
8307 * python/py-progspace.c: Ditto.
8308 * python/py-symbol.c: Ditto.
8309 * python/py-value.c: Ditto.
8310 * python/python-internal.h: Ditto.
8311 * python/python.c: Ditto.
8312 * tui/tui-data.c: Ditto.
8313 * tui/tui-disasm.c: Ditto.
8314 * tui/tui-hooks.c: Ditto.
8315 * tui/tui-io.c: Ditto.
8316 * tui/tui-layout.c: Ditto.
8317 * tui/tui-regs.c: Ditto.
8318 * tui/tui-source.c: Ditto.
8319 * tui/tui-stack.c: Ditto.
8320 * tui/tui-win.c: Ditto.
8321 * tui/tui-windata.c: Ditto.
8322 * tui/tui-winsource.c: Ditto.
8326 * configure.ac, gdb.1: Copyright year update.
8330 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8331 this_pc_in_block, morestack_msym and morestack_name. Check for
8332 "__morestack" minimal symbol there.
8336 * symfile.c (find_sym_fns): Add call to dont_repeat.
8340 Copyright year update in most files (performed by copyright.sh).
8344 * top.c (print_gdb_version): Update copyright year in version output.
8346 For older changes see ChangeLog-2010.
8352 version-control: never