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