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