da7777e5434e0da9bcc36c0acc4902dddb03dfa7
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-08-12 Doug Evans <dje@google.com>
2
3 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
4 * python/py-symbol.c (sympy_get_type): New function.
5 (symbol_object_getset): Add "type".
6
7 2011-08-12 Pedro Alves <pedro@codesourcery.com>
8
9 PR tui/13073
10
11 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
12 empty name.
13 (tui_show_register_group): Don't store a byte buffer in the data
14 element's value.
15 (tui_register_format): Skip registers with an empty name.
16 (tui_get_register): Store a struct value in the data element's
17 value field instead of a byte buffer holding the raw register
18 contents. Account for optimized-out and unavailable registers
19 when comparing register contents.
20
21 2011-08-09 Pedro Alves <pedro@codesourcery.com>
22
23 * printcmd.c (current_display_number): Update comment.
24 (disable_current_display_cleanup): Delete.
25 (do_one_display): Use make_cleanup_restore_integer. Gracefully
26 catch errors thrown while evaluating and printing the display.
27
28 2011-08-09 Tom Tromey <tromey@redhat.com>
29
30 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
31
32 2011-08-09 Pedro Alves <pedro@codesourcery.com>
33
34 * elfread.c (elf_symtab_read): Rework comments.
35 * maint.c (maintenance_command): Ditto.
36 * somread.c (som_symtab_read): Ditto.
37 * solib.c (solib_find, solib_map_sections, update_solib_list)
38 (solib_add, info_sharedlibrary_command, solib_name_from_address)
39 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
40 (sharedlibrary_command, no_shared_libraries): Ditto.
41 * solib-irix.c (locate_base, disable_break, enable_break)
42 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
43 (irix_current_sos, irix_open_symbol_file_object)
44 (irix_special_symbol_handling): Ditto.
45 * solib-sunos.c (locate_base, first_link_map_member)
46 (sunos_current_sos, disable_break, enable_break)
47 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
48 Ditto.
49 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
50 (open_symbol_file_object, svr4_current_sos, enable_break)
51 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
52 Ditto.
53 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
54 (frv_current_sos, enable_break, frv_special_symbol_handling)
55 (frv_solib_create_inferior_hook): Ditto.
56 * solist.h (struct target_so_ops): Extend the comments of the
57 special_symbol_handling, current_sos and open_symbol_file_object
58 methods.
59
60 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
61
62 * python/lib/gdb/__init__.py: Auto-load files in command and
63 function directories.
64 * python/python.c (finish_python_initialization): Use
65 os.path.join.
66 * python/lib/gdb/command/pretty_printers.py: Self register
67 command.
68 * NEWS: Document auto-loading.
69
70 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
71
72 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
73 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
74 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
75
76 2011-08-08 Tom Tromey <tromey@redhat.com>
77
78 * breakpoint.c (clean_up_filters): Remove.
79 (catch_syscall_split_args): Use VEC_cleanup.
80
81 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
82
83 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
84 (main): Uncomment "Demangling error\n".
85
86 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
87
88 * solib-target.c (segment_attributes): Make them static.
89 (section_attributes, library_children, library_attributes): Likewise.
90 (library_list_children, library_list_attributes): Likesise.
91 (library_list_elements): Likewise.
92
93 2011-08-05 Pedro Alves <pedro@codesourcery.com>
94
95 * exceptions.c (throw_exception): Don't disable the current
96 display.
97 * printcmd.c (disable_current_display_cleanup): New function.
98 (do_one_display): Install a cleanup to disable the current display
99 if doing the display throws.
100
101 2011-08-05 Eli Zaretskii <eliz@gnu.org>
102
103 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
104 initialization of the tp_new member to the corresponding
105 gdbpy_initialize_* function.
106 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
107 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
108 * python/py-function.c (gdbpy_initialize_functions): Likewise.
109 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
110 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
111
112 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
113
114 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
115 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
116 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
117 references to current_uiout.
118
119 2011-08-04 Pedro Alves <pedro@codesourcery.com>
120
121 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
122 (start_event_loop): Use TRY_CATCH instead of catch_errors.
123 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
124 * top.c (gdb_readline_wrapper): Adjust.
125 * tui/tui-interp.c (tui_command_loop):
126 (_initialize_tui_interp): Don't install it.
127
128 2011-08-04 Pedro Alves <pedro@codesourcery.com>
129
130 * ui-out.h (uiout): Rename to ...
131 (current_uiout): ... this.
132 * ui-out.c (uiout): Rename to ...
133 (current_uiout): ... this.
134 * ada-lang.c (print_it_exception, print_one_exception)
135 (print_mention_exception): Adjust.
136 * breakpoint.c (watchpoint_check): Adjust.
137 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
138 (default_collect_info, watchpoints_info, print_one_catch_fork)
139 (print_one_catch_vfork, print_one_catch_syscall)
140 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
141 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
142 (print_it_watchpoint, print_mention_watchpoint)
143 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
144 (print_it_exception_catchpoint, print_one_exception_catchpoint)
145 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
146 (bkpt_print_mention, momentary_bkpt_print_it)
147 (tracepoint_print_mention, update_static_tracepoint)
148 (tracepoints_info, save_breakpoints): Adjust.
149 * cli-out.c (field_separator): Adjust.
150 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
151 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
152 * frame.c (get_current_frame): Adjust.
153 * infcmd.c (run_command_1, print_return_value): Adjust.
154 * inferior.c (inferior_command, info_inferiors_command): Adjust.
155 * infrun.c (print_end_stepping_range_reason): Adjust.
156 (print_signal_exited_reason, print_exited_reason): Adjust.
157 (print_signal_received_reason, print_no_history_reason): Adjust.
158 * interps.c (interp_set): Adjust.
159 * osdata.c (info_osdata_command): Adjust.
160 * progspace.c (maintenance_info_program_spaces_command): Adjust.
161 * remote-fileio.c (remote_fileio_request): Adjust.
162 * remote.c (show_remote_cmd): Adjust.
163 * solib.c (info_sharedlibrary_command): Adjust.
164 * source.c (print_source_lines_base): Adjust.
165 * stack.c (print_stack_frame): Adjust.
166 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
167 * symfile-mem.c (add_vsyscall_page): Adjust.
168 * symfile.c (load_progress, generic_load)
169 (print_transfer_performance): Adjust.
170 * thread.c (info_threads_command, restore_selected_frame)
171 (thread_command): Adjust.
172 * top.c (make_cleanup_restore_ui_file): Adjust.
173 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
174 (print_one_static_tracepoint_marker): Adjust.
175 * cli/cli-cmds.c (print_disassembly): Adjust.
176 * cli/cli-decode.c (print_doc_line): Adjust.
177 * cli/cli-interp.c (safe_execute_command): Adjust.
178 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
179 (handle_redirections): Adjust.
180 * cli/cli-script.c (show_user_1): Adjust.
181 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
182 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
183 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
184 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
185 (mi_cmd_env_dir): Adjust.
186 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
187 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
188 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
189 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
190 (list_args_or_locals): Adjust.
191 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
192 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
193 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
194 (mi_cmd_var_list_children, mi_cmd_var_info_type)
195 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
196 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
197 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
198 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
199 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
200 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
201 (list_available_thread_groups, mi_cmd_list_thread_groups)
202 (mi_cmd_data_list_register_names)
203 (mi_cmd_data_list_changed_registers)
204 (mi_cmd_data_list_register_values, get_register)
205 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
206 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
207 (mi_cmd_list_target_features, mi_cmd_add_inferior)
208 (mi_execute_command, mi_load_progress): Adjust.
209 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
210 * python/py-auto-load.c (print_script, info_auto_load_scripts):
211 Adjust.
212 * python/py-breakpoint.c (bppy_get_commands): Adjust.
213 * tui/tui-interp.c (tui_command_loop): Adjust.
214 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
215
216 2011-08-04 Pedro Alves <pedro@codesourcery.com>
217
218 * exceptions.c (struct catcher): Remove saved_uiout field.
219 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
220 no longer save/resvore the global ui_out builder.
221 (catch_exceptions_with_msg): Save/override/restore the global
222 ui_out builder manually instead of relying on TRY_CATCH to do it.
223 (catch_errors): Save/restore the global ui_out builder manually
224 instead of relying on TRY_CATCH to do it.
225 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
226 parameter.
227 (TRY_CATCH): Adjust.
228 * cli/cli-interp.c (safe_execute_command): Save/override/restore
229 the global ui_out builder manually instead of relying on TRY_CATCH
230 to do it.
231
232 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
233
234 * breakpoint.c (update_global_location_list): Ensure
235 invariant 'first loc marked not duplicated and inserted,
236 following locs marked duplicated/not inserted' is respected
237 for multiple locations at the same address.
238 (unduplicated_should_be_inserted) New function.
239 (swap_insertion) New function.
240
241 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
242
243 * stack.c (print_frame_arguments_choices): Comment typo fix.
244
245 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
246
247 Revert:
248 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
249 * breakpoint.c (insert_bp_location): Remove disabled_breaks
250 argument. Update callers.
251
252 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
253
254 PR gdb/13045
255 * doublest.c (convert_doublest_to_floatformat): Pass correct
256 mantissa length to put_field.
257
258 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
259
260 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
261 exception_print code path.
262 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
263 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
264 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
265
266 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
267
268 Code cleanup.
269 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
270 Remove, merge them into ...
271 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
272 variable args and its initialization.
273 (struct print_args_args, print_args_stub): Remove, merge them into
274 print_frame.
275 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
276 them into ...
277 (do_gdb_disassembly): ... here. Remove variable args and its
278 initialization.
279 (print_frame): Remove variable args and its initialization, new
280 variable gdbarch and numargs (from print_args_stub), inline here
281 print_args_stub with a TRY_CATCH.
282 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
283 them into ...
284 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
285 New variable e, remove variable btargs and its initialization.
286
287 2011-08-01 Tristan Gingold <gingold@adacore.com>
288
289 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
290
291 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
292
293 * breakpoint.c (insert_bp_location): Document return value.
294 (insert_breakpoint_locations): Fix documentation.
295 (remove_breakpoints): Add documentation.
296
297 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
298
299 * breakpoint.c (insert_bp_location): Remove disabled_breaks
300 argument. Update callers.
301
302 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 * stack.c (print_frame_info): Comment typo fix.
305
306 2011-07-29 Sterling Augustine <saugustine@google.com>
307
308 * MAINTAINERS (Write After Approval): Add myself to the list.
309
310 2011-07-29 Tom Tromey <tromey@redhat.com>
311
312 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
313 (library_list_start_segment): Update.
314 (library_list_start_section): Update.
315
316 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
317
318 * varobj.c (value_get_print_value): Move hint check later into the
319 function. Comment function. Free thevalue before reusing it.
320
321 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
322 Pedro Alves <pedro@codesourcery.com>
323
324 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
325 value_one.
326 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
327 Assert the result kind.
328 * value.h (value_one): Remove parameter lv.
329
330 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
331
332 Fix crash on lval_computed values.
333 * valops.c (value_zero): Use not_lval for lval_computed.
334
335 2011-07-27 Tom Tromey <tromey@redhat.com>
336
337 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
338 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
339
340 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
341
342 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
343 "ptype" by their typedefs difference.
344
345 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
346
347 * dwarf2expr.c (ctx_no_read_reg): New function.
348 * dwarf2expr.h (ctx_no_read_reg): New declaration.
349 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
350 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
351 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
352
353 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
356 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
357 file.
358 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
359 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
360 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
361 (ctx_no_get_base_type): Move the functions here.
362 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
363 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
364 (ctx_no_get_base_type): New declarations.
365
366 2011-07-27 Tom Tromey <tromey@redhat.com>
367
368 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
369 entries.
370 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
371 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
372
373 2011-07-26 Sterling Augustine <saugustine@google.com>
374
375 * cli/cli-dump.c (dump_binary_file): Change parameter type to
376 ULONGEST.
377 (dump_bfd_file): Likewise.
378
379 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
380
381 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
382 (remote_hw_watchpoint_length_limit): New variable.
383 (_initialize_remote) add set,show cmds for this new variable.
384 * gdb.texinfo: document these new commands.
385 * NEWS: Mention these new commands.
386
387 2011-07-26 Pedro Alves <pedro@codesourcery.com>
388
389 * breakpoint.c (works_in_software_mode_watchpoint): Also return
390 true for software watchpoints.
391
392 2011-07-26 Joel Brobecker <brobecker@adacore.com>
393
394 GDB 7.3 released.
395
396 2011-07-26 Tom Tromey <tromey@redhat.com>
397
398 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
399 * dwarf2read.c (read_indirect_string_at_offset): New function.
400 (read_indirect_string): Use it.
401 (dwarf_decode_macro_bytes): New function, taken from
402 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
403 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
404 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
405 New functions.
406 (struct dwarf2_per_objfile) <macro>: New field.
407 (dwarf2_elf_names): Add .debug_macro.
408 (dwarf2_macros_too_long_complaint): Add 'section' argument.
409 (dwarf2_locate_sections): Handle new section.
410 (read_file_scope): Handle DW_AT_GNU_macros.
411 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
412
413 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
414
415 * NEWS: Mention dcache configuration.
416 * dcache.c (dcache_set_list, dcache_show_list): New variables.
417 (dcache_size, dcache_line_size): New variables.
418 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
419 (struct dcache_block): Make it expandable.
420 (struct dcache_struct): New field.
421 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
422 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
423 (dcache_poke_byte, dcache_print_line): Adjust.
424 (set_dcache_size, set_dcache_line_size): New functions.
425 (set_dcache_command, show_dcache_command): New functions.
426 (_initialize_dcache): Add new commands.
427
428 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
429
430 * progspace.h (struct program_space): Add solib_add_generation.
431 * infcmd.c (post_create_inferior): Only call solib_add if not
432 already done.
433 * solib.c (solib_add): Increment solib_add_generation.
434
435 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
436
437 Fix implicit pointer offsets.
438 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
439 ptr.OFFSET.
440
441 2011-07-25 Tom Tromey <tromey@redhat.com>
442
443 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
444 const.
445 (ada_exception_sal): Make 'ops' const.
446 (ada_decode_exception_location): Likewise.
447 (ada_decode_assert_location): Likewise.
448 (catch_assert_command): Update.
449 (catch_ada_exception_command): Update.
450 (create_ada_exception_catchpoint): Make 'ops' const.
451 * breakpoint.c (set_raw_breakpoint_without_location)
452 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
453 const.
454 (create_internal_breakpoint): Update.
455 (init_raw_breakpoint_without_location): Make 'ops' const.
456 (init_raw_breakpoint, init_catchpoint)
457 (create_fork_vfork_event_catchpoint)
458 (create_syscall_event_catchpoint, init_breakpoint_sal)
459 (create_breakpoint_sal, create_breakpoints_sal)
460 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
461 * breakpoint.h (struct breakpoint) <ops>: Now const.
462 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
463 const.
464
465 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
466
467 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
468
469 2011-07-25 Pedro Alves <pedro@codesourcery.com>
470
471 * breakpoint.h (print_recreate_thread): Declare.
472 (struct breakpoint): Move step_count, pass_count,
473 number_on_target, static_trace_marker_id,
474 static_trace_marker_id_idx ...
475 (struct tracepoint): ... to this new struct.
476 (get_tracepoint, get_tracepoint_by_number_on_target)
477 (get_tracepoint_by_number): Change return type to struct
478 tracepoint pointer.
479 * breakpoint.c (is_tracepoint_type): New, factored out from
480 is_tracepoint.
481 (is_tracepoint): Adjust.
482 (print_one_breakpoint_location): Cast to struct tracepoint as
483 necessary, and adjust.
484 (print_recreate_catch_fork, print_recreate_catch_vfork)
485 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
486 print_recreate_thread.
487 (init_breakpoint_sal): New, factored out from
488 create_breakpoint_sal.
489 (create_breakpoint_sal): Reimplement.
490 (create_breakpoint): Allocate a struct tracecepoint if the caller
491 wanted a tracepoint. Use init_breakpoint_sal and
492 install_breakpoint.
493 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
494 (print_recreate_masked_watchpoint)
495 (print_recreate_exception_catchpoint): Call print_recreate_thread.
496 (tracepoint_print_one_detail): Adjust.
497 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
498 Dump the pass count here.
499 (update_static_tracepoint): Adjust.
500 (addr_string_to_sals): Adjust.
501 (create_tracepoint_from_upload): Adjust. Change return type to
502 struct tracepoint pointer.
503 (trace_pass_set_count): Change parameter type to struct tracepoint
504 pointer, and adjust.
505 (trace_pass_command): Adjust.
506 (get_tracepoint, get_tracepoint_by_number_on_target)
507 (get_tracepoint_by_number): Change return type to struct
508 tracepoint pointer, and adjust.
509 (print_recreate_thread): New, factored out from save_breakpoints.
510 (save_breakpoints): Don't print thread and task and passcount
511 recreation here.
512 * remote.c (remote_download_tracepoint): Adjust.
513 * tracepoint.c (trace_actions_command, validate_actionline)
514 (start_tracing, tfind_1, trace_find_tracepoint_command)
515 (trace_dump_command): Adjust.
516 (find_matching_tracepoint): Change return type to struct
517 tracepoint pointer, and adjust.
518 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
519 (tfile_trace_find, tfile_fetch_registers): Adjust.
520 * tracepoint.h (create_tracepoint_from_upload): Change return type
521 to struct tracepoint pointer.
522 * ada-lang.c (print_recreate_exception): Call
523 print_recreate_thread.
524 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
525
526 2011-07-25 Pedro Alves <pedro@codesourcery.com>
527
528 * breakpoint.h (struct breakpoint): Move ops as first field. Move
529 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
530 cond_exp_valid_block, val, val_valid, watchpoint_frame,
531 watchpoint_thread, watchpoint_triggered ...
532 (struct watchpoint): ... to this new struct.
533 (is_watchpoint): Declare.
534 (install_breakpoint): Add new `internal' parameter.
535 * breakpoint.c (is_watchpoint): Delete declaration.
536 (set_breakpoint_condition): Handle watchpoints.
537 (is_watchpoint): Make public.
538 (watchpoint_in_thread_scope): Change parameter type to struct
539 watchpoint.
540 (watchpoint_del_at_next_stop): Change parameter type to struct
541 watchpoint. Remove assertion. Adjust.
542 (update_watchpoint): Ditto.
543 (insert_breakpoints, breakpoint_init_inferior)
544 (watchpoints_triggered, watchpoint_check)
545 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
546 (bpstat_stop_status, print_one_breakpoint_location)
547 (print_one_breakpoint_location, watchpoint_locations_match): Cast
548 to struct watchpoint as necessary, and adjust.
549 (install_breakpoint): Add `internal' argument. If true, don't
550 mention the new breakpoint. Use set_breakpoint_number.
551 (create_fork_vfork_event_catchpoint)
552 (create_syscall_event_catchpoint): Adjust.
553 (dtor_watchpoint): New.
554 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
555 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
556 (print_it_watchpoint, print_mention_watchpoint)
557 (print_recreate_watchpoint, insert_masked_watchpoint)
558 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
559 (print_one_detail_masked_watchpoint)
560 (print_mention_masked_watchpoint)
561 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
562 necessary, and adjust.
563 (watch_command_1): Allocate and initialize a struct watchpoint
564 instead of a struct breakpoint. Use install_breakpoint.
565 (catch_exec_command_1): Adjust.
566 (base_breakpoint_dtor): Delete accesses to watchpoint specific
567 fields.
568 (delete_breakpoint, enable_breakpoint_disp)
569 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
570 as necessary, and adjust.
571 (initialize_breakpoint_ops): Install dtor_watchpoint as
572 watchpoints' dtor method.
573 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
574 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
575 to struct watchpoint as necessary, and adjust.
576
577 2011-07-25 Pedro Alves <pedro@codesourcery.com>
578
579 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
580 the the base class ops table.
581 (catch_exception_breakpoint_ops)
582 (catch_exception_unhandled_breakpoint_ops)
583 (catch_assert_breakpoint_ops): Don't statically initialize.
584 (initialize_ada_catchpoint_ops): New.
585 (_initialize_ada_language): Call it.
586 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
587 (bkpt_breakpoint_ops): Forward declare.
588 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
589 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
590 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
591 (masked_watchpoint_breakpoint_ops)
592 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
593 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
594 base class ops table.
595 (null_re_set, null_check_status, null_works_in_software_mode)
596 (null_resources_needed, null_print_one_detail): Delete.
597 (bkpt_dtor): Rename to ...
598 (base_breakpoint_dtor): ... this. Make static.
599 (bkpt_allocate_location): Rename to ...
600 (base_breakpoint_allocate_location): ... this. Make static.
601 (base_breakpoint_re_set): New.
602 (internal_error_pure_virtual_called): New.
603 (base_breakpoint_insert_location, base_breakpoint_remove_location)
604 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
605 (base_breakpoint_works_in_software_mode)
606 (base_breakpoint_resources_needed, base_breakpoint_print_it)
607 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
608 (base_breakpoint_print_recreate): New functions.
609 (base_breakpoint_ops): New global.
610 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
611 (bkpt_breakpoint_hit): Make static.
612 (bkpt_check_status): Delete.
613 (bkpt_resources_needed): Make static.
614 (bkpt_works_in_software_mode): Delete.
615 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
616 static.
617 (bkpt_breakpoint_ops, internal_breakpoint_ops)
618 (momentary_breakpoint_ops): Don't statically initialize.
619 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
620 Delete.
621 (tracepoint_insert_location, tracepoint_remove_location)
622 (tracepoint_check_status, tracepoint_works_in_software_mode)
623 (tracepoint_print_it): Delete.
624 (tracepoint_breakpoint_ops): Don't statically initialize.
625 (initialize_breakpoint_ops): New.
626 (_initialize_breakpoint): Call it.
627 * breakpoint.h (null_re_set, null_works_in_software_mode)
628 (null_resources_needed, null_check_status, null_print_one_detail):
629 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
630 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
631 (bkpt_check_status, bkpt_resources_needed)
632 (bkpt_works_in_software_mode, bkpt_print_it)
633 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
634 Delete declarations.
635 (initialize_breakpoint_ops): Declare.
636
637 2011-07-25 Pedro Alves <pedro@codesourcery.com>
638
639 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
640 (momentary_bkpt_print_it): Simplify.
641
642 2011-07-25 Pedro Alves <pedro@codesourcery.com>
643
644 Split internal, momentary and user breakpoints breakpoint_ops
645 tables.
646
647 * breakpoint.c (internal_breakpoint_ops)
648 (momentary_breakpoint_ops): Forward declare.
649 (create_internal_breakpoint): Add new breakpoint_ops parameter.
650 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
651 (create_overlay_event_breakpoint)
652 (create_std_terminate_master_breakpoint)
653 (create_exception_master_breakpoint): Create breakpoints with
654 internal_breakpoint_ops vtable.
655 (set_longjmp_breakpoint): Create momentary breakpoints with
656 momentary_breakpoint_ops vtable, using
657 momentary_breakpoint_from_master.
658 (create_thread_event_breakpoint, create_jit_event_breakpoint)
659 (create_solib_event_breakpoint): Create breakpoints with
660 internal_breakpoint_ops vtable.
661 (set_momentary_breakpoint): Create breakpoints with
662 momentary_breakpoint_ops vtable.
663 (momentary_breakpoint_from_master): New, factored out from
664 clone_momentary_breakpoint.
665 (clone_momentary_breakpoint): Adjust.
666 (watch_command_1): Create scope breakpoints with
667 momentary_breakpoint_ops vtable.
668 (bkpt_re_set): Remove handling of internal and momentary
669 breakpoints.
670 (bkpt_print_mention, bkpt_print_recreate): New.
671 (bkpt_breakpoint_ops): Adjust.
672 (internal_bkpt_re_set, internal_bkpt_check_status)
673 (internal_bkpt_print_it, internal_bkpt_print_mention)
674 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
675 (momentary_bkpt_re_set, momentary_bkpt_check_status)
676 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
677 (momentary_bkpt_print_recreate): New.
678 (momentary_breakpoint_ops): New.
679
680 2011-07-25 Pedro Alves <pedro@codesourcery.com>
681
682 Implement most breakpoint_ops methods for all breakpoint types,
683 and move the default handlings to the proper callbacks.
684
685 * breakpoint.c (update_watchpoint): Always call the breakpoint's
686 works_in_software_mode method.
687 (insert_bp_location): Go through breakpoint_ops->insert_location
688 for software and hardware watchpoints.
689 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
690 breakpoint_ops.
691 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
692 for software and hardware watchpoints.
693 (print_it_typical): Delete.
694 (print_bp_stop_message): Always call the breakpoint_ops->print_it
695 method.
696 (watchpoint_check): Adjust comment.
697 (bpstat_check_location): Simply always call the breakpoint's
698 breakpoint_hit method.
699 (bpstat_stop_status): Always call the breakpoint's check_status
700 method. Remove special cases for watchpoints and internal event
701 breakpoints from here (moved to the check_status implementations).
702 (print_one_breakpoint_location): Assume b->ops is never NULL.
703 Remove static tracepoint marker id printing from here (moved to
704 the print_one_detail callback implementation of tracepoints).
705 (init_bp_location): Assert OPS is never NULL.
706 (allocate_bp_location): Always call the breakpoint's
707 allocate_location method, and remove the default code from here.
708 (free_bp_location): Always call the location's dtor method, and
709 remove the default code from here.
710 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
711 (set_raw_breakpoint_without_location): Add new breakpoint_ops
712 parameter. Pass it down.
713 (set_raw_breakpoint): Ditto.
714 (print_it_catch_fork): Adjust to take a bpstat as argument.
715 (catch_fork_breakpoint_ops): Install methods.
716 (print_it_catch_vfork): Adjust to take a bpstat as argument.
717 (catch_vfork_breakpoint_ops): Install methods.
718 (dtor_catch_syscall): Call the base dtor.
719 (print_it_catch_syscall): Adjust to take a bpstat as argument.
720 (catch_syscall_breakpoint_ops): Install methods.
721 (dtor_catch_exec): Call the base dtor.
722 (print_it_catch_exec): Adjust to take a bpstat as argument.
723 (catch_exec_breakpoint_ops): Install methods.
724 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
725 the breakpoint's resources_needed method, and remove the default
726 code from here.
727 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
728 breakpoint_ops.
729 (clone_momentary_breakpoint): Clone the original's ops.
730 (mention): Always call the breakpoint's print_mention method, and
731 remove the default code from here.
732 (create_breakpoint_sal): Adjust to pass the ops to
733 set_raw_breakpoint rather than setting it manually.
734 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
735 ops to set_raw_breakpoint_without_location rather than setting it
736 manually.
737 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
738 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
739 (ranged_breakpoint_ops): Install methods.
740 (break_range_command): Adjust to pass the ops to
741 set_raw_breakpoint rather than setting it manually.
742 (re_set_watchpoint, breakpoint_hit_watchpoint)
743 (check_status_watchpoint, resources_needed_watchpoint)
744 (works_in_software_mode_watchpoint, print_it_watchpoint)
745 (print_mention_watchpoint, print_recreate_watchpoint): New
746 functions.
747 (watchpoint_breakpoint_ops): Install new methods.
748 (print_it_masked_watchpoint): New function.
749 (masked_watchpoint_breakpoint_ops): Install new methods.
750 (watch_command_1): Adjust to pass the right breakpoint_ops to
751 set_raw_breakpoint_without_location rather than setting it
752 manually later. Record the current pspace.
753 (print_it_exception_catchpoint): Adjust to take a bpstat as
754 argument.
755 (gnu_v3_exception_catchpoint_ops): Install new methods.
756 (say_where): New function.
757 (null_re_set, null_check_status, null_works_in_software_mode)
758 (null_resources_needed, null_print_one_detail, bp_location_dtor):
759 New functions.
760 (bp_location_ops): New global.
761 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
762 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
763 (bkpt_check_status, bkpt_resources_needed)
764 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
765 (bkpt_print_recreate): New functions.
766 (bkpt_breakpoint_ops): New global.
767 (tracepoint_re_set, tracepoint_insert_location)
768 (tracepoint_remove_location, tracepoint_breakpoint_hit)
769 (tracepoint_check_status, tracepoint_works_in_software_mode)
770 (tracepoint_print_it, tracepoint_print_one_detail)
771 (tracepoint_print_mention, tracepoint_print_recreate): New
772 functions.
773 (tracepoint_breakpoint_ops): New global.
774 (delete_breakpoint): Always call the breakpoint's dtor method, and
775 remove the default handling from here.
776 (breakpoint_re_set_default): Make static.
777 (breakpoint_re_set_one): Always call the breakpoints re_set
778 method, and remove the default handling from here.
779 (trace_command, ftrace_command, strace_command)
780 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
781 to create_breakpoint.
782 (save_breakpoints): Always call the breakpoint's print_recreate
783 method, and remove the default handling from here.
784
785 * ada-lang.c (dtor_exception): Call the base dtor.
786 (re_set_exception): Call the base method.
787 (print_it_exception, print_it_catch_exception): Adjust to take a
788 bpstat as argument.
789 (catch_exception_breakpoint_ops): Install methods.
790 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
791 argument.
792 (catch_exception_unhandled_breakpoint_ops): Install methods.
793 (print_it_catch_assert): Adjust to take a bpstat as argument.
794 (catch_assert_breakpoint_ops): Install methods.
795
796 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
797 to take a bpstat as argument.
798 (enum print_stop_action): Add describing comments to each enum
799 value.
800 (breakpoint_re_set_default): Delete declaration.
801 (null_re_set, null_works_in_software_mode, null_resources_needed)
802 (null_check_status, null_print_one_detail): Declare.
803 (bkpt_breakpoint_ops): Declare.
804 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
805 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
806 (bkpt_check_status, bkpt_resources_needed)
807 (bkpt_works_in_software_mode, bkpt_print_it)
808 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
809 Declare.
810
811 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
812 bkpt_breakpoint_ops.
813 * python/py-breakpoint.c (bppy_init): Ditto.
814
815 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
816
817 * MAINTAINERS (Write After Approval): Add myself to the list.
818
819 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
820
821 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
822
823 2011-07-22 Pedro Alves <pedro@codesourcery.com>
824
825 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
826 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
827 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
828 adjust.
829 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
830 (struct i386_debug_reg_state): New.
831 (i386_init_dregs): New.
832 (dr_mirror): New.
833 (i386_cleanup_dregs): Use i386_init_dregs.
834 (i386_show_dr): Add state parameter and adjust.
835 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
836 the inferior here.
837 (i386_remove_aligned_watchpoint): Likewise.
838 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
839 (i386_update_inferior_debug_regs): New.
840 (i386_insert_watchpoint): Work on a local mirror of the debug
841 registers, and only update the inferior on success.
842 (i386_remove_watchpoint): Ditto.
843 (i386_region_ok_for_watchpoint): Adjust.
844 (i386_stopped_data_address): Adjust.
845 (i386_insert_hw_breakpoint): Adjust.
846 (i386_remove_hw_breakpoint): Adjust.
847
848 2011-07-22 Tom Tromey <tromey@redhat.com>
849
850 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
851 from amd64_pseudo_register_read. Change arguments. Call
852 mark_value_bytes_unavailable when needed.
853 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
854 set_gdbarch_pseudo_register_read.
855 * sentinel-frame.c (sentinel_frame_prev_register): Use
856 regcache_cooked_read_value.
857 * regcache.h (regcache_cooked_read_value): Declare.
858 * regcache.c (regcache_cooked_read_value): New function.
859 (regcache_cooked_read): Call
860 gdbarch_pseudo_register_read_value if available.
861 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
862 (i386_pseudo_register_read): Remove.
863 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
864 i386_pseudo_register_read. Change arguments. Call
865 mark_value_bytes_unavailable when needed.
866 (i386_pseudo_register_read_value): New function.
867 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
868 not set_gdbarch_pseudo_register_read.
869 * gdbarch.sh (pseudo_register_read_value): New method.
870 * gdbarch.c, gdbarch.h: Rebuild.
871 * findvar.c (value_from_register): Call get_frame_register_value.
872
873 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
874
875 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
876 get_prefix.
877 (display_gdb_prompt): Likewise.
878 (change_annotation_level): Likewise.
879 (push_prompt): Likewise.
880 (pop_prompt): Likewise.
881 (handle_stop_sig): Use get_prompt with a level.
882 * top.c (command_loop): Use get_prompt with a level.
883 (set_async_annotation_level): Use set_prompt with a level.
884 (get_prefix): New function.
885 (set_prefix): Ditto.
886 (set_suffix): Ditto.
887 (get_suffix): Ditto.
888 (get_prompt): Accept a level argument.
889 (set_prompt): Accept a level argument. Free old prompts. Set
890 new_async_prompt if level is 0.
891 (init_main): Use set_prompt with a level. Do not set
892 new_async_prompt.
893 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
894 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
895 Modify set_prompt, get_prompt to account for levels.
896 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
897 level.
898 * python/python.c (before_prompt_hook): Use set_prompt.
899
900 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
901
902 * defs.h: Add guard against inclusion in gdbserver.
903 (struct ptid, ptid_t): Move to common/ptid.h.
904 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
905 xsnprintf, internal_error): Move to common/common-utils.h.
906 (nomem): Delete.
907 * gdb_assert.h: Move into common/ sub-directory.
908 * gdb_locale.h: Ditto.
909 * gdb_dirent.h: Ditto.
910 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
911 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
912 Move into common/ptid.h.
913 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
914 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
915 Change nomem to malloc_failure.
916 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
917 * utils.c (nomem): Rename to malloc_failure.
918 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
919 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
920 (gdb_buildargv): Change nomem to malloc_failure.
921 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
922 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
923 ptid_is_pid): Move into common/ptid.c.
924 (initialize_infrun): Delete initialization of null_ptid and
925 minus_one_ptid.
926 * linux-nat.c (linux_nat_xfer_osdata): Defer to
927 linux_common_xfer_osdata.
928 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
929 common/ptid.c and common/buffer.c.
930 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
931 common/ptid.h, common/buffer.h and common/linux-osdata.h.
932 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
933 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
934 rules.
935 * common/gdb_assert.h: New.
936 * common/gdb_dirent.h: New.
937 * common/gdb_locale.h: New.
938 * common/buffer.c: New.
939 * common/buffer.h: New.
940 * common/ptid.c: New.
941 * common/ptid.h: New.
942 * common/xml-utils.c: New.
943 * common/xml-utils.h: New.
944 * common/common-utils.c: New.
945 * common/common-utils.h: New.
946 * common/linux-osdata.c: New.
947 * common/linux-osdata.h: New.
948 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
949 * config/arm/linux.mh (NATDEPFILES): Ditto.
950 * config/i386/linux.mh (NATDEPFILES): Ditto.
951 * config/i386/linux64.mh (NATDEPFILES): Ditto.
952 * config/ia64/linux.mh (NATDEPFILES): Ditto.
953 * config/m32r/linux.mh (NATDEPFILES): Ditto.
954 * config/m68k/linux.mh (NATDEPFILES): Ditto.
955 * config/mips/linux.mh (NATDEPFILES): Ditto.
956 * config/pa/linux.mh (NATDEPFILES): Ditto.
957 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
958 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
959 * config/s390/s390.mh (NATDEPFILES): Ditto.
960 * config/sparc/linux.mh (NATDEPFILES): Ditto.
961 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
962 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
963
964 2011-07-21 Matt Rice <ratmice@gmail.com>
965
966 * NEWS: Add info macros and info definitions commands.
967
968 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
969
970 * NEWS: Document Python prompt substitution hook.
971
972 2011-07-18 Matt Rice <ratmice@gmail.com>
973
974 PR macros/12999
975 * macrotab.h (macro_callback_fn): Add new arguments to callback.
976 * macrotab.c (foreach_macro): Ditto.
977 (foreach_macro_in_scope): Ditto.
978 * macrocmd.c (print_macro_callback): New function.
979 (info_macro_command): Move some code to print_macro_definition.
980 (print_macro_definition): New function.
981 (print_one_macro): Add new arguments to callback.
982 (info_definitions_command): New function.
983 (info_macros_command): Ditto.
984 (_initialize_macrocmd): Add info macros and info definitions commands.
985 * symtab.c (add_macro_name): Add new arguments to callback.
986
987 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
988 Tom Tromey <tromey@redhat.com>
989
990 * top.c (set_prompt): Rewrite to free previous prompt, free
991 asynch_new_prompt and set both on new prompts.
992 * event-top.c (display_gdb_prompt): Add prompt substitution
993 logic.
994 * python/python.c (before_prompt_hook): New function.
995
996 2011-07-20 Matt Rice <ratmice@gmail.com>
997
998 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
999 arguments to store_unsigned_integer.
1000
1001 2011-07-20 Tom Tromey <tromey@redhat.com>
1002
1003 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1004 in some declaration-only cases.
1005
1006 2011-07-18 Tom Tromey <tromey@redhat.com>
1007
1008 PR symtab/12984:
1009 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1010 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1011 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1012 <debug_type_section>: New field.
1013 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1014 (load_cu): Use appropriate section.
1015 (create_signatured_type_table_from_index): Add 'section'
1016 argument.
1017 (dwarf2_read_index): Only allow a single .debug_types section.
1018 (dw2_get_file_names): Use appropriate section.
1019 (read_type_comp_unit_head): Add 'section' argument.
1020 (create_debug_types_hash_table): Loop over all .debug_types
1021 sections.
1022 (init_cu_die_reader): Use appropriate section.
1023 (process_psymtab_comp_unit, load_partial_comp_unit)
1024 (load_full_comp_unit, read_die_and_children, find_partial_die)
1025 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1026 (lookup_signatured_type_at_offset): Add 'section' argument.
1027 (read_signatured_type_at_offset): Add 'sect' argument.
1028 (read_signatured_type): Use appropriate section.
1029 (set_die_type, get_die_type_at_offset): Update.
1030 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1031 VEC.
1032 (write_psymtabs_to_index): Don't allow index with more than one
1033 .debug_types section.
1034
1035 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1036
1037 Fix crash if referenced CU is aged out.
1038 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1039 xfree of block.data.
1040 (indirect_pieced_value): New variable back_to, use to for xfree of
1041 baton.data.
1042 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1043 block.data.
1044 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1045 (load_cu): New function from ...
1046 (dw2_do_instantiate_symtab): ... the code here ...
1047 (process_full_comp_unit): ... and here.
1048 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1049 retval.data.
1050
1051 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1052
1053 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1054 type.
1055
1056 2011-07-19 Gary Benson <gbenson@redhat.com>
1057
1058 * infrun.c (struct execution_control_state): New member
1059 stop_func_filled_in.
1060 (clear_stop_func, fill_in_stop_func): New functions.
1061 (handle_inferior_event): Call clear_stop_func rather than
1062 manipulating the execution control state directly.
1063 Call fill_in_stop_func lazily as required rather than
1064 directly calling find_pc_partial_function in all cases.
1065
1066 2011-07-18 Tom Tromey <tromey@redhat.com>
1067
1068 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1069 checking for variable-sized array.
1070
1071 2011-07-18 Jean-Charles Delay <delay@adacore.com>
1072
1073 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1074 of supported languages.
1075 * varobj.c: Add top definitions and basic implementation of the
1076 following callbacks: ada_number_of_children, ada_name_of_variable,
1077 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1078 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1079 (languages): Register Ada-specific callbacks.
1080 (variable_language): Add the Ada case in the language setter switch.
1081
1082 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1083
1084 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1085
1086 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 Code cleanup.
1089 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1090 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1091 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1092 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1093 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1094 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1095 (struct dwarf_expr_context_funcs): New, move here methods from ...
1096 (struct dwarf_expr_context): ... here. New fields funcs.
1097 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1098 (dwarf_expr_ctx_funcs): New.
1099 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1100 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1101 (needs_frame_ctx_funcs): New.
1102 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1103
1104 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1105
1106 * MAINTAINERS (Write After Approval): Add myself to the list.
1107
1108 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1109
1110 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1111 that CIE pointer of an FDE really points to a CIE .
1112
1113 2011-07-15 Hui Zhu <teawater@gmail.com>
1114
1115 * remote.c (remote_get_trace_status): Add comments.
1116
1117 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1118
1119 Code cleanup - constify struct lval_funcs.
1120 * dwarf2loc.c (pieced_value_funcs): Make it const.
1121 * infrun.c (siginfo_value_funcs): Likewise.
1122 * opencl-lang.c (opencl_value_funcs): Likewise.
1123 * valops.c (value_assign, value_ind): Make the funcs variable const.
1124 * value.c (struct value): Make location.computed.funcs target const.
1125 Rearrange the comments.
1126 (allocate_computed_value): Make the funcs parameter target const.
1127 (value_computed_funcs): Return the funcs target const.
1128 (value_free, value_copy, set_value_component_location): Make the funcs
1129 variable const.
1130 * value.h (allocate_computed_value): Make the funcs parameter target
1131 const.
1132 (value_computed_funcs): Return the funcs target const.
1133 * windows-tdep.c (tlb_value_funcs): Make it const.
1134
1135 2011-07-14 Hui Zhu <teawater@gmail.com>
1136
1137 * remote.c (remote_get_trace_status): Initialize p.
1138
1139 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1140
1141 Work around kgdb.
1142 * remote.c (remote_get_trace_status): New variable ex. Put
1143 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
1144
1145 2011-07-13 Tom Tromey <tromey@redhat.com>
1146
1147 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1148 value_from_contents for final conversion.
1149
1150 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 Code cleanup.
1153 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1154 Indent prototypes so they do not get into tags.
1155
1156 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 Code cleanup making also optimized out values lazy.
1159 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1160 allocate_optimized_out_value. Twice.
1161 (loclist_read_variable) Use allocate_optimized_out_value. Once.
1162 * findvar.c (read_var_value): Likewise.
1163 * value.c (allocate_optimized_out_value): New function.
1164 * value.h (allocate_optimized_out_value): New declaration.
1165
1166 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1167
1168 Fix occasional crash of CTRL-C during DWARF read in.
1169 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1170
1171 2011-07-11 Tom Tromey <tromey@redhat.com>
1172
1173 * regcache.c (struct regcache_descr): Fix typo.
1174 * i387-tdep.c (i387_supply_xsave): Fix typo.
1175
1176 2011-07-11 Tom Tromey <tromey@redhat.com>
1177
1178 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1179 (read_file_scope, read_type_unit_scope): Use it.
1180
1181 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1184 `int'.
1185
1186 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1187
1188 PR python/12438
1189 * python/python.c: Set gdbpy_should_print_stack default to off.
1190 (set_python): Deprecate maint set python print-stack to
1191 class_deprecate.
1192 (_initialize_python): Deprecate maint set/show python print-stack.
1193 Add new prefix command, python. Add new setting, print-backtrace.
1194 * NEWS: Document set python print-stack. Document default change.
1195
1196 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
1197
1198 * python/py-inferior.c (infpy_dealloc): New function.
1199 (inferior_to_inferior_object): Return a new object, or a
1200 new reference to the existing object.
1201 (find_thread_object): Cleanup references to inferior.
1202 (delete_thread_object): Ditto.
1203 * python/py-infthread.c (create_thread_object): Do not increment
1204 inferior reference count.
1205
1206 2011-07-08 Tom Tromey <tromey@redhat.com>
1207
1208 * dwarf2loc.c (locexpr_regname): New function.
1209 (locexpr_describe_location_piece): Use it.
1210 (disassemble_dwarf_expression): Add per_cu argument. Use
1211 locexpr_regname.
1212 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1213 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1214 New cases.
1215 (locexpr_describe_location_1): Add per_cu argument.
1216 (locexpr_describe_location): Update.
1217 (loclist_describe_location): Update.
1218
1219 2011-07-08 Tom Tromey <tromey@redhat.com>
1220
1221 * dwarf2expr.c (execute_stack_op): Add QUIT.
1222
1223 2011-07-07 Hui Zhu <teawater@gmail.com>
1224
1225 Revert:
1226 2011-07-06 Hui Zhu <teawater@gmail.com>
1227 * remote.c (remote_start_remote): Add TRY_CATCH for
1228 remote_get_trace_status.
1229 * tracepoint.c (disconnect_tracing): Ditto.
1230
1231 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
1232
1233 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1234 variables as signed, not unsigned.
1235
1236 2011-07-06 Joel Brobecker <brobecker@adacore.com>
1237
1238 * jit.c (jit_inferior_init): Reformat forward declaration.
1239
1240 2011-07-06 Matt Rice <ratmice@gmail.com>
1241
1242 * MAINTAINERS (Write After Approval): Add myself to the list.
1243
1244 2011-07-06 Hui Zhu <teawater@gmail.com>
1245
1246 * remote.c (remote_start_remote): Add TRY_CATCH for
1247 remote_get_trace_status.
1248 * tracepoint.c (disconnect_tracing): Ditto.
1249
1250 2011-07-05 Tom Tromey <tromey@redhat.com>
1251
1252 * symtab.c (operator_chars): Now static.
1253 * linespec.c (operator_chars): Don't declare.
1254
1255 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1256
1257 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1258
1259 2011-07-05 Tom Tromey <tromey@redhat.com>
1260
1261 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1262 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1263 (TYPE_CPLUS_REALLY_JAVA): New macro.
1264 * dwarf2read.c (process_structure_scope): Set
1265 TYPE_CPLUS_REALLY_JAVA.
1266
1267 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1268
1269 * ada-lang.c: Fix typos.
1270 * amd64-tdep.c: Likewise.
1271 * breakpoint.c: Likewise.
1272 * cli/cli-decode.c: Likewise.
1273 * findcmd.c: Likewise.
1274 * inline-frame.c: Likewise.
1275 * mi/mi-main.c: Likewise.
1276 * minsyms.c: Likewise.
1277 * monitor.c: Likewise.
1278 * monitor.h: Likewise.
1279 * prologue-value.c: Likewise.
1280 * reverse.c: Likewise.
1281 * s390-tdep.c: Likewise.
1282
1283 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
1284
1285 * jit.c (jit_inferior_init): Forward declare.
1286 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1287
1288 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1289
1290 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1291
1292 2011-07-04 Tristan Gingold <gingold@adacore.com>
1293
1294 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1295 (tcb_fieldno): Add activation_link field.
1296 (get_known_tasks_addr): Moved and rewritten.
1297 (get_tcb_types_info): Set activation_link field.
1298 (read_known_tasks_array): Add parameter. Rewritten.
1299 (read_known_tasks_list): New function.
1300 (read_known_tasks): New function.
1301 (ada_build_task_list): Call read_known_tasks instead of
1302 read_known_tasks_array.
1303 * ravenscar-thread.c: Add first_task_name constant.
1304 (has_ravenscar_runtime): Check for task list too.
1305
1306 2011-07-04 Tristan Gingold <gingold@adacore.com>
1307
1308 * ada-tasks.c: Renames fieldno to actb_fieldno.
1309 (ada_get_task_number): Indentation.
1310 (get_tcb_types_info): Remove all parameters. Write directly
1311 the globals.
1312 (ptid_from_atcb_common): Adjust.
1313 (read_atcb): Adjust.
1314
1315 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1316
1317 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1318
1319 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1320
1321 * ui-out.c (ui_out_field_core_addr): Mention that the function
1322 description is in the header file.
1323 * ui-out.h (ui_out_field_core_addr): Document function.
1324
1325 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1326
1327 * ui-out.c (ui_out_get_field_separator): Remove unused function.
1328 * ui-out.h (ui_out_get_field_separator): Remove prototype.
1329
1330 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1331
1332 * symtab.c (expand_line_sal): Remove empty line.
1333
1334 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
1335
1336 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1337 same way as ELFOSABI_NONE.
1338 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1339
1340 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1341
1342 * breakpoint.c: Fix typos in comments.
1343 * linespec.c: Likewise.
1344 * symtab.c: Likewise.
1345
1346 2011-07-04 Joel Brobecker <brobecker@adacore.com>
1347
1348 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1349 section in separate object files.
1350
1351 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1352
1353 Fix false GCC warning.
1354 * linespec.c (decode_line_1): Initialize values.
1355
1356 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1357
1358 * linespec.c (find_method): Accept the function type automatically only
1359 if it was specified with parameter types.
1360
1361 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1362
1363 Stop on first linespec terminator instead of eating what we can.
1364 * linespec.c (is_linespec_boundary): New function.
1365 (name_end): Remove function.
1366 (keep_name_info): New parameter on_boundary, replace the body.
1367 (decode_line_1): Provide the parameter to keep_name_info.
1368 (decode_compound): Likewise. Drop the trailing java return type
1369 handling. Twice.
1370
1371 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 Fall back linespec to minimal symbols.
1374 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
1375 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1376 (find_method, symbol_found): Change error to cplusplus_error.
1377
1378 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1379
1380 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1381
1382 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1383 Tom Tromey <tromey@redhat.com>
1384
1385 * dwarf2read.c (check_physname): New variable.
1386 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1387 (show_check_physname): New function.
1388 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1389
1390 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1391
1392 * machoread.c (macho_symfile_read): Delete OBE comment.
1393
1394 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1395
1396 * machoread.c (struct macho_oso_data): Delete.
1397 (current_oso): Delete.
1398 (macho_relocate_common_syms): New function, mostly extracted
1399 out of
1400 (macho_add_oso_symfile): Call macho_relocate_common_syms.
1401 Remove code that sets and unset current_oso.
1402 (macho_symfile_relocate): Delete handling of common symbols,
1403 now moved to macho_relocate_common_syms.
1404
1405 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1406
1407 * darwin-nat.c (darwin_ptrace): Add documentation.
1408 Set errno to zero before calling ptrace. If ptrace returns
1409 -1 and errno is zero, then change then return zero.
1410 (darwin_kill_inferior): Issue a warning instead of triggering
1411 a failed assertion when the PT_KILL ptrace operations returned
1412 nonzero.
1413
1414 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1415
1416 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1417 only when inf->private->no_ptrace.
1418
1419 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1420
1421 * ada-lang.c (print_it_exception): Print temporary catchpoints
1422 as "Temporary catchpoint".
1423 (print_mention_exception): Likewise.
1424
1425 2011-07-01 Tom Tromey <tromey@redhat.com>
1426
1427 * jv-lang.c (java_language_defn): Use java_printchar,
1428 java_printstr.
1429 (java_get_encoding): New function.
1430 (java_emit_char): Use generic_emit_char.
1431 (java_printchar): New function.
1432 (java_printstr): Likewise.
1433
1434 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1435
1436 * ada-typeprint.c (print_record_type): If unable to decode
1437 the name of the parent type, use the encoded name.
1438
1439 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1440
1441 * ada-typeprint.c (ada_print_type): Fix both PAD type and
1442 pointer to constrained packed array type output.
1443 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1444 packed array output.
1445
1446 2011-07-01 Jean-Charles Delay <delay@adacore.com>
1447
1448 * ada-typeprint.c (print_array_type): removed if condition on show
1449 being negative for bounds printing.
1450
1451 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1452
1453 * ada-lang.c (ada_identical_enum_types_p): New function.
1454 (symbols_are_identical_enums): New function.
1455 (remove_extra_symbols): Do nothing if NSYMS < 2.
1456 Use symbols_are_identical_enums.
1457
1458 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1459
1460 * ada-valprint.c (ada_value_print): Handle typedefs.
1461
1462 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1463
1464 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1465
1466 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
1467
1468 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1469 (decode_constrained_packed_array): Likewise.
1470 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1471
1472 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1473
1474 * ada-exp.y (convert_char_literal): Handle typedef types.
1475
1476 2011-07-01 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1479
1480 2011-06-30 Tom Tromey <tromey@redhat.com>
1481
1482 * varobj.c (varobj_create): Call do_cleanups on early exit path.
1483 * valops.c (find_overload_match): Call do_cleanups on early exit
1484 path.
1485 * solib.c (solib_find): Call do_cleanups on early exit path.
1486
1487 2011-06-30 Tom Tromey <tromey@redhat.com>
1488
1489 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1490 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1491 return paths. Defer final do_cleanups until last return.
1492 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1493 early return.
1494
1495 2011-06-30 Tom Tromey <tromey@redhat.com>
1496
1497 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1498
1499 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
1500
1501 * MAINTAINERS (Write After Approval): Add myself to the list.
1502
1503 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 Disable epilogue unwinders on recent GCCs.
1506 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1507 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1508 * dwarf2read.c (process_full_comp_unit): Initialize
1509 EPILOGUE_UNWIND_VALID.
1510 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1511 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1512 * symtab.h (struct symtab): New field epilogue_unwind_valid.
1513
1514 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1515
1516 Code cleanup - reformatting.
1517 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1518 (producer_is_gcc_ge_4): ... here, change the return value.
1519 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1520 interpretation.
1521
1522 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 Fix non-only rename list for Fortran modules import.
1525 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
1526 cp_add_using_directive caller.
1527 (cp_add_using_directive): New parameter excludes, describe it. New
1528 variables ix and param. Compare if also excludes match. Allocate NEW
1529 with variable size, initialize EXCLUDES there.
1530 (cp_lookup_symbol_imports): New variable excludep, test
1531 current->EXCLUDES with it.
1532 * cp-support.h: Include vec.h.
1533 (struct using_direct): New field excludes, describe it.
1534 (DEF_VEC_P (const_char_ptr)): New.
1535 (cp_add_using_directive): New parameter excludes.
1536 * defs.h (const_char_ptr): New typedef.
1537 * dwarf2read.c (read_import_statement): New variables child_die,
1538 excludes and cleanups, read in excludes.
1539 (read_namespace): Adjust the cp_add_using_directive caller.
1540
1541 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 Code cleanup.
1544 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
1545 negative comparisons.
1546
1547 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
1548
1549 * mi/mi-main.c (mi_cmd_list_features): Emit
1550 breakpoint-notifications.
1551
1552 2011-06-29 Tom Tromey <tromey@redhat.com>
1553
1554 PR fortran/10036:
1555 * valprint.h (generic_emit_char, generic_printstr): Declare.
1556 * valprint.c (wchar_printable, append_string_as_wide)
1557 (print_wchar): Move from c-lang.c.
1558 (generic_emit_char): New function; mostly taken from c_emit_char.
1559 (generic_printstr): New function; mostly taken from c_printstr.
1560 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
1561 represented as arrays.
1562 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
1563 type.
1564 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
1565 identically to TYPE_CODE_INT.
1566 * f-lang.c (f_get_encoding): New function.
1567 (f_emit_char): Use generic_emit_char.
1568 (f_printchar): Replace comment.
1569 (f_printstr): Use generic_printstr.
1570 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
1571 "character" types specially.
1572 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
1573 for Fortran.
1574 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
1575 Move to valprint.c
1576 (c_emit_char): Call generic_emit_char.
1577 (c_printstr): Call generic_printstr.
1578
1579 2011-06-29 Gary Benson <gbenson@redhat.com>
1580
1581 * breakpoint.c (bpstat_what): Removed duplicated case.
1582
1583 2011-06-28 Tom Tromey <tromey@redhat.com>
1584
1585 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
1586
1587 2011-06-27 Tom Tromey <tromey@redhat.com>
1588
1589 * valops.c (find_overload_match): Call do_cleanups before early
1590 return.
1591 * top.c (execute_command): Call do_cleanups before early return.
1592 (command_loop): Likewise.
1593 * stack.c (backtrace_command): Make a null cleanup early. Don't
1594 conditionally call do_cleanups.
1595 * python/py-value.c (TRY_CATCH): Move cleanup handling into
1596 TRY_CATCH.
1597 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
1598 so cleanups are always run.
1599 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
1600 * findcmd.c (parse_find_args): Call do_cleanups on early return
1601 path.
1602 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
1603 Don't conditionally call do_cleanups.
1604 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
1605 later.
1606
1607 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1608
1609 * MAINTAINERS (Write After Approval): Use default email address.
1610
1611 2011-06-27 Joel Brobecker <brobecker@adacore.com>
1612
1613 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
1614
1615 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1616
1617 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
1618 saved_regs_mask and copied_regs_mask fields.
1619 (sparc_record_save_insn): New prototype.
1620 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
1621 (sparc_record_save_insn): New function.
1622 (sparc_analyze_prologue): Add head comment. Recognize store insns
1623 of call-saved registers. Use OFFSET consistently. Recognize flat
1624 frames and cache their settings.
1625 (sparc32_skip_prologue): Handle flat frames.
1626 (sparc_frame_cache): Add frame_offset to the base address.
1627 (sparc32_frame_cache): Adjust to new frame description.
1628 (sparc32_frame_prev_register): Likewise.
1629 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
1630 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1631 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1632 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
1633 frame by calling sparc_record_save_insn.
1634 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1635 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1636 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1637
1638 2011-06-27 Tristan Gingold <gingold@adacore.com>
1639
1640 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1641 field by map_addr and map_len.
1642 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1643 (munmap_section_buffer): Likewise.
1644
1645 2011-06-24 Tom Tromey <tromey@redhat.com>
1646
1647 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1648 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1649 * python/python.c (gdbpy_parameter): Make 'arg' const.
1650 (execute_gdb_command): Likewise.
1651 (gdbpy_decode_line): Likewise. Copy it.
1652 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1653 (gdbpy_write): Make 'arg' const.
1654 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1655 const.
1656 (gdbpy_lookup_type): Likewise.
1657 * python/py-prettyprint.c (print_children): Make 'name' const.
1658 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1659 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1660 Py_ssize_t.
1661 * python/py-function.c (fnpy_init): Make 'name' const.
1662 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1663 (gdbpy_string_to_argv): Make 'input' const.
1664 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1665 it.
1666 * gdbtypes.h (lookup_typename): Update.
1667 * gdbtypes.c (lookup_typename): Make 'name' const.
1668 (lookup_struct): Likewise.
1669 (lookup_union): Likewise.
1670 (lookup_enum): Likewise.
1671
1672 2011-06-24 Tom Tromey <tromey@redhat.com>
1673
1674 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1675 gdb_thread_db.h. Move all common/ entries to be together.
1676 (TAGS): Don't depend on DEPFILES.
1677
1678 2011-06-23 Yao Qi <yao@codesourcery.com>
1679
1680 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1681 * remote.c (remote_start_remote): ... here.
1682 * monitor.c (monitor_open): ... here.
1683
1684 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
1685
1686 * gdbtypes.c (append_composite_type_field_aligned): Fix
1687 calculation of bit position based on alignment.
1688
1689 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1690
1691 * breakpoint.c (bpstat_stop_status): Call the check_status
1692 breakpoint_ops method.
1693 (print_one_breakpoint_location): Also print the condition for Ada
1694 exception catchpoints.
1695 (allocate_bp_location): New, factored out from
1696 allocate_bp_location.
1697 (allocate_bp_location): Adjust. Call the owner breakpoint's
1698 allocate_location method, if there is one.
1699 (free_bp_location): Call the locations's dtor method, if there is
1700 one.
1701 (init_raw_breakpoint_without_location): New breakpoint_ops
1702 parameter. Use it.
1703 (set_raw_breakpoint_without_location): Adjust.
1704 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1705 (set_raw_breakpoint): Adjust.
1706 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1707 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1708 re_set and check_status methods.
1709 (init_catchpoint): Don't memset, initialize thread, addr_string
1710 and enable_state. Pass the ops down to init_raw_breakpoint.
1711 (install_catchpoint): Rename to ...
1712 (install_breakpoint): ... this, and make extern.
1713 (create_fork_vfork_event_catchpoint): Adjust.
1714 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1715 re_set and check_status methods.
1716 (create_syscall_event_catchpoint): Adjust.
1717 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1718 (masked_watchpoint_breakpoint_ops): Install NULL
1719 allocate_location, re_set and check_status methods.
1720 (catch_exec_command_1): Adjust.
1721 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1722 re_set and check_status methods.
1723 (create_ada_exception_breakpoint): Rename to ...
1724 (init_ada_exception_breakpoint): ... this. Add a struct
1725 breakpoint parameter, and delete the exp_string, cond_string and
1726 cond parameters. Use init_raw_breakpoint, and don't install or
1727 mention the breakpoint yet. Don't clear breakpoint fields that
1728 init_raw_breakpoint already clears.
1729 (re_set_breakpoint): Delete, split into ...
1730 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1731 functions.
1732 (breakpoint_re_set_one): Call the breakpoint's
1733 breakpoint_ops->re_set implementation, if there's one. Adjust.
1734 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1735 (struct bp_location_ops): New type.
1736 (struct bp_location): New field `ops'.
1737 (struct breakpoint_ops): New `allocate_location', `re_set' and
1738 `check_status' fields. Make `breakpoint_hit''s description match
1739 reality.
1740 (init_bp_location): Declare.
1741 (breakpoint_re_set_default): Declare.
1742 (create_ada_exception_breakpoint): Rename to ...
1743 (init_ada_exception_breakpoint): ... this. Add a struct
1744 breakpoint parameter, and delete the exp_string, cond_string and
1745 cond parameters.
1746 (install_breakpoint): Declare.
1747 * ada-lang.c: Include exceptions.h.
1748 <Ada exceptions description>: Update.
1749 (struct ada_catchpoint_location): New type.
1750 (ada_catchpoint_location_dtor): New function.
1751 (ada_catchpoint_location_ops): New global.
1752 (ada_catchpoint): New type.
1753 (create_excep_cond_exprs): New function.
1754 (dtor_exception, allocate_location_exception, re_set_exception)
1755 (should_stop_exception, check_status_exception): New functions.
1756 (print_one_exception, print_mention_exception)
1757 (print_recreate_exception): Adjust.
1758 (dtor_catch_exception, allocate_location_catch_exception)
1759 (re_set_catch_exception, check_status_catch_exception): New
1760 functions.
1761 (catch_exception_breakpoint_ops): Install them.
1762 (dtor_catch_exception_unhandled)
1763 (allocate_location_catch_exception_unhandled)
1764 (re_set_catch_exception_unhandled)
1765 (check_status_catch_exception_unhandled): New functions.
1766 (catch_exception_unhandled_breakpoint_ops): Install them.
1767 (dtor_catch_assert, allocate_location_catch_assert)
1768 (re_set_catch_assert, check_status_catch_assert): New functions.
1769 (catch_assert_breakpoint_ops): Install them.
1770 (ada_exception_catchpoint_p): Delete.
1771 (catch_ada_exception_command_split)
1772 (ada_exception_catchpoint_cond_string): Rename exp_string
1773 parameter to excep_string. Adjust.
1774 (ada_parse_catchpoint_condition): Delete.
1775 (ada_exception_sal): Rename the exp_string parameter to
1776 excep_string. Delete the cond_string and cond parameters.
1777 Adjust.
1778 (ada_decode_exception_location): Rename the exp_string parameter
1779 to excep_string. Delete the cond_string and cond parameters.
1780 Adjust.
1781 (create_ada_exception_catchpoint): New function.
1782 (catch_ada_exception_command, ada_decode_assert_location)
1783 (catch_assert_command): Adjust.
1784 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1785
1786 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1787
1788 * ada-lang.c: Include arch-utils.h.
1789 (ada_decode_exception_location): Make static.
1790 (catch_ada_exception_command): Moved here from breakpoint.c.
1791 (ada_decode_assert_location): Make static.
1792 (catch_assert_command): Moved here from breakpoint.c.
1793 (_initialize_ada_lang): Install the exception and assert
1794 catchpoint commands here.
1795 * ada-lang.h (ada_decode_exception_location)
1796 (ada_decode_assert_location): Delete declarations.
1797 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1798 breakpoint.h.
1799 (create_ada_exception_breakpoint): Make extern.
1800 (catch_ada_exception_command, catch_assert_command): Moved to
1801 ada-lang.c.
1802 (add_catch_command): Make extern.
1803 (_initilize_breakpoint): Don't install the exception and assert
1804 catchpoint commands here.
1805 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1806 breakpoint.c
1807 (add_catch_command, create_ada_exception_breakpoint): Declare.
1808
1809 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1810
1811 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1812 the breakpoint to the breakpoint chain here.
1813 (set_raw_breakpoint_without_location): Add the breakpoint to the
1814 breakpoint chain here.
1815 (init_raw_breakpoint): Adjust comments.
1816 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1817 here.
1818 (init_catchpoint): Don't set the catchpoint's breakpoint number
1819 here.
1820 (install_catchpoint): New function.
1821 (create_fork_vfork_event_catchpoint)
1822 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1823 use install_catchpoint.
1824
1825 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1826
1827 * breakpoint.c (create_catchpoint_without_mention)
1828 (create_catchpoint): Delete.
1829
1830 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1831
1832 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1833 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1834 reference to exec_pathname.
1835 (struct exec_catchpoint): New type.
1836 (dtor_catch_exec): New function.
1837 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1838 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1839 (catch_exec_command_1): Adjust to use init_catchpoint.
1840 (delete_breakpoint): Remove reference to exec_pathname.
1841
1842 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1843
1844 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1845 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1846 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1847 reference to syscalls_to_be_caught.
1848 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1849 NULL `dtor'.
1850 (struct syscall_catchpoint): New type.
1851 (dtor_catch_syscall): New function.
1852 (insert_catch_syscall, remove_catch_syscall)
1853 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1854 (print_recreate_catch_syscall): Adjust.
1855 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1856 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1857 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1858 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1859 (masked_watchpoint_breakpoint_ops)
1860 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1861 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1862 there is one. Remove references to syscalls_to_be_caught.
1863 (catching_syscall_number): Adjust.
1864 * ada-lang.c (catch_exception_breakpoint_ops)
1865 (catch_exception_unhandled_breakpoint_ops)
1866 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1867
1868 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1869
1870 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1871 field.
1872 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1873 reference to forked_inferior_pid.
1874 (struct fork_catchpoint): New type.
1875 (breakpoint_hit_catch_fork, print_it_catch_fork)
1876 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1877 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1878 (create_fork_vfork_event_catchpoint): Adjust to use
1879 init_catchpoint.
1880
1881 2011-06-22 Pedro Alves <pedro@codesourcery.com>
1882
1883 * breakpoint.c (add_to_breakpoint_chain)
1884 (init_raw_breakpoint_without_location): New functions, factored
1885 out from ...
1886 (set_raw_breakpoint_without_location): ... this one.
1887 (init_raw_breakpoint): New function, factored out from
1888 set_raw_breakpoint and adjusted to use
1889 init_raw_breakpoint_without_location.
1890 (set_raw_breakpoint): Adjust.
1891 (init_catchpoint): New function, factored out from
1892 create_catchpoint_without_mention and adjusted to use
1893 init_raw_breakpoint.
1894 (create_catchpoint_without_mention): Adjust.
1895
1896 2011-06-22 Tom Tromey <tromey@redhat.com>
1897
1898 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1899 argument of 0 specially.
1900
1901 2011-06-22 Yao Qi <yao@codesourcery.com>
1902
1903 * infrun.c (handle_inferior_event): Remove write-only local variable
1904 `sw_single_step_trap_p'.
1905
1906 2011-06-20 Tom Tromey <tromey@redhat.com>
1907
1908 * symtab.c (lookup_language_this): End loop if block is NULL.
1909
1910 2011-06-17 Tom Tromey <tromey@redhat.com>
1911
1912 * valops.c (value_of_this): Use lookup_language_this.
1913 * symtab.h (lookup_language_this): Declare.
1914 * symtab.c (lookup_language_this): New function.
1915 (lookup_symbol_aux): Use lookup_language_this.
1916 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1917
1918 2011-06-17 Tom Tromey <tromey@redhat.com>
1919
1920 * value.h (value_of_this): Update.
1921 (value_of_local): Remove.
1922 * valops.c (value_of_this): Rename from value_of_local. Change
1923 parameters.
1924 * p-exp.y (exp): Update.
1925 (variable): Likewise.
1926 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1927
1928 2011-06-17 Tom Tromey <tromey@redhat.com>
1929
1930 * valops.c (value_of_local): Complain if NAME is NULL.
1931 * std-operator.def (OP_OBJC_SELF): Remove.
1932 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1933 * objc-exp.y (name_not_typename): Use OP_THIS.
1934 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1935 name for "this".
1936 <OP_OBJC_SELF>: Remove.
1937 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1938
1939 2011-06-16 Tristan Gingold <gingold@adacore.com>
1940
1941 * python/py-events.h (gdb_py_events): Make it extern.
1942 * python/py-evtregistry.c (gdb_py_events): Declare.
1943
1944 2011-06-16 Hui Zhu <teawater@gmail.com>
1945
1946 * remote.c (remote_trace_set_readonly_regions): Add check for
1947 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1948 output warning.
1949
1950 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
1951
1952 * arm-linux-tdep.c: Include "auxv.h".
1953 (AT_HWCAP): Define.
1954 (ARM_LINUX_SIZEOF_VFP): Define.
1955 (arm_linux_supply_vfp): New function.
1956 (arm_linux_collect_vfp): Likewise.
1957 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1958 (arm_linux_fpa_regset_sections): New variable.
1959 (arm_linux_vfp_regset_sections): Likewise.
1960 (arm_linux_core_read_description): New function.
1961 (arm_linux_init_abi): Install arm_linux_core_read_description and
1962 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1963 appropriate for the architecture.
1964 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1965 (tdesc_arm_with_m): Declare.
1966 (tdesc_arm_with_iwmmxt): Likewise.
1967 (tdesc_arm_with_vfpv2): Likewise.
1968 (tdesc_arm_with_vfpv3): Likewise.
1969 (tdesc_arm_with_neon): Likewise.
1970 * arm-linux-nat.c: Move features/*.c includes ...
1971 * arm-tdep.c: ... here.
1972 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1973 target description data structures ...
1974 * arm-tdep.c (_initialize_arm_tdep): ... here.
1975 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1976 HWCAP_VFPv3D16): Move definitions ...
1977 * arm-linux-tdep.h: ... here.
1978
1979 2011-06-15 Hui Zhu <teawater@gmail.com>
1980
1981 * remote.c (remote_trace_set_readonly_regions): Add a check for
1982 target_buf_size.
1983
1984 2011-06-14 Tom Tromey <tromey@redhat.com>
1985
1986 * coffread.c (coffread_objfile): Rename from current_objfile.
1987 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1988 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1989
1990 2011-06-14 Tom Tromey <tromey@redhat.com>
1991
1992 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1993 (class_symtab): Remove.
1994 (jv_dynamics_progspace_key): New global.
1995 (jv_per_objfile_free): Reset program space data. Update assert.
1996 Don't clear globals.
1997 (get_dynamics_objfile): Use and set program space data.
1998 (get_java_class_symtab): Use get_dynamics_objfile.
1999 (add_class_symbol): Likewise.
2000 (java_link_class_type): Likewise.
2001 (java_object_type, jv_clear_object_type, set_java_object_type):
2002 Remove.
2003 (get_java_object_type): Update. Don't cache result.
2004 (is_object_type): Don't call set_java_object_type.
2005 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2006 initialize jv_dynamics_progspace_key.
2007
2008 2011-06-14 Tom Tromey <tromey@redhat.com>
2009
2010 * symtab.h (current_objfile): Don't declare.
2011 * objfiles.h (current_objfile): Don't declare.
2012 * objfiles.c (current_objfile): Remove.
2013 * mdebugread.c (current_objfile): New file-scope global.
2014 * dbxread.c (current_objfile): New file-scope global.
2015 * coffread.c (current_objfile): New file-scope global.
2016
2017 2011-06-13 Pedro Alves <pedro@codesourcery.com>
2018
2019 * top.h (line): Rename to ...
2020 (saved_command_line): ... this.
2021 (linesize): Rename to ...
2022 (saved_command_line_size): ... this.
2023 * top.c (line): Rename to ...
2024 (saved_command_line): ... this.
2025 (linesize): Rename to ...
2026 (saved_command_line_size): ... this.
2027 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2028 * event-top.c (command_line_handler): Adjust.
2029 * main.c (captured_main): Adjust.
2030
2031 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2032
2033 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2034 get_frame_func instead of get_frame_pc to determine the code
2035 address used to construct the frame ID.
2036 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2037 (i386_epilogue_frame_this_id): Likewise.
2038 (i386_epilogue_frame_prev_register): New function.
2039 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2040 (i386_stack_tramp_frame_sniffer): Fix coding style.
2041 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2042 (i386_gdbarch_init): Fix comments.
2043
2044 2011-06-12 Mark Kettenis <kettenis@gnu.org>
2045
2046 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2047 instruction when walking back through the instruction stream.
2048
2049 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2052 fullname parameters order.
2053
2054 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2055
2056 Code cleanup.
2057 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2058 for fun.
2059 * psymtab.c (map_symbol_filenames_psymtab)
2060 (map_partial_symbol_filenames): Likewise.
2061 * psymtab.h: Include symfile.h.
2062 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2063 * symfile.h (symbol_filename_ftype): New.
2064 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2065 map_symbol_filenames, clarify more the naming in comment.
2066
2067 2011-06-07 Doug Evans <dje@google.com>
2068
2069 * cc-with-index.sh: Fix typos in comment.
2070 Look for ../../gdb, for fullname.exp.
2071
2072 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 Pedro Alves <pedro@codesourcery.com>
2074
2075 * cli/cli-cmds.c (shell_escape): Use waitpid.
2076 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2077
2078 2011-06-07 Tristan Gingold <gingold@adacore.com>
2079
2080 * xcoffread.c (dwarf2_xcoff_names): New variable.
2081 (aix_process_linenos): Add a guard.
2082 (xcoff_symfile_finish): Free dwarf2.
2083 (xcoff_initial_scan): Add dwarf2 support.
2084
2085 2011-06-06 Pedro Alves <pedro@codesourcery.com>
2086
2087 * infcall.c (run_inferior_call): Don't mask async. Instead force
2088 a synchronous wait, if the target can async.
2089
2090 * target.h (struct target_ops): Delete to_async_mask.
2091 (target_async_mask): Delete.
2092 * target.c (update_current_target): Delete references to to_async_mask.
2093 * linux-nat.c (linux_nat_async_mask_value): Delete.
2094 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2095 to linux_nat_async_mask_value.
2096 (linux_nat_async_mask): Delete.
2097 (linux_nat_async, linux_nat_close): Remove references to
2098 linux_nat_async_mask_value.
2099 * record.c (record_async_mask_value): Delete.
2100 (record_async): Remove references to record_async_mask_value.
2101 (record_async_mask): Delete.
2102 (record_can_async_p, record_is_async_p): Remove references to
2103 record_async_mask_value.
2104 (init_record_ops, init_record_core_ops): Remove references to
2105 record_async_mask.
2106 * remote.c (remote_async_mask_value): Delete.
2107 (init_remote_ops): Remove reference to remote_async_mask.
2108 (remote_can_async_p, remote_is_async_p): Remove references to
2109 remote_async_mask_value.
2110 (remote_async): Remove references to remote_async_mask_value.
2111 (remote_async_mask): Delete.
2112
2113 * infrun.c (fetch_inferior_event): Don't claim registers changed
2114 if the current thread is already not executing.
2115
2116 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
2117
2118 From Stephen Kitt <steve@sk2.org>
2119 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2120 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2121
2122 2011-06-03 Joel Brobecker <brobecker@adacore.com>
2123
2124 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2125 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2126
2127 2011-06-03 Tom Tromey <tromey@redhat.com>
2128
2129 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2130 code fields.
2131 * python/py-exitedevent.c (create_exited_event_object): Change
2132 type of 'exit_code'. Optionally add exit_code attribute.
2133 (emit_exited_event): Change type of 'exit_code'.
2134 * python/py-event.h (emit_exited_event): Update.
2135 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2136 * infrun.c (handle_inferior_event): Set exit code fields on
2137 inferior.
2138 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2139 fields.
2140 * inferior.c (exit_inferior_1): Initialize new fields.
2141
2142 2011-06-03 Tom Tromey <tromey@redhat.com>
2143
2144 * dwarf2expr.c (get_signed_type): New function.
2145 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2146
2147 2011-06-02 Keith Seitz <keiths@redhat.com>
2148
2149 * objc-lang.c (find_methods): Increment objfile_csym earlier.
2150
2151 2011-06-02 Pedro Alves <pedro@codesourcery.com>
2152
2153 * top.h (simplified_command_loop): Delete declaration.
2154
2155 2011-06-01 Mike Frysinger <vapier@gentoo.org>
2156
2157 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2158 gdb_sysroot to the "len" variable. Append both to "arg_buf".
2159
2160 2011-06-01 Yao Qi <yao@codesourcery.com>
2161
2162 * objfiles.h (obj_section_addr): Update reference to objfile from
2163 `abfd' to `obfd'.
2164 (obj_section_endaddr): Likewise.
2165
2166 2011-06-01 Daniel Jacobowitz <drow@false.org>
2167
2168 * MAINTAINERS: Update my email address and affiliation. Also
2169 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
2170
2171 2010-05-31 Keith Seitz <keiths@redhat.com>
2172
2173 PR c++/12750
2174 * linespec.c (get_search_block): New function.
2175 (find_methods): Add FILE_SYMTATB parameter and use it and
2176 get_search_block to pass an appropriate block to
2177 lookup_symbol_in_namespace.
2178 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2179 Check if *ARGPTR starts with a filename first.
2180 If it does, call locate_first_half again to locate the next
2181 "first half" of the linespec.
2182 Pass FILE_SYMTATB to decode_objc and decode_compound.
2183 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2184 (locate_first_half): Stop on the first colon seen.
2185 (decode_compound): Add FILE_SYMTAB parameter.
2186 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2187 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2188 get_search_block with lookup_symbol.
2189 (find_method): Add FILE_SYMTAB parameter and pass it to
2190 find_methods.
2191 (decode_objc): Use get_search_block.
2192
2193 2010-05-31 Keith Seitz <keiths@redhat.com>
2194
2195 PR symtab/12704
2196 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2197 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2198 and CP_ANONYMOUS_NAMESPACE_LEN.
2199 (cp_is_anonymous): Likewise.
2200 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2201 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2202 * dwarf2read.c (namespace_name): Likewise.
2203 (fixup_partial_die): Likewise.
2204 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2205 seen in the input, keep it.
2206
2207 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2208
2209 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2210 * inf-loop.h (inferior_event_handler_wrapper): Delete.
2211 * inf-loop.c (inferior_event_handler_wrapper): Delete.
2212 (inferior_event_handler): Don't handle INF_QUIT_REQ.
2213 * remote.c (_initialize_remote): Register
2214 async_remote_interrupt_twice directly as
2215 sigint_remote_twice_token event.
2216
2217 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2218
2219 * target.h (enum inferior_event_type): Delete INF_ERROR.
2220 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2221
2222 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2223
2224 * interps.c (interp_set): Don't cancel continuations.
2225
2226 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2229
2230 2011-05-30 Pedro Alves <pedro@codesourcery.com>
2231
2232 * continuations.h (continuation_ftype): Add `err' parameter.
2233 Document parameters.
2234 (do_all_continuations, do_all_continuations_thread)
2235 (do_all_intermediate_continuations)
2236 (do_all_intermediate_continuations_thread)
2237 (do_all_inferior_continuations): Add `err' parameter.
2238 * continuations.c (do_my_continuations_1, do_my_continuations)
2239 (do_all_inferior_continuations, do_all_continuations_ptid)
2240 (do_all_continuations_thread_callback)
2241 (do_all_continuations_thread, do_all_continuations)
2242 (do_all_intermediate_continuations_thread_callback)
2243 (do_all_intermediate_continuations_thread)
2244 (do_all_intermediate_continuations): Add `err' parameter, and pass
2245 it down all the way to the continuations proper.
2246 * inf-loop.c (inferior_event_handler): If fetching an inferior
2247 event throws an error, don't pop the target, and still call the
2248 continuations, but with `err' set. Adjust all other continuation
2249 calls.
2250 * breakpoint.c (until_break_command_continuation): Add `err'
2251 parameter.
2252 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
2253 issue another step if `err' is set.
2254 (struct until_next_continuation_args): New.
2255 (until_next_continuation): Add `err' parameter. Adjust.
2256 (until_next_command): Adjust.
2257 (struct finish_command_continuation_args): Add `thread' field.
2258 (finish_command_continuation): Add `err' parameter. Handle it.
2259 (finish_forward): Adjust.
2260 (attach_command_continuation): Add `err' parameter. Handle it.
2261 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2262 cancel the continuations.
2263 * interps.c (interp_set): Adjust to cancel the continuations.
2264 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2265 continuations rather than discarding.
2266 (free_thread): Don't clear thread inferior resources here.
2267 (delete_thread_1): Do it here instead. And do it before removing
2268 the thread from the threads list. Tag the thread as exited before
2269 clearing thread inferior resources.
2270
2271 2011-05-30 Joel Brobecker <brobecker@adacore.com>
2272
2273 * infcall.c (call_function_by_hand): Rephrase error message.
2274
2275 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2276
2277 * defs.h (struct thread_info, struct inferior): Delete forward
2278 declarations.
2279 * breakpoint.h (struct thread_info): New forward declaration.
2280 * observer.sh (struct inferior): New forward declaration.
2281 * python/python-internal.h (struct inferior): New forward
2282 declaration.
2283
2284 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2285
2286 * defs.h (struct continuation, continuation_ftype)
2287 (continuation_free_arg_ftype, add_continuation)
2288 (do_all_continuations, do_all_continuations_thread)
2289 (discard_all_continuations, discard_all_continuations_thread)
2290 (add_intermediate_continuation, do_all_intermediate_continuations)
2291 (do_all_intermediate_continuations_thread)
2292 (discard_all_intermediate_continuations)
2293 (discard_all_intermediate_continuations_thread)
2294 (add_inferior_continuation, do_all_inferior_continuations)
2295 (discard_all_inferior_continuations): Move to ...
2296 * continuations.h: ... this new file.
2297 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2298 infcmd.c, inferior.c, infrun.c, interps.c: Include
2299 continuations.h.
2300
2301 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2302 Doug Evans <dje@google.com>
2303
2304 Fix PR 10970, PR 12702.
2305 * linux-nat.c (linux_lwp_is_zombie): New function.
2306 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
2307 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
2308
2309 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2310
2311 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2312 typedefs.
2313 (add_continuation, add_intermediate_continuation)
2314 (add_inferior_continuation): Use them.
2315 * continuations.c (struct continuation): Use them.
2316 (make_continuation_ftype): Delete.
2317 (make_continuation, add_inferior_continuation, add_continuation)
2318 (add_intermediate_continuation): Use continuation_ftype and
2319 continuation_free_arg_ftype. Rename parameters to shorter names.
2320
2321 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2322
2323 * continuations.c (make_continuation): Make it return void.
2324 (do_my_continuations): Rename to ...
2325 (do_my_continuations_1): ... this. Remove old_chain parameter and
2326 adjust.
2327 (do_my_continuations): New.
2328 (discard_my_continuations): Rename to ...
2329 (discard_my_continuations_1): ... this. Remove old_chain
2330 parameter and adjust.
2331 (discard_my_continuations): New.
2332 (add_inferior_continuation): Simplify.
2333 (do_all_inferior_continuations): Reimplement on top
2334 do_my_continuations.
2335 (discard_all_inferior_continuations): Simplify.
2336 (add_continuation): Simplify.
2337 (do_all_continuations_ptid): Simplify.
2338 (discard_all_continuations_thread_callback): Simplify.
2339 (add_intermediate_continuation): Simplify.
2340 (discard_all_intermediate_continuations_thread_callback):
2341 Simplify.
2342
2343 2011-05-27 Pedro Alves <pedro@codesourcery.com>
2344
2345 * utils.c (struct continuation, add_continuation)
2346 (add_inferior_continuation)
2347 (do_all_inferior_continuations, discard_all_inferior_continuations)
2348 (restore_thread_cleanup, do_all_continuations_ptid)
2349 (do_all_continuations_thread_callback)
2350 (do_all_continuations_thread, do_all_continuations)
2351 (discard_all_continuations_thread_callback)
2352 (discard_all_continuations_thread, discard_all_continuations)
2353 (add_intermediate_continuation)
2354 (do_all_intermediate_continuations_thread_callback)
2355 (do_all_intermediate_continuations_thread)
2356 (do_all_intermediate_continuations)
2357 (discard_all_intermediate_continuations_thread_callback)
2358 (discard_all_intermediate_continuations_thread)
2359 (discard_all_intermediate_continuations): Move to ...
2360 * continuations.c: ... this new file, and adjust to no longer
2361 implement continuations on top of cleanups.
2362 * Makefile.in (SFILES): Add continuations.c.
2363 (COMMON_OBS): Add continuations.o.
2364
2365 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2366
2367 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2368 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2369 Internal error on invalid values.
2370 * reverse.c: Don't handle EXEC_ERROR.
2371 * mi/mi-main.c: Don't handle EXEC_ERROR.
2372
2373 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2374
2375 * record.c: Include event-loop.h, inf-loop.h.
2376 (record_beneath_to_async): New global.
2377 (tmp_to_async): New global.
2378 (record_async_inferior_event_token): New global.
2379 (record_open_1): Don't error out if async is enabled.
2380 (record_open): Handle to_async. Create an async event source in
2381 the event loop.
2382 (record_close): Delete the async event source.
2383 (record_resumed): New global.
2384 (record_execution_dir): New global.
2385 (record_resume, record_core_resume): Set them. Register the
2386 target on the event loop.
2387 (record_wait): Rename to ...
2388 (record_wait_1): ... this. Add more debug output. Handle
2389 TARGET_WNOHANG, and the target beneath returning
2390 TARGET_WAITKIND_IGNORE.
2391 (record_wait): Reimplement on top of record_wait_1.
2392 (record_async_mask_value): New global.
2393 (record_async, record_async_mask, record_can_async_p)
2394 (record_is_async_p, record_execution_direction): New functions.
2395 (init_record_ops, init_record_core_ops): Install new methods.
2396 * infrun.c (fetch_inferior_event): Temporarily switch the global
2397 execution direction to the direction the target was going.
2398 (execution_direction): Change type to int.
2399 * target.c (default_execution_direction): New function.
2400 (update_current_target): Inherit and de_fault
2401 to_execution_direction.
2402 * target.h (struct target_ops) <to_execution_direction>: New
2403 field.
2404 (target_execution_direction): New macro.
2405 * inferior.h (execution_direction): Change type to int.
2406
2407 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2408
2409 * infcall.c (call_function_by_hand): Don't allow calling functions
2410 in reverse execution mode.
2411
2412 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2413
2414 * infcmd.c (finish_command): Allow async finish in reverse.
2415
2416 2011-05-26 Yao Qi <yao@codesourcery.com>
2417
2418 * gdb_thread_db.h: Delete. Move to ...
2419 * common/gdb_thread_db.h: ... here.
2420
2421 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2422
2423 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2424 function's entry point instead of a manually managed momentary
2425 breakpoint, and only ever issue one proceed call.
2426 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2427 doing a reverse-finish, switch to stepi mode, to do another step.
2428 (insert_step_resume_breakpoint_at_sal): Make public.
2429 (normal_stop): No need to save function value return registers if
2430 going reverse.
2431 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2432
2433 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2434
2435 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2436 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2437 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
2438 at the end.
2439 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2440 step-resume breakpoints.
2441 (print_it_typical): Handle bp_hp_step_resume.
2442 (bpstat_what): Ditto.
2443 (bptype_string): Ditto.
2444 (print_one_breakpoint_location): Ditto.
2445 (allocate_bp_location): Ditto.
2446 (mention): Ditto.
2447 (breakpoint_re_set_one): Ditto.
2448 * infrun.c (handle_inferior_event): Adjust. Split
2449 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2450 BPSTAT_WHAT_HP_STEP_RESUME.
2451 (insert_step_resume_breakpoint_at_sal): Rename to ...
2452 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
2453 parameter. Handle it.
2454 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2455 insert_step_resume_breakpoint_at_sal_1.
2456 (insert_step_resume_breakpoint_at_frame): Rename to ...
2457 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
2458 set a high-priority step-resume breakpoint.
2459 (insert_step_resume_breakpoint_at_frame): Adjust comment.
2460 (insert_step_resume_breakpoint_at_caller): Ditto.
2461
2462 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2463
2464 * breakpoint.c (iterate_over_related_breakpoints): New.
2465 (do_map_delete_breakpoint): New.
2466 (delete_command): Pass do_map_delete_breakpoint to
2467 map_breakpoint_numbers.
2468 (do_disable_breakpoint): New.
2469 (do_map_disable_breakpoint): Iterate over the breakpoint's related
2470 breakpoints.
2471 (do_enable_breakpoint): Rename to ...
2472 (enable_breakpoint_disp): ... this.
2473 (enable_breakpoint): Adjust.
2474 (do_enable_breakpoint): New.
2475 (enable_once_breakpoint): Delete.
2476 (do_map_enable_breakpoint): New.
2477 (do_map_enable_once_breakpoint): New.
2478 (enable_once_command, enable_delete_command)
2479 (delete_trace_command): Iterate over the breakpoint's related
2480 breakpoints.
2481
2482 2011-05-26 Pedro Alves <pedro@codesourcery.com>
2483
2484 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2485 for ALPHA_ZERO_REGNUM.
2486 (alpha_supply_int_regs): Explicitly supply zero as the value for
2487 ALPHA_ZERO_REGNUM in the register cache.
2488 * alpha-nat.c (fetch_osf_core_registers): Ditto.
2489
2490 2011-05-26 Yao Qi <yao@codesourcery.com>
2491
2492 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2493
2494 2011-05-26 Tristan Gingold <gingold@adacore.com>
2495
2496 * symfile.h (struct dwarf2_section_names): New type.
2497 (struct dwarf2_debug_sections): New type.
2498 (dwarf2_has_info): Add parameter.
2499 * dwarf2read.c (dwarf2_elf_names): New variable.
2500 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2501 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2502 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2503 (dwarf2_has_info): Add names parameter. Pass names
2504 to dwarf2_locate_sections.
2505 (section_is_p): Rewrite using the names parameter.
2506 (dwarf2_locate_sections): Use section names from the names parameter.
2507 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2508 * elfread.c (read_psyms): Ditto.
2509 * machoread.c (macho_symfile_read): Ditto.
2510
2511 2011-05-25 Andreas Schwab <schwab@redhat.com>
2512
2513 PR gdb/8677
2514 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2515
2516 2011-05-24 Keith Seitz <keiths@redhat.com>
2517
2518 PR breakpoint/12803
2519 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2520 (decode_compound): Unconditionally call keep_name_info.
2521
2522 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2523
2524 * breakpoint.c (watchpoint_check): If the watchpoint went out of
2525 scope, clear its command list.
2526 (map_breakpoint_numbers): Don't walk the related breakpoints list
2527 of each breakpoint.
2528
2529 2011-05-24 Tom Tromey <tromey@redhat.com>
2530
2531 * MAINTAINERS: Move Jim Blandy to past maintainers.
2532
2533 2011-05-24 Tristan Gingold <gingold@adacore.com>
2534
2535 * symfile.h (enum dwarf2_section_enum): New type.
2536 (dwarf2_get_section_info): New prototype.
2537 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
2538 section_name by sect. Use a switch to select the info.
2539 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
2540 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
2541
2542 2011-05-24 Pedro Alves <pedro@codesourcery.com>
2543
2544 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
2545 shared library event breakpoint if there's no execution.
2546
2547 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
2548
2549 * breakpont.c (remove_hw_watchpoints): Remove unused function.
2550 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
2551
2552 2011-05-23 Tom Tromey <tromey@redhat.com>
2553
2554 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
2555 NULL.
2556
2557 2011-05-23 Doug Evans <dje@google.com>
2558
2559 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
2560 entry for RuntimeError to doc string.
2561
2562 2011-05-23 Jerome Guitton <guitton@adacore.com>
2563
2564 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
2565 sequence for probing loops.
2566
2567 2011-05-23 Pedro Alves <pedro@codesourcery.com>
2568
2569 * infrun.c (user_visible_resume_ptid): Fix typos in describing
2570 comment.
2571
2572 2011-05-21 Mark Kettenis <kettenis@gnu.org>
2573
2574 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
2575 zero as the value for %g0 in the register cache.
2576 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
2577 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
2578
2579 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2580
2581 * infrun.c (proceed): Set previous_inferior_ptid here.
2582 (init_wait_for_inferior): Initialize previous_inferior_ptid from
2583 inferior_ptid, not null_ptid.
2584 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
2585 (fetch_inferior_event): Nor here.
2586
2587 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2588
2589 * inf-loop.c (inferior_event_handler): Only output a message if
2590 verbose.
2591
2592 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
2593
2594 * MAINTAINERS: Update my e-mail address.
2595
2596 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2597
2598 * infrun.c (proceed): Switch the inferior event loop to
2599 INF_EXEC_COMPLETE if the target refused to resume from a
2600 vfork/fork.
2601
2602 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2603
2604 * infcmd.c: Include "inf-loop.h".
2605 (step_once): When stepping into an inline subroutine, pretend the
2606 target has run. If the target can async, switch the inferior
2607 event loop to INF_EXEC_COMPLETE.
2608 * inferior.h (user_visible_resume_ptid): Declare.
2609 * infrun.c (user_visible_resume_ptid): New function, factored out
2610 from `resume'.
2611 (resume): Use it.
2612 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
2613 that the current thread is running. Merge async and sync
2614 branches.
2615
2616 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2617
2618 * infcmd.c (step_1): Simplify synchronous case.
2619
2620 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2621
2622 * tracepoint.c: Include exceptions.h.
2623 (TFILE_PID): Move higher in file.
2624 (tfile_open): Delay pushing the tfile target until we're assured
2625 the tfile header is present in the file. Wrap reading the initial
2626 newline-terminated lines in TRY_CATCH. Pop the target if the
2627 initial setup failed. Add the tfile's thread immediately
2628 aftwards, before any non-essential setup. Don't skip
2629 post_create_inferior if there are no traceframes present in the
2630 file.
2631 (tfile_close): Remove redundant check for null before xfree call.
2632 (tfile_thread_alive): New function.
2633 (init_tfile_ops): Register it as to_thread_alive callback.
2634
2635 2011-05-20 Pedro Alves <pedro@codesourcery.com>
2636
2637 * tracepoint.c (tfile_open): Delete #if 0'd code.
2638
2639 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 Fix -readnow for -gdwarf-4 unused type units.
2642 * dwarf2read.c (struct signatured_type): Remove the field offset.
2643 (create_signatured_type_table_from_index): Remove its initialization.
2644 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2645 instead. Add a complaint call.
2646 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2647 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2648 (lookup_signatured_type_at_offset, read_signatured_type)
2649 (write_one_signatured_type): Update the field for per_cu.
2650
2651 2011-05-19 Tom Tromey <tromey@redhat.com>
2652
2653 * python/py-inferior.c (python_inferior_exit): Use
2654 target_gdbarch.
2655 (python_on_resume): Likewise.
2656
2657 2011-05-19 Matt Rice <ratmice@gmail.com>
2658
2659 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2660
2661 2011-05-19 Hui Zhu <teawater@gmail.com>
2662
2663 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2664
2665 2011-05-19 Hui Zhu <teawater@gmail.com>
2666
2667 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2668
2669 2011-05-18 Tom Tromey <tromey@redhat.com>
2670
2671 * dwarf2read.c (dwarf2_add_field): Constify.
2672 * value.c (value_static_field): Constify.
2673 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2674 Now const.
2675 * ax-gdb.c (gen_static_field): Constify
2676
2677 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2678
2679 * linux-nat.c (kill_callback): Use SIGKILL first.
2680
2681 2011-05-18 Joel Brobecker <brobecker@adacore.com>
2682
2683 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2684
2685 2011-05-18 Tom Tromey <tromey@redhat.com>
2686
2687 * value.c (value_fn_field): Constify.
2688 * symtab.c (gdb_mangle_name): Constify.
2689 * stabsread.c (update_method_name_from_physname): Make 'physname'
2690 argument const.
2691 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2692 const. Use explicit fputc_filtered loop.
2693 (pascal_type_print_base): Constify.
2694 * p-lang.h (pascal_type_print_method_args): Update.
2695 * linespec.c (add_matching_methods): Constify.
2696 (add_constructors): Likewise.
2697 * jv-typeprint.c (java_type_print_base): Constify.
2698 * gdbtypes.h (struct cplus_struct_type)
2699 <fn_fieldlist.fn_field.physname>: Now const.
2700 * dwarf2read.c (compute_delayed_physnames): Constify.
2701 (dwarf2_add_member_fn): Likewise.
2702 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2703
2704 2011-05-18 Pedro Alves <pedro@codesourcery.com>
2705
2706 * infrun.c (resume): Mention which is the current thread, and its
2707 current PC in debug output.
2708 (prepare_to_proceed): Mention the thread switching in debug
2709 output.
2710
2711 2011-05-18 Tom Tromey <tromey@redhat.com>
2712
2713 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2714 path check. Use xmalloc and cleanups.
2715 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2716
2717 2011-05-17 Tom Tromey <tromey@redhat.com>
2718
2719 * cp-valprint.c (cp_print_value_fields): Catch errors from
2720 value_static_field.
2721
2722 2011-05-17 Tom Tromey <tromey@redhat.com>
2723
2724 * dwarf2read.c (dwarf2_get_die_type): Call
2725 get_die_type_at_offset.
2726 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2727 get_base_type function.
2728
2729 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
2730
2731 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2732 trap_expected.
2733
2734 2011-05-16 Doug Evans <dje@google.com>
2735
2736 * python/py-auto-load.c (source_section_scripts): Mention objfile
2737 name in warning.
2738
2739 2011-05-15 Doug Evans <dje@google.com>
2740
2741 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2742 (try_thread_db_load_from_pdir): Call it. If unable to find
2743 libthread_db in directory of libpthread, see if we're looking at
2744 the separate-debug-info copy.
2745
2746 * python/py-autoload.c (print_script): Print "Missing" instead of
2747 "No" for missing scripts.
2748 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2749
2750 2011-05-13 Doug Evans <dje@google.com>
2751
2752 * ui-file.c (stdio_file_write_async_safe): Add comment.
2753
2754 2011-05-14 Hui Zhu <teawater@gmail.com>
2755
2756 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2757
2758 2011-05-13 Doug Evans <dje@google.com>
2759
2760 Support $pdir and $sdir in libthread-db-search-path.
2761 * NEWS: Mention $sdir,$pdir.
2762 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2763 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2764 (try_thread_db_load_from_sdir): New function.
2765 (try_thread_db_load_from_dir): New function.
2766 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2767 system directories if search of libthread-db-search-path fails,
2768 that is now done via $sdir.
2769 (has_libpthread): New function.
2770 (thread_db_load): Remove search for libthread_db in directory of
2771 libpthread, that is now done via $pdir.
2772
2773 * NEWS: Mention "info auto-load-scripts".
2774 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2775 script_not_found_warning_printed.
2776 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2777 all callers updated. Initialize script_not_found_warning_printed.
2778 (get_auto_load_pspace_data_for_loading): New function.
2779 (maybe_add_script): New function.
2780 (source_section_scripts): Simplify. Only print one warning regardless
2781 of the number of auto-load scripts not found.
2782 (clear_section_scripts): Clear script_not_found_warning_printed.
2783 (auto_load_objfile_script): Record script in hash table.
2784 (count_matching_scripts): New function.
2785 (maybe_print_script): Renamed from maybe_print_section_script, all
2786 callers updated. Rewrite to use ui_out_*.
2787 (info_auto_load_scripts): Renamed from
2788 maintenance_print_section_scripts, all callers updated.
2789 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2790 renamed as "info auto-load-scripts".
2791
2792 2011-05-13 Tom Tromey <tromey@redhat.com>
2793
2794 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2795 (read_sleb128): Likewise.
2796
2797 2011-05-13 Tom Tromey <tromey@redhat.com>
2798
2799 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2800 offset display.
2801
2802 2011-05-13 Doug Evans <dje@google.com>
2803
2804 * linux-nat.c (debug_linux_nat_async): Delete.
2805 Replace all references to use debug_linux_nat instead.
2806 (show_debug_linux_nat_async): Delete.
2807 (sigchld_handler): Call ui_file_write_async_safe instead of
2808 fprintf_unfiltered.
2809 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2810 * ui-file.c (struct ui_file): New member to_write_async_safe.
2811 (null_file_write_async_safe): New function.
2812 (ui_file_write_async_safe): New function.
2813 (set_ui_file_write_async_safe): New function.
2814 (ui_file_new): Initialize to_write_async_safe.
2815 (stdio_file_write_async_safe): New function.
2816 (struct stdio_file): New member fd.
2817 (stdio_file_new): Initialize to_write_async_safe, fd.
2818 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2819 fileno.
2820 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2821 (set_ui_file_write_async_safe): Declare.
2822 (ui_file_write_async_safe): Declare.
2823
2824 2011-05-13 Tom Tromey <tromey@redhat.com>
2825
2826 * utils.c (do_value_free): New function.
2827 (make_cleanup_value_free): Likewise.
2828 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2829 freeing correctly.
2830 (dwarf2_loc_desc_needs_frame): Call
2831 make_cleanup_value_free_to_mark.
2832 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2833 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2834 value_free_to_mark.
2835 (new_dwarf_expr_context): Don't call value_mark.
2836 * dwarf2-frame.c (execute_stack_op): Call
2837 make_cleanup_value_free_to_mark.
2838 * defs.h (make_cleanup_value_free): Declare.
2839
2840 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2841
2842 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2843 prepare_execute_command.
2844 * top.c (prepare_execute_command): Return cleanup.
2845 (execute_command): Use cleanup from prepare_execute_command.
2846 * top.h (prepare_execute_command): Change prototype to return
2847 cleanup.
2848 * defs.h (struct value): Add opaque declaration.
2849 (make_cleanup_value_free_to_mark): Add prototype.
2850 * utils.c (do_value_free_to_mark): New function.
2851 (make_cleanup_value_free_to_mark): Likewise.
2852
2853 2011-05-12 Tom Tromey <tromey@redhat.com>
2854
2855 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2856 cast left-hand-side to unsigned.
2857
2858 2011-05-12 Tom Tromey <tromey@redhat.com>
2859
2860 PR gdb/12617:
2861 * value.h (value_from_contents): Declare.
2862 * value.c (value_from_contents): New function.
2863 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2864 (dwarf2_get_die_type): New function.
2865 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2866 (allocate_piece_closure): Acquire reference to values.
2867 (read_pieced_value): Update for value-based expressions.
2868 (write_pieced_value): Likewise.
2869 (free_pieced_value_closure): Call value_free as needed.
2870 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2871 Update for value-based expressions.
2872 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2873 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2874 <get_base_type>: New field.
2875 (struct dwarf_expr_piece) <v.value>: Change type.
2876 <v.regno>: New field.
2877 (struct dwarf_expr_context) <mark>: New field.
2878 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2879 (dwarf_expr_pop, dwarf_expr_push): Remove.
2880 (dwarf_expr_push_address): Declare.
2881 * dwarf2expr.c (dwarf_arch_cookie): New global.
2882 (struct dwarf_gdbarch_types): New.
2883 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2884 functions.
2885 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2886 static.
2887 (dwarf_expr_push_address): New function.
2888 (dwarf_expr_pop): Now static.
2889 (dwarf_expr_fetch): Change return type.
2890 (dwarf_require_integral): New function.
2891 (dwarf_expr_fetch): Simplify.
2892 (add_piece): Update.
2893 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2894 functions.
2895 (execute_stack_op) <sign_ext>: Remove.
2896 Use values for DWARF stack.
2897 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2898 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2899 New cases.
2900 (_initialize_dwarf2expr): New function.
2901 (add_piece): Update.
2902 (new_dwarf_expr_context): Set new field.
2903 (free_dwarf_expr_context): Call value_free_to_mark.
2904 * dwarf2-frame.c (no_base_type): New function.
2905 (execute_stack_op): Set get_base_type field. Update.
2906
2907 2011-05-12 Tom Tromey <tromey@redhat.com>
2908
2909 * dwarf2read.c (read_common_block): Fix formatting.
2910
2911 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
2912
2913 * breakpoint.c (disable_breakpoint): Disable all locations
2914 associated with a tracepoint on target if a trace experiment is
2915 running.
2916 (disable_command): Disable a specific tracepoint location on target if
2917 a trace experiment is running.
2918 (do_enable_breakpoint): Enable all locations associated with a
2919 tracepoint on target if a trace experiment is running.
2920 (enable_command) Enable a specific tracepoint location on target if a
2921 trace experiment is running.
2922 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2923 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2924 to_disable_tracepoint.
2925 * target.h: Add declaration of struct bp_location.
2926 (struct target_ops): Add new functions
2927 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2928 to_disable_tracepoint to target operations.
2929 (target_supports_enable_disable_tracepoint): New macro.
2930 (target_enable_tracepoint): New macro.
2931 (target_disable_tracepoint): New macro.
2932 * remote.c (struct remote_state): Add new field.
2933 (remote_enable_disable_tracepoint_feature): New.
2934 (remote_protocol_features): Add new entry.
2935 (remote_supports_enable_disable_tracepoint): New.
2936 (remote_enable_tracepoint): New.
2937 (remote_disable_tracepoint): New.
2938 (init_remote_ops): Add remote_enable_tracepoint,
2939 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2940 to remote operations.
2941 * tracepoint.c (start_tracing): Allow tracing to start without any
2942 tracepoints enabled with just a warning if they can be re-enabled
2943 later.
2944 * NEWS: Add news item for the new behaviour of the enable and disable
2945 GDB commands when applied to tracepoints.
2946 Add news items for the new remote packets QTEnable and QTDisable.
2947
2948 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2949
2950 * config.in: Regenerate.
2951 * configure: Regenerate.
2952 * configure.ac <--with-system-readline> (for readline_echoing_p):
2953 Remove the test.
2954 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2955 (tui_old_rl_echoing_p): ... here.
2956 (tui_setup_io): Rename extern declaration readline_echoing_p to
2957 _rl_echoing_p. Adjust assignments for the both renames.
2958
2959 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2960
2961 * symtab.c (lookup_symtab): Run cleanup before returning.
2962
2963 2011-05-11 Tom Tromey <tromey@redhat.com>
2964
2965 * dwarf2read.c (handle_data_member_location): New function.
2966 (dwarf2_add_field): Use it.
2967 (read_common_block): Likewise.
2968
2969 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2970
2971 Make addrs->SECTINDEX always defined.
2972 * symfile.c (relative_addr_info_to_section_offsets): Check for
2973 SECTINDEX -1, not for zero ADDR.
2974 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2975 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2976 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2977 on its validity.
2978
2979 2011-05-10 Doug Evans <dje@google.com>
2980
2981 * linux-thread-db.c: Whitespace cleanup.
2982 (try_thread_db_load_1): Fix comment.
2983
2984 * linux-thread-db.c (set_libthread_db_search_path): New function.
2985 (_initialize_thread_db): Add setter for libthread-db-search-path.
2986
2987 2011-05-09 Doug Evans <dje@google.com>
2988
2989 * NEWS: Mention --with-iconv-bin.
2990 * configure.ac: New option --with-iconv-bin.
2991 * configure: Regenerate.
2992 * config.in: Regenerate.
2993 * defs.h (relocate_gdb_directory): Declare.
2994 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2995 removed progname parameter, and exported. All callers updated.
2996 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2997
2998 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2999 adding missing call to restore_child_signals_mask.
3000
3001 2011-05-09 Pedro Alves <pedro@codesourcery.com>
3002
3003 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3004 parameter.
3005 * infrun.c (proceed, start_remote): Adjust.
3006 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3007 and adjust to not handle it.
3008 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3009 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3010 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3011 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3012 * windows-nat.c (do_initial_windows_stuff): Adjust.
3013 * infcmd.c (attach_command): Adjust.
3014 (notice_new_inferior): Adjust.
3015
3016 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3017
3018 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3019 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3020 * spu-tdep.c (op_selb): Use correct value.
3021
3022 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3025 "parent" parameter to symbol_file_add_from_bfd call.
3026
3027 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3028 Thiago Jung Bauermann <bauerman@br.ibm.com>
3029
3030 Implement support for PowerPC BookE masked watchpoints.
3031 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3032 section.
3033 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3034 method. Initialize to NULL in all existing breakpoint_ops instances.
3035 (struct breakpoint) <hw_wp_mask>: New field.
3036 * breakpoint.c (is_masked_watchpoint): Add prototype.
3037 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3038 breakpoint's breakpoint_ops.works_in_software_mode if available.
3039 (watchpoints_triggered): Handle the case of a hardware masked
3040 watchpoint trigger.
3041 (watchpoint_check): Likewise.
3042 (works_in_software_mode_watchpoint): New function.
3043 (insert_masked_watchpoint, remove_masked_watchpoint)
3044 (resources_needed_masked_watchpoint)
3045 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3046 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3047 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3048 functions.
3049 (masked_watchpoint_breakpoint_ops): New structure.
3050 (watch_command_1): Check for the existence of the `mask' parameter.
3051 Set b->ops according to the type of hardware watchpoint being created.
3052 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3053 (ppc_linux_remove_mask_watchpoint)
3054 (ppc_linux_masked_watch_num_registers): New functions.
3055 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3056 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3057 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3058 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3059 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3060 (target_masked_watch_num_registers): New functions.
3061 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3062 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3063 methods.
3064 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3065 (target_masked_watch_num_registers): Add prototypes.
3066
3067 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3068
3069 PR 12573
3070 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3071 (producer_is_gcc_ge_4_0): New function.
3072 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3073 symtab->language code.
3074 (var_decode_location): Set cu->has_loclist.
3075 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3076 skip. Intialize force_skip from locations_valid. Move the prologue
3077 skipping code into two passes.
3078 * symtab.h (struct symtab): Make the primary field a bitfield. New
3079 field locations_valid.
3080
3081 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3082
3083 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3084 (classify_inner_name): Call cp_lookup_nested_type with
3085 yylval.tsym.type.
3086 * cp-namespace.c (cp_lookup_nested_type): New variable
3087 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3088 type_name_no_tag_or_error with saved_parent_type.
3089 * dwarf2read.c (load_partial_dies): Read in any children of
3090 DW_TAG_typedef with complaint in such case.
3091 * gdbtypes.c (type_name_no_tag_or_error): New function.
3092 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3093 * valops.c (destructor_name_p): New comment for parameter type. Remove
3094 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3095 * value.h (destructor_name_p): Remove type const.
3096
3097 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3098
3099 * symtab.c (compare_symbol_name): New function.
3100 (completion_list_add_name, expand_partial_symbol_name): Call it,
3101 remove the variable ncmp.
3102 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3103 gdb_assert it.
3104
3105 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3106
3107 Demote to sw watchpoint only in update_watchpoint.
3108 * breakpoint.c (update_watchpoint): Change between software and
3109 hardware watchpoint for all kinds of watchpoints, not just
3110 read/write ones. Determine b->exact value here instead of
3111 in watch_command_1. Error out if there are not enough resources
3112 for a read or access hardware watchpoint.
3113 (watch_command_1): Remove logic of checking whether there are
3114 enough resources available, since update_watchpoint will do that
3115 work now. Don't set b->exact here. Catch exceptions thrown by
3116 update_watchpoint and delete the watchpoint.
3117 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3118 Use target_exact_watchpoints instead.
3119 (delete_breakpoint): Notify observers only if deleted watchpoint
3120 has a breakpoint number assigned to it.
3121
3122 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
3123
3124 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3125
3126 2011-05-05 Jerome Guitton <guitton@adacore.com>
3127
3128 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3129 New functions.
3130 (i386_stack_tramp_frame_unwind): New static global.
3131 (i386_match_pattern): New function, extracted from i386_match_insn.
3132 (i386_match_insn): Use i386_match_pattern.
3133 (i386_match_insn_block): New function.
3134 (i386_tramp_chain_in_reg_insns)
3135 (i386_tramp_chain_on_stack_insns): New static variables.
3136 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3137 of unwinders.
3138
3139 2011-05-04 Joseph Myers <joseph@codesourcery.com>
3140
3141 * configure.host (xscale*): Don't handle target.
3142 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3143 handle targets.
3144
3145 2011-05-04 Yao Qi <yao@codesourcery.com>
3146
3147 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3148
3149 2011-05-03 Joel Brobecker <brobecker@adacore.com>
3150
3151 Revert:
3152 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
3153 | * elfread.c (elf_symtab_read): Stop memory leak.
3154
3155 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3156
3157 * nto-tdep.c (nto_target): Replace deprecated call to
3158 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3159
3160 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 Fix false GCC warning.
3163 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3164
3165 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3166
3167 * breakpoint.c (update_watchpoint): Move code to change
3168 the enable state of breakpoint from here ...
3169 (do_enable_breakpoint): ... to here.
3170
3171 2011-04-26 Andrew Gontarek <andrewg@cray.com>
3172
3173 * valprint.c (val_print_array_elements): Fixed poor performance
3174 of printing very large arrays with repeat_count_threshold set
3175 to unlimited. New comment.
3176
3177 2011-04-29 Tom Tromey <tromey@redhat.com>
3178
3179 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3180 (mi_parse): Likewise.
3181 * breakpoint.c (break_range_command): Use sizeof char*, not
3182 char**.
3183 (create_breakpoint): Likewise.
3184 (parse_breakpoint_sals): Likewise.
3185
3186 2011-04-29 Pedro Alves <pedro@codesourcery.com>
3187
3188 * linux-nat.c (linux_child_remove_fork_catchpoint)
3189 (linux_child_remove_vfork_catchpoint)
3190 (linux_child_remove_exec_catchpoint): New functions.
3191 (linux_target_install_ops): Install them.
3192
3193 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
3194
3195 PR mi/12531
3196
3197 * varobj.c (install_default_visualizer): Do not install a
3198 visualizer if the varobj is CPLUS_FAKE_CHILD.
3199 (construct_visualizer): Likewise.
3200
3201 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
3204 case insensitive comparison.
3205
3206 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
3207
3208 * infrun.c (proceed): Revert previous change.
3209 (resume): Instead, handle the case of signal delivery while stepping
3210 off a breakpoint location here, and only if software single-stepping
3211 is used. Handle nested signals.
3212
3213 2011-04-28 Yao Qi <yao@codesourcery.com>
3214
3215 * arm-tdep.c (copy_unmodified): Rename to ...
3216 (arm_copy_unmodified): .. this. New.
3217 (copy_preload): Move common part to ...
3218 (install_preload): .. this. New.
3219 (arm_copy_preload): New.
3220 (copy_preload_reg): Move common part to ...
3221 (install_preload_reg): ... this. New.
3222 (arm_copy_preload_reg): New.
3223 (copy_b_bl_blx): Move common part to ...
3224 (install_b_bl_blx): .. this. New.
3225 (arm_copy_b_bl_blx): New.
3226 (copy_bx_blx_reg): Move common part to ...
3227 (install_bx_blx_reg): ... this. New.
3228 (arm_copy_bx_blx_reg): New.
3229 (copy_alu_reg): Move common part to ...
3230 (install_alu_reg): ... this. New.
3231 (arm_copy_alu_reg): New.
3232 (copy_alu_shifted_reg): Move common part to ...
3233 (install_alu_shifted_reg): ... this. New.
3234 (copy_ldr_str_ldrb_strb): Move common part to ...
3235 (install_ldr_str_ldrb_strb): ... this. New.
3236 (arm_copy_ldr_str_ldrb_strb): New.
3237 (copy_copro_load_store): Move some common part to ...
3238 (install_copy_copro_load_store): ... this. New.
3239 (arm_copy_copro_load_store): New.
3240 (copy_svc): Delete.
3241 (arm_copy_svc): Renamed from copy_svc.
3242 (copy_undef): Delete.
3243 (arm_copy_undef): Renamed from copy_undef.
3244 (decode_ext_reg_ld_st): Delete.
3245 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3246 (decode_svc_copro): Delete.
3247 (arm_decode_svc_copro): Renamed from decode_svc_copro.
3248 (copy_copro_load_store, copy_alu_imm): update callers.
3249 (copy_extra_ld_st, copy_block_xfer): Likewise.
3250 (decode_misc_memhint_neon, decode_unconditional): Likewise.
3251 (decode_miscellaneous, decode_dp_misc): Likewise.
3252 (decode_ld_st_word_ubyte, decode_media): Likewise.
3253 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3254 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3255 (decode_unconditional, decode_miscellaneous): Likewise.
3256 (decode_media, decode_b_bl_ldmstm): Likewise.
3257 (arm_process_displaced_insn): Likewise..
3258 (decode_misc_memhint_neon): Delete.
3259 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3260 (decode_miscellaneous): Delete.
3261 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3262 (decode_dp_misc): Delete.
3263 (arm_decode_dp_misc): Renamed from decode_dp_misc.
3264 (decode_ld_st_word_ubyte): Delete.
3265 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3266 (decode_media): Delete.
3267 (arm_decode_media): Renamed from decode_media.
3268 (decode_b_bl_ldmstm): Delete.
3269 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3270 (decode_ext_reg_ld_st): Delete.
3271 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3272 (decode_unconditional): Delete.
3273 (arm_decode_unconditional): Renamed from decode_unconditional.
3274
3275 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 Case insensitive lookups implementation.
3278 * dwarf2read.c: Include ctype.h.
3279 (struct mapped_index): New field version.
3280 (mapped_index_string_hash): New parameter index_version. New comment
3281 for it. Call tolower appropriately.
3282 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3283 Choose the right index version for mapped_index_string_hash.
3284 (dwarf2_read_index): Support also the index version 5. Initialize the
3285 new struct mapped_index field version.
3286 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3287 (find_slot): Explain the version needs. Pass INT_MAX for the new
3288 parameter.
3289 (write_psymtabs_to_index): Produce version 5.
3290 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3291 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
3292 * psymtab.c (lookup_partial_symbol): Find the
3293 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3294 entries.
3295 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3296 NAME lowercasing.
3297 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3298 (completion_list_add_name): New variable ncmp, initialize it, use it.
3299 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3300 * utils.c (strcmp_iw): Support case_sensitive_off.
3301 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3302 New function comment part. New variables saved_string1,
3303 saved_string2 and case_pass. Add a proper second pass.
3304
3305 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3306
3307 Replace re_comp/re_exec by regcomp/regexec.
3308 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3309 (search_symbols_name_matches): Use them, use regexec.
3310 (search_symbols): New variable retval_chain, adjust the use of
3311 old_chain against it. Replace re_comp by regcomp. Use the new struct
3312 search_symbols_data fields, use regexec instead of re_exec.
3313
3314 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 Format the code for the next patch.
3317 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3318 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3319 New variables c1 and c2.
3320
3321 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3322
3323 * infrun.c (proceed): Do not single-step into signal delivery
3324 when stepping off a breakpoint location.
3325 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3326 (insert_step_resume_breakpoint_at_caller): Likewise.
3327 (insert_step_resume_breakpoint_at_sal): Likewise.
3328 (insert_longjmp_resume_breakpoint): Likewise.
3329
3330 2011-04-27 Yao Qi <yao@codesourcery.com>
3331
3332 * common/linux-ptrace.h: Remove include <sys/wait.h>.
3333
3334 2011-04-27 Joel Brobecker <brobecker@adacore.com>
3335
3336 * procfs.c (procfs_pass_signals): Fix advance declaration.
3337
3338 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
3339
3340 * target.h (struct target_ops): Remove to_notice_signals;
3341 add to_pass_signals.
3342 (target_notice_signals): Remove.
3343 (target_pass_signals): Add prototype.
3344 * target.c (update_current_target): Remove to_notice_signals;
3345 mention to_pass_signals.
3346 (target_pass_signals): New function.
3347 (debug_to_notice_signals): Remove.
3348 (setup_target_debug): Do not install debug_to_notice_signals.
3349
3350 * infrun.c (signal_pass): New global.
3351 (resume): Call target_pass_signals.
3352 (handle_inferior_event): Report all signals while stepping over
3353 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
3354 are re-inserted when stepping over a signal handler.
3355 (signal_cache_update): New function.
3356 (signal_stop_update): Call it.
3357 (signal_print_update): Likewise.
3358 (signal_pass_update): Likewise.
3359 (handle_command): Call signal_cache_update and target_pass_signals
3360 instead of target_notice_signals.
3361 (_initialize_infrun): Initialize signal_pass.
3362
3363 * linux-nat.c (pass_mask): New global.
3364 (linux_nat_pass_signals): New function.
3365 (linux_nat_create_inferior): Report all signals initially.
3366 (linux_nat_attach): Likewise.
3367 (linux_nat_resume): Use pass_mask to decide whether to directly
3368 handle an inferior signal.
3369 (linux_nat_wait_1): Likewise.
3370 (linux_nat_add_target): Install to_pass_signals callback.
3371
3372 * nto-procfs.c (notice_signals): Remove.
3373 (procfs_resume): Do not call notice_signals.
3374 (procfs_notice_signals): Remove.
3375 (procfs_pass_signals): New function.
3376 (init_procfs_ops): Install to_pass_signals callback instead of
3377 to_notice_signals callback.
3378 (_initialize_procfs): Report all signals initially.
3379
3380 * procfs.c (procfs_notice_signals): Remove.
3381 (procfs_pass_signals): New function.
3382 (procfs_target): Install to_pass_signals callback instead of
3383 to_notice_signals callback.
3384 (register_gdb_signals): Remove.
3385 (procfs_debug_inferior): Report all signals initially.
3386 (procfs_init_inferior): Remove redundant register_gdb_signals call.
3387
3388 * remote.c (remote_pass_signals): Add numsigs and pass_signals
3389 parameters; use them instead of calling signal_..._state routines.
3390 (remote_notice_signals): Remove.
3391 (remote_start_remote): Report all signals initially.
3392 (remote_resume): Do not call remote_pass_signals.
3393 (_initialize_remote): Install to_pass_signals callback instead of
3394 to_notice_signals callback.
3395
3396 2011-04-27 Pedro Alves <pedro@codesourcery.com>
3397
3398 * breakpoint.c (user_settable_breakpoint): Delete.
3399 (user_breakpoint_p): Remove check on user_settable_breakpoint.
3400 (delete_command): Check user_breakpoint_p instead of looking at
3401 the breakpoint's type.
3402 (disable_command): Ditto.
3403 (enable_command): Ditto.
3404 (delete_trace_command): Use user_breakpoint_p instead of looking
3405 at the breakpoint number directly. When checking if there are
3406 user visible tracepoints, in order to know whether to ask the user
3407 for confirmation, check whether the breakpoint is actually a
3408 tracepoint.
3409
3410 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3411
3412 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3413 compilation.
3414
3415 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
3416
3417 MI breakpoint notifications.
3418
3419 * annotate.c (breakpoint_changed): Adjust parameter type.
3420 * breakpoint.c (set_breakpoint_condition): Adjust to change
3421 in breakpoint_modified type.
3422 (breakpoint_set_commands): Likewise.
3423 (do_map_commands_command): Likewise.
3424 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3425 changed after bumping hit count.
3426 (bpstat_stop_status): Likewise.
3427 (print_one_breakpoint_location): Don't wrap in tuple here.
3428 (print_one_breakpoint): Always print individual locations.
3429 For locations, use unnamed tuple.
3430 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3431 has changed.
3432 (create_catchpoint, create_syscall_event_catchpoint): Call
3433 breakpoint_created obsever.
3434 (mention): Don't call breakpoint_created observer.
3435 (create_breakpoint_sal): Call breakpoint_created observer.
3436 (create_breakpoint, watch_command_1): Likewise.
3437 (create_ada_exception_breakpoint): Likewise.
3438 (delete_breakpoint): Call breakpoint_deleted breakpoint.
3439 (locations_are_equal): New.
3440 (update_breakpoint_locations): If locations were changed, notify.
3441 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3442 Call breakpoint_modified observer.
3443
3444 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3445 (mi_cmd_break_insert): Don't set observers for modify and delete.
3446 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3447 (mi_breakpoint_created, mi_breakpoint_deleted)
3448 (mi_breakpoint_modified): New.
3449 (mi_interpreter_init): Hook the above.
3450 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3451 while -break-* commands are executing.
3452 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3453 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3454 (mi_redirect): New.
3455 (mi_ui_out_impl): Hook in mi_redirect.
3456 (mi_field_skip): True to the name, skip the field, don't output
3457 a field with an empty value.
3458
3459 * python/py-breakpoint.c (gdbpy_breakpoint_created)
3460 (gdbpy_breakpoint_deleted): Adjust.
3461 * tui/tui-hooks.c (tui_event_create_breakpoint)
3462 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3463
3464 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
3465
3466 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3467 (procfs_remove_hw_watchpoint): Likewise.
3468
3469 2011-04-26 Michael Walle <michael@walle.cc>
3470
3471 * remote.c (remote_start_remote): Ack packet after sending the
3472 interrupt sequence.
3473
3474 2011-04-26 Yao Qi <yao@codesourcery.com>
3475
3476 * linux-nat.c: Move common macros to ...
3477 Include linux-ptrace.h.
3478 * common/linux-ptrace.h: ... here. New.
3479
3480 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3483 !objfile_has_partial_symbols. New comment.
3484 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3485 SYM_READ_PSYMBOLS is not present. Extend the comment.
3486 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3487
3488 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3489
3490 * defs.h (ENUM_BITFIELD): Remove.
3491
3492 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3493 Eli Zaretskii <eliz@gnu.org>
3494
3495 * NEWS: Document the new gdbserver --once option.
3496
3497 2011-04-21 Jie Zhang <jzhang918@gmail.com>
3498
3499 * MAINTAINERS: Update my email address.
3500
3501 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
3502
3503 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3504 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3505 function call if __STDC_ISO_10646__ macro is defined.
3506 (intermediate_encoding): New prototype.
3507 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3508 to generate compile time error for unsupported gdb_wchar_t size.
3509 (ENDIAN_SUFFIX): New macro.
3510 (intermediate_encoding): New function.
3511
3512 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 * ada-lang.c (struct add_partial_datum): Update the comment for
3515 expand_partial_symbol_name.
3516 (ada_add_partial_symbol_completions): Rename to ...
3517 (ada_expand_partial_symbol_name): ... here, change return type, update
3518 function comment, call symbol_completion_match instead of
3519 symbol_completion_add.
3520 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3521 and ada_expand_partial_symbol_name.
3522 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3523 FILE_MATCHER.
3524 (dw2_map_symbol_names): Remove.
3525 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
3526 * psymtab.c (map_symbol_names_psymtab): Remove.
3527 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
3528 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
3529 order.
3530 (psym_functions): Unlist map_symbol_names_psymtab.
3531 (map_partial_symbol_names): Rename to ...
3532 (expand_partial_symbol_names): ... here, change the FUN type, call
3533 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
3534 * psymtab.h (map_partial_symbol_names): Rename to ...
3535 (expand_partial_symbol_names): ... here, change the FUN type.
3536 * symfile.h (struct quick_symbol_functions): Update the description of
3537 expand_symtabs_matching. Remove map_symbol_names.
3538 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
3539 (struct add_name_data): Update the comment for
3540 expand_partial_symbol_name.
3541 (add_partial_symbol_name): Rename to ...
3542 (expand_partial_symbol_name): ... here. Replace
3543 completion_list_add_name call by strncmp.
3544 (default_make_symbol_completion_list_break_on): Use now
3545 expand_partial_symbol_names and expand_partial_symbol_name.
3546 * symtab.h (enum search_domain): New element ALL_DOMAIN.
3547
3548 2011-04-20 Tom Tromey <tromey@redhat.com>
3549
3550 * dwarf2read.c (save_gdb_index_command): Replace format
3551 documentation with a pointer to the manual.
3552
3553 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3554
3555 * regcache.c: Include remote.h.
3556 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
3557 (regcache_dump): Handle regcache_dump_remote.
3558 (maintenance_print_remote_registers): New function.
3559 (_initialize_regcache): Install "maint print remote-registers"
3560 command.
3561 * remote.c (map_regcache_remote_table): New function, factored out
3562 from ...
3563 (init_remote_state): ... here.
3564 (remote_register_number_and_offset): New.
3565 * remote.h (remote_register_number_and_offset): Declare.
3566
3567 2011-04-20 Pedro Alves <pedro@codesourcery.com>
3568
3569 * regcache.c (get_thread_arch_regcache): If creating a regcache for
3570 null_ptid, assume and allow a NULL address space, instead of
3571 asking the target for the ptid's address space.
3572 * infrun.c (ptid_is_pid): Remove assertion.
3573
3574 2011-04-19 Tom Tromey <tromey@redhat.com>
3575
3576 * windows-tdep.c (windows_xfer_shared_library):
3577 * windows-nat.c (get_module_name, windows_make_so):
3578 * v850-tdep.c (v850_handle_pushm):
3579 * utils.c (null_cleanup, gdb_realpath):
3580 * ui-out.c (get_next_header):
3581 * tracepoint.c (clear_traceframe_info):
3582 * symtab.c (lookup_symtab):
3583 * serial.h (struct serial_ops):
3584 * mipsread.c (read_alphacoff_dynamic_symtab):
3585 * infcmd.c (print_return_value):
3586 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
3587 * f-exp.y (parse_number):
3588 * exceptions.c (catch_exceptions):
3589 * dummy-frame.c (dummy_frame_this_id):
3590 * defs.h (struct cleanup):
3591 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
3592 * arm-tdep.c (arm_push_dummy_call):
3593 * amd64-tdep.h (amd64_collect_xsave):
3594 * amd64-tdep.c (amd64_collect_xsave):
3595 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
3596 * README (typing): Remove duplicate words.
3597 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
3598 * infrun.c (siginfo_value_read): Fix typo.
3599 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
3600 * top.c (source_line_number): Add comma.
3601
3602 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
3603
3604 * thread.c (any_live_thread_of_process): Prioritize threads
3605 that are not executing.
3606 * gdbthread.h (any_live_thread_of_process): Update comment
3607 as per above change.
3608
3609 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
3610
3611 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
3612 (scan_xcoff_symtab): Likewise.
3613
3614 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3615
3616 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
3617 inside if clause.
3618
3619 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3620 Pedro Alves <pedro@codesourcery.com>
3621
3622 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
3623 variables to simplify code and avoid == operator at end of
3624 line as this is against GNU coding standards.
3625
3626 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3627
3628 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
3629 lm_name to name_lm to avoid conflict with lm_name function.
3630
3631 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3632
3633 ARI fixes: Use only lowercase function name for static functions.
3634 * nto-tdep.c (LM_ADDR): Rename to...
3635 (lm_addr): New function name.
3636 (nto_relocate_section_addresses): Adapt to change above.
3637 * solib-sunos.c (LM_ADDR): Rename to...
3638 (lm_addr): New function name.
3639 (LM_NEXT): Rename to...
3640 (lm_next): New function name.
3641 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3642 function name changes above.
3643 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3644 (lm_addr_from_link_map): New function name.
3645 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3646 (has_lm_dynamic_from_link_map): New function name.
3647 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3648 (lm_dynamic_from_link_map): New function name.
3649 (LM_ADDR_CHECK): Rename to...
3650 (lm_addr_check): New function name.
3651 (LM_NEXT): Rename to...
3652 (lm_next): New function name.
3653 (LM_PREV): Rename to...
3654 (lm_prev): New function name.
3655 (LM_NAME): Rename to...
3656 (lm_name): New function name.
3657 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3658 (ignore_first_link_map_entry): New function name.
3659 (svr4_keep_data_in_core): Adapt to function name changes above.
3660 (svr4_current_sos): Likewise.
3661 (enable_break): Likewise.
3662 (svr4_relocate_section_addresses): Likewise.
3663
3664 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
3665
3666 ARI cleanup.
3667 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3668 sprintf. Simplify code and avoid loosing memory.
3669 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3670 (call0_frame_cache): Remove && operator from end of line.
3671
3672 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3673
3674 Fix libraries displacement if they change whether they were prelinked.
3675 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3676 does not match. Comment why.
3677
3678 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3679
3680 * corelow.c: Include wrapper.h.
3681 (core_open): Call now gdb_target_find_new_threads.
3682 * wrapper.c: Include target.h.
3683 (gdb_target_find_new_threads): New.
3684 * wrapper.h (gdb_target_find_new_threads): New declaration.
3685
3686 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3687
3688 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3689 even if !TARGET_HAS_EXECUTION.
3690
3691 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3692
3693 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3694 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3695 bfd_get_synthetic_symtab.
3696 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3697 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3698 parameter parent, remove the call to add_separate_debug_objfile.
3699 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3700 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3701 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3702 parent, new comment for it, call add_separate_debug_objfile for it.
3703 (symbol_file_add_separate): Pass objfile as the parameter parent,
3704 remove the call to add_separate_debug_objfile.
3705 (symbol_file_add_from_bfd): New parameter parent, pass it.
3706 (symbol_file_add): Pass NULL to the new parameter parent.
3707 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3708
3709 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3710
3711 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3712 BSF_SYNTHETIC.
3713
3714 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3715
3716 Fix Python access to inlined frames.
3717 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3718 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3719
3720 2011-04-15 Tom Tromey <tromey@redhat.com>
3721
3722 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3723
3724 2011-04-15 Gary Benson <gbenson@redhat.com>
3725
3726 * MAINTAINERS: Add myself to write-after-approval section.
3727
3728 2011-04-14 Mike Frysinger <vapier@gentoo.org>
3729
3730 * remote-sim.c (sim_command_completer): New function.
3731 (_initialize_remote_sim): Set completer to sim_command_completer.
3732
3733 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3734
3735 * breakpoint.c (print_exception_catchpoint): Rename to ...
3736 (print_it_exception_catchpoint): ... this.
3737 (gnu_v3_exception_catchpoint_ops): Update with new name
3738 for print_it_exception_catchpoint.
3739
3740 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
3741
3742 * MAINTAINERS: Add myself for write after approval privileges.
3743
3744 2011-04-13 Marek Polacek <mpolacek@redhat.com>
3745
3746 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3747
3748 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3749
3750 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3751
3752 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3753
3754 * breakpoint.c (save_breakpoints): Verify whether
3755 breakpoint_ops.print_recreate is defined before calling it.
3756
3757 2011-04-11 Gary Benson <gbenson@redhat.com>
3758
3759 Fix failure with --enable-maintainer-mode.
3760 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3761
3762 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3763
3764 Code cleanup.
3765 * symtab.c (search_symbols): Reorder the KIND description in the
3766 function comment. Remove the unused 4th element of types, types2,
3767 types3 and types4. New gdb_assert on KIND.
3768 (symtab_symbol_info): Remove the unused 4th element of classnames.
3769 New gdb_assert on KIND.
3770 * symtab.h (enum search_domain): New warning in the enum comment.
3771 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3772 TYPES_DOMAIN.
3773
3774 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3775
3776 Fix crash of gdb save-index on a STABS file.
3777 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3778 PSYMTABS_ADDRMAP.
3779
3780 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3783 * dwarf2read.c: Include ctype.h.
3784 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3785 functions.
3786 (dwarf2_add_field): Fix new_field->accessibility by calling
3787 dwarf2_default_access_attribute. Restructure setting accessibility
3788 vs. virtuality.
3789 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3790 is_private and is_protected by calling
3791 dwarf2_default_access_attribute.
3792
3793 2011-04-08 Kevin Buettner <kevinb@redhat.com>
3794
3795 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3796 to the initialization.
3797
3798 2011-04-08 Steve Ellcey <sje@cup.hp.com>
3799
3800 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3801 initalization.
3802
3803 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
3804
3805 Remove support for old Cygwin 1.5 versions.
3806 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3807 function on old Cygwin version.
3808 * windows-nat.c: Remove cygwin version check and always define
3809 __USEWIDE for Cygwin compilation.
3810
3811 2011-04-07 Yao Qi <yao@codesourcery.com>
3812
3813 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3814 and TO.
3815 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3816 (arm_copy_svc): Remove parameters INSN and TO.
3817 (decode_svc_copro): Update caller.
3818 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3819 from function pointer `copy_svc_os'.
3820
3821 2011-04-07 Yao Qi <yao@codesourcery.com>
3822
3823 * arm-tdep.c (cleanup_branch): Set a correct return address in
3824 LR for ARM and Thumb.
3825
3826 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3827
3828 Code cleanup.
3829 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3830 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3831 in the function comment, a new note on values compatibility.
3832 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3833 * symtab.h (SYMBOL_HASH_NEXT): New.
3834
3835 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
3836
3837 * ppc-linux-nat.c (check_condition): Add len output parameter.
3838 Set it based on the memory region referenced in the condition
3839 expression. Update all callers.
3840
3841 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 Fix crash regression on systems featuring .gdb_index.
3844 * objfiles.c (free_objfile): Move the
3845 forget_cached_source_info_for_objfile call earlier. Comment it.
3846 Extend the comment for objfile_free_data.
3847
3848 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3849
3850 Fix regression of displaying the debug format.
3851 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3852 subfile.
3853
3854 2011-04-04 Tom Tromey <tromey@redhat.com>
3855
3856 * cli/cli-interp.c (struct captured_execute_command_args):
3857 Remove.
3858 (do_captured_execute_command): Remove.
3859 (safe_execute_command): Use TRY_CATCH.
3860 * cli/cli-script.c (struct wrapped_read_command_file_args):
3861 Remove.
3862 (wrapped_read_command_file): Remove.
3863 (script_from_file): Use TRY_CATCH.
3864 * exceptions.c (catch_exception): Remove.
3865 * exceptions.h (catch_exception): Remove.
3866 (deprecated_throw_reason): Update comment.
3867 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3868 argument to 'context'.
3869 (mi_execute_command): Use TRY_CATCH.
3870 * remote.c (struct start_remote_args): Remove.
3871 (remote_start_remote): Update; change arguments.
3872 (remote_open_1): Use TRY_CATCH.
3873
3874 2011-04-04 Tom Tromey <tromey@redhat.com>
3875
3876 * tracepoint.c (scope_info): Update.
3877 * symtab.c (decode_line_spec): Update.
3878 * python/python.c (gdbpy_decode_line): Update.
3879 * linespec.h (decode_line_1): Update.
3880 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3881 (decode_compound, find_method, symtab_from_filename)
3882 (decode_variable): Likewise.
3883 * cli/cli-cmds.c (edit_command): Update.
3884 (list_command): Update.
3885 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3886 argument.
3887 (create_breakpoint): Update.
3888 (until_break_command): Update.
3889 (addr_string_to_sals): Update.
3890 (decode_line_spec_1): Update.
3891
3892 2011-04-04 Tom Tromey <tromey@redhat.com>
3893
3894 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3895 (do_captured_parse_breakpoint): Remove.
3896 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3897 Use TRY_CATCH directly.
3898
3899 2011-04-04 Tom Tromey <tromey@redhat.com>
3900
3901 * symtab.h (free_symtab): Remove.
3902 (forget_cached_source_info_for_objfile): Declare.
3903 * symmisc.c (free_symtab): Remove.
3904 * source.c (forget_cached_source_info_for_objfile): New function.
3905 (forget_cached_source_info): Use it.
3906 * objfiles.c (free_objfile): Simplify check before calling
3907 clear_current_source_symtab_and_line. Call
3908 forget_cached_source_info_for_objfile.
3909
3910 2011-04-04 Tom Tromey <tromey@redhat.com>
3911
3912 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3913 (new_symtab): Don't set `free_code' on symtab.
3914 (new_linetable): Properly handle size==0.
3915 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3916 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3917 free_func.
3918 * jv-lang.c (struct jv_per_objfile_data): New.
3919 (jv_per_objfile_free): Free the data.
3920 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3921 (get_java_class_symtab): Set the `dict' field on the
3922 jv_per_objfile_data.
3923 (free_class_block): Remove.
3924 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3925 the symtab.
3926
3927 2011-04-04 Tom Tromey <tromey@redhat.com>
3928
3929 * symfile.c (reread_symbols): Update.
3930 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3931 field.
3932 * objfiles.c (allocate_objfile): Update.
3933 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3934 declare.
3935 * cp-namespace.c (lookup_symbol_file): Don't call
3936 lookup_possible_namespace_symbol.
3937 (initialize_namespace_symtab, get_possible_namespace_block)
3938 (free_namespace_block, cp_check_possible_namespace_symbols)
3939 (check_possible_namespace_symbols_loop)
3940 (check_one_possible_namespace_symbol)
3941 (lookup_possible_namespace_symbol): Remove.
3942 (maintenance_cplus_namespace): Replace with notice.
3943 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3944
3945 2011-04-04 Tom Tromey <tromey@redhat.com>
3946
3947 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3948 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3949 * symmisc.c (free_symtab): Don't free debugformat.
3950 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3951 (record_debugformat, record_producer): Document.
3952 * buildsym.c (end_symtab): Don't save debugformat and producer
3953 names on obstack.
3954 (end_symtab): Don't free debugformat and producer fields.
3955 (record_debugformat): Don't call xstrdup.
3956 (record_producer): Likewise.
3957
3958 2011-04-04 Tom Tromey <tromey@redhat.com>
3959
3960 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3961 (source_line_charpos, source_charpos_line): Remove.
3962
3963 2011-04-04 Tom Tromey <tromey@redhat.com>
3964
3965 * symtab.h (domain_enum): Split in two...
3966 (enum search_domain): New.
3967 (search_symbols): Update.
3968 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3969 redundant declarations.
3970 (search_symbols): Change 'kind' argument to search_domain.
3971 Update.
3972 (print_symbol_info): Likewise.
3973 (symtab_symbol_info): Likewise.
3974 * symfile.h (struct quick_symbol_functions)
3975 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3976 <expand_symtabs_matching>: Likewise.
3977 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3978 (expand_symtabs_matching_via_partial): Update.
3979 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3980 (dw2_expand_symtabs_for_function): Update.
3981 * block.h: Moved anonymous enum...
3982 * defs.h (enum block_enum): ... here. Now named.
3983
3984 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3985
3986 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3987 * version.in: Bump version to 7.3.50.20110403-cvs.
3988
3989 2011-04-03 Joel Brobecker <brobecker@adacore.com>
3990
3991 * NEWS: Create a new section for the next release branch.
3992 Rename the section of the current branch, now that it has
3993 been cut.
3994
3995 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3996
3997 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3998 for "fpscr" in target description.
3999
4000 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4003 initialize it. Delay HASH initialization. Strip the part after open
4004 parenthesis for languages with qualifiers. Call do_cleanups.
4005
4006 2011-04-01 Tom Tromey <tromey@redhat.com>
4007
4008 * utils.c (report_command_stats): Don't print `-' for negative
4009 number.
4010
4011 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4012
4013 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4014 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4015 typedefs.
4016
4017 2011-04-01 Joel Brobecker <brobecker@adacore.com>
4018
4019 * breakpoint.h (bpdisp_text): Add declaration.
4020 * breakpoint.c (bpdisp_text): Make non-static.
4021 * ada-lang.c: #include "mi/mi-common.h".
4022 (print_it_exception): Rewrite to improve GDB/MI output.
4023
4024 2011-04-01 Pedro Alves <pedro@codesourcery.com>
4025
4026 * arm-tdep.h (struct address_space): Add forward declaration.
4027
4028 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4029
4030 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4031 * arm-tdep.c (arm_override_mode): New global.
4032 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4033 execution mode heuristics.
4034 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4035 second single-step breakpoint if needed, using
4036 arm_insert_single_step_breakpoint.
4037 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4038 ARM execution mode, do not call thumb_get_next_pc_raw.
4039 (arm_get_next_pc): Encode execution mode in return value. Call
4040 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4041 (arm_insert_single_step_breakpoint): New function.
4042 (arm_software_single_step): Call it.
4043 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4044 argument to return execution mode of sigreturn target.
4045 (arm_linux_syscall_next_pc): Use it.
4046 (arm_linux_copy_svc): Update call.
4047 (arm_linux_software_single_step): Call
4048 arm_insert_single_step_breakpoint.
4049
4050 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4051
4052 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4053 the comment.
4054
4055 2011-03-31 Tom Tromey <tromey@redhat.com>
4056
4057 * varobj.c (update_dynamic_varobj_children): Properly handle
4058 errors from iterator.
4059
4060 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4061
4062 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4063 struct linkage name twice.
4064
4065 2011-03-31 Tom Tromey <tromey@redhat.com>
4066
4067 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4068 missing ">" to message.
4069
4070 2011-03-31 Tom Tromey <tromey@redhat.com>
4071
4072 * varobj.c (instantiate_pretty_printer): Remove duplicate
4073 'return'.
4074
4075 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4076
4077 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4078 if neither saved value nor register available (e.g. signal frame).
4079
4080 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4081
4082 * macroexp.c (expand): Avoid uninitialized variable
4083 compiler warning.
4084
4085 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4086
4087 * breakpoint.c (break_range_command): Fix typo in comment.
4088
4089 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4090 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4091
4092 Implement support for PowerPC BookE ranged breakpoints.
4093 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4094 * breakpoint.h (struct bp_target_info) <length>: New member
4095 variable.
4096 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4097 instead of struct breakpoint as argument, and also add ASPACE
4098 and BP_ADDR arguments. Update all callers.
4099 (struct breakpoint_ops) <print_one_detail>: New method.
4100 (struct breakpoint) <addr_string_range_end>: New member variable.
4101 * breakpoint.c (breakpoint_location_address_match): Add function
4102 prototype.
4103 (insert_bp_location): Set bl->target_info.length.
4104 (breakpoint_here_p): Call breakpoint_location_address_match.
4105 (moribund_breakpoint_here_p): Likewise.
4106 (regular_breakpoint_inserted_here_p): Likewise.
4107 (breakpoint_thread_match): Likewise.
4108 (bpstat_stop_status): Likewise.
4109 (bpstat_check_location): Move call to
4110 breakpoint_ops.breakpoint_hit to the top.
4111 (print_one_breakpoint_location): Call
4112 breakpoint_ops.print_one_detail if available.
4113 (breakpoint_address_match_range): New function.
4114 (breakpoint_location_address_match): Likewise.
4115 (breakpoint_locations_match): Compare the length field of the
4116 locations too.
4117 (hw_breakpoint_used_count): Count resources used by all locations
4118 in a breakpoint, and use breakpoint_ops.resources_needed if
4119 available.
4120 (breakpoint_hit_ranged_breakpoint): New function.
4121 (resources_needed_ranged_breakpoint): Likewise.
4122 (print_it_ranged_breakpoint): Likewise.
4123 (print_one_ranged_breakpoint): Likewise.
4124 (print_one_detail_ranged_breakpoint): Likewise.
4125 (print_mention_ranged_breakpoint): Likewise.
4126 (print_recreate_ranged_breakpoint): Likewise.
4127 (ranged_breakpoint_ops): New structure.
4128 (find_breakpoint_range_end): New function.
4129 (break_range_command): Likewise.
4130 (delete_breakpoint): Free addr_string_range_end.
4131 (update_breakpoint_locations): Add SALS_END argument. Update
4132 all callers. Calculate breakpoint length if a non-zero SALS_END
4133 is given. Call breakpoint_locations_match instead of
4134 breakpoint_address_match.
4135 (reset_breakpoint): Find SaL of the end of the range if B is a
4136 ranged breakpoint.
4137 (_initialize_breakpoint): Register break-range command.
4138 * defs.h (print_core_address): Add function prototype.
4139 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4140 function.
4141 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4142 (ppc_linux_remove_hw_breakpoint): Likewise.
4143 (_initialize_ppc_linux_nat): Initialize
4144 to_ranged_break_num_registers.
4145 * target.c (update_current_target): Add comment about
4146 to_ranged_break_num_registers.
4147 (target_ranged_break_num_registers): New function.
4148 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4149 New method.
4150 (target_ranged_break_num_registers): Add function prototype.
4151 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4152 * utils.c (print_core_address): ... here.
4153
4154 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
4155
4156 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4157 variable compiler warning.
4158
4159 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
4160
4161 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4162 code from here ...
4163 (re_set_breakpoint): ... to here ...
4164 (addr_string_to_sals): ... and here.
4165
4166 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4167
4168 * Makefile.in (SFILES): Add missing C sources.
4169 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4170 Add missing headers.
4171
4172 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4173
4174 * .gitignore: New file.
4175
4176 2011-03-29 Mike Frysinger <vapier@gentoo.org>
4177
4178 * NEWS: Mention new cfi device simulation.
4179
4180 2011-03-29 Tom Tromey <tromey@redhat.com>
4181
4182 * dwarf2read.c (fixup_partial_die): Handle linkage name on
4183 otherwise anonymous types.
4184 (dwarf2_name): Likewise.
4185 * valops.c (value_struct_elt_for_reference): Refine artificial
4186 type logic. Call error if j==-1.
4187
4188 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
4189
4190 Fix false GCC warning.
4191 * infcall.c (find_function_addr): Initialize funaddr.
4192
4193 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
4194
4195 Fix mingw compilation with --enable-targets=all.
4196 * remote-mips.c (gdb_usleep.h): Include header.
4197 (mips_enter_debug): Use gdb_usleep instead of sleep.
4198
4199 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 Support resolution of STT_GNU_IFUNC via breakpoints.
4202 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4203 bp_gnu_ifunc_resolver_return.
4204 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4205 the loop. Support bp_gnu_ifunc_resolver and
4206 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
4207 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4208 breakpoints.
4209 (bptype_string, print_one_breakpoint_location): Support
4210 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4211 (user_settable_breakpoint): Return true also for
4212 bp_gnu_ifunc_resolver.
4213 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4214 bp_gnu_ifunc_resolver_return.
4215 (set_breakpoint_location_function): New parameter explicit_loc,
4216 describe it. Call find_pc_partial_function_gnu_ifunc with new
4217 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4218 EXPLICIT_LOC is not set.
4219 (set_raw_breakpoint): Set EXPLICIT_LOC for
4220 set_breakpoint_location_function.
4221 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4222 set_breakpoint_location_function.
4223 (mention): Support bp_gnu_ifunc_resolver and
4224 bp_gnu_ifunc_resolver_return.
4225 (add_location_to_breakpoint): Set EXPLICIT_LOC for
4226 set_breakpoint_location_function.
4227 (update_breakpoint_locations): Remove static.
4228 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4229 bp_gnu_ifunc_resolver_return.
4230 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4231 bp_gnu_ifunc_resolver_return.
4232 (update_breakpoint_locations): New declaration.
4233 * elfread.c: Include gdbthread.h and regcache.h.
4234 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4235 functions.
4236 (elf_gnu_ifunc_fns): Install them.
4237 * minsyms.c (stub_gnu_ifunc_resolver_stop)
4238 (stub_gnu_ifunc_resolver_return_stop): New functions.
4239 (stub_gnu_ifunc_fns): Install them.
4240 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4241 and gnu_ifunc_resolver_return_stop.
4242 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4243
4244 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4245
4246 STT_GNU_IFUNC reader implementation.
4247 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4248 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4249 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4250 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4251 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4252 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4253 (elf_gnu_ifunc_resolve_addr): New.
4254 (elf_symfile_read): Call elf_rel_plt_read.
4255 (elf_gnu_ifunc_fns): New.
4256 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4257 Install elf_gnu_ifunc_fns.
4258 * infcall.c (find_function_return_type): New function.
4259 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4260 * minsyms.c (stub_gnu_ifunc_resolve_addr)
4261 (stub_gnu_ifunc_resolve_name): New functions.
4262 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4263 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4264 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4265
4266 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4267
4268 Code cleanup for later STT_GNU_IFUNC support.
4269 * infcall.c (find_function_addr): Remove variable code, use explicit
4270 dereferences for it. Move VALUE_TYPE initialization later.
4271
4272 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4273
4274 GDB find_pc_partial_function support for STT_GNU_IFUNC.
4275 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4276 (clear_pc_function_cache): Clear it.
4277 (find_pc_partial_function): Rename to ...
4278 (find_pc_partial_function_gnu_ifunc): ... this function. New
4279 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
4280 (find_pc_partial_function): New wrapper for this function.
4281 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4282
4283 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 GDB internal type support for STT_GNU_IFUNC.
4286 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4287 (elf_symtab_read): Set mst_text_gnu_ifunc for
4288 BSF_GNU_INDIRECT_FUNCTION.
4289 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4290 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4291 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4292 nodebug_got_plt_symbol.
4293 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4294 (TYPE_GNU_IFUNC): New.
4295 (struct main_type): New field flag_gnu_ifunc.
4296 (struct builtin_type): New field builtin_func_func.
4297 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4298 nodebug_got_plt_symbol.
4299 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4300 (in_gnu_ifunc_stub): New.
4301 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4302 mst_text_gnu_ifunc.
4303 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
4304 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
4305 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4306 in_gnu_ifunc_stub.
4307 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4308 * symtab.c (search_symbols): Likewise.
4309 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4310 and mst_slot_got_plt.
4311 (in_gnu_ifunc_stub): New declaration.
4312
4313 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4314
4315 Support a ring of related breakpoints.
4316 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4317 other functions, add gdb_assert.
4318 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
4319 watchpoint_del_at_next_stop.
4320 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4321 (bpstat_stop_status): Handle ring in related_breakpoint.
4322 (set_raw_breakpoint_without_location): Initialize ring in
4323 related_breakpoint.
4324 (delete_breakpoint): Handle ring in related_breakpoint, use
4325 watchpoint_del_at_next_stop.
4326 (map_breakpoint_numbers): Handle ring in related_breakpoint.
4327
4328 2011-03-28 Tom Tromey <tromey@redhat.com>
4329
4330 PR symtab/12441:
4331 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4332 with `language_minimal'.
4333
4334 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
4335
4336 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4337 instead of checking for STT_ARM_TFUNC symbol type.
4338
4339 2011-03-25 Tom Tromey <tromey@redhat.com>
4340
4341 * linespec.c (symbol_found): Restore line-based result for
4342 non-LOC_LABEL symbols.
4343
4344 2011-03-25 Kai Tietz <ktietz@redhat.com>
4345
4346 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4347 instead of strcmp for comparison.
4348 (tui_source_is_displayed): Likewise.
4349 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4350
4351 2011-03-24 Mark Wielaard <mjw@redhat.com>
4352
4353 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4354 complaint.
4355 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4356 (find_partial_die_in_comp_unit): Likewise in comment.
4357 (read_attribute_value): Likewise.
4358 (lookup_die_type): Likewise.
4359 (dwarf_form_name): Likewise.
4360 (dump_die_shallow): Likewise.
4361 (follow_die_ref_or_sig): Likewise.
4362
4363 2011-03-24 Tom Tromey <tromey@redhat.com>
4364
4365 PR breakpoints/11816:
4366 * linespec.c (decode_line_1): Parse `function:label' linespecs.
4367 (decode_compound): Update.
4368 (find_function_symbol): New function.
4369 (decode_dollar): Update.
4370 (decode_label): Add 'function_symbol' parameter. Handle
4371 function-relative labels.
4372 (decode_variable): Update.
4373 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
4374 not its line. Set `special_display' and canonical name for
4375 labels.
4376
4377 2011-03-24 Tom Tromey <tromey@redhat.com>
4378
4379 * linespec.h (struct linespec_result) <special_display>: New
4380 field.
4381 * breakpoint.h (struct breakpoint) <display_canonical>: New
4382 field.
4383 * breakpoint.c (print_breakpoint_location): Respect
4384 display_canonical.
4385 (create_breakpoint_sal): Add 'display_canonical' parameter.
4386 (create_breakpoints_sal): Update.
4387 (create_breakpoint): Update.
4388
4389 2011-03-24 Tom Tromey <tromey@redhat.com>
4390
4391 * symtab.c (decode_line_spec): Update.
4392 * linespec.c (build_canonical_line_spec): Change type of
4393 'canonical'.
4394 (decode_line_2, decode_line_1, decode_objc, decode_compound)
4395 (find_method, decode_all_digits, decode_dollar, decode_label)
4396 (symbol_found): Likewise.
4397 (init_linespec_result): New function.
4398 * breakpoint.c (struct captured_parse_breakpoint_args)
4399 <canonical_p>: New field, replaces addr_string_p.
4400 (create_breakpoints_sal): Add 'canonical' parameter, replacing
4401 'addr_string'.
4402 (parse_breakpoint_sals): Likewise.
4403 (do_captured_parse_breakpoint): Update.
4404 (create_breakpoint): Use struct linespec_result.
4405 (until_break_command): Update.
4406 (breakpoint_re_set_one): Update.
4407 (decode_line_spec_1): Update.
4408 * linespec.h (struct linespec_result): New.
4409 (init_linespec_result): Declare.
4410
4411 2011-03-23 Pedro Alves <pedro@codesourcery.com>
4412
4413 * regcache.c (regcache_raw_read): If the target didn't supply a
4414 given raw register, mark it as unavailable.
4415
4416 2011-03-23 Kai Tietz <ktietz@redhat.com>
4417
4418 * breakpoint.c (clear_command): Use filename_cmp
4419 instead of strcmp for comparison.
4420 * buildsym.c (watch_main_source_file_lossage): Likewise.
4421 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4422 checking just for slash.
4423 * dbxread.c (read_dbx_symtab): Use lbasename instead of
4424 strrchr and filename_cmp instead of strcmp for filenames.
4425 (add_old_header_file): Use filename_cmp
4426 instead of strcmp for comparison.
4427 * exec.c (exec_set_section_address): Likewise.
4428 * macrotab.c (macro_lookup_inclusion): Likewise.
4429 (macro_lookup_inclusion): Likewise.
4430 * elfread.c (_initialize_elfread): Likewise.
4431 (elfstab_offset_sections): Likewise.
4432 (elfstab_offset_sections): Use lbasename instead of
4433 strrchr.
4434 * mdebugread.c (parse_partial_symbols): Likewise.
4435 (arse_partial_symbols): Use filename_(n)cmp instead of
4436 str(n)cmp for comparison.
4437 * minsyms.c (lookup_minimal_symbol): Likewise.
4438 * psymtab.c (read_psymtabs_with_filename): Likewise.
4439 * solib.c (solib_read_symbols): Likewise.
4440 (reload_shared_libraries_1): Likewise.
4441 * symmisc.c (maintenance_print_symbols): Likewise.
4442 * symfile.c (separate_debug_file_exists): Likewise.
4443 (reread_symbols): Likewise.
4444 (find_separate_debug_file_by_debuglink): Likewise.
4445 * remote-fileio.c (remote_fileio_func_rename): Likewise.
4446 * source.c (add_path): Likewise.
4447 * symtab.c (filename_seen): Likewise.
4448 (file_matches): Likewise.
4449 (print_symbol_info): Likewise.
4450 (maybe_add_partial_symtab_filename): Likewise.
4451 (make_source_files_completion_list): Likewise.
4452 * xml-syscall.c (init_sysinfo): Likewise.
4453 * windows-nat.c (_initialize_check_for_gdb_ini): Use
4454 IS_DIR_SEPARATOR for checking for trailing path separator.
4455
4456 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4457
4458 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
4459 label abort_expression.
4460 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4461 DWARF_VALUE_OPTIMIZED_OUT.
4462
4463 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4464
4465 Code cleanup.
4466 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4467 to linkage_name. Invert its value. Update the function comment.
4468 (c_type_print_varspec_suffix): Invert it at the caller.
4469 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4470
4471 2011-03-22 Pedro Alves <pedro@codesourcery.com>
4472
4473 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4474 errors when reading the `stop_pc'.
4475 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4476 get_frame_pc.
4477
4478 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4479
4480 * NEWS: Document gdb.Write stream keyword.
4481
4482 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4483
4484 Revert:
4485 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4486 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4487 (dwarf2_add_field): Fix new_field->accessibility for
4488 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4489
4490 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
4491
4492 PR python/12183
4493
4494 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4495 other error classes. Do not print stack trace.
4496
4497 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4498
4499 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4500 (dwarf2_add_field): Fix new_field->accessibility for
4501 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4502
4503 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
4504
4505 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4506 encountering a load via a non-SP register.
4507
4508 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
4509
4510 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4511 field in returned unwinder.
4512
4513 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4516
4517 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4518
4519 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4520 of xmalloc.
4521
4522 2012-03-18 Pedro Alves <pedro@codesourcery.com>
4523
4524 * frame.c (frame_unwind_register): Throw an error if unwinding the
4525 register failed.
4526 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
4527 an unwind stop reason.
4528 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
4529 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
4530 UNWIND_UNAVAILABLE>: New.
4531 * inline-frame.c (inline_frame_unwind): Install
4532 default_frame_unwind_stop_reason.
4533 * frame-unwind.c: Include "exceptions.h".
4534 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
4535 (default_frame_unwind_stop_reason): New.
4536 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
4537 (default_frame_unwind_stop_reason): Declare.
4538 (struct frame_unwind) <stop_reason>: New function pointer.
4539
4540 * dummy-frame.c: Install default_frame_unwind_stop_reason.
4541 * dwarf2-frame.c: Include exceptions.h.
4542 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
4543 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
4544 computing the CFA. If such an error was thrown, set
4545 unavailable_retaddr.
4546 (dwarf2_frame_unwind_stop_reason): New.
4547 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
4548 unavailable.
4549 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
4550 (dwarf2_signal_frame_unwind): Ditto.
4551
4552 * amd64-tdep.c: Include "exceptions.h".
4553 (struct amd64_frame_cache): New field "base_p".
4554 (amd64_init_frame_cache): Clear it.
4555 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
4556 Avoid reading registers with functions that throw if the register
4557 is not necessary to compute the frame base.
4558 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4559 swallowing NOT_AVAILABLE_ERROR.
4560 (amd64_frame_unwind_stop_reason): New.
4561 (amd64_frame_this_id): Don't build a frame id if the frame base
4562 was unavailable.
4563 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
4564 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4565 base_p if the frame base was computable.
4566 (amd64_sigtramp_frame_unwind_stop_reason): New.
4567 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
4568 frame base was unavailable.
4569 (amd64_sigtramp_frame_unwind): Install
4570 amd64_sigtramp_frame_unwind_stop_reason.
4571 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4572 base_p if the frame base was computable.
4573 (amd64_epilogue_frame_unwind_stop_reason): New.
4574 (amd64_epilogue_frame_this_id): Don't build a frame id if the
4575 frame base was unavailable.
4576 (amd64_epilogue_frame_unwind): Install
4577 amd64_epilogue_frame_unwind_stop_reason.
4578 * i386-tdep.c: Include "exceptions.h".
4579 (struct i386_frame_cache): New field "base_p".
4580 (i386_init_frame_cache): Clear it.
4581 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
4582 Avoid reading registers with functions that throw if the register
4583 is not necessary to compute the frame base.
4584 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
4585 swallowing NOT_AVAILABLE_ERROR.
4586 (i386_frame_unwind_stop_reason): New.
4587 (i386_frame_this_id): Don't build a frame id if the frame base was
4588 unavailable.
4589 (i386_frame_prev_register): Handle unavailable SP.
4590 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
4591 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4592 base_p if the frame base was computable.
4593 (i386_epilogue_frame_unwind_stop_reason): New.
4594 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
4595 base was unavailable.
4596 (i386_epilogue_frame_unwind): Install
4597 i386_epilogue_frame_unwind_stop_reason.
4598 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
4599 base_p if the frame base was computable.
4600 (i386_sigtramp_frame_unwind_stop_reason): New.
4601 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
4602 base was unavailable.
4603 (i386_sigtramp_frame_unwind): Install
4604 i386_sigtramp_frame_unwind_stop_reason.
4605 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
4606 type's size, not the register's.
4607 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
4608
4609 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
4610 default_frame_unwind_stop_reason.
4611 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
4612 (alpha_heuristic_frame_unwind): Ditto.
4613 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
4614 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
4615 * avr-tdep.c (avr_frame_unwind): Ditto.
4616 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
4617 Ditto.
4618 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
4619 * frv-tdep.c (frv_frame_unwind): Ditto.
4620 * h8300-tdep.c (h8300_frame_unwind): Ditto.
4621 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
4622 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
4623 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
4624 (hppa_stub_frame_unwind): Ditto.
4625 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
4626 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
4627 (ia64_libunwind_frame_unwind)
4628 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
4629 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
4630 * lm32-tdep.c (lm32_frame_unwind): Ditto.
4631 * m32c-tdep.c (m32c_unwind): Ditto.
4632 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
4633 * m32r-tdep.c (m32r_frame_unwind): Ditto.
4634 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
4635 * m68k-tdep.c (m68k_frame_unwind): Ditto.
4636 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
4637 * m88k-tdep.c (m88k_frame_unwind): Ditto.
4638 * mep-tdep.c (mep_frame_unwind): Ditto.
4639 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
4640 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4641 (mips_stub_frame_unwind): Ditto.
4642 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4643 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4644 * mt-tdep.c (mt_frame_unwind): Ditto.
4645 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4646 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4647 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4648 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4649 (s390_sigtramp_frame_unwind): Ditto.
4650 * score-tdep.c (score_prologue_unwind): Ditto.
4651 * sh-tdep.c (sh_frame_unwind): Ditto.
4652 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4653 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4654 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4655 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4656 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4657 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4658 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4659 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4660 (sparc64obsd_trapframe_unwind): Ditto.
4661 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4662 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4663 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4664 * v850-tdep.c (v850_frame_unwind): Ditto.
4665 * vax-tdep.c (vax_frame_unwind): Ditto.
4666 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4667 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4668 * xtensa-tdep.c (xtensa_unwind): Ditto.
4669
4670 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4671
4672 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4673 there's always a frame. Use get_frame_pc_if_available instead of
4674 get_frame_pc, and if there's no PC available, don't look up a
4675 symtab.
4676
4677 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4678
4679 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4680 unavailable PC.
4681
4682 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4683
4684 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4685 gracefully.
4686
4687 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4688
4689 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4690 * frame.c (frame_unwind_caller_pc_if_available): New.
4691 * stack.c (frame_info): Handle unavailable PC.
4692
4693 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4694
4695 * frame.c (frame_unwind_pc): Rename to ...
4696 (frame_unwind_pc_if_available): ... this. New `pc' output
4697 parameter. Change return type to int. Gracefully handle
4698 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4699 happened, or 1 otherwise.
4700 (frame_unwind_pc): Reimplement on top of
4701 frame_unwind_pc_if_available.
4702 (get_frame_func): Rename to ...
4703 (get_frame_func_if_available): New `pc' output parameter. Change
4704 return type to int. Gracefully handle the PC not being available.
4705 (get_frame_func): Reimplement on top of
4706 get_frame_func_if_available.
4707 (select_frame): Handle the PC being unavailable.
4708 (get_prev_frame): Handle the PC being unavailable.
4709 (get_frame_pc_if_available): New.
4710 (get_frame_address_in_block_if_available): New.
4711 (find_frame_sal): Handle the frame PC not being available.
4712 * frame.h (get_frame_pc_if_available): Declare.
4713 (get_frame_address_in_block_if_available): Declare.
4714 (get_frame_func_if_available): Declare.
4715 * stack.c (print_frame_info): Handle the PC being unavailable.
4716 (find_frame_funname): Ditto.
4717 (print_frame): Handle the PC being unavailable.
4718 (get_frame_language): Ditto.
4719 * blockframe.c (get_frame_block): Ditto.
4720 * macroscope.c (default_macro_scope): Ditto.
4721 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4722
4723 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4724
4725 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4726 NOT_AVAILABLE_ERROR when evaluating the location expression.
4727
4728 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4729
4730 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4731 returning that the register piece is unavailable/optimized out.
4732 (write_pieced_value): Handle get_frame_register_bytes returning
4733 that the register piece is unavailable/optimized out when doing a
4734 read-modify write of a bitfield.
4735 * findvar.c (value_from_register): Handle get_frame_register_bytes
4736 returning that the register piece is unavailable/optimized out.
4737 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4738 and `unavailablep'. Throw error on bad debug info. Use
4739 frame_register instead of frame_register_read, to fill in the new
4740 arguments.
4741 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4742 and `unavailablep'.
4743 * valops.c: (value_assign): Adjust, and handle
4744 get_frame_register_bytes failing.
4745 * spu-tdep.c: Include exceptions.h.
4746 (spu_software_single_step): Adjust, and handle
4747 get_frame_register_bytes failing.
4748 (spu_get_longjmp_target): Ditto.
4749 * gdbarch.sh (register_to_value): Change to return int. New
4750 parameters `optimizedp' and `unavailablep'.
4751 * gdbarch.h, gdbarch.c: Regenerate.
4752 * i386-tdep.c (i386_register_to_value): Adjust to new
4753 gdbarch_register_to_value interface.
4754 * i387-tdep.c (i387_register_to_value): Ditto.
4755 * i387-tdep.h (i387_register_to_value): Ditto.
4756 * alpha-tdep.c (alpha_register_to_value): Ditto.
4757 * ia64-tdep.c (ia64_register_to_value): Ditto.
4758 * m68k-tdep.c (m68k_register_to_value): Ditto.
4759 * mips-tdep.c (mips_register_to_value): Ditto.
4760 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4761
4762 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4763
4764 * findvar.c (value_of_register): Mark the value as unavailable, if
4765 the register is unavailable.
4766 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4767 (frame_register): New `unavailablep' parameter.
4768 (frame_register_read): Update comment.
4769 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4770 Set it if the register is unavailable. If the register is
4771 unavailable, clear the output buffer.
4772 (frame_register): New `unavailablep' parameter. Pass it down.
4773 (frame_unwind_register): Adjust.
4774 (put_frame_register): Adjust.
4775 (frame_register_read): Adjust. Also return false if the register
4776 is not available.
4777 (frame_register_unwind_location): Adjust.
4778 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4779 is unavailable, mark the value accordingly.
4780 * stack.c (frame_info): Handle unavailable registers.
4781
4782 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4783
4784 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4785 simplify, using regcache_cooked_read.
4786
4787 2011-03-18 Pedro Alves <pedro@codesourcery.com>
4788
4789 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4790 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4791 (regcache_raw_read_unsigned, regcache_raw_read_part)
4792 (regcache_cooked_read, regcache_cooked_read_signed)
4793 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4794 (regcache_cooked_read_ftype): Change return to enum
4795 register_status.
4796 * regcache.c: Include exceptions.h
4797 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4798 (do_cooked_read): Change return to enum register_status. Always
4799 forward to regcache_cooked_read.
4800 (regcache_raw_read): Change return to enum register_status. If
4801 the register is not REG_VALID, memset the buffer. Return the
4802 register's status.
4803 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4804 return the register's status.
4805 (regcache_raw_read_unsigned): Ditto.
4806 (regcache_cooked_read): Change return to enum register_status.
4807 Assert that with read-only regcaches, the register's status must
4808 be known. If the regcache is read-only, and the register is not
4809 REG_VALID, memset the buffer. Return the register's status.
4810 (regcache_cooked_read_signed): Change return to enum
4811 register_status. Handle non-REG_VALID registers and return the
4812 register's status.
4813 (regcache_cooked_read_unsigned): Change return to enum
4814 register_status. Handle non-REG_VALID registers and return the
4815 register's status.
4816 (regcache_xfer_part, regcache_raw_read_part)
4817 (regcache_cooked_read_part): Change return to enum
4818 register_status. Return the register's status.
4819 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4820 unavailable.
4821 (regcache_dump): Handle unavailable cooked registers.
4822 * frame.c (do_frame_register_read): Adjust interface to match
4823 regcache_cooked_read_ftype.
4824 * gdbarch.sh (pseudo_register_read): Change return to enum
4825 register_status.
4826 * gdbarch.h, gdbarch.c: Regenerate.
4827
4828 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4829 register_status.
4830 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4831 register_status. If reading a raw register indicates the raw
4832 register is not valid, return the raw register's status,
4833 otherwise, return REG_VALID.
4834 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4835 register_status. Handle non-REG_VALID raw registers and return
4836 the register's status.
4837 * arm-tdep.c (arm_neon_quad_read)
4838 (arm_pseudo_read): Change return to enum register_status. Handle
4839 non-REG_VALID raw registers and return the register's status.
4840 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4841 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4842 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4843 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4844 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4845 register_status.
4846 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4847 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4848 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4849 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4850 (m32c_pseudo_register_read): Change return to enum
4851 register_status. Adjust.
4852 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4853 enum register_status. Return the register's status.
4854 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4855 register_status. Return the register's status.
4856 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4857 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4858 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4859 * rs6000-tdep.c (move_ev_register_func): New typedef.
4860 (e500_move_ev_register): Use it. Change return to enum
4861 register_status. Return the register's status.
4862 (do_regcache_raw_read): New function.
4863 (do_regcache_raw_write): New function.
4864 (e500_pseudo_register_read): Change return to enum
4865 register_status. Return the register's status. Use
4866 do_regcache_raw_read.
4867 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4868 (dfp_pseudo_register_read): Change return to enum register_status.
4869 Return the register's status.
4870 (vsx_pseudo_register_read): Ditto.
4871 (efpr_pseudo_register_read): Ditto.
4872 (rs6000_pseudo_register_read): Ditto.
4873 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4874 register_status. Return the register's status.
4875 * sh64-tdep.c (pseudo_register_read_portions): New function.
4876 (sh64_pseudo_register_read): Change return to enum
4877 register_status. Use pseudo_register_read_portions. Return the
4878 register's status.
4879 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4880 register_status. Return the register's status.
4881 * sh-tdep.c (pseudo_register_read_portions): New function.
4882 (sh_pseudo_register_read): Change return to enum register_status.
4883 Use pseudo_register_read_portions. Return the register's status.
4884 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4885 enum register_status. Return the register's status.
4886 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4887 * spu-tdep.c (spu_pseudo_register_read_spu)
4888 (spu_pseudo_register_read): Ditto.
4889 * xtensa-tdep.c (xtensa_register_read_masked)
4890 (xtensa_pseudo_register_read): Ditto.
4891 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4892
4893 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4894
4895 * python/py-value.c (valpy_getitem): Fix formatting of error function
4896 call.
4897
4898 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4899
4900 ARI fixes: Add missing internationalization markups throughout
4901 C source files.
4902 * darwin-nat-info.c: Ditto.
4903 * record.c: Ditto.
4904 * remote.c: Ditto.
4905 * mi/mi-main.c: Ditto.
4906
4907 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4908
4909 ARI fixes: Add missing internationalization markups throughout
4910 yacc files.
4911 * c-exp.y: Ditto.
4912 * cp-name-parser.y: Ditto.
4913 * f-exp.y: Ditto.
4914 * m2-exp.y: Ditto.
4915 * objc-exp.y: Ditto.
4916 * p-exp.y: Ditto.
4917
4918 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4919
4920 ARI fixes: Messages should have no trailing new lines.
4921 * darwin-nat.c (mach_check_error): Remove trailing new line from
4922 warning function call message.
4923 * record.c (bfdcore_read): Idem for error call.
4924
4925 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
4926
4927 * common/signals.c (target_signal_from_host): Add _ markup to error
4928 function call message.
4929 (target_signal_to_host): Add _ markup and remove trailing new line
4930 from warning call message.
4931 (target_signal_from_command): Add _ markup to error function call
4932 message.
4933
4934 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
4935
4936 PR python/12149
4937
4938 * python/python.c (gdbpy_write): Accept a stream argument and
4939 operate to the appropriate stream.
4940 (gdbpy_flush): Likewise.
4941 (_initialize_python): Add stream constants.
4942 (finish_python_initialization): Add GdbOutputErrorFile class.
4943
4944 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4945
4946 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4947
4948 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
4949
4950 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
4951 to store_signed_integer. Add debug message when relocating CALL
4952 instructions. Fix formatting of debug message.
4953 * i386-tdep.c (i386_relocate_instruction): Ditto.
4954
4955 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4956
4957 * target.h (struct target_ops): Remove to_lookup_symbol field.
4958 (target_lookup_symbol): Delete macro.
4959 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4960 (update_current_target, setup_target_debug): Remove handling
4961 of to_lookup_symbol target_ops field.
4962 * ada-tasks.c (get_known_tasks_addr): Remove use of
4963 target_lookup_symbol.
4964 * coffread.c (coff_symtab_read): Likewise.
4965 * dbxread.c (read_dbx_symtab): Ditto.
4966
4967 2011-03-17 Joel Brobecker <brobecker@gnat.com>
4968
4969 PR gdb/12116:
4970 * configure.ac: Add getthrds declaration check.
4971 * configure, config.in: Regenerate.
4972 * aix-thread.c (getthrds): Declare only if not already declared
4973 in procinfo.h. More declaration out of get_signaled_thread to
4974 global scope.
4975
4976 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
4977
4978 * python/py-symtab.c: Populate symtab_object_methods,
4979 sal_object_methods.
4980 (stpy_is_valid): New function.
4981 (salpy_is_valid): Ditto.
4982 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4983 (sympy_is_valid): New function.
4984 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4985 (objfpy_is_valid): New function.
4986 * python/py-inferior.c: Populate inferior_object_methods.
4987 (infpy_is_valid): New function.
4988 * python/py-infthread.c: Populate thread_object_methods.
4989 (thpy_is_valid): New function.
4990 * python/py-block.c: Declare block_object_methods. Populate. Declare
4991 block_iterator_object_methods. Populate.
4992 (blpy_is_valid): New function.
4993 (blpy_iter_is_valid): Ditto.
4994
4995 2011-03-16 Keith Seitz <keiths@redhat.com>
4996
4997 * linespec.c (find_methods): Canonicalize NAME before looking
4998 up the symbol.
4999 (name_end): New function.
5000 (keep_name_info): New function.
5001 (decode_line_1): Use keep_name_info.
5002 (decode_compound): Likewise.
5003 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5004 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5005
5006 PR c++/12273
5007 * linespec.c (locate_first_half): Keep overload information, too.
5008 (decode_compound): Use a string to represent break characters
5009 to escape the loop.
5010 If P points to a break character, do not increment it.
5011 For C++ and Java, keep overload information and relevant keywords.
5012 If we cannot find a symbol, search the minimal symbols.
5013
5014 PR c++/11734
5015 * linespec.c (decode_compound): Rename SAVED_ARG to
5016 THE_REAL_SAVED_ARG.
5017 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5018 single-quotes.
5019 Pass a valid block to lookup_symbol.
5020 (lookup_prefix_sym): Likewise.
5021 (find_method): Construct search name based on SYM_CLASS instead
5022 of SAVED_ARG.
5023 * psymtab.c (lookup_partial_symbol): Add language parameter.
5024 (lookup_symbol_aux_psymtabs): Likewise.
5025 Don't assume that the psymtab we found was the right one. Search
5026 for the desired symbol in the symtab to be certain.
5027 (psymtab_search_name): New function.
5028 (lookup_partial_symbol): Use psymtab_search_name.
5029 Add language parameter.
5030 (read_symtabs_for_function): Add language parameter and pass to
5031 lookup_partial_symbol.
5032 (find_symbol_file_from_partial): Likewise.
5033
5034 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5035
5036 PR gdb/12528
5037 * dwarf2read.c (noop_record_line): New function.
5038 (dwarf_decode_lines): Ignore line tables for GCd functions.
5039
5040 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5041
5042 Fix ARI warnings about new lines at the end of messages, which
5043 are unneeded as there is a new line added at the end of the message
5044 automatically.
5045 * darwin-nat.c (darwin_stop_inferior): Ditto.
5046 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5047 * dfp.c (decimal_to_number): Ditto.
5048 * exec.c (print_section_info): Ditto.
5049 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5050 * osdata.c (get_osdata): Ditto.
5051 * record.c (bfdcore_write): Ditto.
5052 * remote-mips.c (mips_readchar): Ditto.
5053 * remote.c (read_ptid): Ditto.
5054 * ser-mingw.c (ser_windows_raw): Ditto.
5055 * tracepoint.c (add_local_symbols): Ditto.
5056 * windows-nat.c (fake_create_process): Ditto.
5057
5058 2011-03-16 Tom Tromey <tromey@redhat.com>
5059
5060 * tracepoint.c (stop_tracing): Don't declare.
5061 * event-top.c (after_char_processing_hook): Add `(void)'.
5062
5063 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5064
5065 * NEWS: Add Parameter sub-classing description.
5066
5067 2011-03-16 Kai Tietz <ktietz@redhat.com>
5068
5069 * MAINTAINERS: Update my e-mail address.
5070
5071 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
5072
5073 * MAINTAINERS: Add myself for write after approval privileges.
5074
5075 2011-03-15 Michael Snyder <msnyder@vmware.com>
5076
5077 * frame.c (find_frame_sal): Assert sym is not null.
5078
5079 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5080
5081 * objc-lang.c (selectors_info): Check strchr for null result.
5082
5083 * stabsread.c (define_symbol): Guard against bad stabstring input.
5084
5085 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5086
5087 Remove trailing spaces and tabulations from pascal language
5088 support sources.
5089 p-exp.y: Ditto.
5090 p-lang.c: Ditto.
5091 p-lang.h: Ditto.
5092 p-valprint.c: Ditto.
5093
5094 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5095
5096 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5097 than LOW. Comment it.
5098 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5099 HIGHPC not strictly higher than LOWPC.
5100
5101 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5102
5103 Fix formatting of function declarations returning a pointer in
5104 previous commit.
5105 * varobj.c (varobj_add_child): Ditto.
5106 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5107 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5108
5109 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5110
5111 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5112 for the "generic" vector ABI used with GCC 4.3 and later.
5113 (ppc64_sysv_abi_return_value): Likewise.
5114
5115 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5116
5117 * infcall.c (call_function_by_hand): Function return value is
5118 always a non_lval, even when using struct_return.
5119
5120 2011-03-15 Pedro Alves <pedro@codesourcery.com>
5121
5122 * printcmd.c (ALL_DISPLAYS_SAFE): New.
5123 (map_display_numbers): New.
5124 (do_delete_display): New.
5125 (undisplay_command): Use map_display_numbers.
5126 (do_enable_disable_display): New.
5127 (enable_disable_display_command): New function.
5128 (enable_display): Delete.
5129 (enable_display_command): New.
5130 (disable_display_command): Reimplement.
5131 (_initialize_printcmd): Adjust "enable display" command to use
5132 `enable_display_command' as callback.
5133
5134 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5135
5136 * NEWS: Add Python breakpoint 'stop' operation.
5137
5138 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5139
5140 * NEWS: Delete duplicate entry. Fix typo.
5141
5142 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5143
5144 Fix ARI warning about function names in first column.
5145 Put prototype declaration on same line as return type.
5146 * objc-exp.y: Ditto.
5147 * p-exp.y: Ditto.
5148 * python/py-stopevent.h: Ditto.
5149 For long function names, split parameters to
5150 allow function name on same line as return type.
5151 * solib-pa64.c: Ditto.
5152 * varobj.c: Ditto.
5153 * varobj.h: Ditto.
5154 For long function declaration, use single line.
5155 * hppa-tdep.h: Ditto.
5156 * inferior.h: Ditto.
5157
5158 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
5159
5160 * python/python.h: Declare gdbpy_should_stop and
5161 gdbpy_breakpoint_has_py_cond.
5162 * python/python.c: Add python.h to includes. Remove python.h from
5163 HAVE_PYTHON definition
5164 (gdbpy_should_stop): New dummy function.
5165 (gdbpy_breakpoint_has_py_cond): New dummy function.
5166 * python/py-breakpoint.c (bppy_init): Rewrite to allow
5167 sub-classing capabilities.
5168 (gdbpy_should_stop): New function.
5169 (gdbpy_breakpoint_has_py_cond): New function.
5170 (local_setattro): New function.
5171 * breakpoint.c (condition_command): Add check for Python 'stop'
5172 operation.
5173 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5174 operation function as part of stop/continue tests.
5175
5176 2011-03-14 Tom Tromey <tromey@redhat.com>
5177
5178 PR gdb/12576:
5179 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5180 (needs_frame_dwarf_call): Likewise.
5181
5182 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
5183
5184 Fix ARI warning about functions without parameters that do not
5185 use (void).
5186 * breakpoint.c (all_tracepoints): Replace () by (void).
5187 * f-exp.y (match_string_literal): Ditto.
5188 (yylex): Ditto.
5189 * m2-exp.y (yylex): Ditto.
5190 * mep-tdep.c (current_me_module): Ditto.
5191 (current_options): Ditto.
5192 (current_cop_data_bus_width): Ditto.
5193 (current_cr_names): Ditto.
5194 (current_cr_is_float): Ditto.
5195 (current_ccr_names): Ditto.
5196 * objc-exp.y (yylex): Ditto.
5197 * p-exp.y (yylex): Ditto.
5198 * remote.c (send_interrupt_sequence): Ditto.
5199 * tracepoint.c (current_trace_status): Ditto.
5200 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5201 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5202
5203 2011-03-11 Michael Snyder <msnyder@vmware.com>
5204
5205 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5206 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5207 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5208 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5209 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5210
5211 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5212 (delete_async_event_handler): Ditto.
5213
5214 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5215
5216 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5217
5218 * top.c (set_verbose): Assert showcmd was found.
5219
5220 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
5221
5222 * xtensa-tdep.c (warning_once): Correct style issues.
5223
5224 2011-03-11 Yao Qi <yao@codesourcery.com>
5225
5226 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5227
5228 2011-03-11 Andreas Schwab <schwab@redhat.com>
5229
5230 * common/aclocal.m4: Remove.
5231
5232 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5233
5234 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5235 (xtensa_write_register, xtensa_read_register): Likewise.
5236 (xtensa_hextochar): Removed.
5237 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5238
5239 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
5240
5241 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5242 (xtensa_call0_frame_cache_t): Update comments. New fields added.
5243 (xtensa_alloc_frame_cache): Add initialization for new fields.
5244 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5245 (warning_once): New function.
5246 (xtensa_insn_kind): New item c0opc_and.
5247 (call0_classify_opcode): Add the case for AND instruction.
5248 (call0_track_op): Change arguments. New local variable litbase.
5249 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
5250 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5251 in the prologue.
5252 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5253 (call0_analyze_prologue): Update the comments. Change arguments.
5254 Add the variety of updates to handle extended prologues, which now can
5255 conduct dynamic stack adjustments.
5256 (call0_frame_cache): Likewise.
5257 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5258 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5259
5260 2011-03-10 Michael Snyder <msnyder@vmware.com>
5261
5262 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5263 (cmd_qtframe): Ditto.
5264 (cmd_qtbuffer): Ditto.
5265 (cmd_bigqtbuffer): Ditto.
5266
5267 2011-03-10 Tom Tromey <tromey@redhat.com>
5268
5269 * tracepoint.c (trace_actions_command): Update.
5270 * thread.c (thread_apply_command): Update.
5271 * reverse.c (delete_bookmark_command): Update.
5272 (bookmarks_info): Update.
5273 * printcmd.c (undisplay_command): Update.
5274 * memattr.c (mem_enable_command): Update.
5275 (mem_disable_command): Update.
5276 (mem_delete_command): Update.
5277 * inferior.c (detach_inferior_command): Update.
5278 (kill_inferior_command): Update.
5279 (remove_inferior_command): Update.
5280 * cli/cli-utils.h (struct get_number_or_range_state): New.
5281 (init_number_or_range): Declare.
5282 (get_number_or_range): Update.
5283 * cli/cli-utils.c (init_number_or_range): New function.
5284 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
5285 static variables.
5286 (number_is_in_list): Update.
5287 * breakpoint.h (get_tracepoint_by_number): Update.
5288 * breakpoint.c (map_breakpoint_numbers): Update for change to
5289 get_number_or_range.
5290 (find_location_by_number): Use get_number, not
5291 get_number_or_range.
5292 (trace_pass_set_count): New function.
5293 (trace_pass_command): Update for change to get_number_or_range.
5294 Rework loop logic.
5295 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5296 'state' parameter.
5297
5298 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
5299
5300 * python/py-param.c (add_setshow_generic): Add set/show callback
5301 parameters. Register Python object context.
5302 (get_show_value): New function.
5303 (get_set_value): New function.
5304 (call_doc_function): New function.
5305 (get_doc_string): Move behind get_show_value/get_set_value.
5306
5307 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
5308
5309 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5310
5311 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
5312
5313 * xtensa-tdep.c (xtensa_read_register): Add comment.
5314 (xtensa_write_register): Likewise.
5315 (xtensa_hextochar): Add comment and update to match coding conventions.
5316 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5317 (execute_l32e, execute_s32e, execute_code): Update comments.
5318 (xtensa_exception_handler_t): Update to match coding conventions.
5319 (xtensa_insn_kind): Likewise.
5320
5321 2011-03-09 Michael Snyder <msnyder@vmware.com>
5322
5323 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5324
5325 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5326
5327 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5328
5329 2011-03-09 Tom Tromey <tromey@redhat.com>
5330
5331 * thread.c (restore_selected_frame): Handle frame_level == -1.
5332 (make_cleanup_restore_current_thread): Use
5333 get_selected_frame_if_set.
5334 * frame.h (get_selected_frame_if_set): Declare.
5335 * frame.c (get_selected_frame_if_set): New function.
5336
5337 2011-03-09 Pedro Alves <pedro@codesourcery.com>
5338
5339 * cli/cli-cmds.c (shell_escape): Use lbasename.
5340 * coffread.c (coff_start_symtab): Constify parameter.
5341 (complete_symtab): Constify `name' parameter.
5342 (coff_symtab_read): Constify `filestring' local.
5343 (coff_getfilename): Constify return and `result' local.
5344 Use lbasename.
5345 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5346 * linux-fork.c (info_checkpoints_command): Use lbasename.
5347 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5348 * minsyms.c (lookup_minimal_symbol): Use lbasename.
5349 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5350 * procfs.c (procfs_make_note_section): Use lbasename.
5351 * tui/tui-io.c (printable_part): Constity return and parameter.
5352 Use lbasename.
5353 (print_filename): Constify parameters, and local `s'.
5354 (tui_rl_display_match_list): Constify local `temp'.
5355
5356 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5357
5358 Revert:
5359 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5360 Fix DWARF-3+ DW_AT_accessibility default assumption.
5361 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5362 cu->header.version >= 3.
5363
5364 2011-03-09 Yao Qi <yao@codesourcery.com>
5365
5366 * common/Makefile.in: Remove.
5367 * common/configure: Remove.
5368 * common/configure.ac: Remove.
5369
5370 2011-03-09 Yao Qi <yao@codesourcery.com>
5371
5372 Revert:
5373 2011-02-11 Yao Qi <yao@codesourcery.com>
5374
5375 * common/Makefile.in: Add copyright header.
5376
5377 2011-02-11 Yao Qi <yao@codesourcery.com>
5378
5379 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5380 libcommon.a.
5381 * configure.ac: Add common to sub dir.
5382 * configure: Regenerate.
5383
5384 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5385
5386 * xtensa-tdep.c (call0_ret): New function.
5387 (xtensa_skip_prologue): Speed up analysis.
5388
5389 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5390
5391 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5392 while executing MI command -data-list-changed-registers.
5393
5394 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5395
5396 * xtensa-tdep.c (xtensa_read_register): New function.
5397 (xtensa_write_register): New function.
5398 (xtensa_find_register_by_name): New function.
5399 (xtensa_windowed_frame_cache): Update comments in type description.
5400 (xtensa_frame_cache): Likewise.
5401 (xtensa_window_interrupt_insn): New function.
5402 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5403 (xtensa_insn_kind): Add new instructions.
5404 (rwx_special_register): New function.
5405 (call0_classify_opcode): Add new instructions to the analysis.
5406 (a0_saved, a7_saved, a11_saved): New variables.
5407 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5408 (execute_l32e): New function.
5409 (execute_s32e): New function.
5410 (xtensa_exception_handler_t): New type.
5411 (execute_code): New function.
5412 (xtensa_window_interrupt_frame_cache): New function to conduct frame
5413 analysis for Xtensa Window Exception handlers.
5414
5415 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5416
5417 * xtensa-tdep.c (TX_PS): New.
5418 (windowing_enabled): Update to count for Call0 ABI.
5419 (xtensa_hextochar): New.
5420 (xtensa_init_reggroups): Make algorithm generic.
5421 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5422
5423 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
5424
5425 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5426
5427 2011-03-08 Michael Snyder <msnyder@vmware.com>
5428
5429 * i386-tdep.c (i386_follow_jump): Check return value of
5430 target_read_memory.
5431 (i386_analyze_struct_return): Ditto.
5432 (i386_skip_probe): Ditto.
5433 (i386_match_insn): Ditto.
5434 (i386_skip_noop): Ditto.
5435 (i386_analyze_frame_setup): Ditto.
5436 (i386_analyze_register_saves): Ditto.
5437 (i386_skip_prologue): Ditto.
5438 (i386_skip_main_prologue): Ditto.
5439
5440 * target.c (read_whatever_is_readable): Fix memory leak.
5441
5442 * i386-tdep.c (i386_process_record): Document fall through.
5443
5444 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5445
5446 Fix DWARF-3+ DW_AT_accessibility default assumption.
5447 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5448 cu->header.version >= 3.
5449
5450 2011-03-08 Pedro Alves <pedro@codesourcery.com>
5451
5452 * remote.c (remote_check_symbols): Skip if the target has no
5453 execution.
5454
5455 2011-03-08 Joel Brobecker <brobecker@adacore.com>
5456
5457 * target.c (read_whatever_is_readable): Reformat comment,
5458 with a minor typo fix. Minor reformatting of the code.
5459
5460 2011-03-08 Yao Qi <yao@codesourcery.com>
5461
5462 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5463 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5464 Use cached result instead of calling displaced_in_arm_mode again.
5465 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5466 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5467 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5468 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5469 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5470 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5471 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5472 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5473 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5474 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5475 (arm_catch_kernel_helper_return): Likewise.
5476 * gdb/arm-tdep.h : Update function declarations.
5477
5478 2011-03-07 Michael Snyder <msnyder@vmware.com>
5479
5480 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5481
5482 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5483
5484 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5485
5486 * elfread.c (elf_symtab_read): Stop memory leak.
5487
5488 * main.c (captured_main): Fix memory leak.
5489
5490 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
5491
5492 * ada-lang.c (compare_names): Call is_name_suffix with string1
5493 instead of string2.
5494
5495 2011-03-07 Tom Tromey <tromey@redhat.com>
5496
5497 * xcoffread.c (xcoff_sym_fns): Update.
5498 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5499 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5500 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5501 (symbol_file_add_with_addrs_or_offsets): Likewise.
5502 (reread_symbols): Handle OBJF_PSYMTABS_READ.
5503 * somread.c (som_sym_fns): Update.
5504 * psymtab.h (require_partial_symbols): Declare.
5505 * psymtab.c (require_partial_symbols): New function.
5506 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5507 (ALL_OBJFILE_PSYMTABS): Undef.
5508 (ALL_PSYMTABS): Move from psympriv.h.
5509 (lookup_partial_symtab, find_pc_sect_psymtab)
5510 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5511 (find_last_source_symtab_from_partial)
5512 (forget_cached_source_info_partial)
5513 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5514 (expand_partial_symbol_tables, read_psymtabs_with_filename)
5515 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5516 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5517 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5518 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5519 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5520 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5521 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5522 psymtabs.
5523 * mipsread.c (ecoff_sym_fns): Update.
5524 * machoread.c (macho_sym_fns): Update.
5525 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
5526 (read_psyms): New function.
5527 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
5528 (elf_sym_fns_lazy_psyms): New global.
5529 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
5530 dwarf2_build_psymtabs.
5531 * dbxread.c (aout_sym_fns): Update.
5532 * coffread.c (coff_sym_fns): Update.
5533
5534 2011-03-07 Tom Tromey <tromey@redhat.com>
5535
5536 * infrun.c (print_exited_reason): Include inferior id and pid in
5537 message.
5538
5539 2011-03-07 Tom Tromey <tromey@redhat.com>
5540
5541 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
5542 parameter.
5543 (target_has_execution_1): Update.
5544 (target_has_execution_current): Declare.
5545 (target_has_execution): Call target_has_execution_current.
5546 (default_child_has_execution): Update.
5547 * target.c (default_child_has_execution): Add 'the_ptid'
5548 parameter.
5549 (target_has_execution_1): Likewise.
5550 (target_has_execution_current): New function.
5551 (add_target): Update.
5552 (init_dummy_target): Update.
5553 * remote-m32r-sdi.c (m32r_has_execution): New function.
5554 (init_m32r_ops): Use it.
5555 * record.c (record_core_has_execution): Now static. Add
5556 'the_ptid' parameter.
5557 * inferior.c (have_live_inferiors): Don't save current thread.
5558 Use target_has_execution_1.
5559
5560 2011-03-07 Yao Qi <yao@codesourcery.com>
5561
5562 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
5563
5564 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5565
5566 * elfread.c (elf_symtab_read): Minor reformatting.
5567
5568 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5569
5570 * objc-lang.c (selectors_info): Minor reformatting.
5571
5572 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5573
5574 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
5575
5576 2011-03-07 Joel Brobecker <brobecker@adacore.com>
5577 Michael Snyder <msnyder@vmware.com>
5578
5579 * ada-valprint.c (ada_val_print_array): Move the declaration of
5580 "byte_order" and "elttype" inside the block where these variables
5581 are actually used. Remove some special handling for the case
5582 where "elttype" and "eltlen" are null. Replace by a comment
5583 and a couple of assertion checks.
5584
5585 2011-03-05 Michael Snyder <msnyder@vmware.com>
5586
5587 * source.c (add_path): Replace semicolon at end of block.
5588 * dwarf2expr.c (execute_stack_op): Ditto.
5589
5590 2011-03-05 Mike Frysinger <vapier@gentoo.org>
5591
5592 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
5593 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
5594 (bfin-*-*): Likewise.
5595
5596 2011-03-05 Michael Snyder <msnyder@vmware.com>
5597
5598 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
5599 * mdebugread.c (parse_symbol): Ditto.
5600 * parse.c (parse_exp_in_context): Ditto.
5601 * source.c (add_path): Ditto.
5602 * utils.c (gnu_debuglink_crc32): Ditto.
5603 * varobj.c (variable_language): Ditto.
5604
5605 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
5606
5607 2011-03-04 Michael Snyder <msnyder@vmware.com>
5608
5609 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
5610
5611 * symfile.c (simple_overlay_update): Check for null return value
5612 from lookup_minimal_symbol.
5613
5614 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
5615
5616 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5617
5618 * eval.c (parse_and_eval_address_1): Remove function.
5619 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
5620 instead of parse_and_eval_address_1.
5621 * value.h (parse_and_eval_address_1): Remove prototype.
5622
5623 2011-03-04 Michael Snyder <msnyder@vmware.com>
5624
5625 * remote.c (putpkt_binary): Document that case stmt falls through.
5626
5627 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5628
5629 * breakpointc (print_it_typical): Move NULL check from here...
5630 (print_bp_stop_message): ... to here.
5631
5632 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
5633
5634 * breakpoint.c (enable_command): Use break instead of continue,
5635 and fill in a missing break.
5636 (disable_command): Ditto.
5637
5638 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5639
5640 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5641 (terminal_save_ours): Remove misleading comment.
5642 (inflow_inferior_data_cleanup): Free ttystate.
5643 (inflow_inferior_exit): Likewise.
5644 (copy_terminal_info): Copy ttystate.
5645
5646 * serial.c (serial_copy_tty_state): New function.
5647 * serial.h (serial_copy_tty_state): Add prototype.
5648 (struct serial_ops): Add copy_tty_state callback.
5649 * ser-base.c (ser_base_copy_tty_state): New function.
5650 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5651 * ser-go32.c (dos_copy_tty_state): New function.
5652 (dos_ops): Install copy_tty_state callback.
5653 * ser-mingw.c (_initialize_ser_windows): Likewise.
5654 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5655 * ser-unix.c (hardwire_copy_tty_state): New function.
5656 (_initialize_ser_hardwire): Install it.
5657
5658 2011-03-04 Michael Snyder <msnyder@vmware.com>
5659
5660 * breakpoint.c (create_breakpoint): Add missing break statement.
5661
5662 Reverting this patch:
5663 * infcall.c (call_function_by_hand): Add break statements for lint.
5664
5665 Reverting this patch:
5666 * cli/cli-script.c (script_from_file): Add break for lint.
5667
5668 2011-03-04 Michael Snyder <msnyder@vmware.com>
5669
5670 * solib.c (reload_shared_libraries_1): Close memory leak.
5671
5672 2011-03-03 Tom Tromey <tromey@redhat.com>
5673
5674 PR gdb/12538:
5675 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5676 DW_STRING is NULL.
5677
5678 2011-03-03 Michael Snyder <msnyder@vmware.com>
5679
5680 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5681 fields of struct 'st' to zero.
5682
5683 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5684 sal.pspace before calling set_current_source_symtab_and_line.
5685
5686 2011-03-03 Yao Qi <yao@codesourcery.com>
5687
5688 * Makefile.in (configure-common): Remove. Let Makefile
5689 in dir common to rebuild itself.
5690 (common/Makefile): Likewise.
5691
5692 2011-03-03 Joel Brobecker <brobecker@adacore.com>
5693
5694 * utils.c (parse_escape): Add i18n markup in error message.
5695
5696 2011-03-03 Yao Qi <yao@codesourcery.com>
5697
5698 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5699 ARM_PC_REGNUM.
5700 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5701 (displaced_write_reg, displaced_read_reg): Likewise.
5702 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5703 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5704 (cleanup_branch): Replace magic number 14 and 15 with
5705 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5706
5707 2011-03-02 Michael Snyder <msnyder@vmware.com>
5708
5709 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5710
5711 * cli/cli-script.c (script_from_file): Add break for lint.
5712
5713 * mdebugread.c (parse_partial_symbols): Fix indent.
5714
5715 * target-descriptions.c (tdesc_gdb_type): No need to call
5716 xstrdup, callee saves a copy.
5717
5718 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5719
5720 * infcall.c (call_function_by_hand): Add break statements for lint.
5721
5722 * utils.c (parse_escape): Escape the escape char.
5723
5724 * python/py-inferior.c (build_inferior_list): Error out if
5725 PyList_Append fails.
5726 (gdbpy_inferiors): Error out if build_inferior_list fails.
5727
5728 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5729 a function call.
5730
5731 * record.c (record_restore): Move printf to before error return.
5732
5733 2011-03-02 Yao Qi <yao@codesourcery.com>
5734
5735 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5736 is_thumb and insn_size.
5737 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5738 on both ARM and Thumb mode.
5739 (arm_process_displaced_insn): Set is_thumb and insn_size.
5740 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5741 (arm_displaced_step_fixup): Likewise.
5742
5743 2011-03-01 Michael Snyder <msnyder@vmware.com>
5744
5745 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5746
5747 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5748
5749 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5750
5751 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5752
5753 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5754 with xmalloc.
5755
5756 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5757 which shadows function parameter.
5758
5759 * tracepoint.c (create_tsv_from_upload): Superfluous call
5760 to xstrdup. Callee already calls xstrdup.
5761
5762 * linespec.c (decode_line_1): Remove unnecessary null check.
5763
5764 * tracepoint.c (scope_info): Fix mem leak, remove underused
5765 variable.
5766
5767 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5768 superfluous null check.
5769
5770 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
5771 (value_of_builtin_frame_fp_reg): Ditto.
5772
5773 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5774
5775 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5776 be null.
5777
5778 * linespec.c (decode_line_1): Check for null before dereference.
5779
5780 * reverse.c (record_restore): Move null-check to before pointer
5781 dereference.
5782
5783 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5784
5785 * objc-lang.c (selectors_info): Add explanitory comment.
5786 (classes_info): Ditto.
5787
5788 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
5789
5790 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5791 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5792 versions of the trampoline. Handle Thumb vs. ARM addresses.
5793 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5794 (arm_linux_init_abi): Install it.
5795 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5796 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5797
5798 2011-02-28 Michael Snyder <msnyder@vmware.com>
5799
5800 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5801 a little bigger, to avoid possibility of an overflow.
5802
5803 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5804 buffers a little bigger, to avoid possibility of an overflow.
5805
5806 * coffread.c (coff_getfilename): Add check to avoid overflow.
5807
5808 * objc-lang.c (selectors_info): Add a small safety margin to
5809 avoid overflow.
5810 (classes_info): Error out on too long REGEXP.
5811
5812 * infrun.c (handle_inferior_event): Remove unused function call.
5813
5814 * fork-child.c (fork_inferior): Remove ifdef'd code and
5815 unused variable.
5816
5817 * linux-thread-db.c (attach_thread): Discard unused value.
5818
5819 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5820
5821 * remote.c (remote_get_noisy_reply): Discard unused value.
5822 (remote_vcont_resume): Ditto.
5823 (remote_stop_ns): Ditto.
5824
5825 * linespec.c (decode_objc): Delete unused variable.
5826
5827 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5828
5829 * dwarf2read.c (add_partial_symbol): Discard unused values.
5830 (read_base_type): Delete unused variable.
5831
5832 * dbxread.c (read_dbx_symtab): Discard unused value.
5833
5834 * eval.c (evaluate_subexp_standard): Delete unused variable,
5835 and discard unused values.
5836
5837 * infcmd.c (_initialize_infcmd): Discard unused values.
5838
5839 * stabsread.c (rs6000_builtin_type): Missing break statement.
5840
5841 * dbxread.c (process_one_symbol): Discard unused value.
5842
5843 * coffread.c (coff_end_symtab): Delete unused variable.
5844
5845 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5846 (dwarf2_add_typedef): Delete unused variable.
5847 (read_namespace): Ditto.
5848 (dwarf_decode_macros): Ditto.
5849
5850 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5851
5852 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5853
5854 * p-valprint.c (pascal_val_print): Discard unused value.
5855
5856 * utils.c (nquery): Call va_end before return;
5857 (yquery): Ditto.
5858 (query): Ditto.
5859
5860 * proc-service.c (ps_plog): Call va_end before return.
5861
5862 2011-02-28 Tom Tromey <tromey@redhat.com>
5863
5864 * python/python.c (gdbpy_value_cst): New global.
5865 (_initialize_python): Initialize it.
5866 * python/python-internal.h (gdbpy_value_cst): Declare.
5867 * python/py-value.c (convert_value_from_python): Use
5868 gdbpy_value_cst.
5869
5870 2011-02-28 Michael Snyder <msnyder@vmware.com>
5871
5872 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5873
5874 * breakpoint.c (catch_syscall_completer): Free malloced list.
5875
5876 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5877
5878 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5879 (lval_func_check_synthetic_pointer): Ditto.
5880 (lval_func_free_closure): Fix use-after-free.
5881
5882 2011-02-28 Tom Tromey <tromey@redhat.com>
5883
5884 * psymtab.c (expand_partial_symbol_tables): Use
5885 ALL_OBJFILE_PSYMTABS.
5886
5887 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5888
5889 * objc-lang.c (selectors_info): Error on too long REGEXP.
5890
5891 2011-02-28 Michael Snyder <msnyder@vmware.com>
5892
5893 * python/py-param.c (set_parameter_value): Add missing
5894 break statement.
5895
5896 * linux-record.c (record_linux_system_call): Add missing
5897 break statement.
5898
5899 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5900
5901 * breakpoint.c (print_one_breakpoint_location): Remove unused
5902 argument PRINT_ADDRESS_BITS. Update callers.
5903 (print_one_breakpoint): Likewise.
5904
5905 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5906
5907 * breakpoint.c (wrap_indent_at_field): New function.
5908 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5909 Allocate ui_stream locally instead of using STB argument.
5910 (print_one_breakpoint_location): Update call.
5911 * ui-out.c (ui_out_query_field): New function.
5912 * ui-out.h (ui_out_query_field): Add prototype.
5913
5914 2011-02-28 Joel Brobecker <brobecker@adacore.com>
5915
5916 From Michael Snyder <msnyder@vmware.com>
5917 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5918
5919 2011-02-27 Michael Snyder <msnyder@vmware.com>
5920
5921 * objc-lang.c (selectors_info): Prevent string overrun.
5922
5923 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5924 error in strncpy.
5925
5926 * symtab.c (rbreak_command): Move variable 'file_name' to
5927 outer scope.
5928
5929 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5930 param with a local variable of the same name.
5931
5932 2011-02-27 Michael Snyder <msnyder@vmware.com>
5933
5934 * value.c (value_from_history_ref): New function.
5935 * value.h (value_from_history_ref): Export.
5936 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5937 to parse value history references.
5938 * cli/cli-utils.h (get_number_trailer): Update comment.
5939
5940 2011-02-27 Michael Snyder <msnyder@vmware.com>
5941
5942 * inferior.c (detach_inferior_command): Use get_number_or_range.
5943 (kill_inferior_command): Ditto.
5944 (remove_inferior_command): Ditto.
5945 (initialize_inferiors): Make command names plural.
5946 Update help strings.
5947
5948 2011-02-27 Michael Snyder <msnyder@vmware.com>
5949
5950 * darwin-nat-info.c: Fix comment typo.
5951 * dwarf2expr.h: Ditto.
5952 * fbsd-nat.c: Ditto.
5953 * fbsd-nat.h: Ditto.
5954 * frame-unwind.h: Ditto.
5955 * frame.h: Ditto.
5956 * hppa-hpux-tdep.c: Ditto.
5957 * i386-linux-nat.c: Ditto.
5958 * linux-nat.c: Ditto.
5959 * nbsd-nat.c: Ditto.
5960 * nbsd-nat.h: Ditto.
5961 * ppc-linux-tdep.c: Ditto.
5962 * serial.c: Ditto.
5963 * ui-file.h: Ditto.
5964 * tui/tui-winsource.c: Ditto.
5965
5966 2011-02-26 Michael Snyder <msnyder@vmware.com>
5967
5968 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5969
5970 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5971
5972 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5973 with a local variable of the same name.
5974
5975 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
5976 param with a local variable of the same name.
5977 (i387_supply_xsave): Ditto.
5978
5979 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5980 that it does not shadow a function parameter.
5981
5982 * i386-nat.c (i386_length_and_rw_bits): Document that case
5983 statement is meant to fall through.
5984
5985 * expprint.c (dump_subexp_body_standard): Document that case
5986 statement is meant to fall through.
5987
5988 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5989 dead if statement. Condition can't be false.
5990
5991 2011-02-25 Michael Snyder <msnyder@vmware.com>
5992
5993 * arm-tdep.c: Fix typos in comments.
5994 * bsd-uthread.c: Ditto.
5995 * completer.c: Ditto.
5996 * corelow.c: Ditto.
5997 * cp-namespace.c: Ditto.
5998 * cp-support.c: Ditto.
5999 * cris-tdep.c: Ditto.
6000 * dbxread.c: Ditto.
6001 * dwarf2read.c: Ditto.
6002 * frame.h: Ditto.
6003 * gdbtypes.h: Ditto.
6004 * inferior.h: Ditto.
6005 * mdebugread.c: Ditto.
6006 * mips-tdep.c: Ditto.
6007 * ppc-linux-nat.c: Ditto.
6008 * ppc-linux-tdep.c: Ditto.
6009 * printcmd.c: Ditto.
6010 * sol-thread.c: Ditto.
6011 * solib-frv.c: Ditto.
6012 * solist.h: Ditto.
6013 * sparc64-tdep.c: Ditto.
6014 * spu-tdep.c: Ditto.
6015 * stabsread.c: Ditto.
6016 * symfile.c: Ditto.
6017 * valops.c: Ditto.
6018 * varobj.c: Ditto.
6019 * vax-nat.c: Ditto.
6020 * python/py-block.c: Ditto.
6021 * python/py-symbol.c: Ditto.
6022 * python/py-symtab.c: Ditto.
6023 * python/py-value.c: Ditto.
6024 * tui/tui-win.c: Ditto.
6025
6026 2011-02-25 Michael Snyder <msnyder@vmware.com>
6027
6028 * inferior.c (print_inferior): Accept a string instead of an int
6029 for requested_inferiors, and use get_number_or_range to parse it.
6030 (info_inferiors_command): Pass args string to print_inferior.
6031 (initialize_inferiors): Change help string for info inferiors.
6032 * inferior.h (print_inferior): Export prototype change.
6033
6034 2011-02-25 Tom Tromey <tromey@redhat.com>
6035
6036 * common/ax.def (invalid2): Set to 0x31.
6037
6038 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6039
6040 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6041 L and plongest.
6042 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6043 use L and plongest.
6044 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6045
6046 2011-02-24 Michael Snyder <msnyder@vmware.com>
6047
6048 * Makefile.in (clean): Make clean should remove generated files
6049 observer.h and observer.inc.
6050
6051 2011-02-24 Joel Brobecker <brobecker@adacore.com>
6052
6053 Revert the following patch (not approved yet):
6054 2011-02-21 Hui Zhu <teawater@gmail.com>
6055 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6056 * ax-gdb.c (gen_printf_expr_callback): New function.
6057 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6058 * ax-general.c (ax_memcpy): New function.
6059 (ax_print): Handle "printf".
6060 (ax_reqs): Ditto.
6061 * ax.h (ax_memcpy): Forward declare.
6062 * common/ax.def (invalid2): Removed.
6063 (printf): New entry.
6064 * printcmd.c (printcmd.h): New include.
6065 (string_printf): New function.
6066 (ui_printf): Removed.
6067 (printf_command): Remove static. Call string_printf.
6068 (eval_command): Call string_printf.
6069 * printcmd.h: New file.
6070 * tracepoint.c (validate_actionline,
6071 encode_actions_1): handle printf_command.
6072
6073 2011-02-23 Tom Tromey <tromey@redhat.com>
6074
6075 * ax-general.c (ax_pick): Add missing newline.
6076
6077 2011-02-23 Michael Snyder <msnyder@vmware.com>
6078
6079 * breakpoint.c (breakpoint_1): Change first argument from an int
6080 to a char pointer, so that the function now accepts a list of
6081 breakpoints rather than just one. Use new function
6082 'number_is_in_list' to implement.
6083 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6084 (watchpoints_info): Ditto.
6085 (tracepoints_info): Ditto.
6086 (maintenance_info_breakpoints): Ditto.
6087 (_initialize_breakpoint): Update help strings to reflect the fact
6088 that these functions can now take more than one argument.
6089 * cli/cli-utils.c (number_is_in_list): New function.
6090 * cli/cli-utils.h (number_is_in_list): Export.
6091
6092 2011-02-23 Michael Snyder <msnyder@vmware.com>
6093
6094 * memattr.c (mem_enable_command): Use get_number_or_range.
6095 (mem_disable_command): Ditto.
6096 (mem_delete_command): Ditto.
6097 (_initialize_mem): Tweak usage message to reflect multiple
6098 arguments.
6099
6100 2011-02-22 Doug Evans <dje@google.com>
6101
6102 Add gdb.lookup_global_symbol python function.
6103 * NEWS: Add entry.
6104 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6105 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6106 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6107
6108 2011-02-22 Tom Tromey <tromey@redhat.com>
6109
6110 * language.c (language_class_name_from_physname): Rename
6111 'curr_language' argument to 'lang'; use in body.
6112
6113 2011-02-22 Michael Snyder <msnyder@vmware.com>
6114
6115 * cli/cli-utils.c (number_is_in_list): Check for zero return.
6116
6117 2011-02-22 Pedro Alves <pedro@codesourcery.com>
6118
6119 * frame-unwind.h: Fix comment to mention the this frame, not the
6120 next.
6121
6122 2011-02-22 Tom Tromey <tromey@redhat.com>
6123
6124 * symfile.c (auto_solib_limit): Remove.
6125 * symfile.h (auto_solib_limit): Remove.
6126
6127 2011-02-22 Joel Brobecker <brobecker@adacore.com>
6128
6129 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
6130
6131 2011-02-21 Michael Snyder <msnyder@vmware.com>
6132
6133 * gdbthread.h (print_thread_info): Change prototype.
6134 * thread.c (print_thread_info): Accept char* instead of int for
6135 requested_threads argument. Use new function number_is_in_list
6136 to determine which threads to list.
6137 (info_threads_command): Pass char* to print_thread_info.
6138 * cli/cli-utils.c (number_is_in_list): New function.
6139 * cli/cli-utils.h (number_is_in_list): Export.
6140 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6141 print_thread_info.
6142 (print_one_inferior): Ditto.
6143 (mi_cmd_list_thread_groups): Ditto.
6144
6145 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6146
6147 * common/Makefile.in (CFLAGS): New.
6148 (COMPILE): Add $(CFLAGS).
6149
6150 2011-02-21 Tom Tromey <tromey@redhat.com>
6151
6152 * breakpoint.c (catch_syscall_command_1): Fix typo.
6153
6154 2011-02-21 Tom Tromey <tromey@redhat.com>
6155
6156 * reverse.c: Include cli-utils.h.
6157 * printcmd.c: Include cli-utils.h.
6158 (string_printf): Use skip_spaces.
6159 * cli/cli-utils.h: New file.
6160 * cli/cli-utils.c: New file.
6161 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6162 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6163 * breakpoint.h (get_number, get_number_or_range): Move to
6164 cli-utils.h.
6165 * breakpoint.c: Include cli-utils.h.
6166 (get_number_trailer, get_number, get_number_or_range)
6167 (ep_skip_leading_whitespace): Move to cli-utils.c.
6168 (create_breakpoint_sal, find_condition_and_thread)
6169 (decode_static_tracepoint_spec, watch_command_1)
6170 (watch_maybe_just_location, ep_parse_optional_if_clause)
6171 (catch_fork_command_1, catch_exec_command_1)
6172 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6173 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6174 (SUBDIR_CLI_SRCS): Add cli-utils.c.
6175 (HFILES_NO_SRCDIR): Add cli-utils.h.
6176 (cli-utils.o): New target.
6177
6178 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6179
6180 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6181 before calling discard_all_inferiors.
6182
6183 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6184
6185 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6186 (struct builtin_opencl_type): Remove.
6187 (builtin_opencl_type): Change return type to "struct type **".
6188 (lookup_opencl_vector_type): Update caller.
6189 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6190 (build_opencl_types): Install plain array of "struct type *"
6191 instead of "struct builtin_opencl_type".
6192
6193 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6194 Ulrich Weigand <uweigand@de.ibm.com>
6195
6196 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6197 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6198 (struct arm_linux_hwbp_cap): New type.
6199 (arm_linux_get_hwbp_cap): New function.
6200 (arm_linux_get_hw_breakpoint_count): Likewise.
6201 (arm_linux_get_hw_watchpoint_count): Likewise.
6202 (arm_linux_can_use_hw_breakpoint): Likewise.
6203 (arm_hwbp_type): New type.
6204 (arm_hwbp_control_t): Likewise.
6205 (struct arm_linux_hw_breakpoint): Likewise.
6206 (struct arm_linux_thread_points): Likewise.
6207 (arm_threads): New global variable.
6208 (arm_linux_find_breakpoints_by_tid): New function.
6209 (arm_hwbp_control_initialize): Likewise.
6210 (arm_hwbp_control_is_enabled): Likewise.
6211 (arm_hwbp_control_disable): Likewise.
6212 (arm_linux_hw_breakpoint_initialize): Likewise.
6213 (arm_linux_get_hwbp_type): Likewise.
6214 (arm_linux_hw_watchpoint_initialize): Likewise.
6215 (arm_linux_hw_breakpoint_equal): Likewise.
6216 (arm_linux_insert_hw_breakpoint1): Likewise.
6217 (arm_linux_remove_hw_breakpoint1): Likewise.
6218 (arm_linux_insert_hw_breakpoint): Likewise.
6219 (arm_linux_remove_hw_breakpoint): Likewise.
6220 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6221 (arm_linux_insert_watchpoint): Likewise.
6222 (arm_linux_remove_watchpoint): Likewise.
6223 (arm_linux_stopped_data_address): Likewise.
6224 (arm_linux_stopped_by_watchpoint): Likewise.
6225 (arm_linux_watchpoint_addr_within_range): Likewise.
6226 (arm_linux_new_thread): Likewise.
6227 (arm_linux_thread_exit): Likewise.
6228 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6229 related target callbacks. Register arm_linux_new_thread and
6230 arm_linux_thread_exit.
6231 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6232 * arm-tdep.c (arm_pc_is_thumb): Make global.
6233 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6234
6235 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
6236
6237 * breakpoint.c (update_watchpoint): Do not attempt to recreate
6238 per-frame locations while within a function epilogue.
6239
6240 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6241
6242 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6243 to GNU coding standards.
6244
6245 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
6246
6247 Allow use of mingw native on Windows 95 OS.
6248 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6249 (ser_windows_close): Only call CancelIo if function exists.
6250 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6251 to check for existence of CancelIo function in kernel32 DLL.
6252
6253 2011-02-21 Hui Zhu <teawater@gmail.com>
6254
6255 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6256 * ax-gdb.c (gen_printf_expr_callback): New function.
6257 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6258 * ax-general.c (ax_memcpy): New function.
6259 (ax_print): Handle "printf".
6260 (ax_reqs): Ditto.
6261 * ax.h (ax_memcpy): Forward declare.
6262 * common/ax.def (invalid2): Removed.
6263 (printf): New entry.
6264 * printcmd.c (printcmd.h): New include.
6265 (string_printf): New function.
6266 (ui_printf): Removed.
6267 (printf_command): Remove static. Call string_printf.
6268 (eval_command): Call string_printf.
6269 * printcmd.h: New file.
6270 * tracepoint.c (validate_actionline,
6271 encode_actions_1): handle printf_command.
6272
6273 2011-02-19 Michael Snyder <msnyder@vmware.com>
6274
6275 * reverse.c (delete_one_bookmark): Argument is now bookmark
6276 id rather than pointer to bookmark struct.
6277 (delete_bookmark_command): Use get_number_or_range.
6278 (goto_bookmark_command): Parse with get_number instead of strtoul.
6279 (bookmark_1): New function. Print info for one bookmark.
6280 (bookmarks_info): Use get_number_or_range and bookmark_1.
6281
6282 2011-02-18 Michael Snyder <msnyder@vmware.com>
6283
6284 * thread.c (info_threads_command): Re-implement using
6285 get_number_or_range.
6286 (thread_apply_command): Ditto.
6287
6288 2011-02-18 Tom Tromey <tromey@redhat.com>
6289
6290 * common/ax.def: New file.
6291 * ax.h (enum agent_op): Use ax.def.
6292 * ax-general.c (aop_map): Use ax.def.
6293
6294 2011-02-18 Tom Tromey <tromey@redhat.com>
6295
6296 * ax-general.c (aop_map): Add pick and rot.
6297 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6298 <DW_OP_rot>: Implement.
6299 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6300 (ax_pick): Declare.
6301 * ax-general.c (ax_pick): New function.
6302
6303 2011-02-18 Tom Tromey <tromey@redhat.com>
6304
6305 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6306
6307 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6308 Tom Tromey <tromey@redhat.com>
6309
6310 * cp-support.c (make_symbol_overload_list_namespace): Do not call
6311 make_symbol_overload_list_block with NULL BLOCK.
6312 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6313
6314 2011-02-18 Pedro Alves <pedro@codesourcery.com>
6315
6316 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6317 * breakpoint.h (get_number_or_range): Declare.
6318 * printcmd.c (ALL_DISPLAYS): Declare.
6319 (delete_display): Reimplement taking a display pointer.
6320 (undisplay_command): Accept a range of displays to delete, using
6321 get_number_or_range.
6322
6323 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
6324
6325 * c-valprint.c (c_val_print): Add embedded_offset to address
6326 for arrays of unspecified length.
6327 * p-valprint.c (pascal_val_print): Likewise.
6328
6329 2011-02-18 Yao Qi <yao@codesourcery.com>
6330
6331 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6332 (arm_process_displaced_insn): .. here. Remove parameter INSN.
6333 (thumb_process_displaced_insn): New.
6334 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6335 call to arm_process_displaced_insn.
6336 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6337
6338 2011-02-17 Tom Tromey <tromey@redhat.com>
6339
6340 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6341 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6342 compile_dwarf_to_ax. No longer static. Call
6343 dwarf2_compile_cfa_to_ax.
6344 (locexpr_tracepoint_var_ref): Update.
6345 (loclist_tracepoint_var_ref): Update.
6346 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6347 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6348 argument; add 'gdbarch' and 'pc'.
6349 (dwarf2_compile_cfa_to_ax): New function.
6350 (dwarf2_frame_cache): Update.
6351
6352 2011-02-17 Joel Brobecker <brobecker@adacore.com>
6353
6354 * ada-lang.c (ada_type_of_array): Fix the size of the array
6355 in the case of an unconstrained packed array.
6356
6357 2011-02-17 Yao Qi <yao@codesourcery.com>
6358
6359 * common/Makefile.in: Add more targets for make.
6360
6361 2011-02-16 Tom Tromey <tromey@redhat.com>
6362
6363 * dwarf2loc.c (unimplemented): Fix typo.
6364
6365 2011-02-16 Tom Tromey <tromey@redhat.com>
6366
6367 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6368 (compile_dwarf_to_ax) <default>: Use unimplemented.
6369 <DW_OP_deref>: Update.
6370 (disassemble_dwarf_expression): Update.
6371 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6372 (decode_locdesc): Update.
6373 * dwarf2expr.h (dwarf_stack_op_name): Update.
6374
6375 2011-02-16 Tom Tromey <tromey@redhat.com>
6376
6377 * ax.h (struct aop_map) <name>: Now const.
6378
6379 2011-02-16 Tom Tromey <tromey@redhat.com>
6380
6381 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6382 than axs_rvalue.
6383
6384 2011-02-16 Yao Qi <yao@codesourcery.com>
6385
6386 * infrun.c (get_displaced_step_closure_by_addr): New.
6387 * inferior.h: Declare it.
6388 * arm-tdep.c: (arm_pc_is_thumb): Call
6389 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
6390 returns non-NULL.
6391
6392 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6393 Jan Kratochvil <jan.kratochvil@redhat.com>
6394
6395 gdb/
6396 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6397
6398 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6399 Jan Kratochvil <jan.kratochvil@redhat.com>
6400
6401 * value.c (value_contents_copy_raw): Extend describing comment.
6402 Assert that the destination contents we're overwriting are wholly
6403 available.
6404 (value_contents_copy): Extend describing comment.
6405
6406 2011-02-16 Pedro Alves <pedro@codesourcery.com>
6407 Jan Kratochvil <jan.kratochvil@redhat.com>
6408
6409 * value.c (value_available_contents_eq): Remove redundant local
6410 variables. Fix available contents comparision.
6411 * value.h (value_available_contents_eq): Extend describing
6412 comment.
6413
6414 2011-02-16 Yao Qi <yao@codesourcery.com>
6415
6416 * thread.c (info_threads_command): Add missing i18n markup and remove
6417 trailing newline.
6418
6419 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6420
6421 * breakpoint.c (longjmp_names): New variable.
6422 (struct breakpoint_objfile_data): New type.
6423 (breakpoint_objfile_key): New variable.
6424 (msym_not_found): New variable.
6425 (msym_not_found_p): New predicate.
6426 (get_breakpoint_objfile_data): New function.
6427 (create_overlay_event_breakpoint): Check per-objfile cache for
6428 symbols first.
6429 (create_longjmp_master_breakpoint): Likewise.
6430 (create_std_terminate_master_breakpoint): Likewise.
6431 (create_exception_master_breakpoint): Likewise.
6432 (_initialize_breakpoint): Register per-objfile data key.
6433
6434 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
6435
6436 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6437 parameter value.
6438 (create_longjmp_master_breakpoint): Loop over longjmp names.
6439 (create_std_terminate_master_breakpoint): Const-propagate parameter
6440 value.
6441 (update_breakpoints_after_exec): Adjust.
6442 (breakpoint_re_set): Adjust.
6443
6444 2011-02-15 Michael Snyder <msnyder@vmware.com>
6445
6446 * thread.c (info_threads_command): Process arg as thread id,
6447 or list of thread ids.
6448 (thread_find_command): New command.
6449 (_initialize_thread): Document argument for info threads.
6450 Document 'thread find' command.
6451 * NEWS: Document new command "thread find".
6452
6453 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6454
6455 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6456 * aclocal.m4: Regenerated with aclocal-1.11.1.
6457 * common/configure: Regenerate with autoconf-2.64.
6458
6459 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
6460
6461 * opencl-lang.c (build_opencl_types): Set the size of the built-in
6462 bool data type to a size of one byte.
6463
6464 2011-02-15 Pedro Alves <pedro@codesourcery.com>
6465 Jan Kratochvil <jan.kratochvil@redhat.com>
6466
6467 * target.c (memory_xfer_live_readonly_partial): Document where to
6468 look for interface description.
6469
6470 2011-02-15 Yao Qi <yao@codesourcery.com>
6471
6472 PR tdep/12352
6473 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6474 order to store PC value on stack instead of text section.
6475
6476 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
6477
6478 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6479 the EFP register set size.
6480 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6481 data from the VMX register.
6482 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6483 and write data from/to the VMX register.
6484
6485 2011-02-14 Michael Snyder <msnyder@vmware.com>
6486
6487 * command.h (enum command_class): New class 'no_set_class', for
6488 "show" commands without a corresponding "set" command.
6489 * value.c (_initialize_values): Use 'no_set_class' for "show values".
6490 * copying.c (_initialize_copying): Ditto for "show copying" and
6491 "show warranty".
6492 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6493 "show version".
6494 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6495 which there is no corresponding "set" command (eg. "show copying").
6496
6497 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6498 Jan Kratochvil <jan.kratochvil@redhat.com>
6499
6500 * exec.c (section_table_available_memory): Change `len' parameter
6501 type to ULONGEST.
6502 * exec.h (section_table_available_memory): Ditto.
6503 * value.h (read_value_memory): Rename the `offset' parameter to
6504 `embedded_offset'.
6505
6506 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6507 Jan Kratochvil <jan.kratochvil@redhat.com>
6508
6509 * memrange.c (compare_mem_ranges): Mention sort order in
6510 describing comment.
6511 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
6512 * tracepoint.c (traceframe_available_memory): Extend comment to
6513 mention what happens to RESULT when the target does not support
6514 the query.
6515
6516 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6517 Jan Kratochvil <jan.kratochvil@redhat.com>
6518
6519 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6520 range.
6521
6522 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6523
6524 * value.c (value_bits_valid, value_bits_synthetic_pointer):
6525 No longer handle NULL values.
6526
6527 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6528
6529 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
6530 * value.c: Include "exceptions.h".
6531 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
6532 generic error.
6533 * cp-abi.c: Include gdb_assert.h.
6534 (baseclass_offset): Add `embedded_offset' and `val' parameters.
6535 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
6536 errors.
6537 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
6538 parameters. No longer returns -1 on error.
6539 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
6540 `val' parameters.
6541 * cp-valprint.c: Include exceptions.h.
6542 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
6543 the baseclass_offset. Handle unavailable base classes. Use
6544 val_print_invalid_address.
6545 * p-valprint.c: Include exceptions.h.
6546 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
6547 when fetching the baseclass_offset. No longer expect
6548 baseclass_offset returning -1. Handle unavailable base classes.
6549 Use val_print_invalid_address.
6550 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
6551 `valaddr' parameter, and change its type to gdb_byte pointer. Add
6552 `embedded_offset' and `val' parameters. Adjust.
6553 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
6554 parameter, and change its type to gdb_byte pointer. Add
6555 `embedded_offset' and `val' parameters. Adjust. No longer expect
6556 baseclass_offset returning -1.
6557 (value_dynamic_cast): Use value_contents_for_printing rather than
6558 value_contents. Adjust.
6559 (search_struct_field): No longer expect baseclass_offset returning
6560 -1.
6561 (search_struct_method): If reading memory from the target is
6562 necessary, wrap it in a new value to pass to baseclass_offset. No
6563 longer expect baseclass_offset returning -1.
6564 (find_method_list): No longer expect baseclass_offset returning
6565 -1. Use value_contents_for_printing rather than value_contents.
6566 * valprint.c (val_print_invalid_address): New function.
6567 * valprint.h (val_print_invalid_address): Declare.
6568 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
6569 and `val' parameters. No longer expect baseclass_offset returning
6570 -1. Adjust.
6571 * gnu-v2-abi.c: Include "exceptions.h".
6572 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
6573 parameters. Handle unavailable memory. Recurse through
6574 gnuv2_baseclass_offset directly, rather than through
6575 baseclass_offset. No longer returns -1 on not found, instead
6576 throw an error.
6577 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
6578 `val' parameters. Adjust.
6579
6580 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6581
6582 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
6583 almost but not quite adjacent.
6584
6585 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6586
6587 * value.h (value_entirely_available): Declare.
6588 * value.c (value_entirely_available): New function.
6589 * c-valprint.c (c_value_print): Don't try fetching the pointer's
6590 real type if the pointer is unavailable.
6591
6592 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6593
6594 * valops.c (value_repeat): Use read_value_memory instead of
6595 read_memory.
6596
6597 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6598
6599 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
6600 * value.c (value_contents_copy_raw, value_contents_copy): New
6601 functions.
6602 (value_primitive_field): Use value_contents_copy_raw instead of
6603 memcpy.
6604 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
6605 memcpy.
6606 (value_array, value_slice): Ditto.
6607 * valarith.c (value_subscripted_rvalue): Use
6608 value_contents_copy_raw instead of memcpy.
6609
6610 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6611
6612 <unavailable> references.
6613
6614 * valops.c (get_value_at): Use value_from_contents_and_address,
6615 avoiding read_memory.
6616
6617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6618
6619 * c-valprint.c (c_val_print): Print a string with unavailable
6620 contents as an array.
6621
6622 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6623
6624 * value.h (unpack_bits_as_long): Delete declaration.
6625 (unpack_value_bits_as_long): Declare.
6626 (unpack_value_field_as_long): Declare.
6627 (value_field_bitfield): Declare.
6628 * value.c (unpack_bits_as_long): Rename to...
6629 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
6630 value parameters. Return the extracted result in a new output
6631 parameter. If the value contents are unavailable, return false,
6632 otherwise return true.
6633 (unpack_value_bits_as_long): New.
6634 (unpack_field_as_long): Rename to...
6635 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
6636 Add embedded_offset and value parameters. Return the extracted
6637 result in a new output parameter. If the value contents are
6638 unavailable, return false, otherwise return true.
6639 (unpack_value_field_as_long): New.
6640 (unpack_field_as_long_1): New.
6641 (unpack_field_as_long): Reimplement as wrapper around
6642 unpack_value_field_as_long_1.
6643 (value_field_bitfield): New function.
6644 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6645 unpack_value_bits_as_long. Mark the value as unavailable, if it
6646 is unavailable.
6647 * jv-valprint.c (java_print_value_fields): Use
6648 value_field_bitfield.
6649 * p-valprint.c (pascal_object_print_value_fields): Use
6650 value_field_bitfield.
6651 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6652
6653 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6654
6655 * value.c (get_internalvar_integer): Also return the int value of
6656 TYPE_CODE_INT INTERNALVAR_VALUE values.
6657 (set_internalvar): Don't special case TYPE_CODE_INT.
6658
6659 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6660
6661 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6662 INTERNALVAR_POINTER.
6663 <pointer>: Delete.
6664 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6665 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6666 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6667
6668 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6669
6670 * value.h (value_available_contents_eq): Declare.
6671 * value.c (find_first_range_overlap): New function.
6672 (value_available_contents_eq): New function.
6673 * valprint.c (val_print_array_elements): Use
6674 value_available_contents_eq.
6675 * ada-valprint.c (val_print_packed_array_elements): Use
6676 value_available_contents_eq.
6677 * jv-valprint.c (java_value_print): Use
6678 value_available_contents_eq.
6679
6680 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6681
6682 * target.c (target_read_live_memory): New function.
6683 (memory_xfer_live_readonly_partial): New.
6684 (memory_xfer_partial): If reading from a traceframe, fallback to
6685 reading unavailable read-only memory from read-only regions of
6686 live target memory.
6687 * tracepoint.c (disconnect_tracing): Adjust.
6688 (set_current_traceframe): New, factored out from
6689 set_traceframe_number.
6690 (set_traceframe_number): Reimplement to only change the traceframe
6691 number on the GDB side.
6692 (do_restore_current_traceframe_cleanup): Adjust.
6693 (make_cleanup_restore_traceframe_number): New.
6694 (cur_traceframe_number): New global.
6695 (tfile_open): Set cur_traceframe_number to no traceframe.
6696 (set_tfile_traceframe): New function.
6697 (tfile_trace_find): If looking up a traceframe using any method
6698 other than by number, make sure the current tfile traceframe
6699 matches gdb's current traceframe. Update the current tfile
6700 traceframe if the lookup succeeded.
6701 (tfile_fetch_registers, tfile_xfer_partial)
6702 (tfile_get_trace_state_variable_value): Make sure the remote
6703 traceframe matches gdb's current traceframe.
6704 * remote.c (remote_traceframe_number): New global.
6705 (remote_open_1): Set it to -1.
6706 (set_remote_traceframe): New function.
6707 (remote_fetch_registers, remote_store_registers)
6708 (remote_xfer_memory, remote_xfer_partial)
6709 (remote_get_trace_state_variable_value): Make sure the remote
6710 traceframe matches gdb's current traceframe.
6711 (remote_trace_find): If looking up a traceframe using any method
6712 other than by number, make sure the current remote traceframe
6713 matches gdb's current traceframe. Update the current remote
6714 traceframe if the lookup succeeded.
6715 * infrun.c (fetch_inferior_event): Adjust.
6716 * tracepoint.h (set_current_traceframe): Declare.
6717 (get_traceframe_number, set_traceframe_number): Add describing
6718 comments.
6719
6720 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6721
6722 Mark pieces of values as unavailable if the corresponding memory
6723 is unavailable.
6724
6725 * valops.c: Include tracepoint.h.
6726 (value_fetch_lazy): Use read_value_memory.
6727 (read_value_memory): New.
6728 * value.h (read_value_memory): Declare.
6729 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6730 * exec.c (section_table_available_memory): New function.
6731 * exec.h (section_table_available_memory): Declare.
6732
6733 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6734
6735 * Makefile.in (SFILES): Add memrange.c.
6736 (HFILES_NO_SRCDIR): Add memrange.h.
6737 (COMMON_OBS): Add memrange.o.
6738 * memrange.c: New file.
6739 * memrange.h: New file.
6740 * tracepoint.c: Include memrange.h.
6741 (struct mem_range): Delete.
6742 (mem_range_s): Delete.
6743 (traceframe_available_memory): New function.
6744 * tracepoint.h (traceframe_available_memory): Declare.
6745
6746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6747
6748 * target.h (struct traceframe_info): Forward declare.
6749 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6750 (struct target_ops) <to_traceframe_info>: New field.
6751 (target_traceframe_info): New.
6752 * target.c (update_current_target): Inherit and default
6753 to_traceframe_info.
6754 * remote.c (PACKET_qXfer_traceframe_info): New.
6755 (remote_protocol_features): Register qXfer:traceframe-info:read.
6756 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6757 (remote_traceframe_info): New.
6758 (init_remote_ops): Install it.
6759 (_initialize_remote): Install "set/show remote traceframe-info"
6760 commands.
6761 * tracepoint.h (parse_traceframe_info): Declare.
6762 * tracepoint.c (struct mem_range): New.
6763 (mem_range_s): New typedef.
6764 (struct traceframe_info): New.
6765 (traceframe_info): New global.
6766 (free_traceframe_info): New function.
6767 (clear_traceframe_info): New function.
6768 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6769 info.
6770 (build_traceframe_info): New function.
6771 (tfile_traceframe_info): New function.
6772 (init_tfile_ops): Install tfile_traceframe_info.
6773 (traceframe_info_start_memory, free_result): New functions.
6774 (memory_attributes, traceframe_info_elements): New globals.
6775 (parse_traceframe_info, get_traceframe_info): New functions.
6776 * features/traceframe-info.dtd: New file.
6777 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6778
6779 2011-02-14 Pedro Alves <pedro@codesourcery.com>
6780
6781 Base support for <unavailable> value contents.
6782
6783 * value.h (value_bytes_available): Declare.
6784 (mark_value_bytes_unavailable): Declare.
6785 * value.c (struct range): New struct.
6786 (range_s): New typedef.
6787 (ranges_overlap): New function.
6788 (range_lessthan): New function.
6789 (ranges_contain_p): New function.
6790 (struct value) <unavailable>: New field.
6791 (value_bytes_available): New function.
6792 (mark_value_bytes_unavailable): New function.
6793 (require_not_optimized_out): Constify parameter.
6794 (require_available): New function.
6795 (value_contents_all, value_contents): Require all bytes be
6796 available.
6797 (value_free): Free `unavailable'.
6798 (value_copy): Copy `unavailable'.
6799 * valprint.h (val_print_unavailable): Declare.
6800 * valprint.c (valprint_check_validity): Rename `offset' parameter
6801 to `embedded_offset'. If printing a scalar, check whether the
6802 value chunk is available.
6803 (val_print_unavailable): New.
6804 (val_print_scalar_formatted): Check whether the value is
6805 available.
6806 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6807 pretty-printing unavailable values.
6808
6809 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6810
6811 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6812 * c-typeprint.c (c_type_print_args): Update the function comment. New
6813 variable param_type, initialize it. Remove const/volatile qualifiers
6814 for language_cplus and !show_artificial. Use param_type.
6815
6816 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6817
6818 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6819 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6820 * symtab.h (struct symtab) <next>: Comment extension.
6821
6822 2011-02-12 Yao Qi <yao@codesourcery.com>
6823
6824 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6825
6826 2011-02-11 Yao Qi <yao@codesourcery.com>
6827
6828 * common/Makefile.in: Add copyright header.
6829
6830 2011-02-11 Pedro Alves <pedro@codesourcery.com>
6831
6832 * infrun.c (proceed): Move switching out and in of tfind mode from
6833 here ...
6834 (fetch_inferior_event): ... to here.
6835
6836 2011-02-11 Yao Qi <yao@codesourcery.com>
6837
6838 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6839 libcommon.a.
6840 * configure.ac: Add common to sub dir.
6841 * configure: Regenerate.
6842
6843 2011-02-11 Yao Qi <yao@codesourcery.com>
6844
6845 Build libcommon.a.
6846
6847 * common/Makefile.in: New.
6848 * common/configure.ac: New.
6849 * common/aclocal.m4: New.
6850 * common/configure: Generate.
6851
6852 2011-02-10 Pedro Alves <pedro@codesourcery.com>
6853
6854 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6855 side of the parenthesis.
6856
6857 Merge from GCC:
6858 2010-07-13 Jakub Jelinek <jakub@redhat.com>
6859 * vec.h (VEC_block_remove): Fix comment.
6860
6861 2011-02-08 Michael Snyder <msnyder@vmware.com>
6862
6863 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6864
6865 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6868 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6869 psubd and paddd.
6870
6871 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6872
6873 PR 12361.
6874 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6875 phsubsw.
6876 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6877 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6878
6879 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6880
6881 * dwarf2read.c (read_subroutine_type): Set special calling
6882 convention flag for functions compiled by IBM XL C for OpenCL.
6883 * ppc-sysv-tdep.c: Include "dwarf2.h"
6884 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6885 calling convention.
6886 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6887 IBM OpenCL vector types calling convention.
6888 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6889 (ppc_sysv_abi_broken_return_value): Likewise.
6890 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6891 types calling convention.
6892 (ppc64_sysv_abi_return_value): Likewise.
6893 * spu-tdep.c: Include "dwarf2.h"
6894 (spu_return_value): Implement IBM OpenCL vector types calling
6895 convention.
6896
6897 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
6898
6899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6900 correct ABI for AltiVec vector arguments.
6901
6902 2011-02-07 Pedro Alves <pedro@codesourcery.com>
6903
6904 * valprint.c (val_print): Extend comment.
6905 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6906 interface explanation to val_print.
6907 (ada_val_print_array): Adjust comment to current interface.
6908 (print_field_values): Adjust comment to current interface.
6909 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6910 explanation to val_print.
6911 * f-valprint.c (f_val_print): Ditto.
6912 * jv-valprint.c (java_val_print): Ditto.
6913 * m2-valprint.c (m2_val_print): Ditto.
6914 * p-valprint.c (pascal_val_print): Ditto.
6915
6916 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6917
6918 * breakpoint.c (parse_breakpoint_sals): Fix description.
6919
6920 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
6921 Oguz Kayral <oguzkayral@gmail.com>
6922
6923 * python/py-inferior.c (python_on_normal_stop): New function.
6924 (python_on_resume): New function.
6925 (python_inferior_exit): New function.
6926 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6927 inferior_exit observers.
6928 * python/py-evtregistry.c: New file.
6929 * python/py-threadevent.c : New file.
6930 * python/py-event.c: New file.
6931 * python/py-evts.c: New file.
6932 * python/py-continueevent.c: New file.
6933 * python/py-bpevent.c: New file.
6934 * python/py-signalevent.c: New file.
6935 * python/py-exetiedevent.c: New file.
6936 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6937 Move struct breakpoint_object from here...
6938 * python/python-internal.h: ... to here.
6939 * python/py-event.h: New file.
6940 * python/py-events.h: New file.
6941 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6942 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6943 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6944 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6945 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6946 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6947 Add build rules for all the above.
6948
6949 2011-02-04 Tom Tromey <tromey@redhat.com>
6950
6951 * dwarf2read.c (dwarf2_section_empty_p): New function.
6952 (dwarf2_read_section): Use dwarf2_section_empty_p.
6953 (dwarf2_section_size): New function.
6954 (dwarf2_get_section_info): Unconditionally read section.
6955 (dwarf2_read_index): Use dwarf2_section_empty_p.
6956 (partial_read_comp_unit_head): Use dwarf2_section_size.
6957 (dwarf2_symbol_mark_computed): Likewise.
6958
6959 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6960
6961 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6962
6963 2011-02-04 David Daney <ddaney@caviumnetworks.com>
6964
6965 * mips-linux-tdep.c: Include xml-syscall.h.
6966 (mips_linux_get_syscall_number): New function.
6967 (mips_linux_init_abi): Add calls to
6968 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6969 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6970 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6971 * syscalls/mips-n32-linux.xml: New file.
6972 * syscalls/mips-n64-linux.xml: New file.
6973 * syscalls/mips-o32-linux.xml: New file.
6974
6975 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6976
6977 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6978 Complain about inverted range entries.
6979 (dwarf2_record_block_ranges): Likewise.
6980
6981 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6982
6983 Fix some typos.
6984 * breakpoint.c (update_watchpoint): Fix name of the
6985 update_global_location_list function.
6986 (print_one_breakpoint): Fix typo.
6987 (_initialize_breakpoint): Remove extra space in hbreak help
6988 string.
6989 * breakpoint.h (struct bp_location) <length>: Fix field
6990 description.
6991
6992 2011-02-04 Pedro Alves <pedro@codesourcery.com>
6993
6994 * regcache.c (registers_changed_ptid): Don't explictly always
6995 clear `current_regcache'. Only clear current_thread_ptid and
6996 current_thread_arch when PTID matches. Only reinit the frame
6997 cache if PTID matches the current inferior_ptid. Move alloca(0)
6998 call to ...
6999 (registers_changed): ... here.
7000
7001 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7002
7003 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7004 starts with __stack_chk_guard as stack guard symbol.
7005
7006 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
7007
7008 * disasm.c (compare_lines): Handle the end of sequence markers
7009 within the line table to better support disassembling over
7010 compilation unit boundaries.
7011
7012 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7013
7014 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7015 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7016 implementation even if no symbols are available.
7017 (thumb_analyze_prologue): Update call to skip_prologue_function.
7018 (arm_analyze_prologue): Likewise.
7019
7020 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7021
7022 * arm-tdep.c: Include "observer.h".
7023 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7024 (arm_exidx_data_key): New static variable.
7025 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7026 (struct arm_exidx_data): Likewise.
7027 (arm_exidx_data_free): New function.
7028 (arm_compare_exidx_entries): Likewise.
7029 (arm_obj_section_from_vma): Likewise.
7030 (arm_exidx_new_objfile): Likewise.
7031 (arm_find_exidx_entry): Likewise.
7032 (arm_exidx_fill_cache): Likewise.
7033 (arm_exidx_unwind_sniffer): Likewise.
7034 (arm_exidx_unwind): New global variable.
7035 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7036 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7037 observer. Register arm_exidx_data_key as objfile data.
7038
7039 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7040
7041 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7042 due to accessing uninitialized variable. Fix indentation.
7043
7044 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7045
7046 * c-valprint.c (c_value_print): When doing virtual base pointer
7047 adjustment, create a new value with adjusted contents rather than
7048 changing the contents of the value being printed (and getting it
7049 wrong).
7050
7051 2011-02-02 Pedro Alves <pedro@codesourcery.com>
7052
7053 * xml-support.c (xml_find_attribute): New.
7054 (xinclude_start_include): Use it.
7055 * xml-support.h (xml_find_attribute): Declare.
7056 * memory-map.c (memory_map_start_memory)
7057 (memory_map_start_property): Use xml_find_attribute.
7058 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7059 xml_find_attribute.
7060 * remote.c (start_thread): Use xml_find_attribute.
7061 * solib-target.c (library_list_start_segment)
7062 (library_list_start_section, library_list_start_library)
7063 (library_list_start_list): Use xml_find_attribute.
7064 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7065 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7066 (tdesc_start_field): Use xml_find_attribute.
7067
7068 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7069
7070 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7071 (BUILD_OCL_VTYPES): Update.
7072
7073 2011-02-02 Joel Brobecker <brobecker@adacore.com>
7074
7075 * configure.ac: Work around non-GNU sed limitation when computing
7076 python version number.
7077 * configure: Regenerate.
7078
7079 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7080
7081 Fix debug printing of TYPE_INSTANCE.
7082 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7083 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7084
7085 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7086
7087 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7088 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7089 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7090 * ada-operator.inc: Rename the file to ...
7091 * ada-operator.def: ... here, wrap all the entries by macro OP.
7092 * expprint.c (op_name_standard): Remove all the entries. Include
7093 "std-operator.def" instead.
7094 * expression.h (enum exp_opcode): Include "std-operator.def" and
7095 "ada-operator.def". Move all the entries ...
7096 * std-operator.def: ... here, wrap all the entries by macro OP.
7097
7098 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7099
7100 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7101 * breakpoint.c (remove_jit_event_breakpoints): New function.
7102 * jit.c (jit_descriptor_addr): Delete.
7103 (registering_code): Delete.
7104 (clear_int): Delete.
7105 (jit_inferior_data): New variable.
7106 (struct jit_inferior_data): New type.
7107 (get_jit_inferior_data): New function.
7108 (jit_inferior_data_cleanup): New function.
7109 (jit_read_descriptor): Adjust.
7110 (jit_register_code): Adjust.
7111 (jit_breakpoint_re_set_internal): New function; move code here ...
7112 (jit_inferior_init): ... from here.
7113 (jit_breakpoint_re_set): Adjust.
7114 (jit_reset_inferior_data_and_breakpoints): New function.
7115 (jit_inferior_created_observer): Adjust.
7116 (jit_inferior_exit_hook): Adjust.
7117 (jit_executable_changed_observer): New function.
7118 (jit_event_handler): Adjust.
7119 (_initialize_jit): Adjust.
7120
7121 2011-01-31 Michael Snyder <msnyder@vmware.com>
7122
7123 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7124 line.
7125
7126 2011-01-31 Tom Tromey <tromey@redhat.com>
7127
7128 PR python/12216:
7129 * python/python.c (execute_gdb_command): Call
7130 prevent_dont_repeat.
7131 * top.c (suppress_dont_repeat): New global.
7132 (dont_repeat): Use it.
7133 (prevent_dont_repeat): New function.
7134 * command.h (prevent_dont_repeat): Declare.
7135
7136 2011-01-31 Tom Tromey <tromey@redhat.com>
7137
7138 * infcmd.c (finish_backward): Use breakpoint_set_silent.
7139 * python/py-breakpoint.c (bppy_set_silent): Use
7140 breakpoint_set_silent.
7141 (bppy_set_thread): Use breakpoint_set_thread.
7142 (bppy_set_task): Use breakpoint_set_task.
7143 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7144 (breakpoint_set_task): Declare.
7145 (make_breakpoint_silent): Remove.
7146 * breakpoint.c (breakpoint_set_silent): New function.
7147 (breakpoint_set_thread): Likewise.
7148 (breakpoint_set_task): Likewise.
7149 (make_breakpoint_silent): Remove.
7150
7151 2011-01-31 Tom Tromey <tromey@redhat.com>
7152
7153 * breakpoint.h (user_breakpoint_p): Declare.
7154 * breakpoint.c (user_breakpoint_p): New function.
7155 (breakpoint_1): Use it.
7156 (save_breakpoints): Likewise.
7157
7158 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7159
7160 * configure.ac: Add handling of Python distribution on Windows.
7161 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7162 sysconfig variables are not defined, then do not use them.
7163 On Windows, if LIBPL is not defined, then use prefix + '/libs'
7164 instead. On Windows, return all paths using forward-slashes
7165 rather than backslashes.
7166
7167 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7168
7169 * configure.ac: Remove fallback behavior for building
7170 against Python. Remove tweaking of Python include path.
7171 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7172 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
7173 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7174 Always restore CPPFLAGS and LIBS after linking test.
7175 * configure: Regenerated.
7176 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7177 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7178 * python/python-internal.h: Adjust includes of Python .h files.
7179
7180 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7181
7182 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7183 in error message.
7184
7185 2011-01-31 Joel Brobecker <brobecker@adacore.com>
7186
7187 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7188 value test.
7189
7190 2011-01-31 Yao Qi <yao@codesourcery.com>
7191
7192 * arm-linux-nat.c: Update calls to regcache_register_status
7193 instead of regcache_valid_p.
7194 * aix-thread.c: Likewise.
7195 * i386gnu-nat.c: Likewise.
7196
7197 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7198
7199 Fix crash.
7200 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7201 touching TYPE_FIELD_ARTIFICIAL.
7202
7203 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
7204
7205 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7206 Committers.
7207
7208 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7209
7210 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7211 selected, don't try iterating over the traceframe's blocks.
7212 (tfile_has_stack): If there's no traceframe selected, then there's
7213 no stack.
7214 (tfile_has_registers): If there's no traceframe selected, then
7215 there's no registers.
7216
7217 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7218
7219 * target.c (memory_xfer_partial): No need to restore shadows if we
7220 haven't read anything.
7221
7222 2011-01-28 Pedro Alves <pedro@codesourcery.com>
7223
7224 * mips-tdep.c (mips_print_register): Use get_frame_register_value
7225 and val_print_scalar_formatted.
7226
7227 2011-01-27 Pedro Alves <pedro@codesourcery.com>
7228
7229 * tracepoint.c (tfile_read): New.
7230 (tfile_open): Use it.
7231 (tfile_get_traceframe_address): Use it.
7232 (tfile_trace_find): Use it.
7233 (walk_blocks_callback_func): New typedef.
7234 (match_blocktype): New function.
7235 (traceframe_walk_blocks): New function.
7236 (traceframe_find_block_type): New function.
7237 (tfile_fetch_registers, tfile_xfer_partial)
7238 (tfile_get_trace_state_variable_value): Use
7239 traceframe_find_block_type and tfile_read.
7240
7241 2011-01-26 Kevin Buettner <kevinb@redhat.com>
7242
7243 * remote-mips.c: Add internationalization mark ups. Remove
7244 trailing \n from already marked up strings.
7245
7246 2011-01-26 Tom Tromey <tromey@redhat.com>
7247
7248 * python/py-prettyprint.c (print_string_repr): Clear
7249 'addressprint' option when calling val_print_string.
7250 (print_children): Handle Val_pretty_default. Clear 'addressprint'
7251 option when calling val_print_string.
7252
7253 2011-01-26 Tom Tromey <tromey@redhat.com>
7254
7255 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7256 GDB_PY_LL_ARG.
7257 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7258 macros.
7259 (gdb_py_longest, gdb_py_ulongest): New typedefs.
7260 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7261 (gdb_py_long_as_ulongest): New defines.
7262 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7263 (gdb_py_int_as_long): Declare.
7264 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7265 GDB_PY_LL_ARG, gdb_py_object_from_longest.
7266 (valpy_long): Add comment.
7267 * python/py-utils.c (get_addr_from_python): Use
7268 gdb_py_long_as_ulongest. Handle overflow properly.
7269 (gdb_py_object_from_longest): New function.
7270 (gdb_py_object_from_ulongest): Likewise.
7271 (gdb_py_int_as_long): Likewise.
7272 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7273 * python/py-symtab.c (salpy_get_pc): Use
7274 gdb_py_long_from_ulongest.
7275 (salpy_get_line): Use PyInt_FromLong.
7276 * python/py-param.c (set_parameter_value): Use
7277 gdb_py_int_as_long.
7278 * python/py-lazy-string.c (stpy_get_address): Use
7279 gdb_py_long_from_ulongest.
7280 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7281 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7282 * python/py-breakpoint.c (bppy_set_thread): Use
7283 gdb_py_int_as_long.
7284 (bppy_set_task): Likewise.
7285 (bppy_set_ignore_count): Likewise.
7286 (bppy_set_hit_count): Likewise.
7287 * python/py-block.c (blpy_get_start): Use
7288 gdb_py_object_from_ulongest.
7289 (blpy_get_end): Likewise.
7290 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7291
7292 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
7293
7294 PR/symtab 11766:
7295 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7296 * gdb/solib.c (solib_read_symbols): Check for addr_low in
7297 equality test for objfile, initialize addr_low if needed.
7298
7299 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7300
7301 * tui/tui-regs.c (tui_register_format): Remove dead code.
7302
7303 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7304
7305 * printcmd.c (print_formatted): Use val_print_scalar_formatted
7306 instead of print_scalar_formatted.
7307 (print_scalar_formatted): Don't handle 's' format strings here,
7308 and add an assertion that we never see such format here.
7309 * valprint.h (val_print_scalar_formatted): Declare.
7310 * valprint.c (val_print_scalar_formatted): New.
7311 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7312 instead of print_scalar_formatted.
7313 * jv-valprint.c (java_val_print): Ditto.
7314 * p-valprint.c (pascal_val_print): Ditto.
7315 * ada-valprint.c (ada_val_print_1): Ditto.
7316 * f-valprint.c (f_val_print): Ditto.
7317 * infcmd.c (registers_info): Ditto.
7318 * m2-valprint.c (m2_val_print): Ditto.
7319
7320 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7321
7322 * m2-valprint.c (print_unbounded_array): Pass
7323 value_contents_for_printing rather than value_contents, to
7324 m2_print_array_contents. Also pass in the value.
7325
7326 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7327
7328 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7329 (save_gdb_index_command): Switch to .gdb_index version 4.
7330
7331 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7332
7333 * mi/mi-main.c (get_register): Use get_frame_register_value rather
7334 than frame_register, and always pass a valid value to val_print.
7335
7336 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7337
7338 Centralize printing "<optimized out>".
7339
7340 * valprint.h (val_print_optimized_out): Declare.
7341 * cp-valprint.c (cp_print_value_fields): Use
7342 val_print_optimized_out.
7343 * jv-valprint.c (java_print_value_fields): Ditto.
7344 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7345 * printcmd.c (print_formatted): Ditto.
7346 * valprint.c (valprint_check_validity): Ditto.
7347 (value_check_printable): Ditto.
7348 (val_print_optimized_out): New.
7349
7350 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7351
7352 * infcmd.c (default_print_registers_info): Allocate values so to
7353 never pass a NULL value to val_print.
7354
7355 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7356
7357 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7358 boolean. Make sure to always pass a value that matches the
7359 contents buffer to callees. Preserve `address' for following
7360 iterations.
7361 * value.c (value_contents_for_printing_const): New.
7362 (value_address): Constify value argument.
7363 * value.h (value_contents_for_printing_const): Declare.
7364 (value_address): Constify value argument.
7365
7366 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7367
7368 * regcache.c (struct regcache_descr): Rename
7369 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7370 and sizeof_cooked_register_valid_p to
7371 sizeof_cooked_register_status.
7372 (init_regcache_descr): Adjust.
7373 (struct regcache): Rename register_valid_p field to
7374 register_status.
7375 (regcache_xmalloc_1, regcache_xfree, regcache_save)
7376 (do_cooked_read): Adjust.
7377 (regcache_valid_p): Rename to ...
7378 (regcache_register_status): ... this. Adjust.
7379 (regcache_invalidate): Adjust.
7380 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7381 Adjust.
7382 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
7383 as unavailable, not valid.
7384 (regcache_dump): Adjust.
7385 * regcache.h (enum register_status): New.
7386 (regcache_register_status): Declare.
7387 (regcache_invalidate): Delete declaration.
7388 * corelow.c (get_core_registers): Adjust.
7389 * tracepoint.c (tfile_fetch_registers): Adjust.
7390 * trad-frame.c (REG_VALUE): Rename to ...
7391 (TF_REG_VALUE): ... this.
7392 (REG_UNKNOWN): Rename to ...
7393 (TF_REG_UNKNOWN): ... this.
7394 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7395 * mi/mi-main.c (register_changed_p): Adjust.
7396
7397 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7398
7399 * regcache.c (struct regcache_descr): Remove outdated comment.
7400 (init_regcache_descr): Remove sizeof_raw_register_valid_p
7401 overallocate hack.
7402 (regcache_xmalloc): Rename to ...
7403 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
7404 Allocate the regcache type accordingly.
7405 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7406 (regcache_xfree): Asser the source is also readonly. Copy sizeof
7407 cooked registers, not raw.
7408 (regcache_dup_no_passthrough): Delete.
7409 (get_thread_arch_regcache): Use regcache_xmalloc_1.
7410 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7411 mention obsolete write_register_bytes.
7412 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7413
7414 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7415
7416 Stop remote_read_bytes from handling partial reads itself.
7417
7418 * remote-fileio.c: Include target.h.
7419 (remote_fileio_write_bytes): Delete.
7420 (remote_fileio_func_open, remote_fileio_func_write)
7421 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7422 target_read_memory.
7423 (remote_fileio_func_stat): Use target_read_memory and
7424 target_write_memory.
7425 (remote_fileio_func_gettimeofday): Use target_write_memory.
7426 (remote_fileio_func_system): Use target_read_memory.
7427 * remote.c (remote_write_bytes): Make it static.
7428 (remote_read_bytes): Don't handle partial reads here.
7429 * remote.h (remote_read_bytes): Delete declaration.
7430
7431 2011-01-25 Pedro Alves <pedro@codesourcery.com>
7432
7433 Simplify XML parsing a bit.
7434
7435 * xml-support.h (gdb_xml_parse_quick): Declare.
7436 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7437 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7438 parameter.
7439 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7440 gdb_xml_create_parser_and_cleanup_1.
7441 (gdb_xml_parse_quick): New.
7442 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7443 * osdata.c (osdata_parse): Ditto.
7444 * remote.c (remote_threads_info): Ditto.
7445 * solib-target.c (solib_target_parse_libraries): Ditto.
7446 * xml-syscall.c (syscall_parse_xml): Ditto.
7447 * xml-tdesc.c (tdesc_parse_xml): Ditto.
7448
7449 2011-01-24 Kevin Buettner <kevinb@redhat.com>
7450
7451 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7452 with remote-mips.o added to gdb_target_obs.
7453 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7454
7455 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7456
7457 * ada-valprint.c (val_print_packed_array_elements): Pass the
7458 correct struct value to val_print.
7459 (ada_val_print_1): Ditto.
7460
7461 2011-01-24 Pedro Alves <pedro@codesourcery.com>
7462
7463 Don't lose embedded_offset in printing routines throughout.
7464
7465 * valprint.h (val_print_array_elements): Change prototype.
7466 * valprint.c (val_print_array_elements): Add `embedded_offset'
7467 parameter, and adjust to pass it down to val_print, while passing
7468 `valaddr' or `address' unmodified. Take embedded_offset into
7469 account when checking repetitions.
7470 * c-valprint.c (c_val_print): Pass embedded_offset to
7471 val_print_array_elements instead of adjusting `valaddr' and
7472 `address'.
7473 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7474 embedded_offset to val_print_array_elements instead of adjusting
7475 `valaddr'.
7476 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7477 * p-valprint.c (pascal_val_print): Pass embedded_offset to
7478 val_print_array_elements and pascal_object_print_value_fields
7479 instead of adjusting `valaddr'.
7480 (pascal_object_print_value_fields): Add `offset' parameter, and
7481 adjust to use it.
7482 (pascal_object_print_value): Add `offset' parameter, and adjust to
7483 use it.
7484 (pascal_object_print_static_field): Use
7485 value_contents_for_printing/value_embedded_offset, rather than
7486 value_contents.
7487 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7488 parameter, and adjust to use it. Use
7489 value_contents_for_printing/value_embedded_offset, rather than
7490 value_contents.
7491 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7492 (ada_val_print_array): Add `offset' parameter, and adjust to use
7493 it.
7494 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7495 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
7496 Instead work with offsets. Use
7497 value_contents_for_printing/value_embedded_offset, rather than
7498 value_contents. Change `defer_val_int' local type to CORE_ADDR,
7499 and use value_from_pointer to extract a target pointer, rather
7500 than value_from_longest.
7501 (print_variant_part): Add `offset' parameter. Replace
7502 `outer_valaddr' parameter by a new `outer_offset' parameter.
7503 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7504 (ada_value_print): Use
7505 value_contents_for_printing/value_embedded_offset, rather than
7506 value_contents.
7507 (print_record): Add `offset' parameter, and adjust to pass it
7508 down.
7509 (print_field_values): Add `offset' parameter. Replace
7510 `outer_valaddr' parameter by a new `outer_offset' parameter.
7511 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7512 Use value_contents_for_printing/value_embedded_offset, rather than
7513 value_contents.
7514 * d-valprint.c (dynamic_array_type): Use
7515 value_contents_for_printing/value_embedded_offset, rather than
7516 value_contents.
7517 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7518 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
7519 (java_print_value_fields): Take `offset' into account. Don't
7520 re-adjust `valaddr'. Instead pass down adjusted offsets.
7521 (java_val_print): Take `embedded_offset' into account. Pass it to
7522 java_print_value_fields.
7523 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7524 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
7525 down adjusted offsets.
7526 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
7527 (f_val_print): Take `embedded_offset' into account.
7528
7529 2011-01-21 Joel Brobecker <brobecker@adacore.com>
7530
7531 * inflow.c: Include "gdbcmd.h".
7532 (interactive_mode): New static global, moved here from top.c.
7533 (show_interactive_mode): New function, moved here from top.c.
7534 use gdb_has_a_terminal instead of input_from_terminal_p to
7535 determine the current mode.
7536 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
7537 setting.
7538 (_initialize_inflow): Add the "set/show interactive-mode"
7539 commands. Moved here from top.c, after having adjusted slightly
7540 the help text.
7541 * top.c (interactive_mode, show_interactive_mode): Delete, moved
7542 to inflow.c.
7543 (input_from_terminal_p): Remove handling of "interactive-mode"
7544 setting, moved to infow.c.
7545 (init_main): Remove creation of the "set/show interactive-mode"
7546 commands, moved to inflow.c.
7547
7548 2011-01-19 Joel Brobecker <brobecker@adacore.com>
7549
7550 * NEWS: Add entry for native ia64-hpux support.
7551
7552 2011-01-19 Tom Tromey <tromey@redhat.com>
7553
7554 PR mi/8618:
7555 * thread.c (free_thread): Free 'name'.
7556 (print_thread_info): Emit thread name. Change CLI output.
7557 (thread_name_command): New function.
7558 (do_captured_thread_select): Emit newline.
7559 (_initialize_thread): Register 'thread name' command.
7560 * target.h (struct target_ops) <to_thread_name>: New field.
7561 (target_thread_name): New macro.
7562 * target.c (update_current_target): Handle to_thread_name.
7563 * python/py-infthread.c (thpy_get_name): New function.
7564 (thpy_set_name): Likewise.
7565 (thread_object_getset): Add "name".
7566 * linux-nat.c (linux_nat_thread_name): New function.
7567 (linux_nat_add_target): Set to_thread_name.
7568 * gdbthread.h (struct thread_info) <name>: New field.
7569
7570 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7571
7572 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
7573 (ada_val_print_1): Likewise.
7574
7575 2011-01-18 Joel Brobecker <brobecker@adacore.com>
7576
7577 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
7578 upper limit address is not greater than the function end address
7579 when the upper limit could not be computed using the debugging
7580 info.
7581
7582 2011-01-17 Tom Tromey <tromey@redhat.com>
7583
7584 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
7585 get_regcomp_error.
7586 * utils.c: Include gdb_regex.h.
7587 (do_regfree_cleanup): New function.
7588 (make_regfree_cleanup): Likewise.
7589 (get_regcomp_error): Likewise.
7590 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
7591
7592 2011-01-17 Tom Tromey <tromey@redhat.com>
7593
7594 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
7595 re_compile_fastmap.
7596
7597 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
7598
7599 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
7600 for internal variables.
7601 (last_was_structop): New static variable.
7602 (COMPLETE): New token.
7603 (field_exp): New rule to group all '.' suffix handling.
7604 Add mark_struct_expression calls when approriate to be able
7605 to correctly find fields for completion.
7606 (yylex): Adapt to handle field completion and set INTVAR when
7607 required.
7608
7609 2011-01-14 Yao Qi <yao@codesourcery.com>
7610
7611 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
7612 save_reggroup, restore_reggroup and all_reggroup.
7613
7614 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7615
7616 * ada-valprint. (ada_printchar): Use the correct type length
7617 in call to ada_emit_char.
7618 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
7619
7620 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
7621
7622 * solib-som.h (hpux_major_release): Declare variable here.
7623 * solib-som.c: Remove <sys/utsname.h> header.
7624 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
7625 (hpux_major_release): Make global, change default value to
7626 DEFAULT_HPUX_MAJOR_RELEASE.
7627 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7628 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
7629 Add "solib-som.h" header.
7630 (set_hpux_major_release): New function.
7631 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
7632
7633 2011-01-14 Mike Frysinger <vapier@gentoo.org>
7634
7635 * configure.tgt (*-*-uclinux*): Match more Linux os targets
7636
7637 2011-01-14 Joel Brobecker <brobecker@adacore.com>
7638
7639 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
7640 new-line at end of warning message.
7641 (ia64_hpux_store_register): Remove trailing new-line at end of
7642 error message.
7643 * ia64-hpux-tdep.c: Rephrase comment.
7644 * solib-ia64-hpux.c (struct dld_info): Change type of field
7645 dld_flags from "long long" to ULONGEST.
7646
7647 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7648
7649 * target.h (deprecated_child_ops): Delete declaration.
7650 * target.c (deprecated_child_ops): Delete definition.
7651
7652 2011-01-14 Pedro Alves <pedro@codesourcery.com>
7653
7654 * Makefile.in (hpux-thread.o): Delete rule.
7655 * configure.ac: Don't check for HPUX DCE threads support.
7656 * configure, config.in: Regenerate.
7657 * hppa-hpux-nat.c (child_suppress_run): Delete.
7658 (hppa_hpux_child_can_run): Delete.
7659 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7660 * hpux-thread.c: Delete.
7661
7662 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7663
7664 * hpux-thread.c (hpux_pid_to_str): Delete.
7665
7666 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7667
7668 * ada-valprint.c (ada_emit_char): Remove strange code.
7669 Check that c is <= UCHAR_MAX before passing it to isascii.
7670 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7671
7672 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7673
7674 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7675 to the case where instream is stdin.
7676
7677 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7678
7679 * ia64-tdep.h (struct regcache): Forward declare.
7680 (struct ia64_infcall_ops): New struct type.
7681 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7682 and "infcall_ops".
7683 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7684 Renames ia64_find_global_pointer.
7685 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7686 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7687 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7688 methods.
7689 (ia64_infcall_ops): New static global constant.
7690 (ia64_gdbarch_init): Set tdep->infcall_ops.
7691 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7692 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7693 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7694 (ia64_hpux_dummy_code): New static global constant.
7695 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7696 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7697 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7698 New function.
7699 (ia64_hpux_infcall_ops): New static global constant.
7700 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7701 for inferior function calls to work properly on ia64-hpux.
7702
7703 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7704
7705 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7706 * ia64-tdep.h (struct frame_info): forward declaration.
7707 (struct gdbarch_tdep): Add field size_of_register_frame.
7708 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7709 to determine the size of the register frame.
7710 (ia64_size_of_register_frame): New function.
7711 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7712 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7713 (IA64_HPUX_UREG_REASON): New macro.
7714 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7715 New functions.
7716 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7717 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7718 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7719 objects.
7720
7721 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7722
7723 Add support for ia64-hpux.
7724 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7725 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7726
7727 * configure.host: Add handling for ia64-hpux hosts. Add associated
7728 floatformats.
7729 * configure.tgt: Add handling for ia64-hpux targets.
7730 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7731 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7732 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7733
7734 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7735
7736 [ttrace] Compute thread list immediately after attach.
7737 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7738 New subprogram.
7739 (inf_ttrace_attach): Use it.
7740
7741 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7742
7743 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7744 if we could not determine the frame's function address. Instead,
7745 use the frame's PC, and then continue.
7746
7747 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7748
7749 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7750 not already defined.
7751
7752 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7753
7754 * ia64-tdep.c (ia64_struct_type_p): New function.
7755 (ia64_extract_return_value): Handle integral values that are
7756 less than 8 bytes long.
7757 (ia64_push_dummy_call): Likewise.
7758
7759 2011-01-13 Joel Brobecker <brobecker@adacore.com>
7760
7761 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7762 floatformat_ia64_ext.
7763 (floatformat_ia64_ext_big): New static const.
7764 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7765
7766 2011-01-12 Tom Tromey <tromey@redhat.com>
7767
7768 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7769 messages.
7770 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7771 (mi_cmd_thread_list_ids): Likewise.
7772 (mi_cmd_data_list_changed_registers): Likewise.
7773 (mi_cmd_data_list_register_values): Likewise.
7774 (mi_cmd_data_write_register_values): Likewise.
7775 (mi_cmd_data_evaluate_expression): Likewise.
7776 (mi_cmd_data_read_memory): Likewise.
7777 (mi_cmd_data_read_memory_bytes): Likewise.
7778 (mi_cmd_data_write_memory): Likewise.
7779 (mi_cmd_enable_timings): Likewise.
7780 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7781 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7782 (mi_cmd_var_delete): Likewise.
7783 (mi_cmd_var_set_format): Likewise.
7784 (mi_cmd_var_show_format): Likewise.
7785 (mi_cmd_var_info_num_children): Likewise.
7786 (mi_cmd_var_list_children): Likewise.
7787 (mi_cmd_var_info_type): Likewise.
7788 (mi_cmd_var_info_expression): Likewise.
7789 (mi_cmd_var_show_attributes): Likewise.
7790 (mi_cmd_var_assign): Likewise.
7791 (mi_cmd_var_update): Likewise.
7792 (mi_cmd_enable_pretty_printing): Likewise.
7793 (mi_cmd_var_set_update_range): Likewise.
7794 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7795 messages.
7796 (mi_cmd_target_file_put): Likewise.
7797 (mi_cmd_target_file_delete): Likewise.
7798 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7799 messages.
7800 (mi_cmd_stack_info_depth): Likewise.
7801 (mi_cmd_stack_list_locals): Likewise.
7802 (mi_cmd_stack_list_args): Likewise.
7803 (mi_cmd_stack_select_frame): Likewise.
7804 (mi_cmd_stack_select_frame): Likewise.
7805 (mi_cmd_stack_info_frame): Likewise.
7806 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7807 messages.
7808 (mi_cmd_file_list_exec_source_files): Likewise.
7809 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7810 (mi_cmd_env_cd): Likewise.
7811 (mi_cmd_env_path): Likewise.
7812 (mi_cmd_env_dir): Likewise.
7813 (mi_cmd_inferior_tty_show): Likewise.
7814 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7815 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7816 (mi_cmd_break_watch): Likewise.
7817
7818 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
7819
7820 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7821 (ppc_linux_insert_hw_breakpoint): Likewise.
7822 (ppc_linux_remove_hw_breakpoint): Likewise.
7823 (ppc_linux_insert_watchpoint): Likewise.
7824
7825 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7826 Jan Kratochvil <jan.kratochvil@redhat.com>
7827
7828 PR fortran/11104 and DWARF unbound arrays detection.
7829 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7830 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7831 unspecified upper bound.
7832 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7833 variables array_size_array, tmp_type and offset_item. New variable
7834 array. Remove call to f77_get_upperbound. New variables array_type
7835 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7836 the final call to deprecated_set_value_type.
7837
7838 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7839
7840 Make value allocations more lazy.
7841 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7842 instead of allocate_value and set_value_lazy when possible.
7843 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
7844 instead of allocate_value and set_value_lazy.
7845 * findvar.c (value_of_register_lazy): Likewise.
7846 (read_var_value): Remove V preallocation, call just check_typedef in
7847 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
7848 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7849 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7850 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7851 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7852 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7853 the end, remove set_value_lazy there.
7854 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7855 instead of allocate_value and set_value_lazy when possible.
7856 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7857 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7858 of allocate_value and set_value_lazy.
7859 (value_from_contents_and_address): Use allocate_value_lazy instead of
7860 allocate_value and set_value_lazy when possible.
7861
7862 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
7863
7864 * disasm.c (dump_insns): Support dumping opcodes for MI.
7865 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7866 dumping of instruction opcodes.
7867
7868 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
7869
7870 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7871 appropiately.
7872
7873 2011-01-11 Tom Tromey <tromey@redhat.com>
7874
7875 * thread.c (do_captured_thread_select): Emit newline before
7876 printing frame.
7877
7878 2011-01-11 Michael Snyder <msnyder@vmware.com>
7879
7880 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7881 * score-tdep.c: Ditto.
7882 * score-tdep.h: Ditto.
7883 * ser-base.c: Ditto.
7884 * ser-go32.c: Ditto.
7885 * serial.c: Ditto.
7886 * serial.h: Ditto.
7887 * ser-mingw.c: Ditto.
7888 * ser-pipe.c: Ditto.
7889 * ser-tcp.c: Ditto.
7890 * ser-unix.c: Ditto.
7891 * sh64-tdep.c: Ditto.
7892 * shnbsd-nat.c: Ditto.
7893 * sh-tdep.c: Ditto.
7894 * sh-tdep.h: Ditto.
7895 * solib.c: Ditto.
7896 * solib-darwin.c: Ditto.
7897 * solib-frv.c: Ditto.
7898 * solib.h: Ditto.
7899 * solib-irix.c: Ditto.
7900 * solib-osf.c: Ditto.
7901 * solib-pa64.c: Ditto.
7902 * solib-som.c: Ditto.
7903 * solib-spu.c: Ditto.
7904 * solib-sunos.c: Ditto.
7905 * solib-svr4.c: Ditto.
7906 * solist.h: Ditto.
7907 * sol-thread.c: Ditto.
7908 * somread.c: Ditto.
7909 * source.c: Ditto.
7910 * source.h: Ditto.
7911 * sparc64-linux-tdep.c: Ditto.
7912 * sparc64-tdep.c: Ditto.
7913 * sparc-linux-nat.c: Ditto.
7914 * sparc-linux-tdep.c: Ditto.
7915 * sparc-sol2-nat.c: Ditto.
7916 * sparc-sol2-tdep.c: Ditto.
7917 * sparc-tdep.c: Ditto.
7918 * sparc-tdep.h: Ditto.
7919 * spu-tdep.c: Ditto.
7920 * stabsread.c: Ditto.
7921 * stabsread.h: Ditto.
7922 * stack.c: Ditto.
7923 * symfile.c: Ditto.
7924 * symfile.h: Ditto.
7925 * symmisc.c: Ditto.
7926 * symtab.c: Ditto.
7927 * symtab.h: Ditto.
7928 * target.c: Ditto.
7929 * target-descriptions.c: Ditto.
7930 * target-descriptions.h: Ditto.
7931 * target.h: Ditto.
7932 * target-memory.c: Ditto.
7933 * terminal.h: Ditto.
7934 * thread.c: Ditto.
7935 * top.c: Ditto.
7936 * tracepoint.c: Ditto.
7937 * tracepoint.h: Ditto.
7938 * trad-frame.h: Ditto.
7939 * typeprint.c: Ditto.
7940
7941 2011-01-11 Michael Snyder <msnyder@vmware.com>
7942
7943 * ui-file.c: Comment cleanup, mostly periods and spaces.
7944 * ui-file.h: Ditto.
7945 * ui-out.c: Ditto.
7946 * ui-out.h: Ditto.
7947 * utils.c: Ditto.
7948 * v850-tdep.c: Ditto.
7949 * valarith.c: Ditto.
7950 * valops.c: Ditto.
7951 * valprint.c: Ditto.
7952 * valprint.h: Ditto.
7953 * value.c: Ditto.
7954 * value.h: Ditto.
7955 * varobj.c: Ditto.
7956 * varobj.h: Ditto.
7957 * vax-tdep.c: Ditto.
7958 * vec.c: Ditto.
7959 * vec.h: Ditto.
7960 * version.h: Ditto.
7961 * windows-nat.c: Ditto.
7962 * windows-tdep.c: Ditto.
7963 * xcoffread.c: Ditto.
7964 * xcoffsolib.c: Ditto.
7965 * xml-support.c: Ditto.
7966 * xstormy16-tdep.c: Ditto.
7967 * xtensa-tdep.c: Ditto.
7968 * xtensa-tdep.h: Ditto.
7969
7970 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7971
7972 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7973 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7974
7975 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7976 Thiago Jung Bauermann <bauerman@br.ibm.com>
7977
7978 Implement support for PowerPC BookE ranged watchpoints.
7979 * breakpoint.h
7980 (struct breakpoint_ops) <resources_needed>: New method.
7981 Initialize to NULL in all existing breakpoint_ops instances.
7982 (struct breakpoint) <exact>: New field.
7983 (target_exact_watchpoints): Declare external global.
7984 * breakpoint.c (target_exact_watchpoints): New global flag.
7985 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7986 b->enable_state to bp_enabled before calling
7987 hw_watchpoint_used_count.
7988 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7989 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7990 if available.
7991 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7992 if the watchpoint is exact.
7993 (resources_needed_watchpoint): New function.
7994 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7995 (watch_command_1): Set b->exact if the user asked for an exact
7996 watchpoint and one can be set.
7997 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7998 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7999 the user asks for an exact watchpoint and one can be set. Return
8000 number of needed debug registers to watch the expression.
8001 * gdbtypes.c (is_scalar_type): New function, based on
8002 valprint.c:scalar_type_p.
8003 (is_scalar_type_recursive): New function.
8004 * gdbtypes.h (is_scalar_type_recursive): Declare.
8005 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8006 handle regions when ranged watchpoints are available.
8007 (create_watchpoint_request): New function.
8008 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8009 create_watchpoint_request.
8010 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8011 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8012 `set powerpc' and `show powerpc' commands.
8013 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8014 Mention documentation comment in the target macro.
8015 (target_region_ok_for_hw_watchpoint): Document return value.
8016
8017 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8018
8019 * breakpoint.c (update_watchpoint): Decide on using a software or
8020 hardware watchpoint after the bp_locations are created.
8021
8022 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8023
8024 Convert hardware watchpoints to use breakpoint_ops.
8025 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8026 <insert_location>: ... this. Return int instead of void.
8027 Accept pointer to struct bp_location instead of pointer to
8028 struct breakpoint. Adapt all implementations.
8029 (breakpoint_ops) <remove>: Rename to...
8030 <remove_location>: ... this. Accept pointer to struct bp_location
8031 instead of pointer to struct breakpoint. Adapt all implementations.
8032 * breakpoint.c (insert_catchpoint): Delete function.
8033 (insert_bp_location): Call the watchpoint or catchpoint's
8034 breakpoint_ops.insert method.
8035 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8036 breakpoint_ops.remove method.
8037 (insert_watchpoint, remove_watchpoint): New functions.
8038 (watchpoint_breakpoint_ops): New structure.
8039 (watch_command_1): Initialize the OPS field.
8040 * inf-child.c (inf_child_insert_fork_catchpoint)
8041 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8042 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8043 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8044 Delete functions.
8045 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8046 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8047 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8048 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8049 * target.c (update_current_target): Change default implementation of
8050 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8051 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8052 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8053 to_set_syscall_catchpoint to return_one.
8054 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8055 (debug_to_insert_exec_catchpoint): Report return value.
8056 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8057 (to_insert_exec_catchpoint): Change declaration to return int instead
8058 of void.
8059
8060 2011-01-11 Michael Snyder <msnyder@vmware.com>
8061
8062 * arm-tdep.c: Internationalization.
8063 * c-lang.c: Ditto.
8064 * charset.c: Ditto.
8065 * fork-child.c: Ditto.
8066 * nto-procfs.c: Ditto.
8067 * ppc-sysv-tdep.c: Ditto.
8068 * procfs.c: Ditto.
8069 * remote-mips.c: Ditto.
8070 * remote.c: Ditto.
8071 * rs6000-nat.c: Ditto.
8072 * rs6000-tdep.c: Ditto.
8073 * target.c: Ditto.
8074 * valops.c: Ditto.
8075 * value.c: Ditto.
8076 * xml-support.c: Ditto.
8077 * mi/mi-cmd-break.c: Ditto.
8078 * mi/mi-cmd-var.c: Ditto.
8079 * mi/mi-interp.c: Ditto.
8080 * mi/mi-main.c: Ditto.
8081
8082 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
8083
8084 * remote-sim.c (gdbsim_store_register): Update API to
8085 sim_store_register to check more error conditions.
8086
8087 2011-01-10 Michael Snyder <msnyder@vmware.com>
8088
8089 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8090 * nto-tdep.c: Ditto.
8091 * nto-tdep.h: Ditto.
8092 * objc-exp.y: Ditto.
8093 * objc-lang.c: Ditto.
8094 * objfiles.c: Ditto.
8095 * objfiles.h: Ditto.
8096 * observer.c: Ditto.
8097 * opencl-lang.c: Ditto.
8098 * osabi.c: Ditto.
8099 * parse.c: Ditto.
8100 * parser-defs.h: Ditto.
8101 * p-exp.y: Ditto.
8102 * p-lang.c: Ditto.
8103 * posix-hdep.c: Ditto.
8104 * ppcbug-rom.c: Ditto.
8105 * ppc-linux-nat.c: Ditto.
8106 * ppc-linux-tdep.c: Ditto.
8107 * ppc-linux-tdep.h: Ditto.
8108 * ppcnbsd-tdep.c: Ditto.
8109 * ppcobsd-tdep.c: Ditto.
8110 * ppcobsd-tdep.h: Ditto.
8111 * ppc-sysv-tdep.c: Ditto.
8112 * ppc-tdep.h: Ditto.
8113 * printcmd.c: Ditto.
8114 * proc-abi.c: Ditto.
8115 * proc-flags.c: Ditto.
8116 * procfs.c: Ditto.
8117 * proc-utils.h: Ditto.
8118 * progspace.h: Ditto.
8119 * prologue-value.c: Ditto.
8120 * prologue-value.h: Ditto.
8121 * psympriv.h: Ditto.
8122 * psymtab.c: Ditto.
8123 * p-typeprint.c: Ditto.
8124 * p-valprint.c: Ditto.
8125 * ravenscar-sparc-thread.c: Ditto.
8126 * ravenscar-thread.c: Ditto.
8127 * ravenscar-thread.h: Ditto.
8128 * record.c: Ditto.
8129 * regcache.c: Ditto.
8130 * regcache.h: Ditto.
8131 * remote.c: Ditto.
8132 * remote-fileio.c: Ditto.
8133 * remote-fileio.h: Ditto.
8134 * remote.h: Ditto.
8135 * remote-m32r-sdi.c: Ditto.
8136 * remote-mips.c: Ditto.
8137 * remote-sim.c: Ditto.
8138 * rs6000-aix-tdep.c: Ditto.
8139 * rs6000-nat.c: Ditto.
8140 * rs6000-tdep.c: Ditto.
8141
8142 2011-01-10 Michael Snyder <msnyder@vmware.com>
8143
8144 * charset.c (validate): Internationalization.
8145 * coffread.c (read_one_sym): Ditto.
8146 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8147 * h8300-tdep.c (H8300_extract_return_value): Ditto.
8148 * inflow.c (new_tty): Ditto.
8149 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8150 * m32c-tdep.c (m32c_return_value): Ditto.
8151 * mep-tdep.c (mep_store_return_value): Ditto.
8152 * score-tdep.c (score7_fetch_insn): Ditto.
8153 * ser-mingw.c (pipe_windows_open): Ditto.
8154 * sh64-tdep.c (sh64_extract_return_value): Ditto.
8155 * spu-tdep.c (spu_register_type): Ditto.
8156 * tracepoint.c (trace_find_command): Ditto.
8157 * valarith.c (value_pos): Ditto.
8158
8159 2011-01-10 Joel Brobecker <brobecker@adacore.com>
8160
8161 * ada-valprint.c (printstr): Minor comment reformatting.
8162
8163 2011-01-08 Michael Snyder <msnyder@vmware.com>
8164
8165 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8166 markup.
8167
8168 2011-01-08 Michael Snyder <msnyder@vmware.com>
8169
8170 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8171 * hppa-hpux-tdep.c: Ditto.
8172 * hppa-linux-nat.c: Ditto.
8173 * hppa-linux-tdep.c: Ditto.
8174 * hppanbsd-tdep.c: Ditto.
8175 * hppa-tdep.c: Ditto.
8176 * hppa-tdep.h: Ditto.
8177 * hpux-thread.c: Ditto.
8178 * i386-cygwin-tdep.c: Ditto.
8179 * i386-darwin-nat.c: Ditto.
8180 * i386gnu-nat.c: Ditto.
8181 * i386-linux-nat.c: Ditto.
8182 * i386-linux-tdep.c: Ditto.
8183 * i386-nat.c: Ditto.
8184 * i386-nat.h: Ditto.
8185 * i386nbsd-tdep.c: Ditto.
8186 * i386-sol2-nat.c: Ditto.
8187 * i386-stub.c: Ditto.
8188 * i386-tdep.c: Ditto.
8189 * i386-tdep.h: Ditto.
8190 * i387-tdep.c: Ditto.
8191 * ia64-linux-nat.c: Ditto.
8192 * ia64-linux-tdep.c: Ditto.
8193 * ia64-tdep.c: Ditto.
8194 * infcall.c: Ditto.
8195 * infcall.h: Ditto.
8196 * infcmd.c: Ditto.
8197 * inferior.c: Ditto.
8198 * inferior.h: Ditto.
8199 * infloop.c: Ditto.
8200 * inflow.c: Ditto.
8201 * infrun.c: Ditto.
8202 * interps.c: Ditto.
8203 * interps.h: Ditto.
8204 * iq2000-tdep.c: Ditto.
8205 * irix5-nat.c: Ditto.
8206 * jit.c: Ditto.
8207 * jit.h: Ditto.
8208 * jv-exp.y: Ditto.
8209 * jv-lang.c: Ditto.
8210 * jv-lang.h: Ditto.
8211 * jv-typeprint.c: Ditto.
8212 * jv-valprint.c: Ditto.
8213 * language.c: Ditto.
8214 * language.h: Ditto.
8215 * linespec.c: Ditto.
8216 * linux-fork.c: Ditto.
8217 * linux-nat.c: Ditto.
8218 * linux-thread-db.c: Ditto.
8219 * lm32-tdep.c: Ditto.
8220
8221 2011-01-08 Michael Snyder <msnyder@vmware.com>
8222
8223 * m2-exp.y: Comment cleanup, mostly periods and spaces.
8224 * m2-lang.c: Ditto.
8225 * m2-typeprint.c: Ditto.
8226 * m2-valprint.c: Ditto.
8227 * m32c-tdep.c: Ditto.
8228 * m32r-linux-nat.c: Ditto.
8229 * m32r-rom.c: Ditto.
8230 * m32r-tdep.c: Ditto.
8231 * m32r-tdep.h: Ditto.
8232 * m68hc11-tdep.c: Ditto.
8233 * m58klinux-nat.c: Ditto.
8234 * m68k-tdep.c: Ditto.
8235 * m88k-tdep.c: Ditto.
8236 * m88k-tdep.h: Ditto.
8237 * machoread.c: Ditto.
8238 * macrocmd.c: Ditto.
8239 * macroexp.c: Ditto.
8240 * macrotab.c: Ditto.
8241 * main.c: Ditto.
8242 * maint.c: Ditto.
8243 * mdebugread.c: Ditto.
8244 * mdebugread.h: Ditto.
8245 * memattr.c: Ditto.
8246 * memattr.h: Ditto.
8247 * memory-map.h: Ditto.
8248 * mep-tdep.c: Ditto.
8249 * microblaze-rom.c: Ditto.
8250 * microblaze-tdep.c: Ditto.
8251 * minsyms.c: Ditto.
8252 * mips-irix-tdep.c: Ditto.
8253 * mips-linux-nat.c: Ditto.
8254 * mips-linux-tdep.c: Ditto.
8255 * mips-linux-tdep.h: Ditto.
8256 * mipsnbsd-nat.c: Ditto.
8257 * mipsnbsd-tdep.c: Ditto.
8258 * mipsread.c: Ditto.
8259 * mips-tdep.c: Ditto.
8260 * mips-tdep.h: Ditto.
8261 * mn10300-linux-tdep.c: Ditto.
8262 * mn10300-tdep.c: Ditto.
8263 * mn10300-tdep.h: Ditto.
8264 * monitor.c: Ditto.
8265 * monitor.h: Ditto.
8266 * moxie-tdep.c: Ditto.
8267 * moxie-tdep.h: Ditto.
8268 * mt-tdep.c: Ditto.
8269
8270 2011-01-08 Mike Frysinger <vapier@gentoo.org>
8271
8272 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8273
8274 2011-01-08 Robert Millan <rmh@gnu.org>
8275
8276 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8277
8278 2011-01-07 Michael Snyder <msnyder@vmware.com>
8279
8280 * charset.c (_initialize_charset): Fix typo in string.
8281
8282 2011-01-07 Michael Snyder <msnyder@vmware.com>
8283
8284 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8285 for i18n.
8286 * tui/tui-layout.c (tui_set_layout_for_display_command):
8287 Split line so that operator goes to beginning of line.
8288 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8289 assignment out of if statement.
8290
8291 2011-01-07 Michael Snyder <msnyder@vmware.com>
8292
8293 * ada-lang.c: Comment cleanup, mostly periods and spaces.
8294 * ada-lang.h: Ditto.
8295 * ada-tasks.c: Ditto.
8296 * ada-valprint.c: Ditto.
8297 * aix-threads.c: Ditto.
8298 * alpha-linux-nat.c: Ditto.
8299 * alpha-linux-tdep.c: Ditto.
8300 * alpha-mdebug-tdep.c: Ditto.
8301 * alpha-nat.c: Ditto.
8302 * alpha-osf1-tdep.c: Ditto.
8303 * alpha-tdep.c: Ditto.
8304 * alphabsd-nat.c: Ditto.
8305 * alphabsd-tdep.c: Ditto.
8306 * amd64-darwin-tdep.c: Ditto.
8307 * amd64-linux-nat.c: Ditto.
8308 * amd64-linux-tdep.c: Ditto.
8309 * amd64-sol2-tdep.c: Ditto.
8310 * amd64-tdep.c: Ditto.
8311 * amd64-fbsd-tdep.c: Ditto.
8312 * amd64-nbsd-tdep.c: Ditto.
8313 * amd64-obsd-tdep.c: Ditto.
8314 * amd64-linux-nat.c: Ditto.
8315 * amd64-linux-tdep.c: Ditto.
8316 * arm-tdep.c: Ditto.
8317 * arm-tdep.h: Ditto.
8318 * armnbsd-nat.c: Ditto.
8319 * avr-tdep.c: Ditto.
8320 * bfin-tdep.c: Ditto.
8321 * bsd-kvm.c: Ditto.
8322 * c-typeprintc: Ditto.
8323 * c-valprint.c: Ditto.
8324 * coff-pe-read.h: Ditto.
8325 * coffreead.c: Ditto.
8326 * cris-tdep.c: Ditto.
8327 * d-lang.c: Ditto.
8328 * darwin-nat-info.c: Ditto.
8329 * darwin-nat.c: Ditto.
8330 * dbug-rom.c: Ditto.
8331 * dbxread.c: Ditto.
8332 * dcache.c: Ditto.
8333 * dcache.h: Ditto.
8334 * dec-thread.c: Ditto.
8335 * defs.h: Ditto.
8336 * demangle.c: Ditto.
8337 * dicos-tdep.c: Ditto.
8338 * dictionary.c: Ditto.
8339 * dictionary.h: Ditto.
8340 * dink32-rom.c: Ditto.
8341 * disasm.c: Ditto.
8342 * doublest.c: Ditto.
8343 * dsrec.c: Ditto.
8344 * dummy-frame.c: Ditto.
8345 * dwarf2-frame.c: Ditto.
8346 * dwarf2expr.c: Ditto.
8347 * dwarf2loc.c: Ditto.
8348 * dwarf2read.c: Ditto.
8349 * elfread.c: Ditto.
8350 * environ.c: Ditto.
8351 * eval.c: Ditto.
8352 * event-top.h: Ditto.
8353 * exceptions.c: Ditto.
8354 * exceptions.h: Ditto.
8355 * exec.c: Ditto.
8356 * expprint.c: Ditto.
8357 * expression.h: Ditto.
8358 * f-exp.y: Ditto.
8359 * f-lang.c: Ditto.
8360 * f-lang.h: Ditto.
8361 * f-typeprint.c: Ditto.
8362 * f-valprint.c: Ditto.
8363 * fbsd-nat.c: Ditto.
8364 * findvar.c: Ditto.
8365 * fork-child.c: Ditto.
8366 * frame.c: Ditto.
8367 * frame.h: Ditto.
8368 * frv-linux-tdep.c: Ditto.
8369 * frv-tdep.c: Ditto.
8370 * gcore.c: Ditto.
8371 * gdb-stabs.h: Ditto.
8372 * gdb_assert.h: Ditto.
8373 * gdb_string.h: Ditto.
8374 * gdb_thread_db.h: Ditto.
8375 * gdb_wait.h: Ditto.
8376 * gdbarch.sh: Ditto.
8377 * gdbcore.h: Ditto.
8378 * gdbthread.h: Ditto.
8379 * gdbtypes.c: Ditto.
8380 * gdbtypes.h: Ditto.
8381 * gnu-nat.c: Ditto.
8382 * gnu-nat.h: Ditto.
8383 * gnu-v2-abi.c: Ditto.
8384 * gnu-v3-abi.c: Ditto.
8385 * go32-nat.c: Ditto.
8386 * gdbarch.c: Regenerate.
8387 * gdbarch.h: Regenerate.
8388
8389 2011-01-07 Michael Snyder <msnyder@vmware.com>
8390
8391 * ax-gdb.c: Adjust some long output strings.
8392 * breakpoint.c: Ditto.
8393 * charset.c: Ditto.
8394 * cp-abi.c: Ditto.
8395 * infcall.c: Ditto.
8396 * infrun.c: Ditto.
8397 * linux-nat.c: Ditto.
8398 * solib-pa64.c: Ditto.
8399 * solib-som.c: Ditto.
8400
8401 2011-01-06 Tom Tromey <tromey@redhat.com>
8402
8403 PR python/12367:
8404 * NEWS: Add item.
8405 * python/python.c (GdbMethods): Add "newest_frame" method.
8406 * python/python-internal.h (gdbpy_newest_frame): Declare.
8407 * python/py-frame.c (gdbpy_newest_frame): New function.
8408
8409 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
8410
8411 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8412 * jit.c (jit_debug): New variable.
8413 (show_jit_debug): New function.
8414 (struct target_buffer): Use ULONGEST.
8415 (bfd_open_from_target_memory): Likewise.
8416 (jit_register_code, jit_inferior_init): Add debug output.
8417 (_initialize_jit): Register "debug jit" command.
8418
8419 2011-01-06 Tom Tromey <tromey@redhat.com>
8420
8421 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8422 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8423 and ARCH_FRAME.
8424
8425 2011-01-06 Tom Tromey <tromey@redhat.com>
8426
8427 * python/py-frame.c (frapy_block): Use get_frame_block.
8428
8429 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8430
8431 Do not stop on SIGPRIO signals by default
8432 * infrun.c (_initialize_infrun): Unset signal_stop and
8433 signal_print for TARGET_SIGNAL_PRIO.
8434
8435 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8436
8437 * ada-tasks.c: Fix style violation in comment.
8438
8439 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8440
8441 * linespec.c (decode_compound, find_method): Remove trailing \n
8442 at end of error string.
8443 * solib-irix.c (irix_current_sos): Likewise.
8444 * varobj.c (uninstall_variable): Likewise.
8445
8446 2011-01-06 Joel Brobecker <brobecker@adacore.com>
8447
8448 * copyright.py: New script.
8449 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8450 Launch emacs without exec'ing. Call copyright.py afterwards.
8451
8452 2011-01-05 Michael Snyder <msnyder@vmware.com>
8453
8454 * addrmap.c: Shorten lines of >= 80 columns.
8455 * arch-utils.c: Ditto.
8456 * arch-utils.h: Ditto.
8457 * ax-gdb.c: Ditto.
8458 * ax-general.c: Ditto.
8459 * bcache.c: Ditto.
8460 * blockframe.c: Ditto.
8461 * breakpoint.c: Ditto.
8462 * buildsym.c: Ditto.
8463 * c-lang.c: Ditto.
8464 * c-typeprint.c: Ditto.
8465 * charset.c: Ditto.
8466 * coffread.c: Ditto.
8467 * command.h: Ditto.
8468 * corelow.c: Ditto.
8469 * cp-abi.c: Ditto.
8470 * cp-namespace.c: Ditto.
8471 * cp-support.c: Ditto.
8472 * dbug-rom.c: Ditto.
8473 * dbxread.c: Ditto.
8474 * defs.h: Ditto.
8475 * dfp.c: Ditto.
8476 * dfp.h: Ditto.
8477 * dictionary.c: Ditto.
8478 * disasm.c: Ditto.
8479 * doublest.c: Ditto.
8480 * dwarf2-frame.c: Ditto.
8481 * dwarf2expr.c: Ditto.
8482 * dwarf2loc.c: Ditto.
8483 * dwarf2read.c: Ditto.
8484 * elfread.c: Ditto.
8485 * eval.c: Ditto.
8486 * event-loop.c: Ditto.
8487 * event-loop.h: Ditto.
8488 * exceptions.h: Ditto.
8489 * exec.c: Ditto.
8490 * expprint.c: Ditto.
8491 * expression.h: Ditto.
8492 * f-lang.c: Ditto.
8493 * f-valprint.c: Ditto.
8494 * findcmd.c: Ditto.
8495 * frame-base.c: Ditto.
8496 * frame-unwind.c: Ditto.
8497 * frame-unwind.h: Ditto.
8498 * frame.c: Ditto.
8499 * frame.h: Ditto.
8500 * gcore.c: Ditto.
8501 * gdb-stabs.h: Ditto.
8502 * gdb_assert.h: Ditto.
8503 * gdb_dirent.h: Ditto.
8504 * gdb_obstack.h: Ditto.
8505 * gdbcore.h: Ditto.
8506 * gdbtypes.c: Ditto.
8507 * gdbtypes.h: Ditto.
8508 * inf-ttrace.c: Ditto.
8509 * infcall.c: Ditto.
8510 * infcmd.c: Ditto.
8511 * inflow.c: Ditto.
8512 * infrun.c: Ditto.
8513 * inline-frame.h: Ditto.
8514 * language.c: Ditto.
8515 * language.h: Ditto.
8516 * libunwind-frame.c: Ditto.
8517 * libunwind-frame.h: Ditto.
8518 * linespec.c: Ditto.
8519 * linux-nat.c: Ditto.
8520 * linux-nat.h: Ditto.
8521 * linux-thread-db.c: Ditto.
8522 * machoread.c: Ditto.
8523 * macroexp.c: Ditto.
8524 * macrotab.c: Ditto.
8525 * main.c: Ditto.
8526 * maint.c: Ditto.
8527 * mdebugread.c: Ditto.
8528 * memattr.c: Ditto.
8529 * minsyms.c: Ditto.
8530 * monitor.c: Ditto.
8531 * monitor.h: Ditto.
8532 * objfiles.c: Ditto.
8533 * objfiles.h: Ditto.
8534 * osabi.c: Ditto.
8535 * p-typeprint.c: Ditto.
8536 * p-valprint.c: Ditto.
8537 * parse.c: Ditto.
8538 * printcmd.c: Ditto.
8539 * proc-events.c: Ditto.
8540 * procfs.c: Ditto.
8541 * progspace.c: Ditto.
8542 * progspace.h: Ditto.
8543 * psympriv.h: Ditto.
8544 * psymtab.c: Ditto.
8545 * record.c: Ditto.
8546 * regcache.c: Ditto.
8547 * regcache.h: Ditto.
8548 * remote-fileio.c: Ditto.
8549 * remote.c: Ditto.
8550 * ser-mingw.c: Ditto.
8551 * ser-tcp.c: Ditto.
8552 * ser-unix.c: Ditto.
8553 * serial.c: Ditto.
8554 * serial.h: Ditto.
8555 * solib-frv.c: Ditto.
8556 * solib-irix.c: Ditto.
8557 * solib-osf.c: Ditto.
8558 * solib-pa64.c: Ditto.
8559 * solib-som.c: Ditto.
8560 * solib-sunos.c: Ditto.
8561 * solib-svr4.c: Ditto.
8562 * solib-target.c: Ditto.
8563 * solib.c: Ditto.
8564 * somread.c: Ditto.
8565 * source.c: Ditto.
8566 * stabsread.c: Ditto.
8567 * stabsread.c: Ditto.
8568 * stack.c: Ditto.
8569 * stack.h: Ditto.
8570 * symfile-mem.c: Ditto.
8571 * symfile.c: Ditto.
8572 * symfile.h: Ditto.
8573 * symmisc.c: Ditto.
8574 * symtab.c: Ditto.
8575 * symtab.h: Ditto.
8576 * target-descriptions.c: Ditto.
8577 * target-memory.c: Ditto.
8578 * target.c: Ditto.
8579 * target.h: Ditto.
8580 * terminal.h: Ditto.
8581 * thread.c: Ditto.
8582 * top.c: Ditto.
8583 * tracepoint.c: Ditto.
8584 * tracepoint.h: Ditto.
8585 * ui-file.c: Ditto.
8586 * ui-file.h: Ditto.
8587 * ui-out.h: Ditto.
8588 * user-regs.c: Ditto.
8589 * user-regs.h: Ditto.
8590 * utils.c: Ditto.
8591 * valarith.c: Ditto.
8592 * valops.c: Ditto.
8593 * valprint.c: Ditto.
8594 * valprint.h: Ditto.
8595 * value.c: Ditto.
8596 * varobj.c: Ditto.
8597 * varobj.h: Ditto.
8598 * vec.h: Ditto.
8599 * xcoffread.c: Ditto.
8600 * xcoffsolib.c: Ditto.
8601 * xcoffsolib.h: Ditto.
8602 * xml-syscall.c: Ditto.
8603 * xml-tdesc.c: Ditto.
8604
8605 2011-01-05 Michael Snyder <msnyder@vmware.com>
8606
8607 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
8608 * cli/cli-decode.c: Ditto.
8609 * cli/cli-dump.c: Ditto.
8610 * cli/cli-logging.c: Ditto.
8611 * cli/cli-script.c: Ditto.
8612 * cli/cli-setshow.c: Ditto.
8613 * common/signals.c: Ditto.
8614 * mi/mi-cmd-break.c: Ditto.
8615 * mi/mi-cmd-disas.c: Ditto.
8616 * mi/mi-cmd-stack.c: Ditto.
8617 * mi/mi-cmd-var.c: Ditto.
8618 * mi/mi-cmds.c: Ditto.
8619 * mi/mi-common.h: Ditto.
8620 * mi/mi-console.c: Ditto.
8621 * mi/mi-interp.c: Ditto.
8622 * mi/mi-main.c: Ditto.
8623 * osf-share/cma_attr.c: Ditto.
8624 * osf-share/cma_deb_core.h: Ditto.
8625 * osf-share/cma_debug_client.h: Ditto.
8626 * osf-share/cma_handle.h: Ditto.
8627 * osf-share/cma_mutex.h: Ditto.
8628 * osf-share/cma_stack_int.h: Ditto.
8629 * osf-share/cma_tcb_defs.h: Ditto.
8630 * python/py-auto-load.c: Ditto.
8631 * python/py-breakpoint.c: Ditto.
8632 * python/py-cmd.c: Ditto.
8633 * python/py-frame.c: Ditto.
8634 * python/py-objfile.c: Ditto.
8635 * python/py-param.c: Ditto.
8636 * python/py-progspace.c: Ditto.
8637 * python/py-symbol.c: Ditto.
8638 * python/py-value.c: Ditto.
8639 * python/python-internal.h: Ditto.
8640 * python/python.c: Ditto.
8641 * tui/tui-data.c: Ditto.
8642 * tui/tui-disasm.c: Ditto.
8643 * tui/tui-hooks.c: Ditto.
8644 * tui/tui-io.c: Ditto.
8645 * tui/tui-layout.c: Ditto.
8646 * tui/tui-regs.c: Ditto.
8647 * tui/tui-source.c: Ditto.
8648 * tui/tui-stack.c: Ditto.
8649 * tui/tui-win.c: Ditto.
8650 * tui/tui-windata.c: Ditto.
8651 * tui/tui-winsource.c: Ditto.
8652
8653 2011-01-05 Joel Brobecker <brobecker@adacore.com>
8654
8655 * configure.ac, gdb.1: Copyright year update.
8656
8657 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8658
8659 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8660 this_pc_in_block, morestack_msym and morestack_name. Check for
8661 "__morestack" minimal symbol there.
8662
8663 2011-01-03 Joel Brobecker <brobecker@adacore.com>
8664
8665 * symfile.c (find_sym_fns): Add call to dont_repeat.
8666
8667 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8668
8669 Copyright year update in most files (performed by copyright.sh).
8670
8671 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8672
8673 * top.c (print_gdb_version): Update copyright year in version output.
8674
8675 For older changes see ChangeLog-2010.
8676 \f
8677 Local Variables:
8678 mode: change-log
8679 left-margin: 8
8680 fill-column: 74
8681 version-control: never
8682 coding: utf-8
8683 End:
This page took 0.214653 seconds and 4 git commands to generate.