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