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