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