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