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