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