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