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