]> Git Repo - binutils.git/blame - gdb/ChangeLog
2011-07-25 Pedro Alves <[email protected]>
[binutils.git] / gdb / ChangeLog
CommitLineData
06edf0c0
PA
12011-07-25 Pedro Alves <[email protected]>
2
3 Split internal, momentary and user breakpoints breakpoint_ops
4 tables.
5
6 * breakpoint.c (internal_breakpoint_ops)
7 (momentary_breakpoint_ops): Forward declare.
8 (create_internal_breakpoint): Add new breakpoint_ops parameter.
9 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
10 (create_overlay_event_breakpoint)
11 (create_std_terminate_master_breakpoint)
12 (create_exception_master_breakpoint): Create breakpoints with
13 internal_breakpoint_ops vtable.
14 (set_longjmp_breakpoint): Create momentary breakpoints with
15 momentary_breakpoint_ops vtable, using
16 momentary_breakpoint_from_master.
17 (create_thread_event_breakpoint, create_jit_event_breakpoint)
18 (create_solib_event_breakpoint): Create breakpoints with
19 internal_breakpoint_ops vtable.
20 (set_momentary_breakpoint): Create breakpoints with
21 momentary_breakpoint_ops vtable.
22 (momentary_breakpoint_from_master): New, factored out from
23 clone_momentary_breakpoint.
24 (clone_momentary_breakpoint): Adjust.
25 (watch_command_1): Create scope breakpoints with
26 momentary_breakpoint_ops vtable.
27 (bkpt_re_set): Remove handling of internal and momentary
28 breakpoints.
29 (bkpt_print_mention, bkpt_print_recreate): New.
30 (bkpt_breakpoint_ops): Adjust.
31 (internal_bkpt_re_set, internal_bkpt_check_status)
32 (internal_bkpt_print_it, internal_bkpt_print_mention)
33 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
34 (momentary_bkpt_re_set, momentary_bkpt_check_status)
35 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
36 (momentary_bkpt_print_recreate): New.
37 (momentary_breakpoint_ops): New.
38
348d480f
PA
392011-07-25 Pedro Alves <[email protected]>
40
41 Implement most breakpoint_ops methods for all breakpoint types,
42 and move the default handlings to the proper callbacks.
43
44 * breakpoint.c (update_watchpoint): Always call the breakpoint's
45 works_in_software_mode method.
46 (insert_bp_location): Go through breakpoint_ops->insert_location
47 for software and hardware watchpoints.
48 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
49 breakpoint_ops.
50 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
51 for software and hardware watchpoints.
52 (print_it_typical): Delete.
53 (print_bp_stop_message): Always call the breakpoint_ops->print_it
54 method.
55 (watchpoint_check): Adjust comment.
56 (bpstat_check_location): Simply always call the breakpoint's
57 breakpoint_hit method.
58 (bpstat_stop_status): Always call the breakpoint's check_status
59 method. Remove special cases for watchpoints and internal event
60 breakpoints from here (moved to the check_status implementations).
61 (print_one_breakpoint_location): Assume b->ops is never NULL.
62 Remove static tracepoint marker id printing from here (moved to
63 the print_one_detail callback implementation of tracepoints).
64 (init_bp_location): Assert OPS is never NULL.
65 (allocate_bp_location): Always call the breakpoint's
66 allocate_location method, and remove the default code from here.
67 (free_bp_location): Always call the location's dtor method, and
68 remove the default code from here.
69 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
70 (set_raw_breakpoint_without_location): Add new breakpoint_ops
71 parameter. Pass it down.
72 (set_raw_breakpoint): Ditto.
73 (print_it_catch_fork): Adjust to take a bpstat as argument.
74 (catch_fork_breakpoint_ops): Install methods.
75 (print_it_catch_vfork): Adjust to take a bpstat as argument.
76 (catch_vfork_breakpoint_ops): Install methods.
77 (dtor_catch_syscall): Call the base dtor.
78 (print_it_catch_syscall): Adjust to take a bpstat as argument.
79 (catch_syscall_breakpoint_ops): Install methods.
80 (dtor_catch_exec): Call the base dtor.
81 (print_it_catch_exec): Adjust to take a bpstat as argument.
82 (catch_exec_breakpoint_ops): Install methods.
83 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
84 the breakpoint's resources_needed method, and remove the default
85 code from here.
86 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
87 breakpoint_ops.
88 (clone_momentary_breakpoint): Clone the original's ops.
89 (mention): Always call the breakpoint's print_mention method, and
90 remove the default code from here.
91 (create_breakpoint_sal): Adjust to pass the ops to
92 set_raw_breakpoint rather than setting it manually.
93 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
94 ops to set_raw_breakpoint_without_location rather than setting it
95 manually.
96 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
97 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
98 (ranged_breakpoint_ops): Install methods.
99 (break_range_command): Adjust to pass the ops to
100 set_raw_breakpoint rather than setting it manually.
101 (re_set_watchpoint, breakpoint_hit_watchpoint)
102 (check_status_watchpoint, resources_needed_watchpoint)
103 (works_in_software_mode_watchpoint, print_it_watchpoint)
104 (print_mention_watchpoint, print_recreate_watchpoint): New
105 functions.
106 (watchpoint_breakpoint_ops): Install new methods.
107 (print_it_masked_watchpoint): New function.
108 (masked_watchpoint_breakpoint_ops): Install new methods.
109 (watch_command_1): Adjust to pass the right breakpoint_ops to
110 set_raw_breakpoint_without_location rather than setting it
111 manually later. Record the current pspace.
112 (print_it_exception_catchpoint): Adjust to take a bpstat as
113 argument.
114 (gnu_v3_exception_catchpoint_ops): Install new methods.
115 (say_where): New function.
116 (null_re_set, null_check_status, null_works_in_software_mode)
117 (null_resources_needed, null_print_one_detail, bp_location_dtor):
118 New functions.
119 (bp_location_ops): New global.
120 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
121 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
122 (bkpt_check_status, bkpt_resources_needed)
123 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
124 (bkpt_print_recreate): New functions.
125 (bkpt_breakpoint_ops): New global.
126 (tracepoint_re_set, tracepoint_insert_location)
127 (tracepoint_remove_location, tracepoint_breakpoint_hit)
128 (tracepoint_check_status, tracepoint_works_in_software_mode)
129 (tracepoint_print_it, tracepoint_print_one_detail)
130 (tracepoint_print_mention, tracepoint_print_recreate): New
131 functions.
132 (tracepoint_breakpoint_ops): New global.
133 (delete_breakpoint): Always call the breakpoint's dtor method, and
134 remove the default handling from here.
135 (breakpoint_re_set_default): Make static.
136 (breakpoint_re_set_one): Always call the breakpoints re_set
137 method, and remove the default handling from here.
138 (trace_command, ftrace_command, strace_command)
139 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
140 to create_breakpoint.
141 (save_breakpoints): Always call the breakpoint's print_recreate
142 method, and remove the default handling from here.
143
144 * ada-lang.c (dtor_exception): Call the base dtor.
145 (re_set_exception): Call the base method.
146 (print_it_exception, print_it_catch_exception): Adjust to take a
147 bpstat as argument.
148 (catch_exception_breakpoint_ops): Install methods.
149 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
150 argument.
151 (catch_exception_unhandled_breakpoint_ops): Install methods.
152 (print_it_catch_assert): Adjust to take a bpstat as argument.
153 (catch_assert_breakpoint_ops): Install methods.
154
155 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
156 to take a bpstat as argument.
157 (enum print_stop_action): Add describing comments to each enum
158 value.
159 (breakpoint_re_set_default): Delete declaration.
160 (null_re_set, null_works_in_software_mode, null_resources_needed)
161 (null_check_status, null_print_one_detail): Declare.
162 (bkpt_breakpoint_ops): Declare.
163 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
164 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
165 (bkpt_check_status, bkpt_resources_needed)
166 (bkpt_works_in_software_mode, bkpt_print_it)
167 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
168 Declare.
169
170 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
171 bkpt_breakpoint_ops.
172 * python/py-breakpoint.c (bppy_init): Ditto.
173
be8f8133
PW
1742011-07-15 Philippe Waroquiers <[email protected]>
175
176 * MAINTAINERS (Write After Approval): Add myself to the list.
177
3807f613
PP
1782011-07-23 Paul Pluzhnikov <[email protected]>
179
180 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
181
1ced966e
PA
1822011-07-22 Pedro Alves <[email protected]>
183
184 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
185 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
186 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
187 adjust.
188 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
189 (struct i386_debug_reg_state): New.
190 (i386_init_dregs): New.
191 (dr_mirror): New.
192 (i386_cleanup_dregs): Use i386_init_dregs.
193 (i386_show_dr): Add state parameter and adjust.
194 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
195 the inferior here.
196 (i386_remove_aligned_watchpoint): Likewise.
197 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
198 (i386_update_inferior_debug_regs): New.
199 (i386_insert_watchpoint): Work on a local mirror of the debug
200 registers, and only update the inferior on success.
201 (i386_remove_watchpoint): Ditto.
202 (i386_region_ok_for_watchpoint): Adjust.
203 (i386_stopped_data_address): Adjust.
204 (i386_insert_hw_breakpoint): Adjust.
205 (i386_remove_hw_breakpoint): Adjust.
206
3543a589
TT
2072011-07-22 Tom Tromey <[email protected]>
208
209 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
210 from amd64_pseudo_register_read. Change arguments. Call
211 mark_value_bytes_unavailable when needed.
212 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
213 set_gdbarch_pseudo_register_read.
214 * sentinel-frame.c (sentinel_frame_prev_register): Use
215 regcache_cooked_read_value.
216 * regcache.h (regcache_cooked_read_value): Declare.
217 * regcache.c (regcache_cooked_read_value): New function.
218 (regcache_cooked_read): Call
219 gdbarch_pseudo_register_read_value if available.
220 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
221 (i386_pseudo_register_read): Remove.
222 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
223 i386_pseudo_register_read. Change arguments. Call
224 mark_value_bytes_unavailable when needed.
225 (i386_pseudo_register_read_value): New function.
226 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
227 not set_gdbarch_pseudo_register_read.
228 * gdbarch.sh (pseudo_register_read_value): New method.
229 * gdbarch.c, gdbarch.h: Rebuild.
230 * findvar.c (value_from_register): Call get_frame_register_value.
231
95298e72
PM
2322011-07-22 Phil Muldoon <[email protected]>
233
234 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
235 get_prefix.
236 (display_gdb_prompt): Likewise.
237 (change_annotation_level): Likewise.
238 (push_prompt): Likewise.
239 (pop_prompt): Likewise.
240 (handle_stop_sig): Use get_prompt with a level.
241 * top.c (command_loop): Use get_prompt with a level.
242 (set_async_annotation_level): Use set_prompt with a level.
243 (get_prefix): New function.
244 (set_prefix): Ditto.
245 (set_suffix): Ditto.
246 (get_suffix): Ditto.
247 (get_prompt): Accept a level argument.
248 (set_prompt): Accept a level argument. Free old prompts. Set
249 new_async_prompt if level is 0.
250 (init_main): Use set_prompt with a level. Do not set
251 new_async_prompt.
252 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
253 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
254 Modify set_prompt, get_prompt to account for levels.
255 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
256 level.
257 * python/python.c (before_prompt_hook): Use set_prompt.
258
d26e3629
KY
2592011-07-22 Kwok Cheung Yeung <[email protected]>
260
261 * defs.h: Add guard against inclusion in gdbserver.
262 (struct ptid, ptid_t): Move to common/ptid.h.
263 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
264 xsnprintf, internal_error): Move to common/common-utils.h.
265 (nomem): Delete.
266 * gdb_assert.h: Move into common/ sub-directory.
267 * gdb_locale.h: Ditto.
268 * gdb_dirent.h: Ditto.
269 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
270 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
271 Move into common/ptid.h.
272 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
273 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
274 Change nomem to malloc_failure.
275 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
276 * utils.c (nomem): Rename to malloc_failure.
277 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
278 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
279 (gdb_buildargv): Change nomem to malloc_failure.
280 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
281 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
282 ptid_is_pid): Move into common/ptid.c.
283 (initialize_infrun): Delete initialization of null_ptid and
284 minus_one_ptid.
285 * linux-nat.c (linux_nat_xfer_osdata): Defer to
286 linux_common_xfer_osdata.
287 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
288 common/ptid.c and common/buffer.c.
289 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
290 common/ptid.h, common/buffer.h and common/linux-osdata.h.
291 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
292 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
293 rules.
294 * common/gdb_assert.h: New.
295 * common/gdb_dirent.h: New.
296 * common/gdb_locale.h: New.
297 * common/buffer.c: New.
298 * common/buffer.h: New.
299 * common/ptid.c: New.
300 * common/ptid.h: New.
301 * common/xml-utils.c: New.
302 * common/xml-utils.h: New.
303 * common/common-utils.c: New.
304 * common/common-utils.h: New.
305 * common/linux-osdata.c: New.
306 * common/linux-osdata.h: New.
307 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
308 * config/arm/linux.mh (NATDEPFILES): Ditto.
309 * config/i386/linux.mh (NATDEPFILES): Ditto.
310 * config/i386/linux64.mh (NATDEPFILES): Ditto.
311 * config/ia64/linux.mh (NATDEPFILES): Ditto.
312 * config/m32r/linux.mh (NATDEPFILES): Ditto.
313 * config/m68k/linux.mh (NATDEPFILES): Ditto.
314 * config/mips/linux.mh (NATDEPFILES): Ditto.
315 * config/pa/linux.mh (NATDEPFILES): Ditto.
316 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
317 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
318 * config/s390/s390.mh (NATDEPFILES): Ditto.
319 * config/sparc/linux.mh (NATDEPFILES): Ditto.
320 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
321 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
322
edc84990 3232011-07-21 Matt Rice <[email protected]>
324
325 * NEWS: Add info macros and info definitions commands.
326
3a7bf607
PM
3272011-07-21 Phil Muldoon <[email protected]>
328
329 * NEWS: Document Python prompt substitution hook.
330
9b158ba0 3312011-07-18 Matt Rice <[email protected]>
332
333 PR macros/12999
334 * macrotab.h (macro_callback_fn): Add new arguments to callback.
335 * macrotab.c (foreach_macro): Ditto.
336 (foreach_macro_in_scope): Ditto.
337 * macrocmd.c (print_macro_callback): New function.
338 (info_macro_command): Move some code to print_macro_definition.
339 (print_macro_definition): New function.
340 (print_one_macro): Add new arguments to callback.
341 (info_definitions_command): New function.
342 (info_macros_command): Ditto.
343 (_initialize_macrocmd): Add info macros and info definitions commands.
344 * symtab.c (add_macro_name): Add new arguments to callback.
345
d17b6f81
PM
3462011-07-21 Phil Muldoon <[email protected]>
347 Tom Tromey <[email protected]>
348
349 * top.c (set_prompt): Rewrite to free previous prompt, free
350 asynch_new_prompt and set both on new prompts.
351 * event-top.c (display_gdb_prompt): Add prompt substitution
352 logic.
353 * python/python.c (before_prompt_hook): New function.
354
1364323a 3552011-07-20 Matt Rice <[email protected]>
356
357 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
358 arguments to store_unsigned_integer.
359
8b70b953
TT
3602011-07-20 Tom Tromey <[email protected]>
361
6c83ed52
TT
362 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
363 in some declaration-only cases.
364
3652011-07-18 Tom Tromey <[email protected]>
366
8b70b953
TT
367 PR symtab/12984:
368 * dwarf2read.c (dwarf2_section_info_def): New typedef.
369 (struct dwarf2_per_objfile) <types>: Change to a VEC.
370 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
371 <debug_type_section>: New field.
372 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
373 (load_cu): Use appropriate section.
374 (create_signatured_type_table_from_index): Add 'section'
375 argument.
376 (dwarf2_read_index): Only allow a single .debug_types section.
377 (dw2_get_file_names): Use appropriate section.
378 (read_type_comp_unit_head): Add 'section' argument.
379 (create_debug_types_hash_table): Loop over all .debug_types
380 sections.
381 (init_cu_die_reader): Use appropriate section.
382 (process_psymtab_comp_unit, load_partial_comp_unit)
383 (load_full_comp_unit, read_die_and_children, find_partial_die)
384 (lookup_die_type, determine_prefix, follow_die_offset): Update.
385 (lookup_signatured_type_at_offset): Add 'section' argument.
386 (read_signatured_type_at_offset): Add 'sect' argument.
387 (read_signatured_type): Use appropriate section.
388 (set_die_type, get_die_type_at_offset): Update.
389 (dwarf2_per_objfile_free): Free all .debug_types sections, and
390 VEC.
391 (write_psymtabs_to_index): Don't allow index with more than one
392 .debug_types section.
393
918dd910
JK
3942011-07-19 Jan Kratochvil <[email protected]>
395
396 Fix crash if referenced CU is aged out.
397 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
398 xfree of block.data.
399 (indirect_pieced_value): New variable back_to, use to for xfree of
400 baton.data.
401 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
402 block.data.
403 * dwarf2read.c (dwarf2_find_base_address): New prototype.
404 (load_cu): New function from ...
405 (dw2_do_instantiate_symtab): ... the code here ...
406 (process_full_comp_unit): ... and here.
407 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
408 retval.data.
409
0e37a63c
JK
4102011-07-19 Jan Kratochvil <[email protected]>
411
412 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
413 type.
414
7e324e48
GB
4152011-07-19 Gary Benson <[email protected]>
416
417 * infrun.c (struct execution_control_state): New member
418 stop_func_filled_in.
419 (clear_stop_func, fill_in_stop_func): New functions.
420 (handle_inferior_event): Call clear_stop_func rather than
421 manipulating the execution control state directly.
422 Call fill_in_stop_func lazily as required rather than
423 directly calling find_pc_partial_function in all cases.
424
d48323d8
TT
4252011-07-18 Tom Tromey <[email protected]>
426
427 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
428 checking for variable-sized array.
429
40591b7d
JCD
4302011-07-18 Jean-Charles Delay <[email protected]>
431
432 * varobj.h (varobj_languages): Add vlang_ada definition to the list
433 of supported languages.
434 * varobj.c: Add top definitions and basic implementation of the
435 following callbacks: ada_number_of_children, ada_name_of_variable,
436 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
437 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
438 (languages): Register Ada-specific callbacks.
439 (variable_language): Add the Ada case in the language setter switch.
440
2e424e08
JK
4412011-07-17 Jan Kratochvil <[email protected]>
442
443 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
444
9e8b7a03
JK
4452011-07-15 Jan Kratochvil <[email protected]>
446
447 Code cleanup.
448 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
449 (execute_stack_op): Use dwarf2_frame_ctx_funcs
450 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
451 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
452 get_frame_cfa, get_tls_address and dwarf_call via funcs.
453 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
454 (struct dwarf_expr_context_funcs): New, move here methods from ...
455 (struct dwarf_expr_context): ... here. New fields funcs.
456 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
457 (dwarf_expr_ctx_funcs): New.
458 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
459 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
460 (needs_frame_ctx_funcs): New.
461 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
462
2b1260ab
FM
4632011-07-15 Fawzi Mohamed <[email protected]>
464
465 * MAINTAINERS (Write After Approval): Add myself to the list.
466
8bd90839
FM
4672011-07-15 Fawzi Mohamed <[email protected]>
468
469 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
470 that CIE pointer of an FDE really points to a CIE .
471
953b98d1
HZ
4722011-07-15 Hui Zhu <[email protected]>
473
474 * remote.c (remote_get_trace_status): Add comments.
475
c8f2448a
JK
4762011-07-14 Jan Kratochvil <[email protected]>
477
478 Code cleanup - constify struct lval_funcs.
479 * dwarf2loc.c (pieced_value_funcs): Make it const.
480 * infrun.c (siginfo_value_funcs): Likewise.
481 * opencl-lang.c (opencl_value_funcs): Likewise.
482 * valops.c (value_assign, value_ind): Make the funcs variable const.
483 * value.c (struct value): Make location.computed.funcs target const.
484 Rearrange the comments.
485 (allocate_computed_value): Make the funcs parameter target const.
486 (value_computed_funcs): Return the funcs target const.
487 (value_free, value_copy, set_value_component_location): Make the funcs
488 variable const.
489 * value.h (allocate_computed_value): Make the funcs parameter target
490 const.
491 (value_computed_funcs): Return the funcs target const.
492 * windows-tdep.c (tlb_value_funcs): Make it const.
493
f652de6f
HZ
4942011-07-14 Hui Zhu <[email protected]>
495
496 * remote.c (remote_get_trace_status): Initialize p.
497
67f41397
JK
4982011-07-13 Jan Kratochvil <[email protected]>
499
500 Work around kgdb.
501 * remote.c (remote_get_trace_status): New variable ex. Put
502 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
503
d1b66e6d
TT
5042011-07-13 Tom Tromey <[email protected]>
505
506 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
507 value_from_contents for final conversion.
508
1632a688
JK
5092011-07-13 Jan Kratochvil <[email protected]>
510
511 Code cleanup.
512 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
513 Indent prototypes so they do not get into tags.
514
a7035dbb
JK
5152011-07-12 Jan Kratochvil <[email protected]>
516
517 Code cleanup making also optimized out values lazy.
518 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
519 allocate_optimized_out_value. Twice.
520 (loclist_read_variable) Use allocate_optimized_out_value. Once.
521 * findvar.c (read_var_value): Likewise.
522 * value.c (allocate_optimized_out_value): New function.
523 * value.h (allocate_optimized_out_value): New declaration.
524
d07ed419
JK
5252011-07-12 Jan Kratochvil <[email protected]>
526
527 Fix occasional crash of CTRL-C during DWARF read in.
528 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
529
86d31898
TT
5302011-07-11 Tom Tromey <[email protected]>
531
532 * regcache.c (struct regcache_descr): Fix typo.
533 * i387-tdep.c (i387_supply_xsave): Fix typo.
534
2ab95328
TT
5352011-07-11 Tom Tromey <[email protected]>
536
537 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
538 (read_file_scope, read_type_unit_scope): Use it.
539
04ad99e6
JK
5402011-07-11 Jan Kratochvil <[email protected]>
541
542 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
543 `int'.
544
713389e0
PM
5452011-07-11 Phil Muldoon <[email protected]>
546
547 PR python/12438
548 * python/python.c: Set gdbpy_should_print_stack default to off.
549 (set_python): Deprecate maint set python print-stack to
550 class_deprecate.
551 (_initialize_python): Deprecate maint set/show python print-stack.
552 Add new prefix command, python. Add new setting, print-backtrace.
553 * NEWS: Document set python print-stack. Document default change.
554
754eadd1
PM
5552011-07-11 Phil Muldoon <[email protected]>
556
557 * python/py-inferior.c (infpy_dealloc): New function.
558 (inferior_to_inferior_object): Return a new object, or a
559 new reference to the existing object.
560 (find_thread_object): Cleanup references to inferior.
561 (delete_thread_object): Ditto.
562 * python/py-infthread.c (create_thread_object): Do not increment
563 inferior reference count.
564
5e44ecb3
TT
5652011-07-08 Tom Tromey <[email protected]>
566
567 * dwarf2loc.c (locexpr_regname): New function.
568 (locexpr_describe_location_piece): Use it.
569 (disassemble_dwarf_expression): Add per_cu argument. Use
570 locexpr_regname.
571 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
572 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
573 New cases.
574 (locexpr_describe_location_1): Add per_cu argument.
575 (locexpr_describe_location): Update.
576 (loclist_describe_location): Update.
577
e0e9434c
TT
5782011-07-08 Tom Tromey <[email protected]>
579
580 * dwarf2expr.c (execute_stack_op): Add QUIT.
581
26afc0d7
HZ
5822011-07-07 Hui Zhu <[email protected]>
583
584 Revert:
585 2011-07-06 Hui Zhu <[email protected]>
586 * remote.c (remote_start_remote): Add TRY_CATCH for
587 remote_get_trace_status.
588 * tracepoint.c (disconnect_tracing): Ditto.
589
a40a111f
AB
5902011-07-07 Andrew Burgess <[email protected]>
591
592 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
593 variables as signed, not unsigned.
594
e2bd3b15
JB
5952011-07-06 Joel Brobecker <[email protected]>
596
597 * jit.c (jit_inferior_init): Reformat forward declaration.
598
e3d961fe 5992011-07-06 Matt Rice <[email protected]>
600
601 * MAINTAINERS (Write After Approval): Add myself to the list.
602
0f3428f0
HZ
6032011-07-06 Hui Zhu <[email protected]>
604
605 * remote.c (remote_start_remote): Add TRY_CATCH for
606 remote_get_trace_status.
607 * tracepoint.c (disconnect_tracing): Ditto.
608
fc9f3a69
TT
6092011-07-05 Tom Tromey <[email protected]>
610
611 * symtab.c (operator_chars): Now static.
612 * linespec.c (operator_chars): Don't declare.
613
26e519b9
TJB
6142011-07-05 Thiago Jung Bauermann <[email protected]>
615
616 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
617
eb2a6f42
TT
6182011-07-05 Tom Tromey <[email protected]>
619
620 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
621 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
622 (TYPE_CPLUS_REALLY_JAVA): New macro.
623 * dwarf2read.c (process_structure_scope): Set
624 TYPE_CPLUS_REALLY_JAVA.
625
21083d0f 6262011-07-05 Thiago Jung Bauermann <[email protected]>
177b42fe
TJB
627
628 * ada-lang.c: Fix typos.
629 * amd64-tdep.c: Likewise.
630 * breakpoint.c: Likewise.
631 * cli/cli-decode.c: Likewise.
632 * findcmd.c: Likewise.
633 * inline-frame.c: Likewise.
634 * mi/mi-main.c: Likewise.
635 * minsyms.c: Likewise.
636 * monitor.c: Likewise.
637 * monitor.h: Likewise.
638 * prologue-value.c: Likewise.
639 * reverse.c: Likewise.
640 * s390-tdep.c: Likewise.
641
3b2a0cf2
JB
6422011-07-06 Paul Pluzhnikov <[email protected]>
643
644 * jit.c (jit_inferior_init): Forward declare.
645 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
646
efae1d92
JB
6472011-07-04 Joel Brobecker <[email protected]>
648
649 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
650
6040a59d
JB
6512011-07-04 Tristan Gingold <[email protected]>
652
653 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
654 (tcb_fieldno): Add activation_link field.
655 (get_known_tasks_addr): Moved and rewritten.
656 (get_tcb_types_info): Set activation_link field.
657 (read_known_tasks_array): Add parameter. Rewritten.
658 (read_known_tasks_list): New function.
659 (read_known_tasks): New function.
660 (ada_build_task_list): Call read_known_tasks instead of
661 read_known_tasks_array.
662 * ravenscar-thread.c: Add first_task_name constant.
663 (has_ravenscar_runtime): Check for task list too.
664
cb741e45
JB
6652011-07-04 Tristan Gingold <[email protected]>
666
667 * ada-tasks.c: Renames fieldno to actb_fieldno.
668 (ada_get_task_number): Indentation.
669 (get_tcb_types_info): Remove all parameters. Write directly
670 the globals.
671 (ptid_from_atcb_common): Adjust.
672 (read_atcb): Adjust.
673
7475b06c
TJB
6742011-07-04 Thiago Jung Bauermann <[email protected]>
675
676 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
677
15230f37
TJB
6782011-07-04 Thiago Jung Bauermann <[email protected]>
679
680 * ui-out.c (ui_out_field_core_addr): Mention that the function
681 description is in the header file.
682 * ui-out.h (ui_out_field_core_addr): Document function.
683
65743aba
TJB
6842011-07-04 Thiago Jung Bauermann <[email protected]>
685
686 * ui-out.c (ui_out_get_field_separator): Remove unused function.
687 * ui-out.h (ui_out_get_field_separator): Remove prototype.
688
c37a5aab
TJB
6892011-07-04 Thiago Jung Bauermann <[email protected]>
690
691 * symtab.c (expand_line_sal): Remove empty line.
692
59adf69e
TS
6932011-07-04 Thomas Schwinge <[email protected]>
694
695 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
696 same way as ELFOSABI_NONE.
697 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
698
e5dd4106
TJB
6992011-07-04 Thiago Jung Bauermann <[email protected]>
700
701 * breakpoint.c: Fix typos in comments.
702 * linespec.c: Likewise.
703 * symtab.c: Likewise.
704
d40102a1
JB
7052011-07-04 Joel Brobecker <[email protected]>
706
707 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
708 section in separate object files.
709
2f741504
JK
7102011-07-04 Jan Kratochvil <[email protected]>
711
712 Fix false GCC warning.
713 * linespec.c (decode_line_1): Initialize values.
714
418c7cf7
JK
7152011-07-01 Jan Kratochvil <[email protected]>
716
717 * linespec.c (find_method): Accept the function type automatically only
718 if it was specified with parameter types.
719
3d50dd94
JK
7202011-07-01 Jan Kratochvil <[email protected]>
721
722 Stop on first linespec terminator instead of eating what we can.
723 * linespec.c (is_linespec_boundary): New function.
724 (name_end): Remove function.
725 (keep_name_info): New parameter on_boundary, replace the body.
726 (decode_line_1): Provide the parameter to keep_name_info.
727 (decode_compound): Likewise. Drop the trailing java return type
728 handling. Twice.
729
dcf9f4ab
JK
7302011-07-01 Jan Kratochvil <[email protected]>
731
732 Fall back linespec to minimal symbols.
733 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
734 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
735 (find_method, symbol_found): Change error to cplusplus_error.
736
3f542ed1
JK
7372011-07-01 Jan Kratochvil <[email protected]>
738
bc68c4e5 739 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 740
900e11f9
JK
7412011-07-01 Jan Kratochvil <[email protected]>
742 Tom Tromey <[email protected]>
743
744 * dwarf2read.c (check_physname): New variable.
745 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
746 (show_check_physname): New function.
747 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
748
2301925d
JB
7492011-07-01 Joel Brobecker <[email protected]>
750
751 * machoread.c (macho_symfile_read): Delete OBE comment.
752
38947cca
JB
7532011-07-01 Joel Brobecker <[email protected]>
754
755 * machoread.c (struct macho_oso_data): Delete.
756 (current_oso): Delete.
757 (macho_relocate_common_syms): New function, mostly extracted
758 out of
759 (macho_add_oso_symfile): Call macho_relocate_common_syms.
760 Remove code that sets and unset current_oso.
761 (macho_symfile_relocate): Delete handling of common symbols,
762 now moved to macho_relocate_common_syms.
763
a7aa0d73
JB
7642011-07-01 Joel Brobecker <[email protected]>
765
766 * darwin-nat.c (darwin_ptrace): Add documentation.
767 Set errno to zero before calling ptrace. If ptrace returns
768 -1 and errno is zero, then change then return zero.
769 (darwin_kill_inferior): Issue a warning instead of triggering
770 a failed assertion when the PT_KILL ptrace operations returned
771 nonzero.
772
5e9bc145
JB
7732011-07-01 Joel Brobecker <[email protected]>
774
775 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
776 only when inf->private->no_ptrace.
777
00eb2c4a
JB
7782011-07-01 Joel Brobecker <[email protected]>
779
780 * ada-lang.c (print_it_exception): Print temporary catchpoints
781 as "Temporary catchpoint".
782 (print_mention_exception): Likewise.
783
127c81bc
TT
7842011-07-01 Tom Tromey <[email protected]>
785
786 * jv-lang.c (java_language_defn): Use java_printchar,
787 java_printstr.
788 (java_get_encoding): New function.
789 (java_emit_char): Use generic_emit_char.
790 (java_printchar): New function.
791 (java_printstr): Likewise.
792
25552254
JB
7932011-07-01 Joel Brobecker <[email protected]>
794
795 * ada-typeprint.c (print_record_type): If unable to decode
796 the name of the parent type, use the encoded name.
797
d2d43431
JB
7982011-07-01 Jean-Charles Delay <[email protected]>
799
800 * ada-typeprint.c (ada_print_type): Fix both PAD type and
801 pointer to constrained packed array type output.
802 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
803 packed array output.
804
54ae186f
JB
8052011-07-01 Jean-Charles Delay <[email protected]>
806
807 * ada-typeprint.c (print_array_type): removed if condition on show
808 being negative for bounds printing.
809
8f17729f
JB
8102011-07-01 Joel Brobecker <[email protected]>
811
812 * ada-lang.c (ada_identical_enum_types_p): New function.
813 (symbols_are_identical_enums): New function.
814 (remove_extra_symbols): Do nothing if NSYMS < 2.
815 Use symbols_are_identical_enums.
816
f5aa6869
JB
8172011-07-01 Joel Brobecker <[email protected]>
818
819 * ada-valprint.c (ada_value_print): Handle typedefs.
820
8f465ea7
JB
8212011-07-01 Joel Brobecker <[email protected]>
822
823 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
824
828292f2
JB
8252011-07-01 Eric Botcazou <[email protected]>
826
827 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
828 (decode_constrained_packed_array): Likewise.
829 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
830
18920c42
JB
8312011-07-01 Joel Brobecker <[email protected]>
832
833 * ada-exp.y (convert_char_literal): Handle typedef types.
834
c90092fe
JB
8352011-07-01 Joel Brobecker <[email protected]>
836
837 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
838
f748fb40
TT
8392011-06-30 Tom Tromey <[email protected]>
840
841 * varobj.c (varobj_create): Call do_cleanups on early exit path.
842 * valops.c (find_overload_match): Call do_cleanups on early exit
843 path.
844 * solib.c (solib_find): Call do_cleanups on early exit path.
845
3bb47e8b
TT
8462011-06-30 Tom Tromey <[email protected]>
847
848 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
849 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
850 return paths. Defer final do_cleanups until last return.
851 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
852 early return.
853
4727bad3
TT
8542011-06-30 Tom Tromey <[email protected]>
855
856 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
857
bb361dbf
AB
8582011-06-30 Andrew Burgess <[email protected]>
859
860 * MAINTAINERS (Write After Approval): Add myself to the list.
861
e0d00bc7
JK
8622011-06-29 Jan Kratochvil <[email protected]>
863
864 Disable epilogue unwinders on recent GCCs.
865 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
866 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
867 * dwarf2read.c (process_full_comp_unit): Initialize
868 EPILOGUE_UNWIND_VALID.
869 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
870 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
871 * symtab.h (struct symtab): New field epilogue_unwind_valid.
872
4632c0d0
JK
8732011-06-29 Jan Kratochvil <[email protected]>
874
875 Code cleanup - reformatting.
876 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
877 (producer_is_gcc_ge_4): ... here, change the return value.
878 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
879 interpretation.
880
32019081
JK
8812011-06-29 Jan Kratochvil <[email protected]>
882
883 Fix non-only rename list for Fortran modules import.
884 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
885 cp_add_using_directive caller.
886 (cp_add_using_directive): New parameter excludes, describe it. New
887 variables ix and param. Compare if also excludes match. Allocate NEW
888 with variable size, initialize EXCLUDES there.
889 (cp_lookup_symbol_imports): New variable excludep, test
890 current->EXCLUDES with it.
891 * cp-support.h: Include vec.h.
892 (struct using_direct): New field excludes, describe it.
893 (DEF_VEC_P (const_char_ptr)): New.
894 (cp_add_using_directive): New parameter excludes.
895 * defs.h (const_char_ptr): New typedef.
896 * dwarf2read.c (read_import_statement): New variables child_die,
897 excludes and cleanups, read in excludes.
898 (read_namespace): Adjust the cp_add_using_directive caller.
899
70c622a3
JK
9002011-06-29 Jan Kratochvil <[email protected]>
901
902 Code cleanup.
903 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
904 negative comparisons.
905
39c4d40a
TT
9062011-06-29 André Pönitz <[email protected]>
907
908 * mi/mi-main.c (mi_cmd_list_features): Emit
909 breakpoint-notifications.
910
3b2b8fea
TT
9112011-06-29 Tom Tromey <[email protected]>
912
913 PR fortran/10036:
914 * valprint.h (generic_emit_char, generic_printstr): Declare.
915 * valprint.c (wchar_printable, append_string_as_wide)
916 (print_wchar): Move from c-lang.c.
917 (generic_emit_char): New function; mostly taken from c_emit_char.
918 (generic_printstr): New function; mostly taken from c_printstr.
919 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
920 represented as arrays.
921 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
922 type.
923 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
924 identically to TYPE_CODE_INT.
925 * f-lang.c (f_get_encoding): New function.
926 (f_emit_char): Use generic_emit_char.
927 (f_printchar): Replace comment.
928 (f_printstr): Use generic_printstr.
929 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
930 "character" types specially.
931 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
932 for Fortran.
933 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
934 Move to valprint.c
935 (c_emit_char): Call generic_emit_char.
936 (c_printstr): Call generic_printstr.
937
168e6d44
GB
9382011-06-29 Gary Benson <[email protected]>
939
940 * breakpoint.c (bpstat_what): Removed duplicated case.
941
1c033f8c
TT
9422011-06-28 Tom Tromey <[email protected]>
943
944 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
945
5fe41fbf
TT
9462011-06-27 Tom Tromey <[email protected]>
947
948 * valops.c (find_overload_match): Call do_cleanups before early
949 return.
950 * top.c (execute_command): Call do_cleanups before early return.
951 (command_loop): Likewise.
952 * stack.c (backtrace_command): Make a null cleanup early. Don't
953 conditionally call do_cleanups.
954 * python/py-value.c (TRY_CATCH): Move cleanup handling into
955 TRY_CATCH.
956 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
957 so cleanups are always run.
958 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
959 * findcmd.c (parse_find_args): Call do_cleanups on early return
960 path.
961 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
962 Don't conditionally call do_cleanups.
963 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
964 later.
965
e26bd57d
EB
9662011-06-27 Eric Botcazou <[email protected]>
967
968 * MAINTAINERS (Write After Approval): Use default email address.
969
6c3097fc
JB
9702011-06-27 Joel Brobecker <[email protected]>
971
972 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
973
369c397b
JB
9742011-06-27 Eric Botcazou <[email protected]>
975
976 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
977 saved_regs_mask and copied_regs_mask fields.
978 (sparc_record_save_insn): New prototype.
979 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
980 (sparc_record_save_insn): New function.
981 (sparc_analyze_prologue): Add head comment. Recognize store insns
982 of call-saved registers. Use OFFSET consistently. Recognize flat
983 frames and cache their settings.
984 (sparc32_skip_prologue): Handle flat frames.
985 (sparc_frame_cache): Add frame_offset to the base address.
986 (sparc32_frame_cache): Adjust to new frame description.
987 (sparc32_frame_prev_register): Likewise.
988 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
989 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
990 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
991 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
992 frame by calling sparc_record_save_insn.
993 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
994 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
995 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
996
b315ab21
TG
9972011-06-27 Tristan Gingold <[email protected]>
998
999 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
1000 field by map_addr and map_len.
1001 (dwarf2_read_section): Adjust for the new bfd_mmap api.
1002 (munmap_section_buffer): Likewise.
1003
ddd49eee
TT
10042011-06-24 Tom Tromey <[email protected]>
1005
1006 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
1007 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1008 * python/python.c (gdbpy_parameter): Make 'arg' const.
1009 (execute_gdb_command): Likewise.
1010 (gdbpy_decode_line): Likewise. Copy it.
1011 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
1012 (gdbpy_write): Make 'arg' const.
1013 * python/py-type.c (typy_lookup_typename): Make 'type_name'
1014 const.
1015 (gdbpy_lookup_type): Likewise.
1016 * python/py-prettyprint.c (print_children): Make 'name' const.
1017 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
1018 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
1019 Py_ssize_t.
1020 * python/py-function.c (fnpy_init): Make 'name' const.
1021 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
1022 (gdbpy_string_to_argv): Make 'input' const.
1023 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
1024 it.
1025 * gdbtypes.h (lookup_typename): Update.
1026 * gdbtypes.c (lookup_typename): Make 'name' const.
1027 (lookup_struct): Likewise.
1028 (lookup_union): Likewise.
1029 (lookup_enum): Likewise.
1030
5998129b
TT
10312011-06-24 Tom Tromey <[email protected]>
1032
1033 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
1034 gdb_thread_db.h. Move all common/ entries to be together.
1035 (TAGS): Don't depend on DEPFILES.
1036
6e586cc5
YQ
10372011-06-23 Yao Qi <[email protected]>
1038
1039 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
1040 * remote.c (remote_start_remote): ... here.
1041 * monitor.c (monitor_open): ... here.
1042
86c3c1fc
AB
10432011-06-23 Andrew Burgess <[email protected]>
1044
1045 * gdbtypes.c (append_composite_type_field_aligned): Fix
1046 calculation of bit position based on alignment.
1047
28010a5d
PA
10482011-06-22 Pedro Alves <[email protected]>
1049
1050 * breakpoint.c (bpstat_stop_status): Call the check_status
1051 breakpoint_ops method.
1052 (print_one_breakpoint_location): Also print the condition for Ada
1053 exception catchpoints.
1054 (allocate_bp_location): New, factored out from
1055 allocate_bp_location.
1056 (allocate_bp_location): Adjust. Call the owner breakpoint's
1057 allocate_location method, if there is one.
1058 (free_bp_location): Call the locations's dtor method, if there is
1059 one.
1060 (init_raw_breakpoint_without_location): New breakpoint_ops
1061 parameter. Use it.
1062 (set_raw_breakpoint_without_location): Adjust.
1063 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
1064 (set_raw_breakpoint): Adjust.
1065 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1066 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
1067 re_set and check_status methods.
1068 (init_catchpoint): Don't memset, initialize thread, addr_string
1069 and enable_state. Pass the ops down to init_raw_breakpoint.
1070 (install_catchpoint): Rename to ...
1071 (install_breakpoint): ... this, and make extern.
1072 (create_fork_vfork_event_catchpoint): Adjust.
1073 (catch_exec_breakpoint_ops): Install NULL allocate_location,
1074 re_set and check_status methods.
1075 (create_syscall_event_catchpoint): Adjust.
1076 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1077 (masked_watchpoint_breakpoint_ops): Install NULL
1078 allocate_location, re_set and check_status methods.
1079 (catch_exec_command_1): Adjust.
1080 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
1081 re_set and check_status methods.
1082 (create_ada_exception_breakpoint): Rename to ...
1083 (init_ada_exception_breakpoint): ... this. Add a struct
1084 breakpoint parameter, and delete the exp_string, cond_string and
1085 cond parameters. Use init_raw_breakpoint, and don't install or
1086 mention the breakpoint yet. Don't clear breakpoint fields that
1087 init_raw_breakpoint already clears.
1088 (re_set_breakpoint): Delete, split into ...
1089 (breakpoint_re_set_default, prepare_re_set_context): ... these new
1090 functions.
1091 (breakpoint_re_set_one): Call the breakpoint's
1092 breakpoint_ops->re_set implementation, if there's one. Adjust.
1093 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
1094 (struct bp_location_ops): New type.
1095 (struct bp_location): New field `ops'.
1096 (struct breakpoint_ops): New `allocate_location', `re_set' and
1097 `check_status' fields. Make `breakpoint_hit''s description match
1098 reality.
1099 (init_bp_location): Declare.
1100 (breakpoint_re_set_default): Declare.
1101 (create_ada_exception_breakpoint): Rename to ...
1102 (init_ada_exception_breakpoint): ... this. Add a struct
1103 breakpoint parameter, and delete the exp_string, cond_string and
1104 cond parameters.
1105 (install_breakpoint): Declare.
1106 * ada-lang.c: Include exceptions.h.
1107 <Ada exceptions description>: Update.
1108 (struct ada_catchpoint_location): New type.
1109 (ada_catchpoint_location_dtor): New function.
1110 (ada_catchpoint_location_ops): New global.
1111 (ada_catchpoint): New type.
1112 (create_excep_cond_exprs): New function.
1113 (dtor_exception, allocate_location_exception, re_set_exception)
1114 (should_stop_exception, check_status_exception): New functions.
1115 (print_one_exception, print_mention_exception)
1116 (print_recreate_exception): Adjust.
1117 (dtor_catch_exception, allocate_location_catch_exception)
1118 (re_set_catch_exception, check_status_catch_exception): New
1119 functions.
1120 (catch_exception_breakpoint_ops): Install them.
1121 (dtor_catch_exception_unhandled)
1122 (allocate_location_catch_exception_unhandled)
1123 (re_set_catch_exception_unhandled)
1124 (check_status_catch_exception_unhandled): New functions.
1125 (catch_exception_unhandled_breakpoint_ops): Install them.
1126 (dtor_catch_assert, allocate_location_catch_assert)
1127 (re_set_catch_assert, check_status_catch_assert): New functions.
1128 (catch_assert_breakpoint_ops): Install them.
1129 (ada_exception_catchpoint_p): Delete.
1130 (catch_ada_exception_command_split)
1131 (ada_exception_catchpoint_cond_string): Rename exp_string
1132 parameter to excep_string. Adjust.
1133 (ada_parse_catchpoint_condition): Delete.
1134 (ada_exception_sal): Rename the exp_string parameter to
1135 excep_string. Delete the cond_string and cond parameters.
1136 Adjust.
1137 (ada_decode_exception_location): Rename the exp_string parameter
1138 to excep_string. Delete the cond_string and cond parameters.
1139 Adjust.
1140 (create_ada_exception_catchpoint): New function.
1141 (catch_ada_exception_command, ada_decode_assert_location)
1142 (catch_assert_command): Adjust.
1143 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
1144
9ac4176b
PA
11452011-06-22 Pedro Alves <[email protected]>
1146
1147 * ada-lang.c: Include arch-utils.h.
1148 (ada_decode_exception_location): Make static.
1149 (catch_ada_exception_command): Moved here from breakpoint.c.
1150 (ada_decode_assert_location): Make static.
1151 (catch_assert_command): Moved here from breakpoint.c.
1152 (_initialize_ada_lang): Install the exception and assert
1153 catchpoint commands here.
1154 * ada-lang.h (ada_decode_exception_location)
1155 (ada_decode_assert_location): Delete declarations.
1156 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
1157 breakpoint.h.
1158 (create_ada_exception_breakpoint): Make extern.
1159 (catch_ada_exception_command, catch_assert_command): Moved to
1160 ada-lang.c.
1161 (add_catch_command): Make extern.
1162 (_initilize_breakpoint): Don't install the exception and assert
1163 catchpoint commands here.
1164 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
1165 breakpoint.c
1166 (add_catch_command, create_ada_exception_breakpoint): Declare.
1167
c56053d2
PA
11682011-06-22 Pedro Alves <[email protected]>
1169
1170 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
1171 the breakpoint to the breakpoint chain here.
1172 (set_raw_breakpoint_without_location): Add the breakpoint to the
1173 breakpoint chain here.
1174 (init_raw_breakpoint): Adjust comments.
1175 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
1176 here.
1177 (init_catchpoint): Don't set the catchpoint's breakpoint number
1178 here.
1179 (install_catchpoint): New function.
1180 (create_fork_vfork_event_catchpoint)
1181 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
1182 use install_catchpoint.
1183
d2f3fc74
PA
11842011-06-22 Pedro Alves <[email protected]>
1185
1186 * breakpoint.c (create_catchpoint_without_mention)
1187 (create_catchpoint): Delete.
1188
b4d90040
PA
11892011-06-22 Pedro Alves <[email protected]>
1190
1191 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
1192 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1193 reference to exec_pathname.
1194 (struct exec_catchpoint): New type.
1195 (dtor_catch_exec): New function.
1196 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
1197 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
1198 (catch_exec_command_1): Adjust to use init_catchpoint.
1199 (delete_breakpoint): Remove reference to exec_pathname.
1200
be5c67c1
PA
12012011-06-22 Pedro Alves <[email protected]>
1202
1203 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
1204 (struct breakpoint): Delete field `syscalls_to_be_caught'.
1205 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1206 reference to syscalls_to_be_caught.
1207 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
1208 NULL `dtor'.
1209 (struct syscall_catchpoint): New type.
1210 (dtor_catch_syscall): New function.
1211 (insert_catch_syscall, remove_catch_syscall)
1212 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
1213 (print_recreate_catch_syscall): Adjust.
1214 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
1215 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
1216 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
1217 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1218 (masked_watchpoint_breakpoint_ops)
1219 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
1220 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
1221 there is one. Remove references to syscalls_to_be_caught.
1222 (catching_syscall_number): Adjust.
1223 * ada-lang.c (catch_exception_breakpoint_ops)
1224 (catch_exception_unhandled_breakpoint_ops)
1225 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
1226
e29a4733
PA
12272011-06-22 Pedro Alves <[email protected]>
1228
1229 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
1230 field.
1231 * breakpoint.c (init_raw_breakpoint_without_location): Remove
1232 reference to forked_inferior_pid.
1233 (struct fork_catchpoint): New type.
1234 (breakpoint_hit_catch_fork, print_it_catch_fork)
1235 (print_one_catch_fork, breakpoint_hit_catch_vfork)
1236 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
1237 (create_fork_vfork_event_catchpoint): Adjust to use
1238 init_catchpoint.
1239
346774a9
PA
12402011-06-22 Pedro Alves <[email protected]>
1241
1242 * breakpoint.c (add_to_breakpoint_chain)
1243 (init_raw_breakpoint_without_location): New functions, factored
1244 out from ...
1245 (set_raw_breakpoint_without_location): ... this one.
1246 (init_raw_breakpoint): New function, factored out from
1247 set_raw_breakpoint and adjusted to use
1248 init_raw_breakpoint_without_location.
1249 (set_raw_breakpoint): Adjust.
1250 (init_catchpoint): New function, factored out from
1251 create_catchpoint_without_mention and adjusted to use
1252 init_raw_breakpoint.
1253 (create_catchpoint_without_mention): Adjust.
1254
c38c4bc5
TT
12552011-06-22 Tom Tromey <[email protected]>
1256
1257 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
1258 argument of 0 specially.
1259
b138ce37
YQ
12602011-06-22 Yao Qi <[email protected]>
1261
1262 * infrun.c (handle_inferior_event): Remove write-only local variable
1263 `sw_single_step_trap_p'.
1264
03de6823
TT
12652011-06-20 Tom Tromey <[email protected]>
1266
1267 * symtab.c (lookup_language_this): End loop if block is NULL.
1268
66a17cb6
TT
12692011-06-17 Tom Tromey <[email protected]>
1270
1271 * valops.c (value_of_this): Use lookup_language_this.
1272 * symtab.h (lookup_language_this): Declare.
1273 * symtab.c (lookup_language_this): New function.
1274 (lookup_symbol_aux): Use lookup_language_this.
1275 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
1276
7518bff5
TT
12772011-06-17 Tom Tromey <[email protected]>
1278
1279 * value.h (value_of_this): Update.
1280 (value_of_local): Remove.
1281 * valops.c (value_of_this): Rename from value_of_local. Change
1282 parameters.
1283 * p-exp.y (exp): Update.
1284 (variable): Likewise.
1285 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
1286
aee28ec6
TT
12872011-06-17 Tom Tromey <[email protected]>
1288
1289 * valops.c (value_of_local): Complain if NAME is NULL.
1290 * std-operator.def (OP_OBJC_SELF): Remove.
1291 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
1292 * objc-exp.y (name_not_typename): Use OP_THIS.
1293 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
1294 name for "this".
1295 <OP_OBJC_SELF>: Remove.
1296 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
1297
eed8f803
TG
12982011-06-16 Tristan Gingold <[email protected]>
1299
1300 * python/py-events.h (gdb_py_events): Make it extern.
1301 * python/py-evtregistry.c (gdb_py_events): Declare.
1302
864ac8a7
HZ
13032011-06-16 Hui Zhu <[email protected]>
1304
1305 * remote.c (remote_trace_set_readonly_regions): Add check for
1306 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
1307 output warning.
1308
ef7e8358
UW
13092011-06-15 Ulrich Weigand <[email protected]>
1310
1311 * arm-linux-tdep.c: Include "auxv.h".
1312 (AT_HWCAP): Define.
1313 (ARM_LINUX_SIZEOF_VFP): Define.
1314 (arm_linux_supply_vfp): New function.
1315 (arm_linux_collect_vfp): Likewise.
1316 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
1317 (arm_linux_fpa_regset_sections): New variable.
1318 (arm_linux_vfp_regset_sections): Likewise.
1319 (arm_linux_core_read_description): New function.
1320 (arm_linux_init_abi): Install arm_linux_core_read_description and
1321 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
1322 appropriate for the architecture.
1323 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
1324 (tdesc_arm_with_m): Declare.
1325 (tdesc_arm_with_iwmmxt): Likewise.
1326 (tdesc_arm_with_vfpv2): Likewise.
1327 (tdesc_arm_with_vfpv3): Likewise.
1328 (tdesc_arm_with_neon): Likewise.
1329 * arm-linux-nat.c: Move features/*.c includes ...
1330 * arm-tdep.c: ... here.
1331 * arm-linux-nat.c (arm_linux_read_description): Move initializing
1332 target description data structures ...
1333 * arm-tdep.c (_initialize_arm_tdep): ... here.
1334 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
1335 HWCAP_VFPv3D16): Move definitions ...
1336 * arm-linux-tdep.h: ... here.
1337
c2fa21f1
HZ
13382011-06-15 Hui Zhu <[email protected]>
1339
1340 * remote.c (remote_trace_set_readonly_regions): Add a check for
1341 target_buf_size.
1342
dd707e8e
TT
13432011-06-14 Tom Tromey <[email protected]>
1344
1345 * coffread.c (coffread_objfile): Rename from current_objfile.
1346 * dbxread.c (dbxread_objfile): Rename from current_objfile.
1347 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
1348
86cc0029
TT
13492011-06-14 Tom Tromey <[email protected]>
1350
1351 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
1352 (class_symtab): Remove.
1353 (jv_dynamics_progspace_key): New global.
1354 (jv_per_objfile_free): Reset program space data. Update assert.
1355 Don't clear globals.
1356 (get_dynamics_objfile): Use and set program space data.
1357 (get_java_class_symtab): Use get_dynamics_objfile.
1358 (add_class_symbol): Likewise.
1359 (java_link_class_type): Likewise.
1360 (java_object_type, jv_clear_object_type, set_java_object_type):
1361 Remove.
1362 (get_java_object_type): Update. Don't cache result.
1363 (is_object_type): Don't call set_java_object_type.
1364 (_initialize_java_language): Don't set jv_type_objfile_data_key;
1365 initialize jv_dynamics_progspace_key.
1366
91a81f69
TT
13672011-06-14 Tom Tromey <[email protected]>
1368
1369 * symtab.h (current_objfile): Don't declare.
1370 * objfiles.h (current_objfile): Don't declare.
1371 * objfiles.c (current_objfile): Remove.
1372 * mdebugread.c (current_objfile): New file-scope global.
1373 * dbxread.c (current_objfile): New file-scope global.
1374 * coffread.c (current_objfile): New file-scope global.
1375
dc7eb48e
PA
13762011-06-13 Pedro Alves <[email protected]>
1377
1378 * top.h (line): Rename to ...
1379 (saved_command_line): ... this.
1380 (linesize): Rename to ...
1381 (saved_command_line_size): ... this.
1382 * top.c (line): Rename to ...
1383 (saved_command_line): ... this.
1384 (linesize): Rename to ...
1385 (saved_command_line_size): ... this.
1386 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
1387 * event-top.c (command_line_handler): Adjust.
1388 * main.c (captured_main): Adjust.
1389
0d6c2135
MK
13902011-06-12 Mark Kettenis <[email protected]>
1391
1392 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
1393 get_frame_func instead of get_frame_pc to determine the code
1394 address used to construct the frame ID.
1395 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
1396 (i386_epilogue_frame_this_id): Likewise.
1397 (i386_epilogue_frame_prev_register): New function.
1398 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
1399 (i386_stack_tramp_frame_sniffer): Fix coding style.
1400 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
1401 (i386_gdbarch_init): Fix comments.
1402
8bbdd3f4
MK
14032011-06-12 Mark Kettenis <[email protected]>
1404
1405 * i386-tdep.c (i386_match_insn_block): Use length of the proper
1406 instruction when walking back through the instruction stream.
1407
533a737e
JK
14082011-06-10 Jan Kratochvil <[email protected]>
1409
1410 * symtab.c (output_partial_symbol_filename): Exchange the filename and
1411 fullname parameters order.
1412
44b13c5a
JK
14132011-06-10 Jan Kratochvil <[email protected]>
1414
1415 Code cleanup.
1416 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
1417 for fun.
1418 * psymtab.c (map_symbol_filenames_psymtab)
1419 (map_partial_symbol_filenames): Likewise.
1420 * psymtab.h: Include symfile.h.
1421 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
1422 * symfile.h (symbol_filename_ftype): New.
1423 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
1424 map_symbol_filenames, clarify more the naming in comment.
1425
0b5574da
DE
14262011-06-07 Doug Evans <[email protected]>
1427
1428 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 1429 Look for ../../gdb, for fullname.exp.
0b5574da 1430
5be4dfca
JK
14312011-06-07 Jan Kratochvil <[email protected]>
1432 Pedro Alves <[email protected]>
1433
1434 * cli/cli-cmds.c (shell_escape): Use waitpid.
1435 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
1436
316a8b21
TG
14372011-06-07 Tristan Gingold <[email protected]>
1438
1439 * xcoffread.c (dwarf2_xcoff_names): New variable.
1440 (aix_process_linenos): Add a guard.
1441 (xcoff_symfile_finish): Free dwarf2.
1442 (xcoff_initial_scan): Add dwarf2 support.
1443
3dd5b83d
PA
14442011-06-06 Pedro Alves <[email protected]>
1445
1446 * infcall.c (run_inferior_call): Don't mask async. Instead force
1447 a synchronous wait, if the target can async.
1448
1449 * target.h (struct target_ops): Delete to_async_mask.
1450 (target_async_mask): Delete.
1451 * target.c (update_current_target): Delete references to to_async_mask.
1452 * linux-nat.c (linux_nat_async_mask_value): Delete.
1453 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
1454 to linux_nat_async_mask_value.
1455 (linux_nat_async_mask): Delete.
1456 (linux_nat_async, linux_nat_close): Remove references to
1457 linux_nat_async_mask_value.
1458 * record.c (record_async_mask_value): Delete.
1459 (record_async): Remove references to record_async_mask_value.
1460 (record_async_mask): Delete.
1461 (record_can_async_p, record_is_async_p): Remove references to
1462 record_async_mask_value.
1463 (init_record_ops, init_record_core_ops): Remove references to
1464 record_async_mask.
1465 * remote.c (remote_async_mask_value): Delete.
1466 (init_remote_ops): Remove reference to remote_async_mask.
1467 (remote_can_async_p, remote_is_async_p): Remove references to
1468 remote_async_mask_value.
1469 (remote_async): Remove references to remote_async_mask_value.
1470 (remote_async_mask): Delete.
1471
1472 * infrun.c (fetch_inferior_event): Don't claim registers changed
1473 if the current thread is already not executing.
1474
64b9b334
JB
14752011-06-03 Joel Brobecker <[email protected]> (obvious fix)
1476
1477 From Stephen Kitt <[email protected]>
1478 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
1479 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
1480
325663dc
JB
14812011-06-03 Joel Brobecker <[email protected]>
1482
1483 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
1484 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
1485
8cf64490
TT
14862011-06-03 Tom Tromey <[email protected]>
1487
1488 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
1489 code fields.
1490 * python/py-exitedevent.c (create_exited_event_object): Change
1491 type of 'exit_code'. Optionally add exit_code attribute.
1492 (emit_exited_event): Change type of 'exit_code'.
1493 * python/py-event.h (emit_exited_event): Update.
1494 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
1495 * infrun.c (handle_inferior_event): Set exit code fields on
1496 inferior.
1497 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
1498 fields.
1499 * inferior.c (exit_inferior_1): Initialize new fields.
1500
8ddd9a20
TT
15012011-06-03 Tom Tromey <[email protected]>
1502
1503 * dwarf2expr.c (get_signed_type): New function.
1504 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
1505
8dfd1e6d
KS
15062011-06-02 Keith Seitz <[email protected]>
1507
1508 * objc-lang.c (find_methods): Increment objfile_csym earlier.
1509
65fdb766
PA
15102011-06-02 Pedro Alves <[email protected]>
1511
1512 * top.h (simplified_command_loop): Delete declaration.
1513
f4b8c29b
MF
15142011-06-01 Mike Frysinger <[email protected]>
1515
1516 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
1517 gdb_sysroot to the "len" variable. Append both to "arg_buf".
1518
1706c199
YQ
15192011-06-01 Yao Qi <[email protected]>
1520
1521 * objfiles.h (obj_section_addr): Update reference to objfile from
1522 `abfd' to `obfd'.
1523 (obj_section_endaddr): Likewise.
1524
d19cd713 15252011-06-01 Daniel Jacobowitz <[email protected]>
8d07004d
DJ
1526
1527 * MAINTAINERS: Update my email address and affiliation. Also
1528 update Ian Lance Taylor's affiliation. Use UTF-8 for [email protected].
1529
e8eb7bc5
KS
15302010-05-31 Keith Seitz <[email protected]>
1531
1532 PR c++/12750
1533 * linespec.c (get_search_block): New function.
1534 (find_methods): Add FILE_SYMTATB parameter and use it and
1535 get_search_block to pass an appropriate block to
1536 lookup_symbol_in_namespace.
1537 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
1538 Check if *ARGPTR starts with a filename first.
1539 If it does, call locate_first_half again to locate the next
1540 "first half" of the linespec.
1541 Pass FILE_SYMTATB to decode_objc and decode_compound.
1542 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
1543 (locate_first_half): Stop on the first colon seen.
1544 (decode_compound): Add FILE_SYMTAB parameter.
1545 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
1546 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
1547 get_search_block with lookup_symbol.
1548 (find_method): Add FILE_SYMTAB parameter and pass it to
1549 find_methods.
1550 (decode_objc): Use get_search_block.
1551
2b1dbab0
KS
15522010-05-31 Keith Seitz <[email protected]>
1553
1554 PR symtab/12704
1555 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
1556 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
1557 and CP_ANONYMOUS_NAMESPACE_LEN.
1558 (cp_is_anonymous): Likewise.
1559 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
1560 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
1561 * dwarf2read.c (namespace_name): Likewise.
1562 (fixup_partial_die): Likewise.
1563 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
1564 seen in the input, keep it.
1565
6d549500
PA
15662011-05-30 Pedro Alves <[email protected]>
1567
1568 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
1569 * inf-loop.h (inferior_event_handler_wrapper): Delete.
1570 * inf-loop.c (inferior_event_handler_wrapper): Delete.
1571 (inferior_event_handler): Don't handle INF_QUIT_REQ.
1572 * remote.c (_initialize_remote): Register
1573 async_remote_interrupt_twice directly as
1574 sigint_remote_twice_token event.
1575
395bff70
PA
15762011-05-30 Pedro Alves <[email protected]>
1577
1578 * target.h (enum inferior_event_type): Delete INF_ERROR.
1579 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
1580
97224164
PA
15812011-05-30 Pedro Alves <[email protected]>
1582
1583 * interps.c (interp_set): Don't cancel continuations.
1584
07e78767
JK
15852011-05-30 Jan Kratochvil <[email protected]>
1586
1587 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
1588
fa4cd53f
PA
15892011-05-30 Pedro Alves <[email protected]>
1590
1591 * continuations.h (continuation_ftype): Add `err' parameter.
1592 Document parameters.
1593 (do_all_continuations, do_all_continuations_thread)
1594 (do_all_intermediate_continuations)
1595 (do_all_intermediate_continuations_thread)
1596 (do_all_inferior_continuations): Add `err' parameter.
1597 * continuations.c (do_my_continuations_1, do_my_continuations)
1598 (do_all_inferior_continuations, do_all_continuations_ptid)
1599 (do_all_continuations_thread_callback)
1600 (do_all_continuations_thread, do_all_continuations)
1601 (do_all_intermediate_continuations_thread_callback)
1602 (do_all_intermediate_continuations_thread)
1603 (do_all_intermediate_continuations): Add `err' parameter, and pass
1604 it down all the way to the continuations proper.
1605 * inf-loop.c (inferior_event_handler): If fetching an inferior
1606 event throws an error, don't pop the target, and still call the
1607 continuations, but with `err' set. Adjust all other continuation
1608 calls.
1609 * breakpoint.c (until_break_command_continuation): Add `err'
1610 parameter.
1611 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
1612 issue another step if `err' is set.
1613 (struct until_next_continuation_args): New.
1614 (until_next_continuation): Add `err' parameter. Adjust.
1615 (until_next_command): Adjust.
1616 (struct finish_command_continuation_args): Add `thread' field.
1617 (finish_command_continuation): Add `err' parameter. Handle it.
1618 (finish_forward): Adjust.
1619 (attach_command_continuation): Add `err' parameter. Handle it.
1620 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
1621 cancel the continuations.
1622 * interps.c (interp_set): Adjust to cancel the continuations.
1623 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
1624 continuations rather than discarding.
1625 (free_thread): Don't clear thread inferior resources here.
1626 (delete_thread_1): Do it here instead. And do it before removing
1627 the thread from the threads list. Tag the thread as exited before
1628 clearing thread inferior resources.
1629
c2949be0
JB
16302011-05-30 Joel Brobecker <[email protected]>
1631
1632 * infcall.c (call_function_by_hand): Rephrase error message.
1633
619cebe8
PA
16342011-05-27 Pedro Alves <[email protected]>
1635
1636 * defs.h (struct thread_info, struct inferior): Delete forward
1637 declarations.
1638 * breakpoint.h (struct thread_info): New forward declaration.
1639 * observer.sh (struct inferior): New forward declaration.
1640 * python/python-internal.h (struct inferior): New forward
1641 declaration.
1642
be34f849
PA
16432011-05-27 Pedro Alves <[email protected]>
1644
1645 * defs.h (struct continuation, continuation_ftype)
1646 (continuation_free_arg_ftype, add_continuation)
1647 (do_all_continuations, do_all_continuations_thread)
1648 (discard_all_continuations, discard_all_continuations_thread)
1649 (add_intermediate_continuation, do_all_intermediate_continuations)
1650 (do_all_intermediate_continuations_thread)
1651 (discard_all_intermediate_continuations)
1652 (discard_all_intermediate_continuations_thread)
1653 (add_inferior_continuation, do_all_inferior_continuations)
1654 (discard_all_inferior_continuations): Move to ...
1655 * continuations.h: ... this new file.
1656 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
1657 infcmd.c, inferior.c, infrun.c, interps.c: Include
1658 continuations.h.
1659
432b4d03
JK
16602011-05-27 Jan Kratochvil <[email protected]>
1661 Doug Evans <[email protected]>
1662
1663 Fix PR 10970, PR 12702.
1664 * linux-nat.c (linux_lwp_is_zombie): New function.
1665 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
1666 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
1667
b0f260d6
PA
16682011-05-27 Pedro Alves <[email protected]>
1669
1670 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
1671 typedefs.
1672 (add_continuation, add_intermediate_continuation)
1673 (add_inferior_continuation): Use them.
1674 * continuations.c (struct continuation): Use them.
1675 (make_continuation_ftype): Delete.
1676 (make_continuation, add_inferior_continuation, add_continuation)
1677 (add_intermediate_continuation): Use continuation_ftype and
1678 continuation_free_arg_ftype. Rename parameters to shorter names.
1679
af1e9a32
PA
16802011-05-27 Pedro Alves <[email protected]>
1681
1682 * continuations.c (make_continuation): Make it return void.
1683 (do_my_continuations): Rename to ...
1684 (do_my_continuations_1): ... this. Remove old_chain parameter and
1685 adjust.
1686 (do_my_continuations): New.
1687 (discard_my_continuations): Rename to ...
1688 (discard_my_continuations_1): ... this. Remove old_chain
1689 parameter and adjust.
1690 (discard_my_continuations): New.
1691 (add_inferior_continuation): Simplify.
1692 (do_all_inferior_continuations): Reimplement on top
1693 do_my_continuations.
1694 (discard_all_inferior_continuations): Simplify.
1695 (add_continuation): Simplify.
1696 (do_all_continuations_ptid): Simplify.
1697 (discard_all_continuations_thread_callback): Simplify.
1698 (add_intermediate_continuation): Simplify.
1699 (discard_all_intermediate_continuations_thread_callback):
1700 Simplify.
1701
50c0c017
PA
17022011-05-27 Pedro Alves <[email protected]>
1703
1704 * utils.c (struct continuation, add_continuation)
1705 (add_inferior_continuation)
1706 (do_all_inferior_continuations, discard_all_inferior_continuations)
1707 (restore_thread_cleanup, do_all_continuations_ptid)
1708 (do_all_continuations_thread_callback)
1709 (do_all_continuations_thread, do_all_continuations)
1710 (discard_all_continuations_thread_callback)
1711 (discard_all_continuations_thread, discard_all_continuations)
1712 (add_intermediate_continuation)
1713 (do_all_intermediate_continuations_thread_callback)
1714 (do_all_intermediate_continuations_thread)
1715 (do_all_intermediate_continuations)
1716 (discard_all_intermediate_continuations_thread_callback)
1717 (discard_all_intermediate_continuations_thread)
1718 (discard_all_intermediate_continuations): Move to ...
1719 * continuations.c: ... this new file, and adjust to no longer
1720 implement continuations on top of cleanups.
1721 * Makefile.in (SFILES): Add continuations.c.
1722 (COMMON_OBS): Add continuations.o.
1723
d8b34453
PA
17242011-05-26 Pedro Alves <[email protected]>
1725
1726 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
1727 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
1728 Internal error on invalid values.
1729 * reverse.c: Don't handle EXEC_ERROR.
1730 * mi/mi-main.c: Don't handle EXEC_ERROR.
1731
32231432
PA
17322011-05-26 Pedro Alves <[email protected]>
1733
1734 * record.c: Include event-loop.h, inf-loop.h.
1735 (record_beneath_to_async): New global.
1736 (tmp_to_async): New global.
1737 (record_async_inferior_event_token): New global.
1738 (record_open_1): Don't error out if async is enabled.
1739 (record_open): Handle to_async. Create an async event source in
1740 the event loop.
1741 (record_close): Delete the async event source.
1742 (record_resumed): New global.
1743 (record_execution_dir): New global.
1744 (record_resume, record_core_resume): Set them. Register the
1745 target on the event loop.
1746 (record_wait): Rename to ...
1747 (record_wait_1): ... this. Add more debug output. Handle
1748 TARGET_WNOHANG, and the target beneath returning
1749 TARGET_WAITKIND_IGNORE.
1750 (record_wait): Reimplement on top of record_wait_1.
1751 (record_async_mask_value): New global.
1752 (record_async, record_async_mask, record_can_async_p)
1753 (record_is_async_p, record_execution_direction): New functions.
1754 (init_record_ops, init_record_core_ops): Install new methods.
1755 * infrun.c (fetch_inferior_event): Temporarily switch the global
1756 execution direction to the direction the target was going.
1757 (execution_direction): Change type to int.
1758 * target.c (default_execution_direction): New function.
1759 (update_current_target): Inherit and de_fault
1760 to_execution_direction.
1761 * target.h (struct target_ops) <to_execution_direction>: New
1762 field.
1763 (target_execution_direction): New macro.
1764 * inferior.h (execution_direction): Change type to int.
1765
949dc678
PA
17662011-05-26 Pedro Alves <[email protected]>
1767
1768 * infcall.c (call_function_by_hand): Don't allow calling functions
1769 in reverse execution mode.
1770
c13bd2b5
PA
17712011-05-26 Pedro Alves <[email protected]>
1772
1773 * infcmd.c (finish_command): Allow async finish in reverse.
1774
6938fd34
YQ
17752011-05-26 Yao Qi <[email protected]>
1776
1777 * gdb_thread_db.h: Delete. Move to ...
1778 * common/gdb_thread_db.h: ... here.
1779
9da8c2a0
PA
17802011-05-26 Pedro Alves <[email protected]>
1781
1782 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1783 function's entry point instead of a manually managed momentary
1784 breakpoint, and only ever issue one proceed call.
1785 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1786 doing a reverse-finish, switch to stepi mode, to do another step.
1787 (insert_step_resume_breakpoint_at_sal): Make public.
1788 (normal_stop): No need to save function value return registers if
1789 going reverse.
1790 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1791
2c03e5be
PA
17922011-05-26 Pedro Alves <[email protected]>
1793
1794 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1795 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1796 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1797 at the end.
1798 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1799 step-resume breakpoints.
1800 (print_it_typical): Handle bp_hp_step_resume.
1801 (bpstat_what): Ditto.
1802 (bptype_string): Ditto.
1803 (print_one_breakpoint_location): Ditto.
1804 (allocate_bp_location): Ditto.
1805 (mention): Ditto.
1806 (breakpoint_re_set_one): Ditto.
1807 * infrun.c (handle_inferior_event): Adjust. Split
1808 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1809 BPSTAT_WHAT_HP_STEP_RESUME.
1810 (insert_step_resume_breakpoint_at_sal): Rename to ...
1811 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1812 parameter. Handle it.
1813 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1814 insert_step_resume_breakpoint_at_sal_1.
1815 (insert_step_resume_breakpoint_at_frame): Rename to ...
1816 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1817 set a high-priority step-resume breakpoint.
1818 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1819 (insert_step_resume_breakpoint_at_caller): Ditto.
1820
51be5b68
PA
18212011-05-26 Pedro Alves <[email protected]>
1822
1823 * breakpoint.c (iterate_over_related_breakpoints): New.
1824 (do_map_delete_breakpoint): New.
1825 (delete_command): Pass do_map_delete_breakpoint to
1826 map_breakpoint_numbers.
1827 (do_disable_breakpoint): New.
1828 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1829 breakpoints.
1830 (do_enable_breakpoint): Rename to ...
1831 (enable_breakpoint_disp): ... this.
1832 (enable_breakpoint): Adjust.
1833 (do_enable_breakpoint): New.
1834 (enable_once_breakpoint): Delete.
1835 (do_map_enable_breakpoint): New.
1836 (do_map_enable_once_breakpoint): New.
1837 (enable_once_command, enable_delete_command)
1838 (delete_trace_command): Iterate over the breakpoint's related
1839 breakpoints.
1840
4a1be8d2
PA
18412011-05-26 Pedro Alves <[email protected]>
1842
1843 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1844 for ALPHA_ZERO_REGNUM.
1845 (alpha_supply_int_regs): Explicitly supply zero as the value for
1846 ALPHA_ZERO_REGNUM in the register cache.
1847 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1848
59d70315
YQ
18492011-05-26 Yao Qi <[email protected]>
1850
1851 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1852
251d32d9
TG
18532011-05-26 Tristan Gingold <[email protected]>
1854
1855 * symfile.h (struct dwarf2_section_names): New type.
1856 (struct dwarf2_debug_sections): New type.
1857 (dwarf2_has_info): Add parameter.
1858 * dwarf2read.c (dwarf2_elf_names): New variable.
1859 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1860 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1861 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1862 (dwarf2_has_info): Add names parameter. Pass names
1863 to dwarf2_locate_sections.
1864 (section_is_p): Rewrite using the names parameter.
1865 (dwarf2_locate_sections): Use section names from the names parameter.
1866 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1867 * elfread.c (read_psyms): Ditto.
1868 * machoread.c (macho_symfile_read): Ditto.
1869
652c71b4
AS
18702011-05-25 Andreas Schwab <[email protected]>
1871
1872 PR gdb/8677
1873 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1874
f17170e5
KS
18752011-05-24 Keith Seitz <[email protected]>
1876
1877 PR breakpoint/12803
1878 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1879 (decode_compound): Unconditionally call keep_name_info.
1880
cdac0397
PA
18812011-05-24 Pedro Alves <[email protected]>
1882
1883 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1884 scope, clear its command list.
1885 (map_breakpoint_numbers): Don't walk the related breakpoints list
1886 of each breakpoint.
1887
91d4fe3f
TT
18882011-05-24 Tom Tromey <[email protected]>
1889
1890 * MAINTAINERS: Move Jim Blandy to past maintainers.
1891
3017a003
TG
18922011-05-24 Tristan Gingold <[email protected]>
1893
1894 * symfile.h (enum dwarf2_section_enum): New type.
1895 (dwarf2_get_section_info): New prototype.
1896 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1897 section_name by sect. Use a switch to select the info.
1898 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1899 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1900
c91c8c16
PA
19012011-05-24 Pedro Alves <[email protected]>
1902
1903 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1904 shared library event breakpoint if there's no execution.
1905
77bc418a
TJB
19062011-05-24 Thiago Jung Bauermann <[email protected]>
1907
1908 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1909 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1910
c50491a7
TT
19112011-05-23 Tom Tromey <[email protected]>
1912
1913 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1914 NULL.
1915
6d64e6d4
DE
19162011-05-23 Doug Evans <[email protected]>
1917
1918 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1919 entry for RuntimeError to doc string.
1920
2067c8d4
JG
19212011-05-23 Jerome Guitton <[email protected]>
1922
1923 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1924 sequence for probing loops.
1925
b136cd05
PA
19262011-05-23 Pedro Alves <[email protected]>
1927
1928 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1929 comment.
1930
22e74ef9
MK
19312011-05-21 Mark Kettenis <[email protected]>
1932
1933 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1934 zero as the value for %g0 in the register cache.
1935 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1936 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1937
842951eb
PA
19382011-05-20 Pedro Alves <[email protected]>
1939
1940 * infrun.c (proceed): Set previous_inferior_ptid here.
1941 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1942 inferior_ptid, not null_ptid.
1943 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1944 (fetch_inferior_event): Nor here.
1945
46cf51e6
PA
19462011-05-20 Pedro Alves <[email protected]>
1947
1948 * inf-loop.c (inferior_event_handler): Only output a message if
1949 verbose.
1950
29ef4c46
LM
19512011-05-20 Luis Machado <[email protected]>
1952
1953 * MAINTAINERS: Update my e-mail address.
1954
f148b27e
PA
19552011-05-20 Pedro Alves <[email protected]>
1956
1957 * infrun.c (proceed): Switch the inferior event loop to
1958 INF_EXEC_COMPLETE if the target refused to resume from a
1959 vfork/fork.
1960
09cee04b
PA
19612011-05-20 Pedro Alves <[email protected]>
1962
1963 * infcmd.c: Include "inf-loop.h".
1964 (step_once): When stepping into an inline subroutine, pretend the
1965 target has run. If the target can async, switch the inferior
1966 event loop to INF_EXEC_COMPLETE.
1967 * inferior.h (user_visible_resume_ptid): Declare.
1968 * infrun.c (user_visible_resume_ptid): New function, factored out
1969 from `resume'.
1970 (resume): Use it.
1971 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1972 that the current thread is running. Merge async and sync
1973 branches.
1974
751b8ce1
PA
19752011-05-20 Pedro Alves <[email protected]>
1976
1977 * infcmd.c (step_1): Simplify synchronous case.
1978
e93a69ed
PA
19792011-05-20 Pedro Alves <[email protected]>
1980
1981 * tracepoint.c: Include exceptions.h.
1982 (TFILE_PID): Move higher in file.
1983 (tfile_open): Delay pushing the tfile target until we're assured
1984 the tfile header is present in the file. Wrap reading the initial
1985 newline-terminated lines in TRY_CATCH. Pop the target if the
1986 initial setup failed. Add the tfile's thread immediately
1987 aftwards, before any non-essential setup. Don't skip
1988 post_create_inferior if there are no traceframes present in the
1989 file.
1990 (tfile_close): Remove redundant check for null before xfree call.
1991 (tfile_thread_alive): New function.
1992 (init_tfile_ops): Register it as to_thread_alive callback.
1993
6823e2b1
PA
19942011-05-20 Pedro Alves <[email protected]>
1995
1996 * tracepoint.c (tfile_open): Delete #if 0'd code.
1997
b3c8eb43
JK
19982011-05-20 Jan Kratochvil <[email protected]>
1999
2000 Fix -readnow for -gdwarf-4 unused type units.
2001 * dwarf2read.c (struct signatured_type): Remove the field offset.
2002 (create_signatured_type_table_from_index): Remove its initialization.
2003 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
2004 instead. Add a complaint call.
2005 (process_psymtab_comp_unit): Change assignment to gdb_assert.
2006 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
2007 (lookup_signatured_type_at_offset, read_signatured_type)
2008 (write_one_signatured_type): Update the field for per_cu.
2009
310afc76
TT
20102011-05-19 Tom Tromey <[email protected]>
2011
2012 * python/py-inferior.c (python_inferior_exit): Use
2013 target_gdbarch.
2014 (python_on_resume): Likewise.
2015
cf6c5ffb
TT
20162011-05-19 Matt Rice <[email protected]>
2017
2018 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
2019
fb80a3c5
HZ
20202011-05-19 Hui Zhu <[email protected]>
2021
2022 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
2023
3672b1be
HZ
20242011-05-19 Hui Zhu <[email protected]>
2025
2026 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
2027
ff355380
TT
20282011-05-18 Tom Tromey <[email protected]>
2029
2030 * dwarf2read.c (dwarf2_add_field): Constify.
2031 * value.c (value_static_field): Constify.
2032 * gdbtypes.h (struct main_type) <field.field_location.physname>:
2033 Now const.
2034 * ax-gdb.c (gen_static_field): Constify
2035
ed731959
JK
20362011-05-18 Jan Kratochvil <[email protected]>
2037
2038 * linux-nat.c (kill_callback): Use SIGKILL first.
2039
967cff16
JB
20402011-05-18 Joel Brobecker <[email protected]>
2041
2042 * ada-lang.c (print_it_exception): Avoid use of sprintf.
2043
1d06ead6
TT
20442011-05-18 Tom Tromey <[email protected]>
2045
2046 * value.c (value_fn_field): Constify.
2047 * symtab.c (gdb_mangle_name): Constify.
2048 * stabsread.c (update_method_name_from_physname): Make 'physname'
2049 argument const.
2050 * p-typeprint.c (pascal_type_print_method_args): Make arguments
2051 const. Use explicit fputc_filtered loop.
2052 (pascal_type_print_base): Constify.
2053 * p-lang.h (pascal_type_print_method_args): Update.
2054 * linespec.c (add_matching_methods): Constify.
2055 (add_constructors): Likewise.
2056 * jv-typeprint.c (java_type_print_base): Constify.
2057 * gdbtypes.h (struct cplus_struct_type)
2058 <fn_fieldlist.fn_field.physname>: Now const.
2059 * dwarf2read.c (compute_delayed_physnames): Constify.
2060 (dwarf2_add_member_fn): Likewise.
2061 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
2062
0d9a9a5f
PA
20632011-05-18 Pedro Alves <[email protected]>
2064
2065 * infrun.c (resume): Mention which is the current thread, and its
2066 current PC in debug output.
2067 (prepare_to_proceed): Mention the thread switching in debug
2068 output.
2069
05386e9e
TT
20702011-05-18 Tom Tromey <[email protected]>
2071
2072 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
2073 path check. Use xmalloc and cleanups.
2074 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
2075
ee86786c
TT
20762011-05-17 Tom Tromey <[email protected]>
2077
2078 * cp-valprint.c (cp_print_value_fields): Catch errors from
2079 value_static_field.
2080
9ff3b74f
TT
20812011-05-17 Tom Tromey <[email protected]>
2082
2083 * dwarf2read.c (dwarf2_get_die_type): Call
2084 get_die_type_at_offset.
2085 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
2086 get_base_type function.
2087
cd3da28e
PA
20882011-05-17 Tomas Martinec <[email protected]>
2089
2090 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
2091 trap_expected.
2092
fd20d931
DE
20932011-05-16 Doug Evans <[email protected]>
2094
2095 * python/py-auto-load.c (source_section_scripts): Mention objfile
2096 name in warning.
2097
75fc9810
DE
20982011-05-15 Doug Evans <[email protected]>
2099
290351b8
DE
2100 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
2101 (try_thread_db_load_from_pdir): Call it. If unable to find
2102 libthread_db in directory of libpthread, see if we're looking at
2103 the separate-debug-info copy.
2104
75fc9810
DE
2105 * python/py-autoload.c (print_script): Print "Missing" instead of
2106 "No" for missing scripts.
2107 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
2108
9f7bc587
DE
21092011-05-13 Doug Evans <[email protected]>
2110
2111 * ui-file.c (stdio_file_write_async_safe): Add comment.
2112
093cee7d
HZ
21132011-05-14 Hui Zhu <[email protected]>
2114
2115 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
2116
dbaefcf7
DE
21172011-05-13 Doug Evans <[email protected]>
2118
98a5dd13
DE
2119 Support $pdir and $sdir in libthread-db-search-path.
2120 * NEWS: Mention $sdir,$pdir.
2121 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
2122 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
2123 (try_thread_db_load_from_sdir): New function.
2124 (try_thread_db_load_from_dir): New function.
2125 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
2126 system directories if search of libthread-db-search-path fails,
2127 that is now done via $sdir.
2128 (has_libpthread): New function.
2129 (thread_db_load): Remove search for libthread_db in directory of
2130 libpthread, that is now done via $pdir.
2131
dbaefcf7
DE
2132 * NEWS: Mention "info auto-load-scripts".
2133 * python/py-auto-load.c (struct auto_load_pspace_info): New member
2134 script_not_found_warning_printed.
2135 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
2136 all callers updated. Initialize script_not_found_warning_printed.
2137 (get_auto_load_pspace_data_for_loading): New function.
2138 (maybe_add_script): New function.
2139 (source_section_scripts): Simplify. Only print one warning regardless
2140 of the number of auto-load scripts not found.
2141 (clear_section_scripts): Clear script_not_found_warning_printed.
2142 (auto_load_objfile_script): Record script in hash table.
2143 (count_matching_scripts): New function.
2144 (maybe_print_script): Renamed from maybe_print_section_script, all
2145 callers updated. Rewrite to use ui_out_*.
2146 (info_auto_load_scripts): Renamed from
2147 maintenance_print_section_scripts, all callers updated.
2148 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
2149 renamed as "info auto-load-scripts".
2150
9930639c
TT
21512011-05-13 Tom Tromey <[email protected]>
2152
2153 * dwarf2expr.c (read_uleb128): Cast intermediate result.
2154 (read_sleb128): Likewise.
2155
06826322
TT
21562011-05-13 Tom Tromey <[email protected]>
2157
2158 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
2159 offset display.
2160
01124a23
DE
21612011-05-13 Doug Evans <[email protected]>
2162
2163 * linux-nat.c (debug_linux_nat_async): Delete.
2164 Replace all references to use debug_linux_nat instead.
2165 (show_debug_linux_nat_async): Delete.
2166 (sigchld_handler): Call ui_file_write_async_safe instead of
2167 fprintf_unfiltered.
2168 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
2169 * ui-file.c (struct ui_file): New member to_write_async_safe.
2170 (null_file_write_async_safe): New function.
2171 (ui_file_write_async_safe): New function.
2172 (set_ui_file_write_async_safe): New function.
2173 (ui_file_new): Initialize to_write_async_safe.
2174 (stdio_file_write_async_safe): New function.
2175 (struct stdio_file): New member fd.
2176 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
2177 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
2178 fileno.
01124a23
DE
2179 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
2180 (set_ui_file_write_async_safe): Declare.
2181 (ui_file_write_async_safe): Declare.
2182
72fc29ff
TT
21832011-05-13 Tom Tromey <[email protected]>
2184
2185 * utils.c (do_value_free): New function.
2186 (make_cleanup_value_free): Likewise.
2187 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
2188 freeing correctly.
2189 (dwarf2_loc_desc_needs_frame): Call
2190 make_cleanup_value_free_to_mark.
2191 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
2192 * dwarf2expr.c (free_dwarf_expr_context): Don't call
2193 value_free_to_mark.
2194 (new_dwarf_expr_context): Don't call value_mark.
2195 * dwarf2-frame.c (execute_stack_op): Call
2196 make_cleanup_value_free_to_mark.
2197 * defs.h (make_cleanup_value_free): Declare.
2198
028d0ed5
TJB
21992011-05-13 Thiago Jung Bauermann <[email protected]>
2200
2201 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
2202 prepare_execute_command.
2203 * top.c (prepare_execute_command): Return cleanup.
2204 (execute_command): Use cleanup from prepare_execute_command.
2205 * top.h (prepare_execute_command): Change prototype to return
2206 cleanup.
2207 * defs.h (struct value): Add opaque declaration.
2208 (make_cleanup_value_free_to_mark): Add prototype.
2209 * utils.c (do_value_free_to_mark): New function.
2210 (make_cleanup_value_free_to_mark): Likewise.
2211
b087e0ed
TT
22122011-05-12 Tom Tromey <[email protected]>
2213
2214 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
2215 cast left-hand-side to unsigned.
2216
8a9b8146
TT
22172011-05-12 Tom Tromey <[email protected]>
2218
2219 PR gdb/12617:
2220 * value.h (value_from_contents): Declare.
2221 * value.c (value_from_contents): New function.
2222 * dwarf2read.c (dwarf_stack_op_name): Add new values.
2223 (dwarf2_get_die_type): New function.
2224 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
2225 (allocate_piece_closure): Acquire reference to values.
2226 (read_pieced_value): Update for value-based expressions.
2227 (write_pieced_value): Likewise.
2228 (free_pieced_value_closure): Call value_free as needed.
2229 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
2230 Update for value-based expressions.
2231 * dwarf2loc.h (dwarf2_get_die_type): Declare.
2232 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
2233 <get_base_type>: New field.
2234 (struct dwarf_expr_piece) <v.value>: Change type.
2235 <v.regno>: New field.
2236 (struct dwarf_expr_context) <mark>: New field.
2237 (dwarf_expr_piece, dwarf_expr_fetch): Update.
2238 (dwarf_expr_pop, dwarf_expr_push): Remove.
2239 (dwarf_expr_push_address): Declare.
2240 * dwarf2expr.c (dwarf_arch_cookie): New global.
2241 (struct dwarf_gdbarch_types): New.
2242 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
2243 functions.
2244 (dwarf_expr_push): Change type of 'value' argument. Update. Now
2245 static.
2246 (dwarf_expr_push_address): New function.
2247 (dwarf_expr_pop): Now static.
2248 (dwarf_expr_fetch): Change return type.
2249 (dwarf_require_integral): New function.
2250 (dwarf_expr_fetch): Simplify.
2251 (add_piece): Update.
2252 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
2253 functions.
2254 (execute_stack_op) <sign_ext>: Remove.
2255 Use values for DWARF stack.
2256 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
2257 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2258 New cases.
2259 (_initialize_dwarf2expr): New function.
2260 (add_piece): Update.
2261 (new_dwarf_expr_context): Set new field.
2262 (free_dwarf_expr_context): Call value_free_to_mark.
2263 * dwarf2-frame.c (no_base_type): New function.
2264 (execute_stack_op): Set get_base_type field. Update.
2265
e8d28ef4
TT
22662011-05-12 Tom Tromey <[email protected]>
2267
2268 * dwarf2read.c (read_common_block): Fix formatting.
2269
d248b706
KY
22702011-05-12 Kwok Cheung Yeung <[email protected]>
2271
2272 * breakpoint.c (disable_breakpoint): Disable all locations
2273 associated with a tracepoint on target if a trace experiment is
2274 running.
2275 (disable_command): Disable a specific tracepoint location on target if
2276 a trace experiment is running.
2277 (do_enable_breakpoint): Enable all locations associated with a
2278 tracepoint on target if a trace experiment is running.
2279 (enable_command) Enable a specific tracepoint location on target if a
2280 trace experiment is running.
2281 * target.c (update_current_target): Add INHERIT and de_fault clauses for
2282 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2283 to_disable_tracepoint.
2284 * target.h: Add declaration of struct bp_location.
2285 (struct target_ops): Add new functions
2286 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
2287 to_disable_tracepoint to target operations.
2288 (target_supports_enable_disable_tracepoint): New macro.
2289 (target_enable_tracepoint): New macro.
2290 (target_disable_tracepoint): New macro.
2291 * remote.c (struct remote_state): Add new field.
2292 (remote_enable_disable_tracepoint_feature): New.
2293 (remote_protocol_features): Add new entry.
2294 (remote_supports_enable_disable_tracepoint): New.
2295 (remote_enable_tracepoint): New.
2296 (remote_disable_tracepoint): New.
2297 (init_remote_ops): Add remote_enable_tracepoint,
2298 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
2299 to remote operations.
2300 * tracepoint.c (start_tracing): Allow tracing to start without any
2301 tracepoints enabled with just a warning if they can be re-enabled
2302 later.
2303 * NEWS: Add news item for the new behaviour of the enable and disable
2304 GDB commands when applied to tracepoints.
2305 Add news items for the new remote packets QTEnable and QTDisable.
2306
cc88a640
JK
23072011-05-11 Jan Kratochvil <[email protected]>
2308
2309 * config.in: Regenerate.
2310 * configure: Regenerate.
2311 * configure.ac <--with-system-readline> (for readline_echoing_p):
2312 Remove the test.
2313 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
2314 (tui_old_rl_echoing_p): ... here.
2315 (tui_setup_io): Rename extern declaration readline_echoing_p to
2316 _rl_echoing_p. Adjust assignments for the both renames.
2317
1f84b619
TJB
23182011-05-11 Thiago Jung Bauermann <[email protected]>
2319
2320 * symtab.c (lookup_symtab): Run cleanup before returning.
2321
74ac6d43
TT
23222011-05-11 Tom Tromey <[email protected]>
2323
2324 * dwarf2read.c (handle_data_member_location): New function.
2325 (dwarf2_add_field): Use it.
2326 (read_common_block): Likewise.
2327
5488dafb
JK
23282011-05-11 Jan Kratochvil <[email protected]>
2329
2330 Make addrs->SECTINDEX always defined.
2331 * symfile.c (relative_addr_info_to_section_offsets): Check for
2332 SECTINDEX -1, not for zero ADDR.
2333 (addrs_section_compar): Remove checking for invalid SECTINDEX.
2334 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
2335 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
2336 on its validity.
2337
84e578fb
DE
23382011-05-10 Doug Evans <[email protected]>
2339
2471d008
DE
2340 * linux-thread-db.c: Whitespace cleanup.
2341 (try_thread_db_load_1): Fix comment.
2342
84e578fb
DE
2343 * linux-thread-db.c (set_libthread_db_search_path): New function.
2344 (_initialize_thread_db): Add setter for libthread-db-search-path.
2345
673c2bbe
DE
23462011-05-09 Doug Evans <[email protected]>
2347
478aac75
DE
2348 * NEWS: Mention --with-iconv-bin.
2349 * configure.ac: New option --with-iconv-bin.
2350 * configure: Regenerate.
2351 * config.in: Regenerate.
2352 * defs.h (relocate_gdb_directory): Declare.
2353 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
2354 removed progname parameter, and exported. All callers updated.
2355 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
2356
673c2bbe
DE
2357 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
2358 adding missing call to restore_child_signals_mask.
2359
e4c8541f
PA
23602011-05-09 Pedro Alves <[email protected]>
2361
2362 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
2363 parameter.
2364 * infrun.c (proceed, start_remote): Adjust.
2365 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
2366 and adjust to not handle it.
2367 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2368 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2369 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2370 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2371 * windows-nat.c (do_initial_windows_stuff): Adjust.
2372 * infcmd.c (attach_command): Adjust.
2373 (notice_new_inferior): Adjust.
2374
a536c6d7
UW
23752011-05-06 Ulrich Weigand <[email protected]>
2376
2377 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
2378 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
2379 * spu-tdep.c (op_selb): Use correct value.
2380
7845b013
UW
23812011-05-06 Ulrich Weigand <[email protected]>
2382
2383 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
2384 "parent" parameter to symbol_file_add_from_bfd call.
2385
9c06b0b4
TJB
23862011-05-06 Sergio Durigan Junior <[email protected]>
2387 Thiago Jung Bauermann <[email protected]>
2388
2389 Implement support for PowerPC BookE masked watchpoints.
2390 * NEWS: Mention masked watchpoint support. Create "Changed commands"
2391 section.
2392 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
2393 method. Initialize to NULL in all existing breakpoint_ops instances.
2394 (struct breakpoint) <hw_wp_mask>: New field.
2395 * breakpoint.c (is_masked_watchpoint): Add prototype.
2396 (update_watchpoint): Don't set b->val for masked watchpoints. Call
2397 breakpoint's breakpoint_ops.works_in_software_mode if available.
2398 (watchpoints_triggered): Handle the case of a hardware masked
2399 watchpoint trigger.
2400 (watchpoint_check): Likewise.
2401 (works_in_software_mode_watchpoint): New function.
2402 (insert_masked_watchpoint, remove_masked_watchpoint)
2403 (resources_needed_masked_watchpoint)
2404 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
2405 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
2406 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
2407 functions.
2408 (masked_watchpoint_breakpoint_ops): New structure.
2409 (watch_command_1): Check for the existence of the `mask' parameter.
2410 Set b->ops according to the type of hardware watchpoint being created.
2411 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
2412 (ppc_linux_remove_mask_watchpoint)
2413 (ppc_linux_masked_watch_num_registers): New functions.
2414 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
2415 to_remove_mask_watchpoint and to_masked_watch_num_registers.
2416 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
2417 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
2418 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2419 (target_masked_watch_num_registers): New functions.
2420 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
2421 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
2422 methods.
2423 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
2424 (target_masked_watch_num_registers): Add prototypes.
2425
8be455d7
JK
24262011-05-06 Jan Kratochvil <[email protected]>
2427
2428 PR 12573
2429 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
2430 (producer_is_gcc_ge_4_0): New function.
2431 (process_full_comp_unit): Set also symtab->locations_valid. Move the
2432 symtab->language code.
2433 (var_decode_location): Set cu->has_loclist.
2434 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
2435 skip. Intialize force_skip from locations_valid. Move the prologue
2436 skipping code into two passes.
2437 * symtab.h (struct symtab): Make the primary field a bitfield. New
2438 field locations_valid.
2439
d8228535
JK
24402011-05-06 Jan Kratochvil <[email protected]>
2441
2442 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
2443 (classify_inner_name): Call cp_lookup_nested_type with
2444 yylval.tsym.type.
2445 * cp-namespace.c (cp_lookup_nested_type): New variable
2446 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
2447 type_name_no_tag_or_error with saved_parent_type.
2448 * dwarf2read.c (load_partial_dies): Read in any children of
2449 DW_TAG_typedef with complaint in such case.
2450 * gdbtypes.c (type_name_no_tag_or_error): New function.
2451 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
2452 * valops.c (destructor_name_p): New comment for parameter type. Remove
2453 type const. Make dname and cp const. Call type_name_no_tag_or_error.
2454 * value.h (destructor_name_p): Remove type const.
2455
1976171a
JK
24562011-05-06 Jan Kratochvil <[email protected]>
2457
2458 * symtab.c (compare_symbol_name): New function.
2459 (completion_list_add_name, expand_partial_symbol_name): Call it,
2460 remove the variable ncmp.
2461 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
2462 gdb_assert it.
2463
a9634178
TJB
24642011-05-05 Thiago Jung Bauermann <[email protected]>
2465
2466 Demote to sw watchpoint only in update_watchpoint.
2467 * breakpoint.c (update_watchpoint): Change between software and
2468 hardware watchpoint for all kinds of watchpoints, not just
2469 read/write ones. Determine b->exact value here instead of
2470 in watch_command_1. Error out if there are not enough resources
2471 for a read or access hardware watchpoint.
2472 (watch_command_1): Remove logic of checking whether there are
2473 enough resources available, since update_watchpoint will do that
2474 work now. Don't set b->exact here. Catch exceptions thrown by
2475 update_watchpoint and delete the watchpoint.
2476 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
2477 Use target_exact_watchpoints instead.
2478 (delete_breakpoint): Notify observers only if deleted watchpoint
2479 has a breakpoint number assigned to it.
2480
4c67c798
JJ
24812011-05-05 Janis Johnson <[email protected]>
2482
2483 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2484
a3fcb948
JG
24852011-05-05 Jerome Guitton <[email protected]>
2486
2487 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
2488 New functions.
2489 (i386_stack_tramp_frame_unwind): New static global.
2490 (i386_match_pattern): New function, extracted from i386_match_insn.
2491 (i386_match_insn): Use i386_match_pattern.
2492 (i386_match_insn_block): New function.
2493 (i386_tramp_chain_in_reg_insns)
2494 (i386_tramp_chain_on_stack_insns): New static variables.
2495 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
2496 of unwinders.
2497
4d393d60
JM
24982011-05-04 Joseph Myers <[email protected]>
2499
2500 * configure.host (xscale*): Don't handle target.
2501 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
2502 handle targets.
2503
f70bd40b
YQ
25042011-05-04 Yao Qi <[email protected]>
2505
2506 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
2507
dd3295ee
JB
25082011-05-03 Joel Brobecker <[email protected]>
2509
2510 Revert:
2511 | 2011-03-07 Michael Snyder <[email protected]>
2512 | * elfread.c (elf_symtab_read): Stop memory leak.
2513
90375a0e
PM
25142011-05-03 Pierre Muller <[email protected]>
2515
2516 * nto-tdep.c (nto_target): Replace deprecated call to
2517 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
2518
d07205c2
JK
25192011-05-03 Jan Kratochvil <[email protected]>
2520
2521 Fix false GCC warning.
2522 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
2523
1e718ff1
TJB
25242011-05-03 Thiago Jung Bauermann <[email protected]>
2525
2526 * breakpoint.c (update_watchpoint): Move code to change
2527 the enable state of breakpoint from here ...
2528 (do_enable_breakpoint): ... to here.
2529
35bef4fd
TT
25302011-04-26 Andrew Gontarek <[email protected]>
2531
78290264
PP
2532 * valprint.c (val_print_array_elements): Fixed poor performance
2533 of printing very large arrays with repeat_count_threshold set
2534 to unlimited. New comment.
35bef4fd 2535
38a714bb
TT
25362011-04-29 Tom Tromey <[email protected]>
2537
2538 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
2539 (mi_parse): Likewise.
2540 * breakpoint.c (break_range_command): Use sizeof char*, not
2541 char**.
2542 (create_breakpoint): Likewise.
2543 (parse_breakpoint_sals): Likewise.
2544
eb73ad13
PA
25452011-04-29 Pedro Alves <[email protected]>
2546
2547 * linux-nat.c (linux_child_remove_fork_catchpoint)
2548 (linux_child_remove_vfork_catchpoint)
2549 (linux_child_remove_exec_catchpoint): New functions.
2550 (linux_target_install_ops): Install them.
2551
d65aec65
PM
25522011-04-29 Phil Muldoon <[email protected]>
2553
2554 PR mi/12531
2555
2556 * varobj.c (install_default_visualizer): Do not install a
2557 visualizer if the varobj is CPLUS_FAKE_CHILD.
2558 (construct_visualizer): Likewise.
2559
165195f4
JK
25602011-04-28 Jan Kratochvil <[email protected]>
2561
2562 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
2563 case insensitive comparison.
2564
30852783
UW
25652011-04-28 Ulrich Weigand <[email protected]>
2566
2567 * infrun.c (proceed): Revert previous change.
2568 (resume): Instead, handle the case of signal delivery while stepping
2569 off a breakpoint location here, and only if software single-stepping
2570 is used. Handle nested signals.
2571
7ff120b4
YQ
25722011-04-28 Yao Qi <[email protected]>
2573
2574 * arm-tdep.c (copy_unmodified): Rename to ...
2575 (arm_copy_unmodified): .. this. New.
2576 (copy_preload): Move common part to ...
2577 (install_preload): .. this. New.
2578 (arm_copy_preload): New.
2579 (copy_preload_reg): Move common part to ...
2580 (install_preload_reg): ... this. New.
2581 (arm_copy_preload_reg): New.
2582 (copy_b_bl_blx): Move common part to ...
2583 (install_b_bl_blx): .. this. New.
2584 (arm_copy_b_bl_blx): New.
2585 (copy_bx_blx_reg): Move common part to ...
2586 (install_bx_blx_reg): ... this. New.
2587 (arm_copy_bx_blx_reg): New.
2588 (copy_alu_reg): Move common part to ...
2589 (install_alu_reg): ... this. New.
2590 (arm_copy_alu_reg): New.
2591 (copy_alu_shifted_reg): Move common part to ...
2592 (install_alu_shifted_reg): ... this. New.
2593 (copy_ldr_str_ldrb_strb): Move common part to ...
2594 (install_ldr_str_ldrb_strb): ... this. New.
2595 (arm_copy_ldr_str_ldrb_strb): New.
2596 (copy_copro_load_store): Move some common part to ...
2597 (install_copy_copro_load_store): ... this. New.
2598 (arm_copy_copro_load_store): New.
2599 (copy_svc): Delete.
2600 (arm_copy_svc): Renamed from copy_svc.
2601 (copy_undef): Delete.
2602 (arm_copy_undef): Renamed from copy_undef.
2603 (decode_ext_reg_ld_st): Delete.
2604 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2605 (decode_svc_copro): Delete.
2606 (arm_decode_svc_copro): Renamed from decode_svc_copro.
2607 (copy_copro_load_store, copy_alu_imm): update callers.
2608 (copy_extra_ld_st, copy_block_xfer): Likewise.
2609 (decode_misc_memhint_neon, decode_unconditional): Likewise.
2610 (decode_miscellaneous, decode_dp_misc): Likewise.
2611 (decode_ld_st_word_ubyte, decode_media): Likewise.
2612 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
2613 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
2614 (decode_unconditional, decode_miscellaneous): Likewise.
2615 (decode_media, decode_b_bl_ldmstm): Likewise.
2616 (arm_process_displaced_insn): Likewise..
2617 (decode_misc_memhint_neon): Delete.
2618 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
2619 (decode_miscellaneous): Delete.
2620 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
2621 (decode_dp_misc): Delete.
2622 (arm_decode_dp_misc): Renamed from decode_dp_misc.
2623 (decode_ld_st_word_ubyte): Delete.
2624 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
2625 (decode_media): Delete.
2626 (arm_decode_media): Renamed from decode_media.
2627 (decode_b_bl_ldmstm): Delete.
2628 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
2629 (decode_ext_reg_ld_st): Delete.
2630 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
2631 (decode_unconditional): Delete.
2632 (arm_decode_unconditional): Renamed from decode_unconditional.
2633
559a7a62
JK
26342011-04-27 Jan Kratochvil <[email protected]>
2635
2636 Case insensitive lookups implementation.
2637 * dwarf2read.c: Include ctype.h.
2638 (struct mapped_index): New field version.
2639 (mapped_index_string_hash): New parameter index_version. New comment
2640 for it. Call tolower appropriately.
2641 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
2642 Choose the right index version for mapped_index_string_hash.
2643 (dwarf2_read_index): Support also the index version 5. Initialize the
2644 new struct mapped_index field version.
2645 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
2646 (find_slot): Explain the version needs. Pass INT_MAX for the new
2647 parameter.
2648 (write_psymtabs_to_index): Produce version 5.
2649 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
2650 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
2651 * psymtab.c (lookup_partial_symbol): Find the
2652 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
2653 entries.
2654 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
2655 NAME lowercasing.
2656 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
2657 (completion_list_add_name): New variable ncmp, initialize it, use it.
2658 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
2659 * utils.c (strcmp_iw): Support case_sensitive_off.
2660 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
2661 New function comment part. New variables saved_string1,
2662 saved_string2 and case_pass. Add a proper second pass.
2663
681bf369
JK
26642011-04-27 Jan Kratochvil <[email protected]>
2665
2666 Replace re_comp/re_exec by regcomp/regexec.
2667 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
2668 (search_symbols_name_matches): Use them, use regexec.
2669 (search_symbols): New variable retval_chain, adjust the use of
2670 old_chain against it. Replace re_comp by regcomp. Use the new struct
2671 search_symbols_data fields, use regexec instead of re_exec.
2672
b11b1f88
JK
26732011-04-27 Jan Kratochvil <[email protected]>
2674
2675 Format the code for the next patch.
2676 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
2677 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
2678 New variables c1 and c2.
2679
2484c66b
UW
26802011-04-27 Ulrich Weigand <[email protected]>
2681
2682 * infrun.c (proceed): Do not single-step into signal delivery
2683 when stepping off a breakpoint location.
2684 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
2685 (insert_step_resume_breakpoint_at_caller): Likewise.
2686 (insert_step_resume_breakpoint_at_sal): Likewise.
2687 (insert_longjmp_resume_breakpoint): Likewise.
2688
47423772
YQ
26892011-04-27 Yao Qi <[email protected]>
2690
2691 * common/linux-ptrace.h: Remove include <sys/wait.h>.
2692
13bdd2e7
JB
26932011-04-27 Joel Brobecker <[email protected]>
2694
2695 * procfs.c (procfs_pass_signals): Fix advance declaration.
2696
2455069d
UW
26972011-04-27 Ulrich Weigand <[email protected]>
2698
2699 * target.h (struct target_ops): Remove to_notice_signals;
2700 add to_pass_signals.
2701 (target_notice_signals): Remove.
2702 (target_pass_signals): Add prototype.
2703 * target.c (update_current_target): Remove to_notice_signals;
2704 mention to_pass_signals.
2705 (target_pass_signals): New function.
2706 (debug_to_notice_signals): Remove.
2707 (setup_target_debug): Do not install debug_to_notice_signals.
2708
2709 * infrun.c (signal_pass): New global.
2710 (resume): Call target_pass_signals.
2711 (handle_inferior_event): Report all signals while stepping over
2712 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
2713 are re-inserted when stepping over a signal handler.
2714 (signal_cache_update): New function.
2715 (signal_stop_update): Call it.
2716 (signal_print_update): Likewise.
2717 (signal_pass_update): Likewise.
2718 (handle_command): Call signal_cache_update and target_pass_signals
2719 instead of target_notice_signals.
2720 (_initialize_infrun): Initialize signal_pass.
2721
2722 * linux-nat.c (pass_mask): New global.
2723 (linux_nat_pass_signals): New function.
2724 (linux_nat_create_inferior): Report all signals initially.
2725 (linux_nat_attach): Likewise.
2726 (linux_nat_resume): Use pass_mask to decide whether to directly
2727 handle an inferior signal.
2728 (linux_nat_wait_1): Likewise.
2729 (linux_nat_add_target): Install to_pass_signals callback.
2730
2731 * nto-procfs.c (notice_signals): Remove.
2732 (procfs_resume): Do not call notice_signals.
2733 (procfs_notice_signals): Remove.
2734 (procfs_pass_signals): New function.
2735 (init_procfs_ops): Install to_pass_signals callback instead of
2736 to_notice_signals callback.
2737 (_initialize_procfs): Report all signals initially.
2738
2739 * procfs.c (procfs_notice_signals): Remove.
2740 (procfs_pass_signals): New function.
2741 (procfs_target): Install to_pass_signals callback instead of
2742 to_notice_signals callback.
2743 (register_gdb_signals): Remove.
2744 (procfs_debug_inferior): Report all signals initially.
2745 (procfs_init_inferior): Remove redundant register_gdb_signals call.
2746
2747 * remote.c (remote_pass_signals): Add numsigs and pass_signals
2748 parameters; use them instead of calling signal_..._state routines.
2749 (remote_notice_signals): Remove.
2750 (remote_start_remote): Report all signals initially.
2751 (remote_resume): Do not call remote_pass_signals.
2752 (_initialize_remote): Install to_pass_signals callback instead of
2753 to_notice_signals callback.
2754
46c6471b
PA
27552011-04-27 Pedro Alves <[email protected]>
2756
2757 * breakpoint.c (user_settable_breakpoint): Delete.
2758 (user_breakpoint_p): Remove check on user_settable_breakpoint.
2759 (delete_command): Check user_breakpoint_p instead of looking at
2760 the breakpoint's type.
2761 (disable_command): Ditto.
2762 (enable_command): Ditto.
2763 (delete_trace_command): Use user_breakpoint_p instead of looking
2764 at the breakpoint number directly. When checking if there are
2765 user visible tracepoints, in order to know whether to ask the user
2766 for confirmation, check whether the breakpoint is actually a
2767 tracepoint.
2768
f6d90398
VP
27692011-04-27 Vladimir Prus <[email protected]>
2770
2771 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2772 compilation.
2773
8d3788bd
VP
27742011-04-27 Vladimir Prus <[email protected]>
2775
2776 MI breakpoint notifications.
2777
f33edef8
PP
2778 * annotate.c (breakpoint_changed): Adjust parameter type.
2779 * breakpoint.c (set_breakpoint_condition): Adjust to change
2780 in breakpoint_modified type.
2781 (breakpoint_set_commands): Likewise.
2782 (do_map_commands_command): Likewise.
2783 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2784 changed after bumping hit count.
2785 (bpstat_stop_status): Likewise.
2786 (print_one_breakpoint_location): Don't wrap in tuple here.
2787 (print_one_breakpoint): Always print individual locations.
2788 For locations, use unnamed tuple.
2789 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2790 has changed.
2791 (create_catchpoint, create_syscall_event_catchpoint): Call
2792 breakpoint_created obsever.
2793 (mention): Don't call breakpoint_created observer.
2794 (create_breakpoint_sal): Call breakpoint_created observer.
2795 (create_breakpoint, watch_command_1): Likewise.
2796 (create_ada_exception_breakpoint): Likewise.
2797 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2798 (locations_are_equal): New.
2799 (update_breakpoint_locations): If locations were changed, notify.
2800 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2801 Call breakpoint_modified observer.
2802
2803 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2804 (mi_cmd_break_insert): Don't set observers for modify and delete.
2805 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2806 (mi_breakpoint_created, mi_breakpoint_deleted)
2807 (mi_breakpoint_modified): New.
2808 (mi_interpreter_init): Hook the above.
2809 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2810 while -break-* commands are executing.
2811 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2812 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2813 (mi_redirect): New.
2814 (mi_ui_out_impl): Hook in mi_redirect.
2815 (mi_field_skip): True to the name, skip the field, don't output
2816 a field with an empty value.
2817
2818 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2819 (gdbpy_breakpoint_deleted): Adjust.
2820 * tui/tui-hooks.c (tui_event_create_breakpoint)
2821 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 2822
a8f42b45
UW
28232011-04-26 Aleksandar Ristovski <[email protected]>
2824
2825 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2826 (procfs_remove_hw_watchpoint): Likewise.
2827
57e12211
TT
28282011-04-26 Michael Walle <[email protected]>
2829
2830 * remote.c (remote_start_remote): Ack packet after sending the
2831 interrupt sequence.
2832
af96c192
YQ
28332011-04-26 Yao Qi <[email protected]>
2834
f33edef8
PP
2835 * linux-nat.c: Move common macros to ...
2836 Include linux-ptrace.h.
2837 * common/linux-ptrace.h: ... here. New.
af96c192 2838
3e03848b
JK
28392011-04-25 Jan Kratochvil <[email protected]>
2840
2841 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2842 !objfile_has_partial_symbols. New comment.
2843 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2844 SYM_READ_PSYMBOLS is not present. Extend the comment.
2845 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2846
1ae0d051
JK
28472011-04-25 Jan Kratochvil <[email protected]>
2848
2849 * defs.h (ENUM_BITFIELD): Remove.
2850
03f2bd59
JK
28512011-04-24 Jan Kratochvil <[email protected]>
2852 Eli Zaretskii <[email protected]>
2853
2854 * NEWS: Document the new gdbserver --once option.
2855
4161fbb0
JZ
28562011-04-21 Jie Zhang <[email protected]>
2857
2858 * MAINTAINERS: Update my email address.
2859
bcb28afc
PM
28602011-04-21 Pierre Muller <[email protected]>
2861
2862 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2863 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2864 function call if __STDC_ISO_10646__ macro is defined.
2865 (intermediate_encoding): New prototype.
2866 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2867 to generate compile time error for unsupported gdb_wchar_t size.
2868 (ENDIAN_SUFFIX): New macro.
2869 (intermediate_encoding): New function.
2870
7b08b9eb
JK
28712011-04-20 Jan Kratochvil <[email protected]>
2872
2873 * ada-lang.c (struct add_partial_datum): Update the comment for
2874 expand_partial_symbol_name.
2875 (ada_add_partial_symbol_completions): Rename to ...
2876 (ada_expand_partial_symbol_name): ... here, change return type, update
2877 function comment, call symbol_completion_match instead of
2878 symbol_completion_add.
2879 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2880 and ada_expand_partial_symbol_name.
2881 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2882 FILE_MATCHER.
2883 (dw2_map_symbol_names): Remove.
2884 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2885 * psymtab.c (map_symbol_names_psymtab): Remove.
2886 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2887 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2888 order.
2889 (psym_functions): Unlist map_symbol_names_psymtab.
2890 (map_partial_symbol_names): Rename to ...
2891 (expand_partial_symbol_names): ... here, change the FUN type, call
2892 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2893 * psymtab.h (map_partial_symbol_names): Rename to ...
2894 (expand_partial_symbol_names): ... here, change the FUN type.
2895 * symfile.h (struct quick_symbol_functions): Update the description of
2896 expand_symtabs_matching. Remove map_symbol_names.
2897 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2898 (struct add_name_data): Update the comment for
2899 expand_partial_symbol_name.
2900 (add_partial_symbol_name): Rename to ...
2901 (expand_partial_symbol_name): ... here. Replace
2902 completion_list_add_name call by strncmp.
2903 (default_make_symbol_completion_list_break_on): Use now
2904 expand_partial_symbol_names and expand_partial_symbol_name.
2905 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2906
90476074
TT
29072011-04-20 Tom Tromey <[email protected]>
2908
2909 * dwarf2read.c (save_gdb_index_command): Replace format
2910 documentation with a pointer to the manual.
2911
c21236dc
PA
29122011-04-20 Pedro Alves <[email protected]>
2913
2914 * regcache.c: Include remote.h.
2915 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2916 (regcache_dump): Handle regcache_dump_remote.
2917 (maintenance_print_remote_registers): New function.
2918 (_initialize_regcache): Install "maint print remote-registers"
2919 command.
2920 * remote.c (map_regcache_remote_table): New function, factored out
2921 from ...
2922 (init_remote_state): ... here.
2923 (remote_register_number_and_offset): New.
2924 * remote.h (remote_register_number_and_offset): Declare.
2925
b78974c3
PA
29262011-04-20 Pedro Alves <[email protected]>
2927
2928 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2929 null_ptid, assume and allow a NULL address space, instead of
2930 asking the target for the ptid's address space.
2931 * infrun.c (ptid_is_pid): Remove assertion.
2932
7a9dd1b2
TT
29332011-04-19 Tom Tromey <[email protected]>
2934
2935 * windows-tdep.c (windows_xfer_shared_library):
2936 * windows-nat.c (get_module_name, windows_make_so):
2937 * v850-tdep.c (v850_handle_pushm):
2938 * utils.c (null_cleanup, gdb_realpath):
2939 * ui-out.c (get_next_header):
2940 * tracepoint.c (clear_traceframe_info):
2941 * symtab.c (lookup_symtab):
2942 * serial.h (struct serial_ops):
2943 * mipsread.c (read_alphacoff_dynamic_symtab):
2944 * infcmd.c (print_return_value):
2945 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2946 * f-exp.y (parse_number):
2947 * exceptions.c (catch_exceptions):
2948 * dummy-frame.c (dummy_frame_this_id):
2949 * defs.h (struct cleanup):
2950 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2951 * arm-tdep.c (arm_push_dummy_call):
2952 * amd64-tdep.h (amd64_collect_xsave):
2953 * amd64-tdep.c (amd64_collect_xsave):
2954 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2955 * README (typing): Remove duplicate words.
2956 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2957 * infrun.c (siginfo_value_read): Fix typo.
2958 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2959 * top.c (source_line_number): Add comma.
2960
9941e0c5
MK
29612011-04-19 Marc Khouzam <[email protected]>
2962
2963 * thread.c (any_live_thread_of_process): Prioritize threads
2964 that are not executing.
2965 * gdbthread.h (any_live_thread_of_process): Update comment
2966 as per above change.
2967
ed4b0e6a
AS
29682011-04-19 Andreas Schwab <[email protected]>
2969
2970 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2971 (scan_xcoff_symtab): Likewise.
2972
9b13a2db
PM
29732011-04-19 Pierre Muller <[email protected]>
2974
2975 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2976 inside if clause.
2977
1c6e1b0d
PM
29782011-04-19 Pierre Muller <[email protected]>
2979 Pedro Alves <[email protected]>
2980
2981 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2982 variables to simplify code and avoid == operator at end of
2983 line as this is against GNU coding standards.
2984
74de0234
PM
29852011-04-19 Pierre Muller <[email protected]>
2986
2987 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2988 lm_name to name_lm to avoid conflict with lm_name function.
2989
b23518f0
PM
29902011-04-19 Pierre Muller <[email protected]>
2991
2992 ARI fixes: Use only lowercase function name for static functions.
2993 * nto-tdep.c (LM_ADDR): Rename to...
2994 (lm_addr): New function name.
2995 (nto_relocate_section_addresses): Adapt to change above.
2996 * solib-sunos.c (LM_ADDR): Rename to...
2997 (lm_addr): New function name.
2998 (LM_NEXT): Rename to...
2999 (lm_next): New function name.
3000 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
3001 function name changes above.
3002 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
3003 (lm_addr_from_link_map): New function name.
3004 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3005 (has_lm_dynamic_from_link_map): New function name.
3006 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
3007 (lm_dynamic_from_link_map): New function name.
3008 (LM_ADDR_CHECK): Rename to...
3009 (lm_addr_check): New function name.
3010 (LM_NEXT): Rename to...
3011 (lm_next): New function name.
3012 (LM_PREV): Rename to...
3013 (lm_prev): New function name.
3014 (LM_NAME): Rename to...
3015 (lm_name): New function name.
3016 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
3017 (ignore_first_link_map_entry): New function name.
3018 (svr4_keep_data_in_core): Adapt to function name changes above.
3019 (svr4_current_sos): Likewise.
3020 (enable_break): Likewise.
3021 (svr4_relocate_section_addresses): Likewise.
3022
1448a0a2
PM
30232011-04-19 Pierre Muller <[email protected]>
3024
3025 ARI cleanup.
3026 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
3027 sprintf. Simplify code and avoid loosing memory.
3028 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
3029 (call0_frame_cache): Remove && operator from end of line.
3030
02835898
JK
30312011-04-17 Jan Kratochvil <[email protected]>
3032
3033 Fix libraries displacement if they change whether they were prelinked.
3034 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
3035 does not match. Comment why.
3036
9a845ea2
JK
30372011-04-17 Jan Kratochvil <[email protected]>
3038
3039 * corelow.c: Include wrapper.h.
3040 (core_open): Call now gdb_target_find_new_threads.
3041 * wrapper.c: Include target.h.
3042 (gdb_target_find_new_threads): New.
3043 * wrapper.h (gdb_target_find_new_threads): New declaration.
3044
254f582e
JK
30452011-04-17 Jan Kratochvil <[email protected]>
3046
3047 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
3048 even if !TARGET_HAS_EXECUTION.
3049
63524580
JK
30502011-04-17 Jan Kratochvil <[email protected]>
3051
3052 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
3053 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
3054 bfd_get_synthetic_symtab.
3055 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
3056 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
3057 parameter parent, remove the call to add_separate_debug_objfile.
3058 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
3059 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3060 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
3061 parent, new comment for it, call add_separate_debug_objfile for it.
3062 (symbol_file_add_separate): Pass objfile as the parameter parent,
3063 remove the call to add_separate_debug_objfile.
3064 (symbol_file_add_from_bfd): New parameter parent, pass it.
3065 (symbol_file_add): Pass NULL to the new parameter parent.
3066 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
3067
90359a16
JK
30682011-04-17 Jan Kratochvil <[email protected]>
3069
3070 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
3071 BSF_SYNTHETIC.
3072
626e7282
JK
30732011-04-17 Jan Kratochvil <[email protected]>
3074
3075 Fix Python access to inlined frames.
3076 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
3077 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3078
cf31e6f9
TT
30792011-04-15 Tom Tromey <[email protected]>
3080
3081 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
3082
c8d895f1
GB
30832011-04-15 Gary Benson <[email protected]>
3084
3085 * MAINTAINERS: Add myself to write-after-approval section.
3086
56a9aa1d
MF
30872011-04-14 Mike Frysinger <[email protected]>
3088
3089 * remote-sim.c (sim_command_completer): New function.
3090 (_initialize_remote_sim): Set completer to sim_command_completer.
3091
ba770c9c
TJB
30922011-04-13 Thiago Jung Bauermann <[email protected]>
3093
3094 * breakpoint.c (print_exception_catchpoint): Rename to ...
3095 (print_it_exception_catchpoint): ... this.
3096 (gnu_v3_exception_catchpoint_ops): Update with new name
3097 for print_it_exception_catchpoint.
3098
51bf2553
EBM
30992011-04-13 Edjunior Machado <[email protected]>
3100
3101 * MAINTAINERS: Add myself for write after approval privileges.
3102
d242658c
MP
31032011-04-13 Marek Polacek <[email protected]>
3104
3105 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3106
4a4106ca
TJB
31072011-04-13 Thiago Jung Bauermann <[email protected]>
3108
3109 * breakpoint.c (watch_command_1): Remove colon from exp_string.
3110
26063d49
TJB
31112011-04-13 Thiago Jung Bauermann <[email protected]>
3112
3113 * breakpoint.c (save_breakpoints): Verify whether
3114 breakpoint_ops.print_recreate is defined before calling it.
3115
7782b183
GB
31162011-04-11 Gary Benson <[email protected]>
3117
3118 Fix failure with --enable-maintainer-mode.
3119 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
3120
e8930875
JK
31212011-04-09 Jan Kratochvil <[email protected]>
3122
3123 Code cleanup.
3124 * symtab.c (search_symbols): Reorder the KIND description in the
3125 function comment. Remove the unused 4th element of types, types2,
3126 types3 and types4. New gdb_assert on KIND.
3127 (symtab_symbol_info): Remove the unused 4th element of classnames.
3128 New gdb_assert on KIND.
3129 * symtab.h (enum search_domain): New warning in the enum comment.
3130 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
3131 TYPES_DOMAIN.
3132
b4f2f049
JK
31332011-04-09 Jan Kratochvil <[email protected]>
3134
3135 Fix crash of gdb save-index on a STABS file.
3136 * dwarf2read.c (write_psymtabs_to_index): Return also on no
3137 PSYMTABS_ADDRMAP.
3138
60d5a603
JK
31392011-04-09 Jan Kratochvil <[email protected]>
3140
3141 Fix DW_AT_accessibility compatibility with gcc-4.6+.
3142 * dwarf2read.c: Include ctype.h.
3143 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
3144 functions.
3145 (dwarf2_add_field): Fix new_field->accessibility by calling
3146 dwarf2_default_access_attribute. Restructure setting accessibility
3147 vs. virtuality.
3148 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
3149 is_private and is_protected by calling
3150 dwarf2_default_access_attribute.
3151
e0f68161
KB
31522011-04-08 Kevin Buettner <[email protected]>
3153
3154 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
3155 to the initialization.
3156
2e1aae43
SE
31572011-04-08 Steve Ellcey <[email protected]>
3158
3159 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
3160 initalization.
3161
c6ca3dab
PM
31622011-04-07 Pierre Muller <[email protected]>
3163
3164 Remove support for old Cygwin 1.5 versions.
3165 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
3166 function on old Cygwin version.
3167 * windows-nat.c: Remove cygwin version check and always define
3168 __USEWIDE for Cygwin compilation.
3169
bd18283a
YQ
31702011-04-07 Yao Qi <[email protected]>
3171
3172 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
3173 and TO.
3174 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
3175 (arm_copy_svc): Remove parameters INSN and TO.
3176 (decode_svc_copro): Update caller.
3177 * arm-tdep.h (struct displaced_step_closure): Remove parameters
3178 from function pointer `copy_svc_os'.
3179
8c8dba6d
YQ
31802011-04-07 Yao Qi <[email protected]>
3181
3182 * arm-tdep.c (cleanup_branch): Set a correct return address in
3183 LR for ARM and Thumb.
3184
59d7bcaf
JK
31852011-04-06 Jan Kratochvil <[email protected]>
3186
3187 Code cleanup.
3188 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
3189 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
3190 in the function comment, a new note on values compatibility.
3191 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
3192 * symtab.h (SYMBOL_HASH_NEXT): New.
3193
e7db58ea
TJB
31942011-04-06 Thiago Jung Bauermann <[email protected]>
3195
3196 * ppc-linux-nat.c (check_condition): Add len output parameter.
3197 Set it based on the memory region referenced in the condition
3198 expression. Update all callers.
3199
9f743ef6
JK
32002011-04-06 Jan Kratochvil <[email protected]>
3201
3202 Fix crash regression on systems featuring .gdb_index.
3203 * objfiles.c (free_objfile): Move the
3204 forget_cached_source_info_for_objfile call earlier. Comment it.
3205 Extend the comment for objfile_free_data.
3206
9182c5bc
JK
32072011-04-06 Jan Kratochvil <[email protected]>
3208
3209 Fix regression of displaying the debug format.
3210 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
3211 subfile.
3212
04bd08de
TT
32132011-04-04 Tom Tromey <[email protected]>
3214
3215 * cli/cli-interp.c (struct captured_execute_command_args):
3216 Remove.
3217 (do_captured_execute_command): Remove.
3218 (safe_execute_command): Use TRY_CATCH.
3219 * cli/cli-script.c (struct wrapped_read_command_file_args):
3220 Remove.
3221 (wrapped_read_command_file): Remove.
3222 (script_from_file): Use TRY_CATCH.
3223 * exceptions.c (catch_exception): Remove.
3224 * exceptions.h (catch_exception): Remove.
3225 (deprecated_throw_reason): Update comment.
3226 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
3227 argument to 'context'.
3228 (mi_execute_command): Use TRY_CATCH.
3229 * remote.c (struct start_remote_args): Remove.
3230 (remote_start_remote): Update; change arguments.
3231 (remote_open_1): Use TRY_CATCH.
3232
58438ac1
TT
32332011-04-04 Tom Tromey <[email protected]>
3234
3235 * tracepoint.c (scope_info): Update.
3236 * symtab.c (decode_line_spec): Update.
3237 * python/python.c (gdbpy_decode_line): Update.
3238 * linespec.h (decode_line_1): Update.
3239 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
3240 (decode_compound, find_method, symtab_from_filename)
3241 (decode_variable): Likewise.
3242 * cli/cli-cmds.c (edit_command): Update.
3243 (list_command): Update.
3244 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
3245 argument.
3246 (create_breakpoint): Update.
3247 (until_break_command): Update.
3248 (addr_string_to_sals): Update.
3249 (decode_line_spec_1): Update.
3250
b78a6381
TT
32512011-04-04 Tom Tromey <[email protected]>
3252
3253 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
3254 (do_captured_parse_breakpoint): Remove.
3255 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
3256 Use TRY_CATCH directly.
3257
00174a86
TT
32582011-04-04 Tom Tromey <[email protected]>
3259
3260 * symtab.h (free_symtab): Remove.
3261 (forget_cached_source_info_for_objfile): Declare.
3262 * symmisc.c (free_symtab): Remove.
3263 * source.c (forget_cached_source_info_for_objfile): New function.
3264 (forget_cached_source_info): Use it.
3265 * objfiles.c (free_objfile): Simplify check before calling
3266 clear_current_source_symtab_and_line. Call
3267 forget_cached_source_info_for_objfile.
3268
30cc903e
TT
32692011-04-04 Tom Tromey <[email protected]>
3270
3271 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
3272 (new_symtab): Don't set `free_code' on symtab.
3273 (new_linetable): Properly handle size==0.
3274 * symtab.h (struct symtab) <free_code, free_func>: Remove.
3275 * symmisc.c (free_symtab): Don't free the linetable. Don't call
3276 free_func.
3277 * jv-lang.c (struct jv_per_objfile_data): New.
3278 (jv_per_objfile_free): Free the data.
3279 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
3280 (get_java_class_symtab): Set the `dict' field on the
3281 jv_per_objfile_data.
3282 (free_class_block): Remove.
3283 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
3284 the symtab.
3285
0c2e6019
TT
32862011-04-04 Tom Tromey <[email protected]>
3287
3288 * symfile.c (reread_symbols): Update.
3289 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
3290 field.
3291 * objfiles.c (allocate_objfile): Update.
3292 * cp-support.h (cp_check_possible_namespace_symbols): Don't
3293 declare.
3294 * cp-namespace.c (lookup_symbol_file): Don't call
3295 lookup_possible_namespace_symbol.
3296 (initialize_namespace_symtab, get_possible_namespace_block)
3297 (free_namespace_block, cp_check_possible_namespace_symbols)
3298 (check_possible_namespace_symbols_loop)
3299 (check_one_possible_namespace_symbol)
3300 (lookup_possible_namespace_symbol): Remove.
3301 (maintenance_cplus_namespace): Replace with notice.
3302 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
3303
554d387d
TT
33042011-04-04 Tom Tromey <[email protected]>
3305
3306 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
3307 * symtab.h (struct symtab) <producer, debugformat>: Now const.
3308 * symmisc.c (free_symtab): Don't free debugformat.
3309 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
3310 (record_debugformat, record_producer): Document.
3311 * buildsym.c (end_symtab): Don't save debugformat and producer
3312 names on obstack.
3313 (end_symtab): Don't free debugformat and producer fields.
3314 (record_debugformat): Don't call xstrdup.
3315 (record_producer): Likewise.
3316
d4d4db8a
TT
33172011-04-04 Tom Tromey <[email protected]>
3318
3319 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
3320 (source_line_charpos, source_charpos_line): Remove.
3321
8903c50d
TT
33222011-04-04 Tom Tromey <[email protected]>
3323
3324 * symtab.h (domain_enum): Split in two...
3325 (enum search_domain): New.
3326 (search_symbols): Update.
3327 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
3328 redundant declarations.
3329 (search_symbols): Change 'kind' argument to search_domain.
3330 Update.
3331 (print_symbol_info): Likewise.
3332 (symtab_symbol_info): Likewise.
3333 * symfile.h (struct quick_symbol_functions)
3334 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
3335 <expand_symtabs_matching>: Likewise.
3336 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
3337 (expand_symtabs_matching_via_partial): Update.
3338 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
3339 (dw2_expand_symtabs_for_function): Update.
3340 * block.h: Moved anonymous enum...
3341 * defs.h (enum block_enum): ... here. Now named.
3342
d9351f5f 33432011-04-03 Joel Brobecker <[email protected]>
3344
3345 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
3346 * version.in: Bump version to 7.3.50.20110403-cvs.
3347
d6e00af6
JB
33482011-04-03 Joel Brobecker <[email protected]>
3349
3350 * NEWS: Create a new section for the next release branch.
3351 Rename the section of the current branch, now that it has
3352 been cut.
3353
2b9e5ea6
UW
33542011-04-01 Ulrich Weigand <[email protected]>
3355
3356 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
3357 for "fpscr" in target description.
3358
0cf03b49
JK
33592011-04-01 Jan Kratochvil <[email protected]>
3360
3361 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
3362 initialize it. Delay HASH initialization. Strip the part after open
3363 parenthesis for languages with qualifiers. Call do_cleanups.
3364
5d901a73
TT
33652011-04-01 Tom Tromey <[email protected]>
3366
3367 * utils.c (report_command_stats): Don't print `-' for negative
3368 number.
3369
b0dd7688
JB
33702011-04-01 Eric Botcazou <[email protected]>
3371
3372 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
3373 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
3374 typedefs.
3375
956a9fb9
JB
33762011-04-01 Joel Brobecker <[email protected]>
3377
3378 * breakpoint.h (bpdisp_text): Add declaration.
3379 * breakpoint.c (bpdisp_text): Make non-static.
3380 * ada-lang.c: #include "mi/mi-common.h".
3381 (print_it_exception): Rewrite to improve GDB/MI output.
3382
3352110b
PA
33832011-04-01 Pedro Alves <[email protected]>
3384
3385 * arm-tdep.h (struct address_space): Add forward declaration.
3386
18819fa6
UW
33872011-04-01 Ulrich Weigand <[email protected]>
3388
3389 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
3390 * arm-tdep.c (arm_override_mode): New global.
3391 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
3392 execution mode heuristics.
3393 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
3394 second single-step breakpoint if needed, using
3395 arm_insert_single_step_breakpoint.
3396 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
3397 ARM execution mode, do not call thumb_get_next_pc_raw.
3398 (arm_get_next_pc): Encode execution mode in return value. Call
3399 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
3400 (arm_insert_single_step_breakpoint): New function.
3401 (arm_software_single_step): Call it.
3402 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
3403 argument to return execution mode of sigreturn target.
3404 (arm_linux_syscall_next_pc): Use it.
3405 (arm_linux_copy_svc): Update call.
3406 (arm_linux_software_single_step): Call
3407 arm_insert_single_step_breakpoint.
3408
a6e293d1
JK
34092011-03-31 Jan Kratochvil <[email protected]>
3410
3411 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
3412 the comment.
3413
a4c8e806
TT
34142011-03-31 Tom Tromey <[email protected]>
3415
3416 * varobj.c (update_dynamic_varobj_children): Properly handle
3417 errors from iterator.
3418
df5c6c50
JK
34192011-03-31 Jan Kratochvil <[email protected]>
3420
3421 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
3422 struct linkage name twice.
3423
1dae3efc
TT
34242011-03-31 Tom Tromey <[email protected]>
3425
3426 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
3427 missing ">" to message.
3428
f4f7ab05
TT
34292011-03-31 Tom Tromey <[email protected]>
3430
3431 * varobj.c (instantiate_pretty_printer): Remove duplicate
3432 'return'.
3433
fcf250e2
UW
34342011-03-31 Ulrich Weigand <[email protected]>
3435
3436 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
3437 if neither saved value nor register available (e.g. signal frame).
3438
ee6436e3
TJB
34392011-03-31 Thiago Jung Bauermann <[email protected]>
3440
3441 * macroexp.c (expand): Avoid uninitialized variable
3442 compiler warning.
3443
423f41a5
TJB
34442011-03-31 Thiago Jung Bauermann <[email protected]>
3445
3446 * breakpoint.c (break_range_command): Fix typo in comment.
3447
f1310107
TJB
34482011-03-31 Thiago Jung Bauermann <[email protected]>
3449 Sergio Durigan Junior <[email protected]>
3450
3451 Implement support for PowerPC BookE ranged breakpoints.
3452 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
3453 * breakpoint.h (struct bp_target_info) <length>: New member
3454 variable.
3455 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
3456 instead of struct breakpoint as argument, and also add ASPACE
3457 and BP_ADDR arguments. Update all callers.
3458 (struct breakpoint_ops) <print_one_detail>: New method.
3459 (struct breakpoint) <addr_string_range_end>: New member variable.
3460 * breakpoint.c (breakpoint_location_address_match): Add function
3461 prototype.
3462 (insert_bp_location): Set bl->target_info.length.
3463 (breakpoint_here_p): Call breakpoint_location_address_match.
3464 (moribund_breakpoint_here_p): Likewise.
3465 (regular_breakpoint_inserted_here_p): Likewise.
3466 (breakpoint_thread_match): Likewise.
3467 (bpstat_stop_status): Likewise.
3468 (bpstat_check_location): Move call to
3469 breakpoint_ops.breakpoint_hit to the top.
3470 (print_one_breakpoint_location): Call
3471 breakpoint_ops.print_one_detail if available.
3472 (breakpoint_address_match_range): New function.
3473 (breakpoint_location_address_match): Likewise.
3474 (breakpoint_locations_match): Compare the length field of the
3475 locations too.
3476 (hw_breakpoint_used_count): Count resources used by all locations
3477 in a breakpoint, and use breakpoint_ops.resources_needed if
3478 available.
3479 (breakpoint_hit_ranged_breakpoint): New function.
3480 (resources_needed_ranged_breakpoint): Likewise.
3481 (print_it_ranged_breakpoint): Likewise.
3482 (print_one_ranged_breakpoint): Likewise.
3483 (print_one_detail_ranged_breakpoint): Likewise.
3484 (print_mention_ranged_breakpoint): Likewise.
3485 (print_recreate_ranged_breakpoint): Likewise.
3486 (ranged_breakpoint_ops): New structure.
3487 (find_breakpoint_range_end): New function.
3488 (break_range_command): Likewise.
3489 (delete_breakpoint): Free addr_string_range_end.
3490 (update_breakpoint_locations): Add SALS_END argument. Update
3491 all callers. Calculate breakpoint length if a non-zero SALS_END
3492 is given. Call breakpoint_locations_match instead of
3493 breakpoint_address_match.
3494 (reset_breakpoint): Find SaL of the end of the range if B is a
3495 ranged breakpoint.
3496 (_initialize_breakpoint): Register break-range command.
3497 * defs.h (print_core_address): Add function prototype.
3498 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
3499 function.
3500 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
3501 (ppc_linux_remove_hw_breakpoint): Likewise.
3502 (_initialize_ppc_linux_nat): Initialize
3503 to_ranged_break_num_registers.
3504 * target.c (update_current_target): Add comment about
3505 to_ranged_break_num_registers.
3506 (target_ranged_break_num_registers): New function.
3507 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3508 New method.
3509 (target_ranged_break_num_registers): Add function prototype.
3510 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
3511 * utils.c (print_core_address): ... here.
3512
02d20e4a
UW
35132011-03-31 Ulrich Weigand <[email protected]>
3514
3515 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
3516 variable compiler warning.
3517
ef23e705
TJB
35182011-03-30 Thiago Jung Bauermann <[email protected]>
3519
3520 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
3521 code from here ...
3522 (re_set_breakpoint): ... to here ...
3523 (addr_string_to_sals): ... and here.
3524
311e6ab3
PM
35252011-03-29 Pierre Muller <[email protected]>
3526
3527 * Makefile.in (SFILES): Add missing C sources.
3528 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
3529 Add missing headers.
3530
acd1d99c
MF
35312011-03-29 Mike Frysinger <[email protected]>
3532
3533 * .gitignore: New file.
3534
66ee2731
MF
35352011-03-29 Mike Frysinger <[email protected]>
3536
3537 * NEWS: Mention new cfi device simulation.
3538
53832f31
TT
35392011-03-29 Tom Tromey <[email protected]>
3540
3541 * dwarf2read.c (fixup_partial_die): Handle linkage name on
3542 otherwise anonymous types.
3543 (dwarf2_name): Likewise.
3544 * valops.c (value_struct_elt_for_reference): Refine artificial
3545 type logic. Call error if j==-1.
3546
09b58708
JK
35472011-03-29 Andreas Tobler <[email protected]>
3548
3549 Fix false GCC warning.
3550 * infcall.c (find_function_addr): Initialize funaddr.
3551
6023c606
PM
35522011-03-29 Pierre Muller <[email protected]>
3553
3554 Fix mingw compilation with --enable-targets=all.
3555 * remote-mips.c (gdb_usleep.h): Include header.
3556 (mips_enter_debug): Use gdb_usleep instead of sleep.
3557
0e30163f
JK
35582011-03-28 Jan Kratochvil <[email protected]>
3559
3560 Support resolution of STT_GNU_IFUNC via breakpoints.
3561 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
3562 bp_gnu_ifunc_resolver_return.
3563 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
3564 the loop. Support bp_gnu_ifunc_resolver and
3565 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
3566 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
3567 breakpoints.
3568 (bptype_string, print_one_breakpoint_location): Support
3569 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
3570 (user_settable_breakpoint): Return true also for
3571 bp_gnu_ifunc_resolver.
3572 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
3573 bp_gnu_ifunc_resolver_return.
3574 (set_breakpoint_location_function): New parameter explicit_loc,
3575 describe it. Call find_pc_partial_function_gnu_ifunc with new
3576 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
3577 EXPLICIT_LOC is not set.
3578 (set_raw_breakpoint): Set EXPLICIT_LOC for
3579 set_breakpoint_location_function.
3580 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
3581 set_breakpoint_location_function.
3582 (mention): Support bp_gnu_ifunc_resolver and
3583 bp_gnu_ifunc_resolver_return.
3584 (add_location_to_breakpoint): Set EXPLICIT_LOC for
3585 set_breakpoint_location_function.
3586 (update_breakpoint_locations): Remove static.
3587 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
3588 bp_gnu_ifunc_resolver_return.
3589 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
3590 bp_gnu_ifunc_resolver_return.
3591 (update_breakpoint_locations): New declaration.
3592 * elfread.c: Include gdbthread.h and regcache.h.
3593 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
3594 functions.
3595 (elf_gnu_ifunc_fns): Install them.
3596 * minsyms.c (stub_gnu_ifunc_resolver_stop)
3597 (stub_gnu_ifunc_resolver_return_stop): New functions.
3598 (stub_gnu_ifunc_fns): Install them.
3599 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
3600 and gnu_ifunc_resolver_return_stop.
3601 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
3602
07be84bf
JK
36032011-03-28 Jan Kratochvil <[email protected]>
3604
3605 STT_GNU_IFUNC reader implementation.
3606 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
3607 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
3608 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
3609 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
3610 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
3611 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
3612 (elf_gnu_ifunc_resolve_addr): New.
3613 (elf_symfile_read): Call elf_rel_plt_read.
3614 (elf_gnu_ifunc_fns): New.
3615 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
3616 Install elf_gnu_ifunc_fns.
3617 * infcall.c (find_function_return_type): New function.
3618 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
3619 * minsyms.c (stub_gnu_ifunc_resolve_addr)
3620 (stub_gnu_ifunc_resolve_name): New functions.
3621 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
3622 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
3623 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
3624
300f8e10
JK
36252011-03-28 Jan Kratochvil <[email protected]>
3626
3627 Code cleanup for later STT_GNU_IFUNC support.
3628 * infcall.c (find_function_addr): Remove variable code, use explicit
3629 dereferences for it. Move VALUE_TYPE initialization later.
3630
11c81455
JK
36312011-03-28 Jan Kratochvil <[email protected]>
3632
3633 GDB find_pc_partial_function support for STT_GNU_IFUNC.
3634 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
3635 (clear_pc_function_cache): Clear it.
3636 (find_pc_partial_function): Rename to ...
3637 (find_pc_partial_function_gnu_ifunc): ... this function. New
3638 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
3639 (find_pc_partial_function): New wrapper for this function.
3640 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
3641
0875794a
JK
36422011-03-28 Jan Kratochvil <[email protected]>
3643
3644 GDB internal type support for STT_GNU_IFUNC.
3645 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
3646 (elf_symtab_read): Set mst_text_gnu_ifunc for
3647 BSF_GNU_INDIRECT_FUNCTION.
3648 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
3649 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
3650 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
3651 nodebug_got_plt_symbol.
3652 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
3653 (TYPE_GNU_IFUNC): New.
3654 (struct main_type): New field flag_gnu_ifunc.
3655 (struct builtin_type): New field builtin_func_func.
3656 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
3657 nodebug_got_plt_symbol.
3658 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
3659 (in_gnu_ifunc_stub): New.
3660 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
3661 mst_text_gnu_ifunc.
3662 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
3663 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
3664 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
3665 in_gnu_ifunc_stub.
3666 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
3667 * symtab.c (search_symbols): Likewise.
3668 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
3669 and mst_slot_got_plt.
3670 (in_gnu_ifunc_stub): New declaration.
3671
d0fb5eae
JK
36722011-03-28 Jan Kratochvil <[email protected]>
3673
3674 Support a ring of related breakpoints.
3675 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
3676 other functions, add gdb_assert.
3677 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
3678 watchpoint_del_at_next_stop.
3679 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
3680 (bpstat_stop_status): Handle ring in related_breakpoint.
3681 (set_raw_breakpoint_without_location): Initialize ring in
3682 related_breakpoint.
3683 (delete_breakpoint): Handle ring in related_breakpoint, use
3684 watchpoint_del_at_next_stop.
3685 (map_breakpoint_numbers): Handle ring in related_breakpoint.
3686
9cded63f
TT
36872011-03-28 Tom Tromey <[email protected]>
3688
3689 PR symtab/12441:
3690 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
3691 with `language_minimal'.
3692
467d42c4
UW
36932011-03-25 Ulrich Weigand <[email protected]>
3694
3695 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
3696 instead of checking for STT_ARM_TFUNC symbol type.
3697
62853458
TT
36982011-03-25 Tom Tromey <[email protected]>
3699
3700 * linespec.c (symbol_found): Restore line-based result for
3701 non-LOC_LABEL symbols.
3702
a7417d46
KT
37032011-03-25 Kai Tietz <[email protected]>
3704
3705 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
3706 instead of strcmp for comparison.
3707 (tui_source_is_displayed): Likewise.
3708 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
3709
55f1336d
TT
37102011-03-24 Mark Wielaard <[email protected]>
3711
f33edef8
PP
3712 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
3713 complaint.
3714 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3715 (find_partial_die_in_comp_unit): Likewise in comment.
3716 (read_attribute_value): Likewise.
3717 (lookup_die_type): Likewise.
3718 (dwarf_form_name): Likewise.
3719 (dump_die_shallow): Likewise.
3720 (follow_die_ref_or_sig): Likewise.
55f1336d 3721
9ef07c8c
TT
37222011-03-24 Tom Tromey <[email protected]>
3723
3724 PR breakpoints/11816:
3725 * linespec.c (decode_line_1): Parse `function:label' linespecs.
3726 (decode_compound): Update.
3727 (find_function_symbol): New function.
3728 (decode_dollar): Update.
3729 (decode_label): Add 'function_symbol' parameter. Handle
3730 function-relative labels.
3731 (decode_variable): Update.
3732 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
3733 not its line. Set `special_display' and canonical name for
3734 labels.
3735
56435ebe
TT
37362011-03-24 Tom Tromey <[email protected]>
3737
3738 * linespec.h (struct linespec_result) <special_display>: New
3739 field.
3740 * breakpoint.h (struct breakpoint) <display_canonical>: New
3741 field.
3742 * breakpoint.c (print_breakpoint_location): Respect
3743 display_canonical.
3744 (create_breakpoint_sal): Add 'display_canonical' parameter.
3745 (create_breakpoints_sal): Update.
3746 (create_breakpoint): Update.
3747
7efd8fc2
TT
37482011-03-24 Tom Tromey <[email protected]>
3749
3750 * symtab.c (decode_line_spec): Update.
3751 * linespec.c (build_canonical_line_spec): Change type of
3752 'canonical'.
3753 (decode_line_2, decode_line_1, decode_objc, decode_compound)
3754 (find_method, decode_all_digits, decode_dollar, decode_label)
3755 (symbol_found): Likewise.
3756 (init_linespec_result): New function.
3757 * breakpoint.c (struct captured_parse_breakpoint_args)
3758 <canonical_p>: New field, replaces addr_string_p.
3759 (create_breakpoints_sal): Add 'canonical' parameter, replacing
3760 'addr_string'.
3761 (parse_breakpoint_sals): Likewise.
3762 (do_captured_parse_breakpoint): Update.
3763 (create_breakpoint): Use struct linespec_result.
3764 (until_break_command): Update.
3765 (breakpoint_re_set_one): Update.
3766 (decode_line_spec_1): Update.
3767 * linespec.h (struct linespec_result): New.
3768 (init_linespec_result): Declare.
3769
788c8b10
PA
37702011-03-23 Pedro Alves <[email protected]>
3771
3772 * regcache.c (regcache_raw_read): If the target didn't supply a
3773 given raw register, mark it as unavailable.
3774
0ba1096a
KT
37752011-03-23 Kai Tietz <[email protected]>
3776
3777 * breakpoint.c (clear_command): Use filename_cmp
3778 instead of strcmp for comparison.
3779 * buildsym.c (watch_main_source_file_lossage): Likewise.
3780 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3781 checking just for slash.
3782 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3783 strrchr and filename_cmp instead of strcmp for filenames.
3784 (add_old_header_file): Use filename_cmp
3785 instead of strcmp for comparison.
3786 * exec.c (exec_set_section_address): Likewise.
3787 * macrotab.c (macro_lookup_inclusion): Likewise.
3788 (macro_lookup_inclusion): Likewise.
3789 * elfread.c (_initialize_elfread): Likewise.
3790 (elfstab_offset_sections): Likewise.
3791 (elfstab_offset_sections): Use lbasename instead of
3792 strrchr.
3793 * mdebugread.c (parse_partial_symbols): Likewise.
3794 (arse_partial_symbols): Use filename_(n)cmp instead of
3795 str(n)cmp for comparison.
3796 * minsyms.c (lookup_minimal_symbol): Likewise.
3797 * psymtab.c (read_psymtabs_with_filename): Likewise.
3798 * solib.c (solib_read_symbols): Likewise.
3799 (reload_shared_libraries_1): Likewise.
3800 * symmisc.c (maintenance_print_symbols): Likewise.
3801 * symfile.c (separate_debug_file_exists): Likewise.
3802 (reread_symbols): Likewise.
3803 (find_separate_debug_file_by_debuglink): Likewise.
3804 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3805 * source.c (add_path): Likewise.
3806 * symtab.c (filename_seen): Likewise.
3807 (file_matches): Likewise.
3808 (print_symbol_info): Likewise.
3809 (maybe_add_partial_symtab_filename): Likewise.
3810 (make_source_files_completion_list): Likewise.
3811 * xml-syscall.c (init_sysinfo): Likewise.
3812 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3813 IS_DIR_SEPARATOR for checking for trailing path separator.
3814
dd90784c
JK
38152011-03-22 Jan Kratochvil <[email protected]>
3816
3817 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3818 label abort_expression.
3819 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3820 DWARF_VALUE_OPTIMIZED_OUT.
3821
3167638f
JK
38222011-03-22 Jan Kratochvil <[email protected]>
3823
3824 Code cleanup.
3825 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3826 to linkage_name. Invert its value. Update the function comment.
3827 (c_type_print_varspec_suffix): Invert it at the caller.
3828 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3829
ce406537
PA
38302011-03-22 Pedro Alves <[email protected]>
3831
3832 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3833 errors when reading the `stop_pc'.
3834 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3835 get_frame_pc.
3836
da5d4055
PM
38372011-03-22 Phil Muldoon <[email protected]>
3838
3839 * NEWS: Document gdb.Write stream keyword.
3840
29e0eb9c
JK
38412011-03-22 Jan Kratochvil <[email protected]>
3842
3843 Revert:
3844 2011-03-21 Jan Kratochvil <[email protected]>
3845 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3846 (dwarf2_add_field): Fix new_field->accessibility for
3847 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3848
05775840
PM
38492011-03-22 Phil Muldoon <[email protected]>
3850
f33edef8 3851 PR python/12183
05775840
PM
3852
3853 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3854 other error classes. Do not print stack trace.
3855
a0cb7835
JK
38562011-03-21 Jan Kratochvil <[email protected]>
3857
3858 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3859 (dwarf2_add_field): Fix new_field->accessibility for
3860 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3861
d19f7eee
UW
38622011-03-21 Ulrich Weigand <[email protected]>
3863
3864 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3865 encountering a load via a non-SP register.
3866
4a2fbb50
UW
38672011-03-21 Ulrich Weigand <[email protected]>
3868
3869 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3870 field in returned unwinder.
3871
3489610d
JB
38722012-03-21 Jan Kratochvil <[email protected]>
3873
3874 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3875
8c1a34e7
JB
38762012-03-21 Joel Brobecker <[email protected]>
3877
3878 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3879 of xmalloc.
3880
8fbca658
PA
38812012-03-18 Pedro Alves <[email protected]>
3882
3883 * frame.c (frame_unwind_register): Throw an error if unwinding the
3884 register failed.
3885 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3886 an unwind stop reason.
3887 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3888 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3889 UNWIND_UNAVAILABLE>: New.
3890 * inline-frame.c (inline_frame_unwind): Install
3891 default_frame_unwind_stop_reason.
3892 * frame-unwind.c: Include "exceptions.h".
3893 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3894 (default_frame_unwind_stop_reason): New.
3895 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3896 (default_frame_unwind_stop_reason): Declare.
3897 (struct frame_unwind) <stop_reason>: New function pointer.
3898
3899 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3900 * dwarf2-frame.c: Include exceptions.h.
3901 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3902 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3903 computing the CFA. If such an error was thrown, set
3904 unavailable_retaddr.
3905 (dwarf2_frame_unwind_stop_reason): New.
3906 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3907 unavailable.
3908 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3909 (dwarf2_signal_frame_unwind): Ditto.
3910
3911 * amd64-tdep.c: Include "exceptions.h".
3912 (struct amd64_frame_cache): New field "base_p".
3913 (amd64_init_frame_cache): Clear it.
3914 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3915 Avoid reading registers with functions that throw if the register
3916 is not necessary to compute the frame base.
3917 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3918 swallowing NOT_AVAILABLE_ERROR.
3919 (amd64_frame_unwind_stop_reason): New.
3920 (amd64_frame_this_id): Don't build a frame id if the frame base
3921 was unavailable.
3922 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3923 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3924 base_p if the frame base was computable.
3925 (amd64_sigtramp_frame_unwind_stop_reason): New.
3926 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3927 frame base was unavailable.
3928 (amd64_sigtramp_frame_unwind): Install
3929 amd64_sigtramp_frame_unwind_stop_reason.
3930 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3931 base_p if the frame base was computable.
3932 (amd64_epilogue_frame_unwind_stop_reason): New.
3933 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3934 frame base was unavailable.
3935 (amd64_epilogue_frame_unwind): Install
3936 amd64_epilogue_frame_unwind_stop_reason.
3937 * i386-tdep.c: Include "exceptions.h".
3938 (struct i386_frame_cache): New field "base_p".
3939 (i386_init_frame_cache): Clear it.
3940 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3941 Avoid reading registers with functions that throw if the register
3942 is not necessary to compute the frame base.
3943 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3944 swallowing NOT_AVAILABLE_ERROR.
3945 (i386_frame_unwind_stop_reason): New.
3946 (i386_frame_this_id): Don't build a frame id if the frame base was
3947 unavailable.
3948 (i386_frame_prev_register): Handle unavailable SP.
3949 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3950 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3951 base_p if the frame base was computable.
3952 (i386_epilogue_frame_unwind_stop_reason): New.
3953 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3954 base was unavailable.
3955 (i386_epilogue_frame_unwind): Install
3956 i386_epilogue_frame_unwind_stop_reason.
3957 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3958 base_p if the frame base was computable.
3959 (i386_sigtramp_frame_unwind_stop_reason): New.
3960 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3961 base was unavailable.
3962 (i386_sigtramp_frame_unwind): Install
3963 i386_sigtramp_frame_unwind_stop_reason.
3964 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3965 type's size, not the register's.
3966 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3967
3968 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3969 default_frame_unwind_stop_reason.
3970 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3971 (alpha_heuristic_frame_unwind): Ditto.
3972 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3973 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3974 * avr-tdep.c (avr_frame_unwind): Ditto.
3975 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3976 Ditto.
3977 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3978 * frv-tdep.c (frv_frame_unwind): Ditto.
3979 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3980 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3981 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3982 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3983 (hppa_stub_frame_unwind): Ditto.
3984 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3985 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3986 (ia64_libunwind_frame_unwind)
3987 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3988 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3989 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3990 * m32c-tdep.c (m32c_unwind): Ditto.
3991 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3992 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3993 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3994 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3995 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3996 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3997 * mep-tdep.c (mep_frame_unwind): Ditto.
3998 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3999 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
4000 (mips_stub_frame_unwind): Ditto.
4001 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
4002 * moxie-tdep.c (moxie_frame_unwind): Ditto.
4003 * mt-tdep.c (mt_frame_unwind): Ditto.
4004 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
4005 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
4006 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
4007 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
4008 (s390_sigtramp_frame_unwind): Ditto.
4009 * score-tdep.c (score_prologue_unwind): Ditto.
4010 * sh-tdep.c (sh_frame_unwind): Ditto.
4011 * sh64-tdep.c (sh64_frame_unwind): Ditto.
4012 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
4013 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
4014 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
4015 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
4016 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
4017 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
4018 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
4019 (sparc64obsd_trapframe_unwind): Ditto.
4020 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
4021 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
4022 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
4023 * v850-tdep.c (v850_frame_unwind): Ditto.
4024 * vax-tdep.c (vax_frame_unwind): Ditto.
4025 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
4026 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
4027 * xtensa-tdep.c (xtensa_unwind): Ditto.
4028
f23d1b92
PA
40292011-03-18 Pedro Alves <[email protected]>
4030
4031 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
4032 there's always a frame. Use get_frame_pc_if_available instead of
4033 get_frame_pc, and if there's no PC available, don't look up a
4034 symtab.
4035
1d4f5741
PA
40362011-03-18 Pedro Alves <[email protected]>
4037
4038 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
4039 unavailable PC.
4040
dba09041
PA
40412011-03-18 Pedro Alves <[email protected]>
4042
4043 * tracepoint.c (set_traceframe_context): Handle unavailable PC
4044 gracefully.
4045
9a26e44c
PA
40462011-03-18 Pedro Alves <[email protected]>
4047
4048 * frame.h (frame_unwind_caller_pc_if_available): Declare.
4049 * frame.c (frame_unwind_caller_pc_if_available): New.
4050 * stack.c (frame_info): Handle unavailable PC.
4051
40522011-03-18 Pedro Alves <[email protected]>
4053
4054 * frame.c (frame_unwind_pc): Rename to ...
4055 (frame_unwind_pc_if_available): ... this. New `pc' output
4056 parameter. Change return type to int. Gracefully handle
4057 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
4058 happened, or 1 otherwise.
4059 (frame_unwind_pc): Reimplement on top of
4060 frame_unwind_pc_if_available.
4061 (get_frame_func): Rename to ...
4062 (get_frame_func_if_available): New `pc' output parameter. Change
4063 return type to int. Gracefully handle the PC not being available.
4064 (get_frame_func): Reimplement on top of
4065 get_frame_func_if_available.
4066 (select_frame): Handle the PC being unavailable.
4067 (get_prev_frame): Handle the PC being unavailable.
4068 (get_frame_pc_if_available): New.
4069 (get_frame_address_in_block_if_available): New.
4070 (find_frame_sal): Handle the frame PC not being available.
4071 * frame.h (get_frame_pc_if_available): Declare.
4072 (get_frame_address_in_block_if_available): Declare.
4073 (get_frame_func_if_available): Declare.
4074 * stack.c (print_frame_info): Handle the PC being unavailable.
4075 (find_frame_funname): Ditto.
4076 (print_frame): Handle the PC being unavailable.
4077 (get_frame_language): Ditto.
4078 * blockframe.c (get_frame_block): Ditto.
4079 * macroscope.c (default_macro_scope): Ditto.
4080 * tui/tui-stack.c (tui_show_frame_info): Ditto.
4081
40822011-03-18 Pedro Alves <[email protected]>
4083
4084 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
4085 NOT_AVAILABLE_ERROR when evaluating the location expression.
4086
40872011-03-18 Pedro Alves <[email protected]>
4088
4089 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
4090 returning that the register piece is unavailable/optimized out.
4091 (write_pieced_value): Handle get_frame_register_bytes returning
4092 that the register piece is unavailable/optimized out when doing a
4093 read-modify write of a bitfield.
4094 * findvar.c (value_from_register): Handle get_frame_register_bytes
4095 returning that the register piece is unavailable/optimized out.
4096 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
4097 and `unavailablep'. Throw error on bad debug info. Use
4098 frame_register instead of frame_register_read, to fill in the new
4099 arguments.
4100 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
4101 and `unavailablep'.
4102 * valops.c: (value_assign): Adjust, and handle
4103 get_frame_register_bytes failing.
4104 * spu-tdep.c: Include exceptions.h.
4105 (spu_software_single_step): Adjust, and handle
4106 get_frame_register_bytes failing.
4107 (spu_get_longjmp_target): Ditto.
4108 * gdbarch.sh (register_to_value): Change to return int. New
4109 parameters `optimizedp' and `unavailablep'.
4110 * gdbarch.h, gdbarch.c: Regenerate.
4111 * i386-tdep.c (i386_register_to_value): Adjust to new
4112 gdbarch_register_to_value interface.
4113 * i387-tdep.c (i387_register_to_value): Ditto.
4114 * i387-tdep.h (i387_register_to_value): Ditto.
4115 * alpha-tdep.c (alpha_register_to_value): Ditto.
4116 * ia64-tdep.c (ia64_register_to_value): Ditto.
4117 * m68k-tdep.c (m68k_register_to_value): Ditto.
4118 * mips-tdep.c (mips_register_to_value): Ditto.
4119 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
4120
0fdb4f18
PA
41212011-03-18 Pedro Alves <[email protected]>
4122
4123 * findvar.c (value_of_register): Mark the value as unavailable, if
4124 the register is unavailable.
4125 * frame.h (frame_register_unwind): New `unavailablep' parameter.
4126 (frame_register): New `unavailablep' parameter.
4127 (frame_register_read): Update comment.
4128 * frame.c (frame_register_unwind): New `unavailablep' parameter.
4129 Set it if the register is unavailable. If the register is
4130 unavailable, clear the output buffer.
4131 (frame_register): New `unavailablep' parameter. Pass it down.
4132 (frame_unwind_register): Adjust.
4133 (put_frame_register): Adjust.
4134 (frame_register_read): Adjust. Also return false if the register
4135 is not available.
4136 (frame_register_unwind_location): Adjust.
4137 * sentinel-frame.c (sentinel_frame_prev_register): If the register
4138 is unavailable, mark the value accordingly.
4139 * stack.c (frame_info): Handle unavailable registers.
4140
e69aa73e
PA
41412011-03-18 Pedro Alves <[email protected]>
4142
4143 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
4144 simplify, using regcache_cooked_read.
4145
05d1431c
PA
41462011-03-18 Pedro Alves <[email protected]>
4147
4148 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
4149 (regcache_raw_read_unsigned, regcache_raw_read_signed)
4150 (regcache_raw_read_unsigned, regcache_raw_read_part)
4151 (regcache_cooked_read, regcache_cooked_read_signed)
4152 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
4153 (regcache_cooked_read_ftype): Change return to enum
4154 register_status.
4155 * regcache.c: Include exceptions.h
4156 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
4157 (do_cooked_read): Change return to enum register_status. Always
4158 forward to regcache_cooked_read.
4159 (regcache_raw_read): Change return to enum register_status. If
4160 the register is not REG_VALID, memset the buffer. Return the
4161 register's status.
4162 (regcache_raw_read_signed): Handle non-REG_VALID registers and
4163 return the register's status.
4164 (regcache_raw_read_unsigned): Ditto.
4165 (regcache_cooked_read): Change return to enum register_status.
4166 Assert that with read-only regcaches, the register's status must
4167 be known. If the regcache is read-only, and the register is not
4168 REG_VALID, memset the buffer. Return the register's status.
4169 (regcache_cooked_read_signed): Change return to enum
4170 register_status. Handle non-REG_VALID registers and return the
4171 register's status.
4172 (regcache_cooked_read_unsigned): Change return to enum
4173 register_status. Handle non-REG_VALID registers and return the
4174 register's status.
4175 (regcache_xfer_part, regcache_raw_read_part)
4176 (regcache_cooked_read_part): Change return to enum
4177 register_status. Return the register's status.
4178 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
4179 unavailable.
4180 (regcache_dump): Handle unavailable cooked registers.
4181 * frame.c (do_frame_register_read): Adjust interface to match
4182 regcache_cooked_read_ftype.
4183 * gdbarch.sh (pseudo_register_read): Change return to enum
4184 register_status.
4185 * gdbarch.h, gdbarch.c: Regenerate.
4186
4187 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
4188 register_status.
4189 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
4190 register_status. If reading a raw register indicates the raw
4191 register is not valid, return the raw register's status,
4192 otherwise, return REG_VALID.
4193 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
4194 register_status. Handle non-REG_VALID raw registers and return
4195 the register's status.
4196 * arm-tdep.c (arm_neon_quad_read)
4197 (arm_pseudo_read): Change return to enum register_status. Handle
4198 non-REG_VALID raw registers and return the register's status.
4199 * avr-tdep.c (avr_pseudo_register_read): Ditto.
4200 * frv-tdep.c (frv_pseudo_register_read): Ditto.
4201 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
4202 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
4203 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
4204 register_status.
4205 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
4206 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
4207 (m32c_part_write, m32c_cat_read, m32c_cat_write)
4208 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
4209 (m32c_pseudo_register_read): Change return to enum
4210 register_status. Adjust.
4211 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
4212 enum register_status. Return the register's status.
4213 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
4214 register_status. Return the register's status.
4215 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
4216 * mips-tdep.c (mips_pseudo_register_read): Ditto.
4217 * mt-tdep.c (mt_pseudo_register_read): Ditto.
4218 * rs6000-tdep.c (move_ev_register_func): New typedef.
4219 (e500_move_ev_register): Use it. Change return to enum
4220 register_status. Return the register's status.
4221 (do_regcache_raw_read): New function.
4222 (do_regcache_raw_write): New function.
4223 (e500_pseudo_register_read): Change return to enum
4224 register_status. Return the register's status. Use
4225 do_regcache_raw_read.
4226 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
4227 (dfp_pseudo_register_read): Change return to enum register_status.
4228 Return the register's status.
4229 (vsx_pseudo_register_read): Ditto.
4230 (efpr_pseudo_register_read): Ditto.
4231 (rs6000_pseudo_register_read): Ditto.
4232 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
4233 register_status. Return the register's status.
4234 * sh64-tdep.c (pseudo_register_read_portions): New function.
4235 (sh64_pseudo_register_read): Change return to enum
4236 register_status. Use pseudo_register_read_portions. Return the
4237 register's status.
4238 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
4239 register_status. Return the register's status.
4240 * sh-tdep.c (pseudo_register_read_portions): New function.
4241 (sh_pseudo_register_read): Change return to enum register_status.
4242 Use pseudo_register_read_portions. Return the register's status.
4243 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
4244 enum register_status. Return the register's status.
4245 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
4246 * spu-tdep.c (spu_pseudo_register_read_spu)
4247 (spu_pseudo_register_read): Ditto.
4248 * xtensa-tdep.c (xtensa_register_read_masked)
4249 (xtensa_pseudo_register_read): Ditto.
4250 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
4251
e10abd8f
PM
42522011-03-18 Pierre Muller <[email protected]>
4253
4254 * python/py-value.c (valpy_getitem): Fix formatting of error function
4255 call.
4256
7ea6d463
PM
42572011-03-18 Pierre Muller <[email protected]>
4258
4259 ARI fixes: Add missing internationalization markups throughout
4260 C source files.
4261 * darwin-nat-info.c: Ditto.
4262 * record.c: Ditto.
4263 * remote.c: Ditto.
4264 * mi/mi-main.c: Ditto.
4265
001083c6
PM
42662011-03-18 Pierre Muller <[email protected]>
4267
4268 ARI fixes: Add missing internationalization markups throughout
4269 yacc files.
4270 * c-exp.y: Ditto.
4271 * cp-name-parser.y: Ditto.
4272 * f-exp.y: Ditto.
4273 * m2-exp.y: Ditto.
4274 * objc-exp.y: Ditto.
4275 * p-exp.y: Ditto.
4276
4f1cdeec
PM
42772011-03-18 Pierre Muller <[email protected]>
4278
4279 ARI fixes: Messages should have no trailing new lines.
4280 * darwin-nat.c (mach_check_error): Remove trailing new line from
4281 warning function call message.
4282 * record.c (bfdcore_read): Idem for error call.
4283
28e698f1
PM
42842011-03-18 Pierre Muller <[email protected]>
4285
4286 * common/signals.c (target_signal_from_host): Add _ markup to error
4287 function call message.
4288 (target_signal_to_host): Add _ markup and remove trailing new line
4289 from warning call message.
4290 (target_signal_from_command): Add _ markup to error function call
4291 message.
4292
99c3dc11
PM
42932011-03-18 Phil Muldoon <[email protected]>
4294
f33edef8 4295 PR python/12149
99c3dc11
PM
4296
4297 * python/python.c (gdbpy_write): Accept a stream argument and
4298 operate to the appropriate stream.
4299 (gdbpy_flush): Likewise.
4300 (_initialize_python): Add stream constants.
4301 (finish_python_initialization): Add GdbOutputErrorFile class.
4302
c20800be
KY
43032011-03-18 Kwok Cheung Yeung <[email protected]>
4304
4305 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4306
f4a1794a
KY
43072011-03-18 Kwok Cheung Yeung <[email protected]>
4308
4309 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
4310 to store_signed_integer. Add debug message when relocating CALL
4311 instructions. Fix formatting of debug message.
4312 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 4313
d4862372
JB
43142011-03-17 Joel Brobecker <[email protected]>
4315
4316 * target.h (struct target_ops): Remove to_lookup_symbol field.
4317 (target_lookup_symbol): Delete macro.
4318 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
4319 (update_current_target, setup_target_debug): Remove handling
4320 of to_lookup_symbol target_ops field.
4321 * ada-tasks.c (get_known_tasks_addr): Remove use of
4322 target_lookup_symbol.
4323 * coffread.c (coff_symtab_read): Likewise.
4324 * dbxread.c (read_dbx_symtab): Ditto.
4325
d645e32e
JB
43262011-03-17 Joel Brobecker <[email protected]>
4327
4328 PR gdb/12116:
4329 * configure.ac: Add getthrds declaration check.
4330 * configure, config.in: Regenerate.
4331 * aix-thread.c (getthrds): Declare only if not already declared
4332 in procinfo.h. More declaration out of get_signaled_thread to
4333 global scope.
4334
29703da4
PM
43352011-03-17 Phil Muldoon <[email protected]>
4336
4337 * python/py-symtab.c: Populate symtab_object_methods,
4338 sal_object_methods.
4339 (stpy_is_valid): New function.
4340 (salpy_is_valid): Ditto.
4341 * python/py-symbol.c: Declare symbol_object_methods. Populate.
4342 (sympy_is_valid): New function.
4343 * python/py-objfile.c: Declare objfile_object_methods. Populate.
4344 (objfpy_is_valid): New function.
4345 * python/py-inferior.c: Populate inferior_object_methods.
4346 (infpy_is_valid): New function.
4347 * python/py-infthread.c: Populate thread_object_methods.
4348 (thpy_is_valid): New function.
4349 * python/py-block.c: Declare block_object_methods. Populate. Declare
4350 block_iterator_object_methods. Populate.
4351 (blpy_is_valid): New function.
4352 (blpy_iter_is_valid): Ditto.
4353
c00f8484
KS
43542011-03-16 Keith Seitz <[email protected]>
4355
4356 * linespec.c (find_methods): Canonicalize NAME before looking
4357 up the symbol.
4358 (name_end): New function.
4359 (keep_name_info): New function.
4360 (decode_line_1): Use keep_name_info.
4361 (decode_compound): Likewise.
4362 * cli/cli-utils.h (remove_trailing_whitespace): New function.
4363 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
4364
4365 PR c++/12273
4366 * linespec.c (locate_first_half): Keep overload information, too.
4367 (decode_compound): Use a string to represent break characters
4368 to escape the loop.
4369 If P points to a break character, do not increment it.
4370 For C++ and Java, keep overload information and relevant keywords.
4371 If we cannot find a symbol, search the minimal symbols.
4372
4373 PR c++/11734
4374 * linespec.c (decode_compound): Rename SAVED_ARG to
4375 THE_REAL_SAVED_ARG.
4376 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
4377 single-quotes.
4378 Pass a valid block to lookup_symbol.
4379 (lookup_prefix_sym): Likewise.
4380 (find_method): Construct search name based on SYM_CLASS instead
4381 of SAVED_ARG.
4382 * psymtab.c (lookup_partial_symbol): Add language parameter.
4383 (lookup_symbol_aux_psymtabs): Likewise.
4384 Don't assume that the psymtab we found was the right one. Search
4385 for the desired symbol in the symtab to be certain.
4386 (psymtab_search_name): New function.
4387 (lookup_partial_symbol): Use psymtab_search_name.
4388 Add language parameter.
4389 (read_symtabs_for_function): Add language parameter and pass to
4390 lookup_partial_symbol.
4391 (find_symbol_file_from_partial): Likewise.
4392
c91513d8
PP
43932011-03-16 Paul Pluzhnikov <[email protected]>
4394
4395 PR gdb/12528
4396 * dwarf2read.c (noop_record_line): New function.
4397 (dwarf_decode_lines): Ignore line tables for GCd functions.
4398
b37520b6
PM
43992011-03-16 Pierre Muller <[email protected]>
4400
4401 Fix ARI warnings about new lines at the end of messages, which
4402 are unneeded as there is a new line added at the end of the message
4403 automatically.
4404 * darwin-nat.c (darwin_stop_inferior): Ditto.
4405 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
4406 * dfp.c (decimal_to_number): Ditto.
4407 * exec.c (print_section_info): Ditto.
4408 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
4409 * osdata.c (get_osdata): Ditto.
4410 * record.c (bfdcore_write): Ditto.
4411 * remote-mips.c (mips_readchar): Ditto.
4412 * remote.c (read_ptid): Ditto.
4413 * ser-mingw.c (ser_windows_raw): Ditto.
4414 * tracepoint.c (add_local_symbols): Ditto.
4415 * windows-nat.c (fake_create_process): Ditto.
4416
b08ee6a2
TT
44172011-03-16 Tom Tromey <[email protected]>
4418
4419 * tracepoint.c (stop_tracing): Don't declare.
4420 * event-top.c (after_char_processing_hook): Add `(void)'.
4421
9a6f1302
PM
44222011-03-16 Phil Muldoon <[email protected]>
4423
4424 * NEWS: Add Parameter sub-classing description.
4425
7ceb86b1
KT
44262011-03-16 Kai Tietz <[email protected]>
4427
4428 * MAINTAINERS: Update my e-mail address.
4429
efeff6cf
AT
44302011-03-15 Andreas Tobler <[email protected]>
4431
4432 * MAINTAINERS: Add myself for write after approval privileges.
4433
681c238c
MS
44342011-03-15 Michael Snyder <[email protected]>
4435
f3df5b08
MS
4436 * frame.c (find_frame_sal): Assert sym is not null.
4437
13f6513c
MS
4438 * dbxread.c (process_one_symbol): Assert 'name' is not null.
4439
50412521
MS
4440 * objc-lang.c (selectors_info): Check strchr for null result.
4441
681c238c
MS
4442 * stabsread.c (define_symbol): Guard against bad stabstring input.
4443
6ced1581
PM
44442011-03-15 Pierre Muller <[email protected]>
4445
4446 Remove trailing spaces and tabulations from pascal language
4447 support sources.
4448 p-exp.y: Ditto.
4449 p-lang.c: Ditto.
4450 p-lang.h: Ditto.
4451 p-valprint.c: Ditto.
4452
9373cf26
JK
44532011-03-15 Jan Kratochvil <[email protected]>
4454
4455 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
4456 than LOW. Comment it.
4457 (read_partial_die): Call complaint for inappropriate zero LOWPC or
4458 HIGHPC not strictly higher than LOWPC.
4459
9a1edae6
PM
44602011-03-15 Pierre Muller <[email protected]>
4461
4462 Fix formatting of function declarations returning a pointer in
4463 previous commit.
4464 * varobj.c (varobj_add_child): Ditto.
4465 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
4466 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
4467
24e9cda0
UW
44682011-03-15 Ulrich Weigand <[email protected]>
4469
4470 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
4471 for the "generic" vector ABI used with GCC 4.3 and later.
4472 (ppc64_sysv_abi_return_value): Likewise.
4473
44742011-03-15 Ulrich Weigand <[email protected]>
81b4675a
UW
4475
4476 * infcall.c (call_function_by_hand): Function return value is
4477 always a non_lval, even when using struct_return.
4478
c9174737
PA
44792011-03-15 Pedro Alves <[email protected]>
4480
4481 * printcmd.c (ALL_DISPLAYS_SAFE): New.
4482 (map_display_numbers): New.
4483 (do_delete_display): New.
4484 (undisplay_command): Use map_display_numbers.
4485 (do_enable_disable_display): New.
4486 (enable_disable_display_command): New function.
4487 (enable_display): Delete.
4488 (enable_display_command): New.
4489 (disable_display_command): Reimplement.
4490 (_initialize_printcmd): Adjust "enable display" command to use
4491 `enable_display_command' as callback.
4492
350c6c65
PM
44932011-03-14 Phil Muldoon <[email protected]>
4494
4495 * NEWS: Add Python breakpoint 'stop' operation.
4496
824446ad
PM
44972011-03-14 Phil Muldoon <[email protected]>
4498
4499 * NEWS: Delete duplicate entry. Fix typo.
4500
2021ad3a
PM
45012011-03-14 Pierre Muller <[email protected]>
4502
4503 Fix ARI warning about function names in first column.
4504 Put prototype declaration on same line as return type.
4505 * objc-exp.y: Ditto.
4506 * p-exp.y: Ditto.
4507 * python/py-stopevent.h: Ditto.
4508 For long function names, split parameters to
4509 allow function name on same line as return type.
4510 * solib-pa64.c: Ditto.
4511 * varobj.c: Ditto.
4512 * varobj.h: Ditto.
4513 For long function declaration, use single line.
4514 * hppa-tdep.h: Ditto.
4515 * inferior.h: Ditto.
4516
7371cf6d
PM
45172011-03-14 Phil Muldoon <[email protected]>
4518
4519 * python/python.h: Declare gdbpy_should_stop and
4520 gdbpy_breakpoint_has_py_cond.
4521 * python/python.c: Add python.h to includes. Remove python.h from
4522 HAVE_PYTHON definition
4523 (gdbpy_should_stop): New dummy function.
4524 (gdbpy_breakpoint_has_py_cond): New dummy function.
4525 * python/py-breakpoint.c (bppy_init): Rewrite to allow
4526 sub-classing capabilities.
4527 (gdbpy_should_stop): New function.
4528 (gdbpy_breakpoint_has_py_cond): New function.
4529 (local_setattro): New function.
4530 * breakpoint.c (condition_command): Add check for Python 'stop'
4531 operation.
4532 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
4533 operation function as part of stop/continue tests.
4534
37b50a69
TT
45352011-03-14 Tom Tromey <[email protected]>
4536
4537 PR gdb/12576:
4538 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
4539 (needs_frame_dwarf_call): Likewise.
4540
eeae04df
PM
45412011-03-14 Pierre Muller <[email protected]>
4542
4543 Fix ARI warning about functions without parameters that do not
4544 use (void).
4545 * breakpoint.c (all_tracepoints): Replace () by (void).
4546 * f-exp.y (match_string_literal): Ditto.
4547 (yylex): Ditto.
4548 * m2-exp.y (yylex): Ditto.
4549 * mep-tdep.c (current_me_module): Ditto.
4550 (current_options): Ditto.
4551 (current_cop_data_bus_width): Ditto.
4552 (current_cr_names): Ditto.
4553 (current_cr_is_float): Ditto.
4554 (current_ccr_names): Ditto.
4555 * objc-exp.y (yylex): Ditto.
4556 * p-exp.y (yylex): Ditto.
4557 * remote.c (send_interrupt_sequence): Ditto.
4558 * tracepoint.c (current_trace_status): Ditto.
4559 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
4560 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
4561
6dc3565d
MS
45622011-03-11 Michael Snyder <[email protected]>
4563
1427fe5e
MS
4564 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
4565 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
4566 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
4567 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
4568 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
4569
60bc018f
MS
4570 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
4571 (delete_async_event_handler): Ditto.
4572
f3be5b64
MS
4573 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
4574
4c2d5724
MS
4575 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
4576
6dc3565d
MS
4577 * top.c (set_verbose): Assert showcmd was found.
4578
4e6ca6d5
MG
45792011-03-11 Maxim Grigoriev <[email protected]>
4580
4581 * xtensa-tdep.c (warning_once): Correct style issues.
4582
815a83e4
YQ
45832011-03-11 Yao Qi <[email protected]>
4584
4585 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
4586
f2eb0bc8
AS
45872011-03-11 Andreas Schwab <[email protected]>
4588
4589 * common/aclocal.m4: Remove.
4590
b801de47
MG
45912011-03-10 Maxim Grigoriev <[email protected]>
4592
4593 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
4594 (xtensa_write_register, xtensa_read_register): Likewise.
4595 (xtensa_hextochar): Removed.
4596 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
4597
dbab50de
MG
45982011-03-10 Maxim Grigoriev <[email protected]>
4599
4600 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 4601 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
4602 (xtensa_alloc_frame_cache): Add initialization for new fields.
4603 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
4604 (warning_once): New function.
4605 (xtensa_insn_kind): New item c0opc_and.
4606 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
4607 (call0_track_op): Change arguments. New local variable litbase.
4608 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
4609 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
4610 in the prologue.
dbab50de 4611 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 4612 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
4613 Add the variety of updates to handle extended prologues, which now can
4614 conduct dynamic stack adjustments.
4615 (call0_frame_cache): Likewise.
4616 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
4617 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
4618
b2c04452
MS
46192011-03-10 Michael Snyder <[email protected]>
4620
f8f67713
MS
4621 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
4622 (cmd_qtframe): Ditto.
4623 (cmd_qtbuffer): Ditto.
4624 (cmd_bigqtbuffer): Ditto.
4625
197f0a60
TT
46262011-03-10 Tom Tromey <[email protected]>
4627
4628 * tracepoint.c (trace_actions_command): Update.
4629 * thread.c (thread_apply_command): Update.
4630 * reverse.c (delete_bookmark_command): Update.
4631 (bookmarks_info): Update.
4632 * printcmd.c (undisplay_command): Update.
4633 * memattr.c (mem_enable_command): Update.
4634 (mem_disable_command): Update.
4635 (mem_delete_command): Update.
4636 * inferior.c (detach_inferior_command): Update.
4637 (kill_inferior_command): Update.
4638 (remove_inferior_command): Update.
4639 * cli/cli-utils.h (struct get_number_or_range_state): New.
4640 (init_number_or_range): Declare.
4641 (get_number_or_range): Update.
4642 * cli/cli-utils.c (init_number_or_range): New function.
4643 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
4644 static variables.
4645 (number_is_in_list): Update.
4646 * breakpoint.h (get_tracepoint_by_number): Update.
4647 * breakpoint.c (map_breakpoint_numbers): Update for change to
4648 get_number_or_range.
4649 (find_location_by_number): Use get_number, not
4650 get_number_or_range.
4651 (trace_pass_set_count): New function.
4652 (trace_pass_command): Update for change to get_number_or_range.
4653 Rework loop logic.
4654 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
4655 'state' parameter.
4656
ecec24e6
PM
46572011-03-10 Phil Muldoon <[email protected]>
4658
4659 * python/py-param.c (add_setshow_generic): Add set/show callback
4660 parameters. Register Python object context.
4661 (get_show_value): New function.
4662 (get_set_value): New function.
4663 (call_doc_function): New function.
4664 (get_doc_string): Move behind get_show_value/get_set_value.
4665
6d6c6b1f
JK
46662011-03-10 Andreas Tobler <[email protected]>
4667
4668 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
4669
68d6df83
MG
46702011-03-09 Maxim Grigoriev <[email protected]>
4671
dbab50de 4672 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
4673 (xtensa_write_register): Likewise.
4674 (xtensa_hextochar): Add comment and update to match coding conventions.
4675 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
4676 (execute_l32e, execute_s32e, execute_code): Update comments.
4677 (xtensa_exception_handler_t): Update to match coding conventions.
4678 (xtensa_insn_kind): Likewise.
4679
85c9d6a6
MS
46802011-03-09 Michael Snyder <[email protected]>
4681
4682 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
4683
91495617
PA
46842011-03-09 Pedro Alves <[email protected]>
4685
4686 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
4687
eb8c0621
TT
46882011-03-09 Tom Tromey <[email protected]>
4689
4690 * thread.c (restore_selected_frame): Handle frame_level == -1.
4691 (make_cleanup_restore_current_thread): Use
4692 get_selected_frame_if_set.
4693 * frame.h (get_selected_frame_if_set): Declare.
4694 * frame.c (get_selected_frame_if_set): New function.
4695
9f37bbcc
PA
46962011-03-09 Pedro Alves <[email protected]>
4697
4698 * cli/cli-cmds.c (shell_escape): Use lbasename.
4699 * coffread.c (coff_start_symtab): Constify parameter.
4700 (complete_symtab): Constify `name' parameter.
4701 (coff_symtab_read): Constify `filestring' local.
4702 (coff_getfilename): Constify return and `result' local.
4703 Use lbasename.
4704 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
4705 * linux-fork.c (info_checkpoints_command): Use lbasename.
4706 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
4707 * minsyms.c (lookup_minimal_symbol): Use lbasename.
4708 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
4709 * procfs.c (procfs_make_note_section): Use lbasename.
4710 * tui/tui-io.c (printable_part): Constity return and parameter.
4711 Use lbasename.
4712 (print_filename): Constify parameters, and local `s'.
4713 (tui_rl_display_match_list): Constify local `temp'.
4714
f8de3c55
JK
47152011-03-09 Jan Kratochvil <[email protected]>
4716
4717 Revert:
4718 2011-03-08 Jan Kratochvil <[email protected]>
4719 Fix DWARF-3+ DW_AT_accessibility default assumption.
4720 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4721 cu->header.version >= 3.
4722
d9837b00
YQ
47232011-03-09 Yao Qi <[email protected]>
4724
4725 * common/Makefile.in: Remove.
4726 * common/configure: Remove.
4727 * common/configure.ac: Remove.
4728
e637a4f5
YQ
47292011-03-09 Yao Qi <[email protected]>
4730
4731 Revert:
4732 2011-02-11 Yao Qi <[email protected]>
4733
4734 * common/Makefile.in: Add copyright header.
4735
4736 2011-02-11 Yao Qi <[email protected]>
4737
4738 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4739 libcommon.a.
4740 * configure.ac: Add common to sub dir.
4741 * configure: Regenerate.
4742
f976a05d
MG
47432011-03-08 Maxim Grigoriev <[email protected]>
4744
4745 * xtensa-tdep.c (call0_ret): New function.
4746 (xtensa_skip_prologue): Speed up analysis.
4747
57041825
MG
47482011-03-08 Maxim Grigoriev <[email protected]>
4749
4750 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
4751 while executing MI command -data-list-changed-registers.
4752
08b9c608
MG
47532011-03-08 Maxim Grigoriev <[email protected]>
4754
4755 * xtensa-tdep.c (xtensa_read_register): New function.
4756 (xtensa_write_register): New function.
4757 (xtensa_find_register_by_name): New function.
4758 (xtensa_windowed_frame_cache): Update comments in type description.
4759 (xtensa_frame_cache): Likewise.
4760 (xtensa_window_interrupt_insn): New function.
4761 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
4762 (xtensa_insn_kind): Add new instructions.
4763 (rwx_special_register): New function.
4764 (call0_classify_opcode): Add new instructions to the analysis.
4765 (a0_saved, a7_saved, a11_saved): New variables.
4766 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
4767 (execute_l32e): New function.
4768 (execute_s32e): New function.
4769 (xtensa_exception_handler_t): New type.
4770 (execute_code): New function.
4771 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4772 analysis for Xtensa Window Exception handlers.
4773
4d1acb11
MG
47742011-03-08 Maxim Grigoriev <[email protected]>
4775
98689b25
MG
4776 * xtensa-tdep.c (TX_PS): New.
4777 (windowing_enabled): Update to count for Call0 ABI.
4778 (xtensa_hextochar): New.
4779 (xtensa_init_reggroups): Make algorithm generic.
4780 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4781
47822011-03-08 Maxim Grigoriev <[email protected]>
4783
4784 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 4785
d3f323f3
MS
47862011-03-08 Michael Snyder <[email protected]>
4787
3dcabaa8
MS
4788 * i386-tdep.c (i386_follow_jump): Check return value of
4789 target_read_memory.
4790 (i386_analyze_struct_return): Ditto.
4791 (i386_skip_probe): Ditto.
4792 (i386_match_insn): Ditto.
4793 (i386_skip_noop): Ditto.
4794 (i386_analyze_frame_setup): Ditto.
4795 (i386_analyze_register_saves): Ditto.
4796 (i386_skip_prologue): Ditto.
4797 (i386_skip_main_prologue): Ditto.
4798
13b3fd9b
MS
4799 * target.c (read_whatever_is_readable): Fix memory leak.
4800
d3f323f3
MS
4801 * i386-tdep.c (i386_process_record): Document fall through.
4802
421d5c74
JK
48032011-03-08 Jan Kratochvil <[email protected]>
4804
4805 Fix DWARF-3+ DW_AT_accessibility default assumption.
4806 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4807 cu->header.version >= 3.
4808
63154eca
PA
48092011-03-08 Pedro Alves <[email protected]>
4810
4811 * remote.c (remote_check_symbols): Skip if the target has no
4812 execution.
4813
f1a507a1
JB
48142011-03-08 Joel Brobecker <[email protected]>
4815
4816 * target.c (read_whatever_is_readable): Reformat comment,
4817 with a minor typo fix. Minor reformatting of the code.
4818
36073a92
YQ
48192011-03-08 Yao Qi <[email protected]>
4820
4821 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4822 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4823 Use cached result instead of calling displaced_in_arm_mode again.
4824 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4825 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4826 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4827 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4828 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4829 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4830 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4831 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4832 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4833 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4834 (arm_catch_kernel_helper_return): Likewise.
4835 * gdb/arm-tdep.h : Update function declarations.
4836
d3f323f3 48372011-03-07 Michael Snyder <[email protected]>
e6040cbd 4838
e0e40094
MS
4839 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4840
0b2381f5
MS
4841 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4842
0350914a
MS
4843 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4844
69feea6f
MS
4845 * elfread.c (elf_symtab_read): Stop memory leak.
4846
e6040cbd
MS
4847 * main.c (captured_main): Fix memory leak.
4848
052874e8
AS
48492011-03-07 Andreas Schwab <[email protected]>
4850
4851 * ada-lang.c (compare_names): Call is_name_suffix with string1
4852 instead of string2.
4853
b11896a5
TT
48542011-03-07 Tom Tromey <[email protected]>
4855
4856 * xcoffread.c (xcoff_sym_fns): Update.
4857 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4858 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4859 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4860 (symbol_file_add_with_addrs_or_offsets): Likewise.
4861 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4862 * somread.c (som_sym_fns): Update.
4863 * psymtab.h (require_partial_symbols): Declare.
4864 * psymtab.c (require_partial_symbols): New function.
4865 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4866 (ALL_OBJFILE_PSYMTABS): Undef.
4867 (ALL_PSYMTABS): Move from psympriv.h.
4868 (lookup_partial_symtab, find_pc_sect_psymtab)
4869 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4870 (find_last_source_symtab_from_partial)
4871 (forget_cached_source_info_partial)
4872 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4873 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4874 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4875 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4876 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4877 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4878 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4879 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4880 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4881 psymtabs.
4882 * mipsread.c (ecoff_sym_fns): Update.
4883 * machoread.c (macho_sym_fns): Update.
4884 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4885 (read_psyms): New function.
4886 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4887 (elf_sym_fns_lazy_psyms): New global.
4888 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4889 dwarf2_build_psymtabs.
4890 * dbxread.c (aout_sym_fns): Update.
4891 * coffread.c (coff_sym_fns): Update.
4892
fda326dd
TT
48932011-03-07 Tom Tromey <[email protected]>
4894
4895 * infrun.c (print_exited_reason): Include inferior id and pid in
4896 message.
4897
aeaec162
TT
48982011-03-07 Tom Tromey <[email protected]>
4899
4900 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4901 parameter.
4902 (target_has_execution_1): Update.
4903 (target_has_execution_current): Declare.
4904 (target_has_execution): Call target_has_execution_current.
4905 (default_child_has_execution): Update.
4906 * target.c (default_child_has_execution): Add 'the_ptid'
4907 parameter.
4908 (target_has_execution_1): Likewise.
4909 (target_has_execution_current): New function.
4910 (add_target): Update.
4911 (init_dummy_target): Update.
4912 * remote-m32r-sdi.c (m32r_has_execution): New function.
4913 (init_m32r_ops): Use it.
4914 * record.c (record_core_has_execution): Now static. Add
4915 'the_ptid' parameter.
4916 * inferior.c (have_live_inferiors): Don't save current thread.
4917 Use target_has_execution_1.
4918
08e14083
YQ
49192011-03-07 Yao Qi <[email protected]>
4920
4921 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4922
c05d19c5
JB
49232011-03-07 Joel Brobecker <[email protected]>
4924
4925 * elfread.c (elf_symtab_read): Minor reformatting.
4926
3e6ef9e4
JB
49272011-03-07 Joel Brobecker <[email protected]>
4928
4929 * objc-lang.c (selectors_info): Minor reformatting.
4930
dbb8534f
JB
49312011-03-07 Joel Brobecker <[email protected]>
4932
4933 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4934
dd70cc93
JB
49352011-03-07 Joel Brobecker <[email protected]>
4936 Michael Snyder <[email protected]>
4937
4938 * ada-valprint.c (ada_val_print_array): Move the declaration of
4939 "byte_order" and "elttype" inside the block where these variables
4940 are actually used. Remove some special handling for the case
4941 where "elttype" and "eltlen" are null. Replace by a comment
4942 and a couple of assertion checks.
4943
b27cf2b3
MS
49442011-03-05 Michael Snyder <[email protected]>
4945
4946 * source.c (add_path): Replace semicolon at end of block.
4947 * dwarf2expr.c (execute_stack_op): Ditto.
4948
5387a0c6
MF
49492011-03-05 Mike Frysinger <[email protected]>
4950
4951 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4952 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4953 (bfin-*-*): Likewise.
4954
e3aa49af
MS
49552011-03-05 Michael Snyder <[email protected]>
4956
82ae4854
MS
4957 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4958 * mdebugread.c (parse_symbol): Ditto.
4959 * parse.c (parse_exp_in_context): Ditto.
4960 * source.c (add_path): Ditto.
4961 * utils.c (gnu_debuglink_crc32): Ditto.
4962 * varobj.c (variable_language): Ditto.
4963
e3aa49af
MS
4964 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4965
154f592e
MS
49662011-03-04 Michael Snyder <[email protected]>
4967
da3ecdc6
MS
4968 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4969
9cc89665
MS
4970 * symfile.c (simple_overlay_update): Check for null return value
4971 from lookup_minimal_symbol.
4972
154f592e
MS
4973 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4974
63ffa6ee
TJB
49752011-03-04 Thiago Jung Bauermann <[email protected]>
4976
4977 * eval.c (parse_and_eval_address_1): Remove function.
4978 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4979 instead of parse_and_eval_address_1.
4980 * value.h (parse_and_eval_address_1): Remove prototype.
4981
a17d146e
MS
49822011-03-04 Michael Snyder <[email protected]>
4983
4984 * remote.c (putpkt_binary): Document that case stmt falls through.
4985
1a6a67de
TJB
49862011-03-04 Thiago Jung Bauermann <[email protected]>
4987
4988 * breakpointc (print_it_typical): Move NULL check from here...
4989 (print_bp_stop_message): ... to here.
4990
488919c4
MS
49912011-03-04 Michael Snyder <[email protected]>
4992
4993 * breakpoint.c (enable_command): Use break instead of continue,
4994 and fill in a missing break.
4995 (disable_command): Ditto.
4996
1e182ce8
UW
49972011-03-04 Ulrich Weigand <[email protected]>
4998
4999 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
5000 (terminal_save_ours): Remove misleading comment.
5001 (inflow_inferior_data_cleanup): Free ttystate.
5002 (inflow_inferior_exit): Likewise.
5003 (copy_terminal_info): Copy ttystate.
5004
5005 * serial.c (serial_copy_tty_state): New function.
5006 * serial.h (serial_copy_tty_state): Add prototype.
5007 (struct serial_ops): Add copy_tty_state callback.
5008 * ser-base.c (ser_base_copy_tty_state): New function.
5009 * ser-base.h (ser_base_copy_tty_state): Add prototype.
5010 * ser-go32.c (dos_copy_tty_state): New function.
5011 (dos_ops): Install copy_tty_state callback.
5012 * ser-mingw.c (_initialize_ser_windows): Likewise.
5013 * ser-pipe.c (_initialize_ser_pipe): Likewise.
5014 * ser-unix.c (hardwire_copy_tty_state): New function.
5015 (_initialize_ser_hardwire): Install it.
5016
b2c5f112
MS
50172011-03-04 Michael Snyder <[email protected]>
5018
2abae994
MS
5019 * breakpoint.c (create_breakpoint): Add missing break statement.
5020
7f5936f9
MS
5021 Reverting this patch:
5022 * infcall.c (call_function_by_hand): Add break statements for lint.
5023
b2c5f112
MS
5024 Reverting this patch:
5025 * cli/cli-script.c (script_from_file): Add break for lint.
5026
42b1321c
MS
50272011-03-04 Michael Snyder <[email protected]>
5028
5029 * solib.c (reload_shared_libraries_1): Close memory leak.
5030
3e2a0cee
TT
50312011-03-03 Tom Tromey <[email protected]>
5032
5033 PR gdb/12538:
5034 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
5035 DW_STRING is NULL.
5036
58397cb7
MS
50372011-03-03 Michael Snyder <[email protected]>
5038
2e3fd767
MS
5039 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
5040 fields of struct 'st' to zero.
5041
58397cb7
MS
5042 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
5043 sal.pspace before calling set_current_source_symtab_and_line.
5044
ced54c8f
YQ
50452011-03-03 Yao Qi <[email protected]>
5046
5047 * Makefile.in (configure-common): Remove. Let Makefile
5048 in dir common to rebuild itself.
5049 (common/Makefile): Likewise.
5050
3351ea09
JB
50512011-03-03 Joel Brobecker <[email protected]>
5052
5053 * utils.c (parse_escape): Add i18n markup in error message.
5054
bf9f652a
YQ
50552011-03-03 Yao Qi <[email protected]>
5056
5057 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
5058 ARM_PC_REGNUM.
5059 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
5060 (displaced_write_reg, displaced_read_reg): Likewise.
5061 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
5062 (cleanup_block_load_pc, copy_block_xfer): Likewise.
5063 (cleanup_branch): Replace magic number 14 and 15 with
5064 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
5065
d42de051
MS
50662011-03-02 Michael Snyder <[email protected]>
5067
240f9570
MS
5068 * maint.c (maintenance_do_deprecate): No need to check for NULL.
5069
10dd8b54
MS
5070 * cli/cli-script.c (script_from_file): Add break for lint.
5071
b98bd911
MS
5072 * mdebugread.c (parse_partial_symbols): Fix indent.
5073
3494b66d
MS
5074 * target-descriptions.c (tdesc_gdb_type): No need to call
5075 xstrdup, callee saves a copy.
5076
daac021a
MS
5077 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
5078
c38d16a7
MS
5079 * infcall.c (call_function_by_hand): Add break statements for lint.
5080
905b671b
MS
5081 * utils.c (parse_escape): Escape the escape char.
5082
f2eb0bc8 5083 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
5084 PyList_Append fails.
5085 (gdbpy_inferiors): Error out if build_inferior_list fails.
5086
8c6a60d1
MS
5087 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
5088 a function call.
5089
d42de051
MS
5090 * record.c (record_restore): Move printf to before error return.
5091
4db71c0b
YQ
50922011-03-02 Yao Qi <[email protected]>
5093
5094 * arm-tdep.h (struct displaced_step_closure): Add two new fields
5095 is_thumb and insn_size.
5096 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
5097 on both ARM and Thumb mode.
5098 (arm_process_displaced_insn): Set is_thumb and insn_size.
5099 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
5100 (arm_displaced_step_fixup): Likewise.
5101
a9dc8dcc
MS
51022011-03-01 Michael Snyder <[email protected]>
5103
53624a93
MS
5104 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
5105
77766669
MS
5106 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
5107
62d5b8da
MS
5108 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
5109
5e9e105f
MS
5110 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
5111
dc19db01
MS
5112 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
5113 with xmalloc.
5114
5ce64950
MS
5115 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
5116 which shadows function parameter.
5117
a0aa2878
MS
5118 * tracepoint.c (create_tsv_from_upload): Superfluous call
5119 to xstrdup. Callee already calls xstrdup.
5120
e325fb69
MS
5121 * linespec.c (decode_line_1): Remove unnecessary null check.
5122
21cbba77
MS
5123 * tracepoint.c (scope_info): Fix mem leak, remove underused
5124 variable.
5125
63360adc
MS
5126 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
5127 superfluous null check.
5128
18ea20ac 5129 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 5130 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 5131
d014929c
MS
5132 * event-top.c (display_gdb_prompt): Remove superfluous null check.
5133
6e9130cf
MS
5134 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
5135 be null.
5136
5f01dbc0
MS
5137 * linespec.c (decode_line_1): Check for null before dereference.
5138
d684ab85
MS
5139 * reverse.c (record_restore): Move null-check to before pointer
5140 dereference.
5141
bfffb7e3
MS
5142 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
5143
a9dc8dcc
MS
5144 * objc-lang.c (selectors_info): Add explanitory comment.
5145 (classes_info): Ditto.
5146
478fd957
UW
51472011-03-01 Ulrich Weigand <[email protected]>
5148
5149 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
5150 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
5151 versions of the trampoline. Handle Thumb vs. ARM addresses.
5152 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
5153 (arm_linux_init_abi): Install it.
5154 * arm-tdep.c (arm_psr_thumb_bit): Make global.
5155 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
5156
0480cefa
MS
51572011-02-28 Michael Snyder <[email protected]>
5158
ac50ab3b
MS
5159 * ui-out.c (ui_out_field_core_addr): Make local char buffer
5160 a little bigger, to avoid possibility of an overflow.
5161
f63fbe86
MS
5162 * breakpoint.c (breakpoint_adjustment_warning): Make local char
5163 buffers a little bigger, to avoid possibility of an overflow.
5164
9e91a352
MS
5165 * coffread.c (coff_getfilename): Add check to avoid overflow.
5166
f2eb0bc8 5167 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
5168 avoid overflow.
5169 (classes_info): Error out on too long REGEXP.
5170
098ab512
MS
5171 * infrun.c (handle_inferior_event): Remove unused function call.
5172
bcbd1de9
MS
5173 * fork-child.c (fork_inferior): Remove ifdef'd code and
5174 unused variable.
5175
2e456570
MS
5176 * linux-thread-db.c (attach_thread): Discard unused value.
5177
14571dad
MS
5178 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
5179
a9cbf802
MS
5180 * remote.c (remote_get_noisy_reply): Discard unused value.
5181 (remote_vcont_resume): Ditto.
5182 (remote_stop_ns): Ditto.
5183
5715d26e
MS
5184 * linespec.c (decode_objc): Delete unused variable.
5185
4a9bca80
MS
5186 * tui/tui-regs.c (tui_register_format): Delete unused variable.
5187
f47fb265
MS
5188 * dwarf2read.c (add_partial_symbol): Discard unused values.
5189 (read_base_type): Delete unused variable.
5190
e81cff30
MS
5191 * dbxread.c (read_dbx_symtab): Discard unused value.
5192
262acaeb
MS
5193 * eval.c (evaluate_subexp_standard): Delete unused variable,
5194 and discard unused values.
5195
df983543
MS
5196 * infcmd.c (_initialize_infcmd): Discard unused values.
5197
89acf84d
MS
5198 * stabsread.c (rs6000_builtin_type): Missing break statement.
5199
ab8b8aca
MS
5200 * dbxread.c (process_one_symbol): Discard unused value.
5201
6b4511ab
MS
5202 * coffread.c (coff_end_symtab): Delete unused variable.
5203
e8e80198
MS
5204 * dwarf2read.c (dw2_get_file_names): Discard unused value.
5205 (dwarf2_add_typedef): Delete unused variable.
5206 (read_namespace): Ditto.
5207 (dwarf_decode_macros): Ditto.
5208
976aa66e
MS
5209 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
5210
5b92b49f
MS
5211 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
5212
91e8df85
MS
5213 * p-valprint.c (pascal_val_print): Discard unused value.
5214
899500d6
MS
5215 * utils.c (nquery): Call va_end before return;
5216 (yquery): Ditto.
5217 (query): Ditto.
5218
0480cefa
MS
5219 * proc-service.c (ps_plog): Call va_end before return.
5220
fb6a3ed3
TT
52212011-02-28 Tom Tromey <[email protected]>
5222
5223 * python/python.c (gdbpy_value_cst): New global.
5224 (_initialize_python): Initialize it.
5225 * python/python-internal.h (gdbpy_value_cst): Declare.
5226 * python/py-value.c (convert_value_from_python): Use
5227 gdbpy_value_cst.
5228
c05202a1
MS
52292011-02-28 Michael Snyder <[email protected]>
5230
e463f587
MS
5231 * python/py-cmd.c (cmdpy_init): Fix memory leak.
5232
c38eea1a
MS
5233 * breakpoint.c (catch_syscall_completer): Free malloced list.
5234
3ef09ab5
MS
5235 * jv-lang.c (java_primitive_type_from_name): Add missing break.
5236
8f9a01ee
MS
5237 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
5238 (lval_func_check_synthetic_pointer): Ditto.
5239 (lval_func_free_closure): Fix use-after-free.
c05202a1 5240
477d0d57
TT
52412011-02-28 Tom Tromey <[email protected]>
5242
5243 * psymtab.c (expand_partial_symbol_tables): Use
5244 ALL_OBJFILE_PSYMTABS.
5245
20937029
JK
52462011-02-28 Jan Kratochvil <[email protected]>
5247
5248 * objc-lang.c (selectors_info): Error on too long REGEXP.
5249
907b7f4f
MS
52502011-02-28 Michael Snyder <[email protected]>
5251
92e96192
MS
5252 * python/py-param.c (set_parameter_value): Add missing
5253 break statement.
5254
907b7f4f
MS
5255 * linux-record.c (record_linux_system_call): Add missing
5256 break statement.
5257
12c5a436
UW
52582011-02-28 Ulrich Weigand <[email protected]>
5259
5260 * breakpoint.c (print_one_breakpoint_location): Remove unused
5261 argument PRINT_ADDRESS_BITS. Update callers.
5262 (print_one_breakpoint): Likewise.
5263
170b53b2
UW
52642011-02-28 Ulrich Weigand <[email protected]>
5265
5266 * breakpoint.c (wrap_indent_at_field): New function.
5267 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
5268 Allocate ui_stream locally instead of using STB argument.
5269 (print_one_breakpoint_location): Update call.
5270 * ui-out.c (ui_out_query_field): New function.
5271 * ui-out.h (ui_out_query_field): Add prototype.
5272
8ab1f94d
JB
52732011-02-28 Joel Brobecker <[email protected]>
5274
5275 From Michael Snyder <[email protected]>
5276 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
5277
7d488639
MS
52782011-02-27 Michael Snyder <[email protected]>
5279
ae179fba
MS
5280 * objc-lang.c (selectors_info): Prevent string overrun.
5281
086dbf66
MS
5282 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
5283 error in strncpy.
5284
f2eb0bc8 5285 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
5286 outer scope.
5287
7d488639
MS
5288 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
5289 param with a local variable of the same name.
5290
3bd0f5ef
MS
52912011-02-27 Michael Snyder <[email protected]>
5292
5293 * value.c (value_from_history_ref): New function.
5294 * value.h (value_from_history_ref): Export.
5295 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
5296 to parse value history references.
5297 * cli/cli-utils.h (get_number_trailer): Update comment.
5298
52992011-02-27 Michael Snyder <[email protected]>
5300
5301 * inferior.c (detach_inferior_command): Use get_number_or_range.
5302 (kill_inferior_command): Ditto.
5303 (remove_inferior_command): Ditto.
5304 (initialize_inferiors): Make command names plural.
5305 Update help strings.
5306
766062f6
MS
53072011-02-27 Michael Snyder <[email protected]>
5308
5309 * darwin-nat-info.c: Fix comment typo.
5310 * dwarf2expr.h: Ditto.
5311 * fbsd-nat.c: Ditto.
5312 * fbsd-nat.h: Ditto.
5313 * frame-unwind.h: Ditto.
5314 * frame.h: Ditto.
5315 * hppa-hpux-tdep.c: Ditto.
5316 * i386-linux-nat.c: Ditto.
5317 * linux-nat.c: Ditto.
5318 * nbsd-nat.c: Ditto.
5319 * nbsd-nat.h: Ditto.
5320 * ppc-linux-tdep.c: Ditto.
5321 * serial.c: Ditto.
5322 * ui-file.h: Ditto.
5323 * tui/tui-winsource.c: Ditto.
5324
f2c4ead5
MS
53252011-02-26 Michael Snyder <[email protected]>
5326
86b887df
MS
5327 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
5328
66fd3b1e
MS
5329 * maint.c (maintenance_do_deprecate): Plug a memory leak.
5330
8c814cdd
MS
5331 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
5332 with a local variable of the same name.
5333
6d5e094a 5334 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 5335 param with a local variable of the same name.
6d5e094a 5336 (i387_supply_xsave): Ditto.
e5b3d7d6 5337
5eee517d
MS
5338 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
5339 that it does not shadow a function parameter.
5340
8fbf6b93
MS
5341 * i386-nat.c (i386_length_and_rw_bits): Document that case
5342 statement is meant to fall through.
5343
cb969d61
MS
5344 * expprint.c (dump_subexp_body_standard): Document that case
5345 statement is meant to fall through.
5346
f2c4ead5
MS
5347 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
5348 dead if statement. Condition can't be false.
5349
b021a221
MS
53502011-02-25 Michael Snyder <[email protected]>
5351
5352 * arm-tdep.c: Fix typos in comments.
5353 * bsd-uthread.c: Ditto.
5354 * completer.c: Ditto.
5355 * corelow.c: Ditto.
5356 * cp-namespace.c: Ditto.
5357 * cp-support.c: Ditto.
5358 * cris-tdep.c: Ditto.
5359 * dbxread.c: Ditto.
5360 * dwarf2read.c: Ditto.
5361 * frame.h: Ditto.
5362 * gdbtypes.h: Ditto.
5363 * inferior.h: Ditto.
5364 * mdebugread.c: Ditto.
5365 * mips-tdep.c: Ditto.
5366 * ppc-linux-nat.c: Ditto.
5367 * ppc-linux-tdep.c: Ditto.
5368 * printcmd.c: Ditto.
5369 * sol-thread.c: Ditto.
5370 * solib-frv.c: Ditto.
5371 * solist.h: Ditto.
5372 * sparc64-tdep.c: Ditto.
5373 * spu-tdep.c: Ditto.
5374 * stabsread.c: Ditto.
5375 * symfile.c: Ditto.
5376 * valops.c: Ditto.
5377 * varobj.c: Ditto.
5378 * vax-nat.c: Ditto.
5379 * python/py-block.c: Ditto.
5380 * python/py-symbol.c: Ditto.
5381 * python/py-symtab.c: Ditto.
5382 * python/py-value.c: Ditto.
5383 * tui/tui-win.c: Ditto.
5384
c82c0b55
MS
53852011-02-25 Michael Snyder <[email protected]>
5386
5387 * inferior.c (print_inferior): Accept a string instead of an int
5388 for requested_inferiors, and use get_number_or_range to parse it.
5389 (info_inferiors_command): Pass args string to print_inferior.
5390 (initialize_inferiors): Change help string for info inferiors.
5391 * inferior.h (print_inferior): Export prototype change.
5392
ee00cd23
TT
53932011-02-25 Tom Tromey <[email protected]>
5394
5395 * common/ax.def (invalid2): Set to 0x31.
5396
0502ed8c
JK
53972011-02-25 Jan Kratochvil <[email protected]>
5398
5399 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
5400 L and plongest.
5401 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
5402 use L and plongest.
5403 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
5404
2c9de912
MS
54052011-02-24 Michael Snyder <[email protected]>
5406
5407 * Makefile.in (clean): Make clean should remove generated files
5408 observer.h and observer.inc.
5409
a04b0428
JB
54102011-02-24 Joel Brobecker <[email protected]>
5411
5412 Revert the following patch (not approved yet):
5413 2011-02-21 Hui Zhu <[email protected]>
5414 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5415 * ax-gdb.c (gen_printf_expr_callback): New function.
5416 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5417 * ax-general.c (ax_memcpy): New function.
5418 (ax_print): Handle "printf".
5419 (ax_reqs): Ditto.
5420 * ax.h (ax_memcpy): Forward declare.
5421 * common/ax.def (invalid2): Removed.
5422 (printf): New entry.
5423 * printcmd.c (printcmd.h): New include.
5424 (string_printf): New function.
5425 (ui_printf): Removed.
5426 (printf_command): Remove static. Call string_printf.
5427 (eval_command): Call string_printf.
5428 * printcmd.h: New file.
5429 * tracepoint.c (validate_actionline,
5430 encode_actions_1): handle printf_command.
5431
2b52013f
TT
54322011-02-23 Tom Tromey <[email protected]>
5433
5434 * ax-general.c (ax_pick): Add missing newline.
5435
e5a67952
MS
54362011-02-23 Michael Snyder <[email protected]>
5437
5438 * breakpoint.c (breakpoint_1): Change first argument from an int
5439 to a char pointer, so that the function now accepts a list of
f2eb0bc8 5440 breakpoints rather than just one. Use new function
e5a67952
MS
5441 'number_is_in_list' to implement.
5442 (breakpoints_info): Pass char * instead of int to breakpoint_1.
5443 (watchpoints_info): Ditto.
5444 (tracepoints_info): Ditto.
5445 (maintenance_info_breakpoints): Ditto.
5446 (_initialize_breakpoint): Update help strings to reflect the fact
5447 that these functions can now take more than one argument.
5448 * cli/cli-utils.c (number_is_in_list): New function.
5449 * cli/cli-utils.h (number_is_in_list): Export.
5450
54512011-02-23 Michael Snyder <[email protected]>
fbcb778d
MS
5452
5453 * memattr.c (mem_enable_command): Use get_number_or_range.
5454 (mem_disable_command): Ditto.
5455 (mem_delete_command): Ditto.
5456 (_initialize_mem): Tweak usage message to reflect multiple
5457 arguments.
5458
6e6fbe60
DE
54592011-02-22 Doug Evans <[email protected]>
5460
5461 Add gdb.lookup_global_symbol python function.
5462 * NEWS: Add entry.
5463 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
5464 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
5465 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
5466
79b97fa8
TT
54672011-02-22 Tom Tromey <[email protected]>
5468
5469 * language.c (language_class_name_from_physname): Rename
5470 'curr_language' argument to 'lang'; use in body.
5471
298f437a
MS
54722011-02-22 Michael Snyder <[email protected]>
5473
5474 * cli/cli-utils.c (number_is_in_list): Check for zero return.
5475
b7ea3126
PA
54762011-02-22 Pedro Alves <[email protected]>
5477
5478 * frame-unwind.h: Fix comment to mention the this frame, not the
5479 next.
5480
58ee6d60
TT
54812011-02-22 Tom Tromey <[email protected]>
5482
5483 * symfile.c (auto_solib_limit): Remove.
5484 * symfile.h (auto_solib_limit): Remove.
5485
36238dbc
JB
54862011-02-22 Joel Brobecker <[email protected]>
5487
5488 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
5489
aea5b279
MS
54902011-02-21 Michael Snyder <[email protected]>
5491
5492 * gdbthread.h (print_thread_info): Change prototype.
5493 * thread.c (print_thread_info): Accept char* instead of int for
5494 requested_threads argument. Use new function number_is_in_list
5495 to determine which threads to list.
5496 (info_threads_command): Pass char* to print_thread_info.
5497 * cli/cli-utils.c (number_is_in_list): New function.
5498 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 5499 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
5500 print_thread_info.
5501 (print_one_inferior): Ditto.
5502 (mi_cmd_list_thread_groups): Ditto.
5503
8caa75ee
JK
55042011-02-21 Jan Kratochvil <[email protected]>
5505
5506 * common/Makefile.in (CFLAGS): New.
5507 (COMPILE): Add $(CFLAGS).
5508
ea666128
TT
55092011-02-21 Tom Tromey <[email protected]>
5510
5511 * breakpoint.c (catch_syscall_command_1): Fix typo.
5512
e9cafbcc
TT
55132011-02-21 Tom Tromey <[email protected]>
5514
5515 * reverse.c: Include cli-utils.h.
5516 * printcmd.c: Include cli-utils.h.
5517 (string_printf): Use skip_spaces.
5518 * cli/cli-utils.h: New file.
5519 * cli/cli-utils.c: New file.
5520 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
5521 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
5522 * breakpoint.h (get_number, get_number_or_range): Move to
5523 cli-utils.h.
5524 * breakpoint.c: Include cli-utils.h.
5525 (get_number_trailer, get_number, get_number_or_range)
5526 (ep_skip_leading_whitespace): Move to cli-utils.c.
5527 (create_breakpoint_sal, find_condition_and_thread)
5528 (decode_static_tracepoint_spec, watch_command_1)
5529 (watch_maybe_just_location, ep_parse_optional_if_clause)
5530 (catch_fork_command_1, catch_exec_command_1)
5531 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
5532 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
5533 (SUBDIR_CLI_SRCS): Add cli-utils.c.
5534 (HFILES_NO_SRCDIR): Add cli-utils.h.
5535 (cli-utils.o): New target.
5536
f67fd822
PM
55372011-02-18 Pierre Muller <[email protected]>
5538
5539 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
5540 before calling discard_all_inferiors.
5541
c9def01d
UW
55422011-02-21 Ulrich Weigand <[email protected]>
5543
5544 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
5545 (struct builtin_opencl_type): Remove.
5546 (builtin_opencl_type): Change return type to "struct type **".
5547 (lookup_opencl_vector_type): Update caller.
5548 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
5549 (build_opencl_types): Install plain array of "struct type *"
5550 instead of "struct builtin_opencl_type".
5551
e3039479
UW
55522011-02-21 Matthew Gretton-Dann <[email protected]>
5553 Ulrich Weigand <[email protected]>
5554
5555 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
5556 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
5557 (struct arm_linux_hwbp_cap): New type.
5558 (arm_linux_get_hwbp_cap): New function.
5559 (arm_linux_get_hw_breakpoint_count): Likewise.
5560 (arm_linux_get_hw_watchpoint_count): Likewise.
5561 (arm_linux_can_use_hw_breakpoint): Likewise.
5562 (arm_hwbp_type): New type.
5563 (arm_hwbp_control_t): Likewise.
5564 (struct arm_linux_hw_breakpoint): Likewise.
5565 (struct arm_linux_thread_points): Likewise.
5566 (arm_threads): New global variable.
5567 (arm_linux_find_breakpoints_by_tid): New function.
5568 (arm_hwbp_control_initialize): Likewise.
5569 (arm_hwbp_control_is_enabled): Likewise.
5570 (arm_hwbp_control_disable): Likewise.
5571 (arm_linux_hw_breakpoint_initialize): Likewise.
5572 (arm_linux_get_hwbp_type): Likewise.
5573 (arm_linux_hw_watchpoint_initialize): Likewise.
5574 (arm_linux_hw_breakpoint_equal): Likewise.
5575 (arm_linux_insert_hw_breakpoint1): Likewise.
5576 (arm_linux_remove_hw_breakpoint1): Likewise.
5577 (arm_linux_insert_hw_breakpoint): Likewise.
5578 (arm_linux_remove_hw_breakpoint): Likewise.
5579 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
5580 (arm_linux_insert_watchpoint): Likewise.
5581 (arm_linux_remove_watchpoint): Likewise.
5582 (arm_linux_stopped_data_address): Likewise.
5583 (arm_linux_stopped_by_watchpoint): Likewise.
5584 (arm_linux_watchpoint_addr_within_range): Likewise.
5585 (arm_linux_new_thread): Likewise.
5586 (arm_linux_thread_exit): Likewise.
5587 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
5588 related target callbacks. Register arm_linux_new_thread and
5589 arm_linux_thread_exit.
5590 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
5591 * arm-tdep.c (arm_pc_is_thumb): Make global.
5592 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
5593
b5db5dfc
UW
55942011-02-21 Ulrich Weigand <[email protected]>
5595
5596 * breakpoint.c (update_watchpoint): Do not attempt to recreate
5597 per-frame locations while within a function epilogue.
5598
e25b2cfa
PM
55992011-02-21 Pierre Muller <[email protected]>
5600
5601 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
5602 to GNU coding standards.
5603
4af53f97
PM
56042011-02-21 Pierre Muller <[email protected]>
5605
5606 Allow use of mingw native on Windows 95 OS.
e25b2cfa 5607 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
5608 (ser_windows_close): Only call CancelIo if function exists.
5609 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
5610 to check for existence of CancelIo function in kernel32 DLL.
5611
d0e92d82
HZ
56122011-02-21 Hui Zhu <[email protected]>
5613
5614 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
5615 * ax-gdb.c (gen_printf_expr_callback): New function.
5616 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
5617 * ax-general.c (ax_memcpy): New function.
5618 (ax_print): Handle "printf".
5619 (ax_reqs): Ditto.
5620 * ax.h (ax_memcpy): Forward declare.
5621 * common/ax.def (invalid2): Removed.
5622 (printf): New entry.
5623 * printcmd.c (printcmd.h): New include.
5624 (string_printf): New function.
5625 (ui_printf): Removed.
5626 (printf_command): Remove static. Call string_printf.
5627 (eval_command): Call string_printf.
5628 * printcmd.h: New file.
5629 * tracepoint.c (validate_actionline,
5630 encode_actions_1): handle printf_command.
5631
7d357efd
MS
56322011-02-19 Michael Snyder <[email protected]>
5633
5634 * reverse.c (delete_one_bookmark): Argument is now bookmark
5635 id rather than pointer to bookmark struct.
5636 (delete_bookmark_command): Use get_number_or_range.
5637 (goto_bookmark_command): Parse with get_number instead of strtoul.
5638 (bookmark_1): New function. Print info for one bookmark.
5639 (bookmarks_info): Use get_number_or_range and bookmark_1.
5640
7a45ebd7
MS
56412011-02-18 Michael Snyder <[email protected]>
5642
f2eb0bc8 5643 * thread.c (info_threads_command): Re-implement using
7a45ebd7 5644 get_number_or_range.
65ebfb52 5645 (thread_apply_command): Ditto.
7a45ebd7 5646
94d5e490
TT
56472011-02-18 Tom Tromey <[email protected]>
5648
5649 * common/ax.def: New file.
5650 * ax.h (enum agent_op): Use ax.def.
5651 * ax-general.c (aop_map): Use ax.def.
5652
c7f96d2b
TT
56532011-02-18 Tom Tromey <[email protected]>
5654
5655 * ax-general.c (aop_map): Add pick and rot.
5656 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
5657 <DW_OP_rot>: Implement.
5658 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
5659 (ax_pick): Declare.
5660 * ax-general.c (ax_pick): New function.
5661
66694b75
TT
56622011-02-18 Tom Tromey <[email protected]>
5663
5664 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
5665
eeaafae2
JK
56662011-02-18 Jan Kratochvil <[email protected]>
5667 Tom Tromey <[email protected]>
5668
5669 * cp-support.c (make_symbol_overload_list_namespace): Do not call
5670 make_symbol_overload_list_block with NULL BLOCK.
5671 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
5672
3c3fe74c
PA
56732011-02-18 Pedro Alves <[email protected]>
5674
5675 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
5676 * breakpoint.h (get_number_or_range): Declare.
5677 * printcmd.c (ALL_DISPLAYS): Declare.
5678 (delete_display): Reimplement taking a display pointer.
5679 (undisplay_command): Accept a range of displays to delete, using
5680 get_number_or_range.
5681
13163d80
PM
56822011-02-18 Pierre Muller <[email protected]>
5683
5684 * c-valprint.c (c_val_print): Add embedded_offset to address
5685 for arrays of unspecified length.
5686 * p-valprint.c (pascal_val_print): Likewise.
5687
b434a28f
YQ
56882011-02-18 Yao Qi <[email protected]>
5689
5690 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
5691 (arm_process_displaced_insn): .. here. Remove parameter INSN.
5692 (thumb_process_displaced_insn): New.
5693 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
5694 call to arm_process_displaced_insn.
5695 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
5696
9f6f94ff
TT
56972011-02-17 Tom Tromey <[email protected]>
5698
5699 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
5700 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
5701 compile_dwarf_to_ax. No longer static. Call
5702 dwarf2_compile_cfa_to_ax.
5703 (locexpr_tracepoint_var_ref): Update.
5704 (loclist_tracepoint_var_ref): Update.
5705 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
5706 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
5707 argument; add 'gdbarch' and 'pc'.
5708 (dwarf2_compile_cfa_to_ax): New function.
5709 (dwarf2_frame_cache): Update.
5710
e67ad678
JB
57112011-02-17 Joel Brobecker <[email protected]>
5712
5713 * ada-lang.c (ada_type_of_array): Fix the size of the array
5714 in the case of an unconstrained packed array.
5715
946ebb0d
YQ
57162011-02-17 Yao Qi <[email protected]>
5717
5718 * common/Makefile.in: Add more targets for make.
5719
1ba1b353
TT
57202011-02-16 Tom Tromey <[email protected]>
5721
5722 * dwarf2loc.c (unimplemented): Fix typo.
5723
b1bfef65
TT
57242011-02-16 Tom Tromey <[email protected]>
5725
5726 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
5727 (compile_dwarf_to_ax) <default>: Use unimplemented.
5728 <DW_OP_deref>: Update.
5729 (disassemble_dwarf_expression): Update.
5730 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
5731 (decode_locdesc): Update.
5732 * dwarf2expr.h (dwarf_stack_op_name): Update.
5733
5f1e6f19
TT
57342011-02-16 Tom Tromey <[email protected]>
5735
5736 * ax.h (struct aop_map) <name>: Now const.
5737
a0c78a73
PA
57382011-02-16 Tom Tromey <[email protected]>
5739
5740 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
5741 than axs_rvalue.
5742
946ebb0d 57432011-02-16 Yao Qi <[email protected]>
a42244db
YQ
5744
5745 * infrun.c (get_displaced_step_closure_by_addr): New.
5746 * inferior.h: Declare it.
5747 * arm-tdep.c: (arm_pc_is_thumb): Call
5748 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
5749 returns non-NULL.
5750
08807d5a
PA
57512011-02-16 Pedro Alves <[email protected]>
5752 Jan Kratochvil <[email protected]>
5753
5754 gdb/
5755 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
5756
29976f3f
PA
57572011-02-16 Pedro Alves <[email protected]>
5758 Jan Kratochvil <[email protected]>
5759
5760 * value.c (value_contents_copy_raw): Extend describing comment.
5761 Assert that the destination contents we're overwriting are wholly
5762 available.
fb68ae73 5763 (value_contents_copy): Extend describing comment.
29976f3f 5764
cd24cfaa
PA
57652011-02-16 Pedro Alves <[email protected]>
5766 Jan Kratochvil <[email protected]>
5767
5768 * value.c (value_available_contents_eq): Remove redundant local
5769 variables. Fix available contents comparision.
5770 * value.h (value_available_contents_eq): Extend describing
5771 comment.
5772
60bbf338
YQ
57732011-02-16 Yao Qi <[email protected]>
5774
5775 * thread.c (info_threads_command): Add missing i18n markup and remove
5776 trailing newline.
5777
17450429
PP
57782011-02-15 Paul Pluzhnikov <[email protected]>
5779
5780 * breakpoint.c (longjmp_names): New variable.
5781 (struct breakpoint_objfile_data): New type.
5782 (breakpoint_objfile_key): New variable.
5783 (msym_not_found): New variable.
5784 (msym_not_found_p): New predicate.
5785 (get_breakpoint_objfile_data): New function.
5786 (create_overlay_event_breakpoint): Check per-objfile cache for
5787 symbols first.
5788 (create_longjmp_master_breakpoint): Likewise.
5789 (create_std_terminate_master_breakpoint): Likewise.
5790 (create_exception_master_breakpoint): Likewise.
5791 (_initialize_breakpoint): Register per-objfile data key.
5792
af02033e
PP
57932011-02-15 Paul Pluzhnikov <[email protected]>
5794
5795 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5796 parameter value.
5797 (create_longjmp_master_breakpoint): Loop over longjmp names.
5798 (create_std_terminate_master_breakpoint): Const-propagate parameter
5799 value.
5800 (update_breakpoints_after_exec): Adjust.
5801 (breakpoint_re_set): Adjust.
5802
60f98dde
MS
58032011-02-15 Michael Snyder <[email protected]>
5804
cdf99611
MS
5805 * thread.c (info_threads_command): Process arg as thread id,
5806 or list of thread ids.
5807 (thread_find_command): New command.
5808 (_initialize_thread): Document argument for info threads.
5809 Document 'thread find' command.
5810 * NEWS: Document new command "thread find".
60f98dde 5811
0feedb2c
JK
58122011-02-15 Jan Kratochvil <[email protected]>
5813
5814 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5815 * aclocal.m4: Regenerated with aclocal-1.11.1.
5816 * common/configure: Regenerate with autoconf-2.64.
5817
648cd113
KW
58182011-02-15 Ken Werner <[email protected]>
5819
5820 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5821 bool data type to a size of one byte.
5822
5657161f
PA
58232011-02-15 Pedro Alves <[email protected]>
5824 Jan Kratochvil <[email protected]>
5825
5826 * target.c (memory_xfer_live_readonly_partial): Document where to
5827 look for interface description.
5828
494e194e
YQ
58292011-02-15 Yao Qi <[email protected]>
5830
5831 PR tdep/12352
5832 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5833 order to store PC value on stack instead of text section.
5834
d9492458
TJB
58352011-02-15 Thiago Jung Bauermann <[email protected]>
5836
5837 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5838 the EFP register set size.
5839 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5840 data from the VMX register.
5841 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5842 and write data from/to the VMX register.
5843
cdf99611
MS
58442011-02-14 Michael Snyder <[email protected]>
5845
5846 * command.h (enum command_class): New class 'no_set_class', for
5847 "show" commands without a corresponding "set" command.
5848 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5849 * copying.c (_initialize_copying): Ditto for "show copying" and
5850 "show warranty".
5851 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5852 "show version".
5853 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5854 which there is no corresponding "set" command (eg. "show copying").
5855
424447ee
PA
58562011-02-14 Pedro Alves <[email protected]>
5857 Jan Kratochvil <[email protected]>
5858
5859 * exec.c (section_table_available_memory): Change `len' parameter
5860 type to ULONGEST.
5861 * exec.h (section_table_available_memory): Ditto.
5862 * value.h (read_value_memory): Rename the `offset' parameter to
5863 `embedded_offset'.
5864
c0f61f9c 58652011-02-14 Pedro Alves <[email protected]>
e0ccc0c7 5866 Jan Kratochvil <[email protected]>
c0f61f9c
PA
5867
5868 * memrange.c (compare_mem_ranges): Mention sort order in
5869 describing comment.
5870 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5871 * tracepoint.c (traceframe_available_memory): Extend comment to
5872 mention what happens to RESULT when the target does not support
5873 the query.
5874
6bfc80c7
PA
58752011-02-14 Pedro Alves <[email protected]>
5876 Jan Kratochvil <[email protected]>
5877
5878 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5879 range.
5880
e7303042
PA
58812011-02-14 Pedro Alves <[email protected]>
5882
5883 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5884 No longer handle NULL values.
5885
8af8e3bc
PA
58862011-02-14 Pedro Alves <[email protected]>
5887
5888 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5889 * value.c: Include "exceptions.h".
5890 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5891 generic error.
5892 * cp-abi.c: Include gdb_assert.h.
5893 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5894 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5895 errors.
5896 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5897 parameters. No longer returns -1 on error.
5898 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5899 `val' parameters.
5900 * cp-valprint.c: Include exceptions.h.
5901 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5902 the baseclass_offset. Handle unavailable base classes. Use
5903 val_print_invalid_address.
5904 * p-valprint.c: Include exceptions.h.
5905 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5906 when fetching the baseclass_offset. No longer expect
5907 baseclass_offset returning -1. Handle unavailable base classes.
5908 Use val_print_invalid_address.
5909 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5910 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5911 `embedded_offset' and `val' parameters. Adjust.
5912 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5913 parameter, and change its type to gdb_byte pointer. Add
5914 `embedded_offset' and `val' parameters. Adjust. No longer expect
5915 baseclass_offset returning -1.
5916 (value_dynamic_cast): Use value_contents_for_printing rather than
5917 value_contents. Adjust.
5918 (search_struct_field): No longer expect baseclass_offset returning
5919 -1.
5920 (search_struct_method): If reading memory from the target is
5921 necessary, wrap it in a new value to pass to baseclass_offset. No
5922 longer expect baseclass_offset returning -1.
5923 (find_method_list): No longer expect baseclass_offset returning
5924 -1. Use value_contents_for_printing rather than value_contents.
5925 * valprint.c (val_print_invalid_address): New function.
5926 * valprint.h (val_print_invalid_address): Declare.
5927 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5928 and `val' parameters. No longer expect baseclass_offset returning
5929 -1. Adjust.
5930 * gnu-v2-abi.c: Include "exceptions.h".
5931 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5932 parameters. Handle unavailable memory. Recurse through
5933 gnuv2_baseclass_offset directly, rather than through
5934 baseclass_offset. No longer returns -1 on not found, instead
5935 throw an error.
5936 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5937 `val' parameters. Adjust.
5938
1b28d0b3
PA
59392011-02-14 Pedro Alves <[email protected]>
5940
5941 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5942 almost but not quite adjacent.
5943
ec0a52e1
PA
59442011-02-14 Pedro Alves <[email protected]>
5945
5946 * value.h (value_entirely_available): Declare.
5947 * value.c (value_entirely_available): New function.
5948 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5949 real type if the pointer is unavailable.
5950
24e6bcee
PA
59512011-02-14 Pedro Alves <[email protected]>
5952
5953 * valops.c (value_repeat): Use read_value_memory instead of
5954 read_memory.
5955
39d37385
PA
59562011-02-14 Pedro Alves <[email protected]>
5957
5958 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5959 * value.c (value_contents_copy_raw, value_contents_copy): New
5960 functions.
5961 (value_primitive_field): Use value_contents_copy_raw instead of
5962 memcpy.
5963 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5964 memcpy.
5965 (value_array, value_slice): Ditto.
5966 * valarith.c (value_subscripted_rvalue): Use
5967 value_contents_copy_raw instead of memcpy.
5968
a3d34bf4
PA
59692011-02-14 Pedro Alves <[email protected]>
5970
5971 <unavailable> references.
5972
5973 * valops.c (get_value_at): Use value_from_contents_and_address,
5974 avoiding read_memory.
5975
9fc6d940
PA
59762011-02-14 Pedro Alves <[email protected]>
5977
5978 * c-valprint.c (c_val_print): Print a string with unavailable
5979 contents as an array.
5980
5467c6c8
PA
59812011-02-14 Pedro Alves <[email protected]>
5982
5983 * value.h (unpack_bits_as_long): Delete declaration.
5984 (unpack_value_bits_as_long): Declare.
5985 (unpack_value_field_as_long): Declare.
5986 (value_field_bitfield): Declare.
5987 * value.c (unpack_bits_as_long): Rename to...
5988 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5989 value parameters. Return the extracted result in a new output
5990 parameter. If the value contents are unavailable, return false,
5991 otherwise return true.
5992 (unpack_value_bits_as_long): New.
5993 (unpack_field_as_long): Rename to...
5994 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5995 Add embedded_offset and value parameters. Return the extracted
5996 result in a new output parameter. If the value contents are
5997 unavailable, return false, otherwise return true.
5998 (unpack_value_field_as_long): New.
5999 (unpack_field_as_long_1): New.
6000 (unpack_field_as_long): Reimplement as wrapper around
6001 unpack_value_field_as_long_1.
6002 (value_field_bitfield): New function.
6003 * valops.c (value_fetch_lazy): When fetching a bitfield, use
6004 unpack_value_bits_as_long. Mark the value as unavailable, if it
6005 is unavailable.
6006 * jv-valprint.c (java_print_value_fields): Use
6007 value_field_bitfield.
6008 * p-valprint.c (pascal_object_print_value_fields): Use
6009 value_field_bitfield.
6010 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
6011
3158c6ed
PA
60122011-02-14 Pedro Alves <[email protected]>
6013
6014 * value.c (get_internalvar_integer): Also return the int value of
6015 TYPE_CODE_INT INTERNALVAR_VALUE values.
6016 (set_internalvar): Don't special case TYPE_CODE_INT.
6017
9fbdca0d
PA
60182011-02-14 Pedro Alves <[email protected]>
6019
6020 * value.c (struct internalvar) <enum internalvar_kind>: Remove
6021 INTERNALVAR_POINTER.
6022 <pointer>: Delete.
6023 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
6024 (set_internalvar): Remove special TYPE_CODE_PTR handling.
6025 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
6026
c8c1c22f
PA
60272011-02-14 Pedro Alves <[email protected]>
6028
6029 * value.h (value_available_contents_eq): Declare.
6030 * value.c (find_first_range_overlap): New function.
6031 (value_available_contents_eq): New function.
6032 * valprint.c (val_print_array_elements): Use
6033 value_available_contents_eq.
6034 * ada-valprint.c (val_print_packed_array_elements): Use
6035 value_available_contents_eq.
6036 * jv-valprint.c (java_value_print): Use
6037 value_available_contents_eq.
6038
e6e4e701
PA
60392011-02-14 Pedro Alves <[email protected]>
6040
6041 * target.c (target_read_live_memory): New function.
6042 (memory_xfer_live_readonly_partial): New.
6043 (memory_xfer_partial): If reading from a traceframe, fallback to
6044 reading unavailable read-only memory from read-only regions of
6045 live target memory.
6046 * tracepoint.c (disconnect_tracing): Adjust.
6047 (set_current_traceframe): New, factored out from
6048 set_traceframe_number.
6049 (set_traceframe_number): Reimplement to only change the traceframe
6050 number on the GDB side.
6051 (do_restore_current_traceframe_cleanup): Adjust.
6052 (make_cleanup_restore_traceframe_number): New.
6053 (cur_traceframe_number): New global.
6054 (tfile_open): Set cur_traceframe_number to no traceframe.
6055 (set_tfile_traceframe): New function.
6056 (tfile_trace_find): If looking up a traceframe using any method
6057 other than by number, make sure the current tfile traceframe
6058 matches gdb's current traceframe. Update the current tfile
6059 traceframe if the lookup succeeded.
6060 (tfile_fetch_registers, tfile_xfer_partial)
6061 (tfile_get_trace_state_variable_value): Make sure the remote
6062 traceframe matches gdb's current traceframe.
6063 * remote.c (remote_traceframe_number): New global.
6064 (remote_open_1): Set it to -1.
6065 (set_remote_traceframe): New function.
6066 (remote_fetch_registers, remote_store_registers)
6067 (remote_xfer_memory, remote_xfer_partial)
6068 (remote_get_trace_state_variable_value): Make sure the remote
6069 traceframe matches gdb's current traceframe.
6070 (remote_trace_find): If looking up a traceframe using any method
6071 other than by number, make sure the current remote traceframe
6072 matches gdb's current traceframe. Update the current remote
6073 traceframe if the lookup succeeded.
6074 * infrun.c (fetch_inferior_event): Adjust.
6075 * tracepoint.h (set_current_traceframe): Declare.
6076 (get_traceframe_number, set_traceframe_number): Add describing
6077 comments.
6078
e6ca34fc
PA
60792011-02-14 Pedro Alves <[email protected]>
6080
6081 Mark pieces of values as unavailable if the corresponding memory
6082 is unavailable.
6083
6084 * valops.c: Include tracepoint.h.
6085 (value_fetch_lazy): Use read_value_memory.
6086 (read_value_memory): New.
6087 * value.h (read_value_memory): Declare.
6088 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
6089 * exec.c (section_table_available_memory): New function.
6090 * exec.h (section_table_available_memory): Declare.
6091
2a7498d8
PA
60922011-02-14 Pedro Alves <[email protected]>
6093
6094 * Makefile.in (SFILES): Add memrange.c.
6095 (HFILES_NO_SRCDIR): Add memrange.h.
6096 (COMMON_OBS): Add memrange.o.
6097 * memrange.c: New file.
6098 * memrange.h: New file.
6099 * tracepoint.c: Include memrange.h.
6100 (struct mem_range): Delete.
6101 (mem_range_s): Delete.
6102 (traceframe_available_memory): New function.
6103 * tracepoint.h (traceframe_available_memory): Declare.
6104
b3b9301e
PA
61052011-02-14 Pedro Alves <[email protected]>
6106
6107 * target.h (struct traceframe_info): Forward declare.
6108 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
6109 (struct target_ops) <to_traceframe_info>: New field.
6110 (target_traceframe_info): New.
6111 * target.c (update_current_target): Inherit and default
6112 to_traceframe_info.
6113 * remote.c (PACKET_qXfer_traceframe_info): New.
6114 (remote_protocol_features): Register qXfer:traceframe-info:read.
6115 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
6116 (remote_traceframe_info): New.
6117 (init_remote_ops): Install it.
6118 (_initialize_remote): Install "set/show remote traceframe-info"
6119 commands.
6120 * tracepoint.h (parse_traceframe_info): Declare.
6121 * tracepoint.c (struct mem_range): New.
6122 (mem_range_s): New typedef.
6123 (struct traceframe_info): New.
6124 (traceframe_info): New global.
6125 (free_traceframe_info): New function.
6126 (clear_traceframe_info): New function.
6127 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
6128 info.
6129 (build_traceframe_info): New function.
6130 (tfile_traceframe_info): New function.
6131 (init_tfile_ops): Install tfile_traceframe_info.
6132 (traceframe_info_start_memory, free_result): New functions.
6133 (memory_attributes, traceframe_info_elements): New globals.
6134 (parse_traceframe_info, get_traceframe_info): New functions.
6135 * features/traceframe-info.dtd: New file.
6136 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
6137
4e07d55f
PA
61382011-02-14 Pedro Alves <[email protected]>
6139
6140 Base support for <unavailable> value contents.
6141
4e07d55f
PA
6142 * value.h (value_bytes_available): Declare.
6143 (mark_value_bytes_unavailable): Declare.
6144 * value.c (struct range): New struct.
6145 (range_s): New typedef.
6146 (ranges_overlap): New function.
6147 (range_lessthan): New function.
6148 (ranges_contain_p): New function.
6149 (struct value) <unavailable>: New field.
6150 (value_bytes_available): New function.
6151 (mark_value_bytes_unavailable): New function.
6152 (require_not_optimized_out): Constify parameter.
6153 (require_available): New function.
6154 (value_contents_all, value_contents): Require all bytes be
6155 available.
6156 (value_free): Free `unavailable'.
6157 (value_copy): Copy `unavailable'.
6158 * valprint.h (val_print_unavailable): Declare.
6159 * valprint.c (valprint_check_validity): Rename `offset' parameter
6160 to `embedded_offset'. If printing a scalar, check whether the
6161 value chunk is available.
6162 (val_print_unavailable): New.
6163 (val_print_scalar_formatted): Check whether the value is
6164 available.
6165 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
6166 pretty-printing unavailable values.
6167
bc9a5551
JK
61682011-02-13 Jan Kratochvil <[email protected]>
6169
6170 Fix const/volatile qualifiers of C++ types, PR c++/12328.
6171 * c-typeprint.c (c_type_print_args): Update the function comment. New
6172 variable param_type, initialize it. Remove const/volatile qualifiers
6173 for language_cplus and !show_artificial. Use param_type.
6174
93b55aa1
JK
61752011-02-13 Jan Kratochvil <[email protected]>
6176
6177 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
6178 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
6179 * symtab.h (struct symtab) <next>: Comment extension.
6180
181d9476
YQ
61812011-02-12 Yao Qi <[email protected]>
6182
6183 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
6184
b708a5c7
JK
61852011-02-11 Yao Qi <[email protected]>
6186
6187 * common/Makefile.in: Add copyright header.
6188
c5187ac6
PA
61892011-02-11 Pedro Alves <[email protected]>
6190
6191 * infrun.c (proceed): Move switching out and in of tfind mode from
6192 here ...
6193 (fetch_inferior_event): ... to here.
6194
4f3e6fb7
YQ
61952011-02-11 Yao Qi <[email protected]>
6196
6197 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6198 libcommon.a.
6199 * configure.ac: Add common to sub dir.
6200 * configure: Regenerate.
6201
b708a5c7
JK
62022011-02-11 Yao Qi <[email protected]>
6203
6204 Build libcommon.a.
6205
6206 * common/Makefile.in: New.
6207 * common/configure.ac: New.
6208 * common/aclocal.m4: New.
6209 * common/configure: Generate.
6210
2287cc7e
PA
62112011-02-10 Pedro Alves <[email protected]>
6212
6213 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
6214 side of the parenthesis.
6215
6216 Merge from GCC:
6217 2010-07-13 Jakub Jelinek <[email protected]>
fc013618 6218 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 6219
fd62cb89
MS
62202011-02-08 Michael Snyder <[email protected]>
6221
6222 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
6223
56d2815c
JK
62242011-02-08 Jan Kratochvil <[email protected]>
6225
6226 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
6227 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
6228 psubd and paddd.
6229
4f7d61a8
JK
62302011-02-08 Jan Kratochvil <[email protected]>
6231
6232 PR 12361.
6233 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
6234 phsubsw.
6235 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
6236 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
6237
54fcddd0
UW
62382011-02-08 Ulrich Weigand <[email protected]>
6239
6240 * dwarf2read.c (read_subroutine_type): Set special calling
6241 convention flag for functions compiled by IBM XL C for OpenCL.
6242 * ppc-sysv-tdep.c: Include "dwarf2.h"
6243 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
6244 calling convention.
6245 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
6246 IBM OpenCL vector types calling convention.
6247 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
6248 (ppc_sysv_abi_broken_return_value): Likewise.
6249 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
6250 types calling convention.
6251 (ppc64_sysv_abi_return_value): Likewise.
6252 * spu-tdep.c: Include "dwarf2.h"
6253 (spu_return_value): Implement IBM OpenCL vector types calling
6254 convention.
6255
d6dafb7c
UW
62562011-02-08 Ulrich Weigand <[email protected]>
6257
6258 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
6259 correct ABI for AltiVec vector arguments.
6260
32b72a42
PA
62612011-02-07 Pedro Alves <[email protected]>
6262
6263 * valprint.c (val_print): Extend comment.
6264 * ada-valprint.c (ada_valprint): Rewrite comment deferring
6265 interface explanation to val_print.
6266 (ada_val_print_array): Adjust comment to current interface.
6267 (print_field_values): Adjust comment to current interface.
6268 * c-valprint.c (c_val_print): Rewrite comment deferring interface
6269 explanation to val_print.
6270 * f-valprint.c (f_val_print): Ditto.
6271 * jv-valprint.c (java_val_print): Ditto.
6272 * m2-valprint.c (m2_val_print): Ditto.
6273 * p-valprint.c (pascal_val_print): Ditto.
6274
9998af43
TJB
62752011-02-07 Thiago Jung Bauermann <[email protected]>
6276
6277 * breakpoint.c (parse_breakpoint_sals): Fix description.
6278
505500db 62792011-02-04 Sami Wagiaalla <[email protected]>
9998af43 6280 Oguz Kayral <[email protected]>
505500db
SW
6281
6282 * python/py-inferior.c (python_on_normal_stop): New function.
6283 (python_on_resume): New function.
6284 (python_inferior_exit): New function.
6285 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
6286 inferior_exit observers.
6287 * python/py-evtregistry.c: New file.
6288 * python/py-threadevent.c : New file.
6289 * python/py-event.c: New file.
6290 * python/py-evts.c: New file.
6291 * python/py-continueevent.c: New file.
6292 * python/py-bpevent.c: New file.
6293 * python/py-signalevent.c: New file.
6294 * python/py-exetiedevent.c: New file.
6295 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
6296 Move struct breakpoint_object from here...
6297 * python/python-internal.h: ... to here.
6298 * python/py-event.h: New file.
6299 * python/py-events.h: New file.
6300 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
6301 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
6302 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
6303 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
6304 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
6305 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
6306 Add build rules for all the above.
6307
9e0ac564
TT
63082011-02-04 Tom Tromey <[email protected]>
6309
6310 * dwarf2read.c (dwarf2_section_empty_p): New function.
6311 (dwarf2_read_section): Use dwarf2_section_empty_p.
6312 (dwarf2_section_size): New function.
6313 (dwarf2_get_section_info): Unconditionally read section.
6314 (dwarf2_read_index): Use dwarf2_section_empty_p.
6315 (partial_read_comp_unit_head): Use dwarf2_section_size.
6316 (dwarf2_symbol_mark_computed): Likewise.
6317
eee5b35e
DD
63182011-02-04 David Daney <[email protected]>
6319
6320 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
6321
385203ed
DD
63222011-02-04 David Daney <[email protected]>
6323
6324 * mips-linux-tdep.c: Include xml-syscall.h.
6325 (mips_linux_get_syscall_number): New function.
6326 (mips_linux_init_abi): Add calls to
6327 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
6328 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6329 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
6330 * syscalls/mips-n32-linux.xml: New file.
6331 * syscalls/mips-n64-linux.xml: New file.
6332 * syscalls/mips-o32-linux.xml: New file.
6333
9277c30c
UW
63342011-02-04 Ulrich Weigand <[email protected]>
6335
6336 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
6337 Complain about inverted range entries.
6338 (dwarf2_record_block_ranges): Likewise.
6339
a3be7890
TJB
63402011-02-04 Thiago Jung Bauermann <[email protected]>
6341
6342 Fix some typos.
6343 * breakpoint.c (update_watchpoint): Fix name of the
6344 update_global_location_list function.
6345 (print_one_breakpoint): Fix typo.
6346 (_initialize_breakpoint): Remove extra space in hbreak help
6347 string.
6348 * breakpoint.h (struct bp_location) <length>: Fix field
6349 description.
6350
041274d8
PA
63512011-02-04 Pedro Alves <[email protected]>
6352
6353 * regcache.c (registers_changed_ptid): Don't explictly always
6354 clear `current_regcache'. Only clear current_thread_ptid and
6355 current_thread_arch when PTID matches. Only reinit the frame
6356 cache if PTID matches the current inferior_ptid. Move alloca(0)
6357 call to ...
6358 (registers_changed): ... here.
6359
c1c2ab58
UW
63602011-02-03 Ulrich Weigand <[email protected]>
6361
6362 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
6363 starts with __stack_chk_guard as stack guard symbol.
6364
9011945e
AB
63652011-02-03 Andrew Burgess <[email protected]>
6366
6367 * disasm.c (compare_lines): Handle the end of sequence markers
6368 within the line table to better support disassembling over
6369 compilation unit boundaries.
6370
e0634ccf
UW
63712011-02-02 Ulrich Weigand <[email protected]>
6372
6373 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
6374 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
6375 implementation even if no symbols are available.
6376 (thumb_analyze_prologue): Update call to skip_prologue_function.
6377 (arm_analyze_prologue): Likewise.
6378
0e9e9abd
UW
63792011-02-02 Ulrich Weigand <[email protected]>
6380
6381 * arm-tdep.c: Include "observer.h".
6382 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
6383 (arm_exidx_data_key): New static variable.
6384 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
6385 (struct arm_exidx_data): Likewise.
6386 (arm_exidx_data_free): New function.
6387 (arm_compare_exidx_entries): Likewise.
6388 (arm_obj_section_from_vma): Likewise.
6389 (arm_exidx_new_objfile): Likewise.
6390 (arm_find_exidx_entry): Likewise.
6391 (arm_exidx_fill_cache): Likewise.
6392 (arm_exidx_unwind_sniffer): Likewise.
6393 (arm_exidx_unwind): New global variable.
6394 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
6395 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
6396 observer. Register arm_exidx_data_key as objfile data.
6397
2e9e421f
UW
63982011-02-02 Ulrich Weigand <[email protected]>
6399
6400 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
6401 due to accessing uninitialized variable. Fix indentation.
6402
580688f3
PA
64032011-02-02 Pedro Alves <[email protected]>
6404
6405 * c-valprint.c (c_value_print): When doing virtual base pointer
6406 adjustment, create a new value with adjusted contents rather than
6407 changing the contents of the value being printed (and getting it
6408 wrong).
6409
3d2c1d41
PA
64102011-02-02 Pedro Alves <[email protected]>
6411
6412 * xml-support.c (xml_find_attribute): New.
6413 (xinclude_start_include): Use it.
6414 * xml-support.h (xml_find_attribute): Declare.
6415 * memory-map.c (memory_map_start_memory)
6416 (memory_map_start_property): Use xml_find_attribute.
6417 * osdata.c (osdata_start_osdata, osdata_start_column): Use
6418 xml_find_attribute.
6419 * remote.c (start_thread): Use xml_find_attribute.
6420 * solib-target.c (library_list_start_segment)
6421 (library_list_start_section, library_list_start_library)
6422 (library_list_start_list): Use xml_find_attribute.
6423 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
6424 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
6425 (tdesc_start_field): Use xml_find_attribute.
6426
0af3e2db
UW
64272011-02-02 Ulrich Weigand <[email protected]>
6428
6429 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
6430 (BUILD_OCL_VTYPES): Update.
6431
c1039e3c
JB
64322011-02-02 Joel Brobecker <[email protected]>
6433
6434 * configure.ac: Work around non-GNU sed limitation when computing
6435 python version number.
6436 * configure: Regenerate.
6437
600ea1be
JK
64382011-02-01 Jan Kratochvil <[email protected]>
6439
6440 Fix debug printing of TYPE_INSTANCE.
6441 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
6442 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
6443
56c12414
JK
64442011-02-01 Jan Kratochvil <[email protected]>
6445
6446 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
6447 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
6448 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
6449 * ada-operator.inc: Rename the file to ...
6450 * ada-operator.def: ... here, wrap all the entries by macro OP.
6451 * expprint.c (op_name_standard): Remove all the entries. Include
6452 "std-operator.def" instead.
6453 * expression.h (enum exp_opcode): Include "std-operator.def" and
6454 "ada-operator.def". Move all the entries ...
6455 * std-operator.def: ... here, wrap all the entries by macro OP.
6456
c52b559d
PP
64572011-01-31 Paul Pluzhnikov <[email protected]>
6458
6459 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
6460 * breakpoint.c (remove_jit_event_breakpoints): New function.
6461 * jit.c (jit_descriptor_addr): Delete.
6462 (registering_code): Delete.
6463 (clear_int): Delete.
6464 (jit_inferior_data): New variable.
6465 (struct jit_inferior_data): New type.
6466 (get_jit_inferior_data): New function.
6467 (jit_inferior_data_cleanup): New function.
6468 (jit_read_descriptor): Adjust.
6469 (jit_register_code): Adjust.
6470 (jit_breakpoint_re_set_internal): New function; move code here ...
6471 (jit_inferior_init): ... from here.
6472 (jit_breakpoint_re_set): Adjust.
6473 (jit_reset_inferior_data_and_breakpoints): New function.
6474 (jit_inferior_created_observer): Adjust.
6475 (jit_inferior_exit_hook): Adjust.
6476 (jit_executable_changed_observer): New function.
6477 (jit_event_handler): Adjust.
6478 (_initialize_jit): Adjust.
6479
e839132d
MS
64802011-01-31 Michael Snyder <[email protected]>
6481
6482 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
6483 line.
6484
47a80e90
TT
64852011-01-31 Tom Tromey <[email protected]>
6486
6487 PR python/12216:
6488 * python/python.c (execute_gdb_command): Call
6489 prevent_dont_repeat.
6490 * top.c (suppress_dont_repeat): New global.
6491 (dont_repeat): Use it.
6492 (prevent_dont_repeat): New function.
6493 * command.h (prevent_dont_repeat): Declare.
6494
45a43567
TT
64952011-01-31 Tom Tromey <[email protected]>
6496
6497 * infcmd.c (finish_backward): Use breakpoint_set_silent.
6498 * python/py-breakpoint.c (bppy_set_silent): Use
6499 breakpoint_set_silent.
6500 (bppy_set_thread): Use breakpoint_set_thread.
6501 (bppy_set_task): Use breakpoint_set_task.
6502 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
6503 (breakpoint_set_task): Declare.
6504 (make_breakpoint_silent): Remove.
6505 * breakpoint.c (breakpoint_set_silent): New function.
6506 (breakpoint_set_thread): Likewise.
6507 (breakpoint_set_task): Likewise.
6508 (make_breakpoint_silent): Remove.
6509
09d682a4
TT
65102011-01-31 Tom Tromey <[email protected]>
6511
6512 * breakpoint.h (user_breakpoint_p): Declare.
6513 * breakpoint.c (user_breakpoint_p): New function.
6514 (breakpoint_1): Use it.
6515 (save_breakpoints): Likewise.
6516
9c4ea6c5
JB
65172011-01-31 Joel Brobecker <[email protected]>
6518
6519 * configure.ac: Add handling of Python distribution on Windows.
6520 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
6521 sysconfig variables are not defined, then do not use them.
6522 On Windows, if LIBPL is not defined, then use prefix + '/libs'
6523 instead. On Windows, return all paths using forward-slashes
6524 rather than backslashes.
6525
ac534cba
JB
65262011-01-31 Joel Brobecker <[email protected]>
6527
6528 * configure.ac: Remove fallback behavior for building
6529 against Python. Remove tweaking of Python include path.
6530 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
6531 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
6532 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
6533 Always restore CPPFLAGS and LIBS after linking test.
6534 * configure: Regenerated.
6535 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
6536 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
6537 * python/python-internal.h: Adjust includes of Python .h files.
6538
c2f0d045
JB
65392011-01-31 Joel Brobecker <[email protected]>
6540
6541 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
6542 in error message.
6543
6b0c4c1f
JB
65442011-01-31 Joel Brobecker <[email protected]>
6545
6546 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
6547 value test.
6548
672c9795
YQ
65492011-01-31 Yao Qi <[email protected]>
6550
6551 * arm-linux-nat.c: Update calls to regcache_register_status
6552 instead of regcache_valid_p.
6553 * aix-thread.c: Likewise.
6554 * i386gnu-nat.c: Likewise.
6555
80b23b6a
JK
65562011-01-29 Jan Kratochvil <[email protected]>
6557
6558 Fix crash.
6559 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
6560 touching TYPE_FIELD_ARTIFICIAL.
6561
4cd712bd
RE
65622011-01-28 Richard Earnshaw <[email protected]>
6563
6564 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
6565 Committers.
6566
ffd5ec24
PA
65672011-01-28 Pedro Alves <[email protected]>
6568
6569 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
6570 selected, don't try iterating over the traceframe's blocks.
6571 (tfile_has_stack): If there's no traceframe selected, then there's
6572 no stack.
6573 (tfile_has_registers): If there's no traceframe selected, then
6574 there's no registers.
6575
e8c9e0a1
PA
65762011-01-28 Pedro Alves <[email protected]>
6577
6578 * target.c (memory_xfer_partial): No need to restore shadows if we
6579 haven't read anything.
6580
de15c4ab
PA
65812011-01-28 Pedro Alves <[email protected]>
6582
6583 * mips-tdep.c (mips_print_register): Use get_frame_register_value
6584 and val_print_scalar_formatted.
6585
9f41c731
PA
65862011-01-27 Pedro Alves <[email protected]>
6587
6588 * tracepoint.c (tfile_read): New.
6589 (tfile_open): Use it.
6590 (tfile_get_traceframe_address): Use it.
6591 (tfile_trace_find): Use it.
6592 (walk_blocks_callback_func): New typedef.
6593 (match_blocktype): New function.
6594 (traceframe_walk_blocks): New function.
6595 (traceframe_find_block_type): New function.
6596 (tfile_fetch_registers, tfile_xfer_partial)
6597 (tfile_get_trace_state_variable_value): Use
6598 traceframe_find_block_type and tfile_read.
6599
cdefc55d
KB
66002011-01-26 Kevin Buettner <[email protected]>
6601
6602 * remote-mips.c: Add internationalization mark ups. Remove
6603 trailing \n from already marked up strings.
6604
a81766d8
TT
66052011-01-26 Tom Tromey <[email protected]>
6606
6607 * python/py-prettyprint.c (print_string_repr): Clear
6608 'addressprint' option when calling val_print_string.
6609 (print_children): Handle Val_pretty_default. Clear 'addressprint'
6610 option when calling val_print_string.
6611
74aedc46
TT
66122011-01-26 Tom Tromey <[email protected]>
6613
6614 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
6615 GDB_PY_LL_ARG.
6616 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
6617 macros.
6618 (gdb_py_longest, gdb_py_ulongest): New typedefs.
6619 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
6620 (gdb_py_long_as_ulongest): New defines.
6621 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
6622 (gdb_py_int_as_long): Declare.
6623 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
6624 GDB_PY_LL_ARG, gdb_py_object_from_longest.
6625 (valpy_long): Add comment.
6626 * python/py-utils.c (get_addr_from_python): Use
6627 gdb_py_long_as_ulongest. Handle overflow properly.
6628 (gdb_py_object_from_longest): New function.
6629 (gdb_py_object_from_ulongest): Likewise.
6630 (gdb_py_int_as_long): Likewise.
6631 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
6632 * python/py-symtab.c (salpy_get_pc): Use
6633 gdb_py_long_from_ulongest.
6634 (salpy_get_line): Use PyInt_FromLong.
6635 * python/py-param.c (set_parameter_value): Use
6636 gdb_py_int_as_long.
6637 * python/py-lazy-string.c (stpy_get_address): Use
6638 gdb_py_long_from_ulongest.
6639 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
6640 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
6641 * python/py-breakpoint.c (bppy_set_thread): Use
6642 gdb_py_int_as_long.
6643 (bppy_set_task): Likewise.
6644 (bppy_set_ignore_count): Likewise.
6645 (bppy_set_hit_count): Likewise.
6646 * python/py-block.c (blpy_get_start): Use
6647 gdb_py_object_from_ulongest.
6648 (blpy_get_end): Likewise.
6649 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
6650
e4f6d2ec
TJB
66512011-01-25 Mathieu Lacage <[email protected]>
6652
6653 PR/symtab 11766:
6654 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
6655 * gdb/solib.c (solib_read_symbols): Check for addr_low in
6656 equality test for objfile, initialize addr_low if needed.
6657
b30aa278
PA
66582011-01-25 Pedro Alves <[email protected]>
6659
6660 * tui/tui-regs.c (tui_register_format): Remove dead code.
6661
ab2188aa
PA
66622011-01-25 Pedro Alves <[email protected]>
6663
6664 * printcmd.c (print_formatted): Use val_print_scalar_formatted
6665 instead of print_scalar_formatted.
6666 (print_scalar_formatted): Don't handle 's' format strings here,
6667 and add an assertion that we never see such format here.
6668 * valprint.h (val_print_scalar_formatted): Declare.
6669 * valprint.c (val_print_scalar_formatted): New.
6670 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
6671 instead of print_scalar_formatted.
6672 * jv-valprint.c (java_val_print): Ditto.
6673 * p-valprint.c (pascal_val_print): Ditto.
6674 * ada-valprint.c (ada_val_print_1): Ditto.
6675 * f-valprint.c (f_val_print): Ditto.
6676 * infcmd.c (registers_info): Ditto.
6677 * m2-valprint.c (m2_val_print): Ditto.
6678
66d61a4c
PA
66792011-01-25 Pedro Alves <[email protected]>
6680
6681 * m2-valprint.c (print_unbounded_array): Pass
6682 value_contents_for_printing rather than value_contents, to
6683 m2_print_array_contents. Also pass in the value.
6684
831adc1f
JK
66852011-01-25 Jan Kratochvil <[email protected]>
6686
6687 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
6688 (save_gdb_index_command): Switch to .gdb_index version 4.
6689
20622269
PA
66902011-01-25 Pedro Alves <[email protected]>
6691
6692 * mi/mi-main.c (get_register): Use get_frame_register_value rather
6693 than frame_register, and always pass a valid value to val_print.
6694
585fdaa1
PA
66952011-01-25 Pedro Alves <[email protected]>
6696
6697 Centralize printing "<optimized out>".
6698
6699 * valprint.h (val_print_optimized_out): Declare.
6700 * cp-valprint.c (cp_print_value_fields): Use
6701 val_print_optimized_out.
6702 * jv-valprint.c (java_print_value_fields): Ditto.
6703 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6704 * printcmd.c (print_formatted): Ditto.
6705 * valprint.c (valprint_check_validity): Ditto.
6706 (value_check_printable): Ditto.
6707 (val_print_optimized_out): New.
6708
29ec5263
PA
67092011-01-25 Pedro Alves <[email protected]>
6710
6711 * infcmd.c (default_print_registers_info): Allocate values so to
6712 never pass a NULL value to val_print.
6713
de4127a3
PA
67142011-01-25 Pedro Alves <[email protected]>
6715
6716 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
6717 boolean. Make sure to always pass a value that matches the
6718 contents buffer to callees. Preserve `address' for following
6719 iterations.
6720 * value.c (value_contents_for_printing_const): New.
6721 (value_address): Constify value argument.
6722 * value.h (value_contents_for_printing_const): Declare.
6723 (value_address): Constify value argument.
6724
ee99023e
PA
67252011-01-25 Pedro Alves <[email protected]>
6726
6727 * regcache.c (struct regcache_descr): Rename
6728 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
6729 and sizeof_cooked_register_valid_p to
6730 sizeof_cooked_register_status.
6731 (init_regcache_descr): Adjust.
6732 (struct regcache): Rename register_valid_p field to
6733 register_status.
6734 (regcache_xmalloc_1, regcache_xfree, regcache_save)
6735 (do_cooked_read): Adjust.
6736 (regcache_valid_p): Rename to ...
6737 (regcache_register_status): ... this. Adjust.
6738 (regcache_invalidate): Adjust.
6739 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
6740 Adjust.
6741 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
6742 as unavailable, not valid.
6743 (regcache_dump): Adjust.
6744 * regcache.h (enum register_status): New.
6745 (regcache_register_status): Declare.
6746 (regcache_invalidate): Delete declaration.
6747 * corelow.c (get_core_registers): Adjust.
6748 * tracepoint.c (tfile_fetch_registers): Adjust.
6749 * trad-frame.c (REG_VALUE): Rename to ...
6750 (TF_REG_VALUE): ... this.
6751 (REG_UNKNOWN): Rename to ...
6752 (TF_REG_UNKNOWN): ... this.
6753 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
6754 * mi/mi-main.c (register_changed_p): Adjust.
6755
99e42fd8
PA
67562011-01-25 Pedro Alves <[email protected]>
6757
6758 * regcache.c (struct regcache_descr): Remove outdated comment.
6759 (init_regcache_descr): Remove sizeof_raw_register_valid_p
6760 overallocate hack.
6761 (regcache_xmalloc): Rename to ...
6762 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
6763 Allocate the regcache type accordingly.
6764 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
6765 (regcache_xfree): Asser the source is also readonly. Copy sizeof
6766 cooked registers, not raw.
6767 (regcache_dup_no_passthrough): Delete.
6768 (get_thread_arch_regcache): Use regcache_xmalloc_1.
6769 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
6770 mention obsolete write_register_bytes.
6771 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6772
f7605bc2
PA
67732011-01-25 Pedro Alves <[email protected]>
6774
6775 Stop remote_read_bytes from handling partial reads itself.
6776
6777 * remote-fileio.c: Include target.h.
6778 (remote_fileio_write_bytes): Delete.
6779 (remote_fileio_func_open, remote_fileio_func_write)
6780 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6781 target_read_memory.
6782 (remote_fileio_func_stat): Use target_read_memory and
6783 target_write_memory.
6784 (remote_fileio_func_gettimeofday): Use target_write_memory.
6785 (remote_fileio_func_system): Use target_read_memory.
6786 * remote.c (remote_write_bytes): Make it static.
6787 (remote_read_bytes): Don't handle partial reads here.
6788 * remote.h (remote_read_bytes): Delete declaration.
6789
efc0eabd
PA
67902011-01-25 Pedro Alves <[email protected]>
6791
6792 Simplify XML parsing a bit.
6793
6794 * xml-support.h (gdb_xml_parse_quick): Declare.
6795 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6796 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6797 parameter.
6798 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6799 gdb_xml_create_parser_and_cleanup_1.
6800 (gdb_xml_parse_quick): New.
6801 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6802 * osdata.c (osdata_parse): Ditto.
6803 * remote.c (remote_threads_info): Ditto.
6804 * solib-target.c (solib_target_parse_libraries): Ditto.
6805 * xml-syscall.c (syscall_parse_xml): Ditto.
6806 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6807
314d366a
KB
68082011-01-24 Kevin Buettner <[email protected]>
6809
6810 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6811 with remote-mips.o added to gdb_target_obs.
6812 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6813
a491d753
PA
68142011-01-24 Pedro Alves <[email protected]>
6815
6816 * ada-valprint.c (val_print_packed_array_elements): Pass the
6817 correct struct value to val_print.
6818 (ada_val_print_1): Ditto.
6819
490f124f
PA
68202011-01-24 Pedro Alves <[email protected]>
6821
6822 Don't lose embedded_offset in printing routines throughout.
6823
6824 * valprint.h (val_print_array_elements): Change prototype.
6825 * valprint.c (val_print_array_elements): Add `embedded_offset'
6826 parameter, and adjust to pass it down to val_print, while passing
6827 `valaddr' or `address' unmodified. Take embedded_offset into
6828 account when checking repetitions.
6829 * c-valprint.c (c_val_print): Pass embedded_offset to
6830 val_print_array_elements instead of adjusting `valaddr' and
6831 `address'.
6832 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6833 embedded_offset to val_print_array_elements instead of adjusting
6834 `valaddr'.
6835 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6836 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6837 val_print_array_elements and pascal_object_print_value_fields
6838 instead of adjusting `valaddr'.
6839 (pascal_object_print_value_fields): Add `offset' parameter, and
6840 adjust to use it.
6841 (pascal_object_print_value): Add `offset' parameter, and adjust to
6842 use it.
6843 (pascal_object_print_static_field): Use
6844 value_contents_for_printing/value_embedded_offset, rather than
6845 value_contents.
6846 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6847 parameter, and adjust to use it. Use
6848 value_contents_for_printing/value_embedded_offset, rather than
6849 value_contents.
6850 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6851 (ada_val_print_array): Add `offset' parameter, and adjust to use
6852 it.
6853 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6854 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6855 Instead work with offsets. Use
6856 value_contents_for_printing/value_embedded_offset, rather than
6857 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6858 and use value_from_pointer to extract a target pointer, rather
6859 than value_from_longest.
6860 (print_variant_part): Add `offset' parameter. Replace
6861 `outer_valaddr' parameter by a new `outer_offset' parameter.
6862 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6863 (ada_value_print): Use
6864 value_contents_for_printing/value_embedded_offset, rather than
6865 value_contents.
6866 (print_record): Add `offset' parameter, and adjust to pass it
6867 down.
6868 (print_field_values): Add `offset' parameter. Replace
6869 `outer_valaddr' parameter by a new `outer_offset' parameter.
6870 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6871 Use value_contents_for_printing/value_embedded_offset, rather than
6872 value_contents.
6873 * d-valprint.c (dynamic_array_type): Use
6874 value_contents_for_printing/value_embedded_offset, rather than
6875 value_contents.
6876 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6877 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6878 (java_print_value_fields): Take `offset' into account. Don't
6879 re-adjust `valaddr'. Instead pass down adjusted offsets.
6880 (java_val_print): Take `embedded_offset' into account. Pass it to
6881 java_print_value_fields.
6882 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6883 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6884 down adjusted offsets.
6885 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6886 (f_val_print): Take `embedded_offset' into account.
6887
7bfc9434
JB
68882011-01-21 Joel Brobecker <[email protected]>
6889
6890 * inflow.c: Include "gdbcmd.h".
6891 (interactive_mode): New static global, moved here from top.c.
6892 (show_interactive_mode): New function, moved here from top.c.
6893 use gdb_has_a_terminal instead of input_from_terminal_p to
6894 determine the current mode.
6895 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6896 setting.
6897 (_initialize_inflow): Add the "set/show interactive-mode"
6898 commands. Moved here from top.c, after having adjusted slightly
6899 the help text.
6900 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6901 to inflow.c.
6902 (input_from_terminal_p): Remove handling of "interactive-mode"
6903 setting, moved to infow.c.
6904 (init_main): Remove creation of the "set/show interactive-mode"
6905 commands, moved to inflow.c.
6906
44603653
JB
69072011-01-19 Joel Brobecker <[email protected]>
6908
6909 * NEWS: Add entry for native ia64-hpux support.
6910
4694da01
TT
69112011-01-19 Tom Tromey <[email protected]>
6912
6913 PR mi/8618:
6914 * thread.c (free_thread): Free 'name'.
6915 (print_thread_info): Emit thread name. Change CLI output.
6916 (thread_name_command): New function.
6917 (do_captured_thread_select): Emit newline.
6918 (_initialize_thread): Register 'thread name' command.
6919 * target.h (struct target_ops) <to_thread_name>: New field.
6920 (target_thread_name): New macro.
6921 * target.c (update_current_target): Handle to_thread_name.
6922 * python/py-infthread.c (thpy_get_name): New function.
6923 (thpy_set_name): Likewise.
6924 (thread_object_getset): Add "name".
6925 * linux-nat.c (linux_nat_thread_name): New function.
6926 (linux_nat_add_target): Set to_thread_name.
6927 * gdbthread.h (struct thread_info) <name>: New field.
6928
10d44370
JB
69292011-01-18 Joel Brobecker <[email protected]>
6930
6931 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6932 (ada_val_print_1): Likewise.
6933
e3acb115
JB
69342011-01-18 Joel Brobecker <[email protected]>
6935
6936 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6937 upper limit address is not greater than the function end address
6938 when the upper limit could not be computed using the debugging
6939 info.
6940
dc92e161
TT
69412011-01-17 Tom Tromey <[email protected]>
6942
6943 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6944 get_regcomp_error.
6945 * utils.c: Include gdb_regex.h.
6946 (do_regfree_cleanup): New function.
6947 (make_regfree_cleanup): Likewise.
6948 (get_regcomp_error): Likewise.
6949 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6950
f55af66d
TT
69512011-01-17 Tom Tromey <[email protected]>
6952
6953 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6954 re_compile_fastmap.
6955
a5a44b53
PM
69562011-01-17 Pierre Muller <[email protected]>
6957
6958 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6959 for internal variables.
6960 (last_was_structop): New static variable.
6961 (COMPLETE): New token.
6962 (field_exp): New rule to group all '.' suffix handling.
6963 Add mark_struct_expression calls when approriate to be able
6964 to correctly find fields for completion.
6965 (yylex): Adapt to handle field completion and set INTVAR when
6966 required.
6967
2c291032
YQ
69682011-01-14 Yao Qi <[email protected]>
6969
6970 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6971 save_reggroup, restore_reggroup and all_reggroup.
6972
447b483c
JB
69732011-01-14 Joel Brobecker <[email protected]>
6974
6975 * ada-valprint. (ada_printchar): Use the correct type length
6976 in call to ada_emit_char.
6977 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6978
7b64a93b
PM
69792011-01-14 Pierre Muller <[email protected]>
6980
6981 * solib-som.h (hpux_major_release): Declare variable here.
6982 * solib-som.c: Remove <sys/utsname.h> header.
6983 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6984 (hpux_major_release): Make global, change default value to
6985 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 6986 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
6987 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6988 Add "solib-som.h" header.
6989 (set_hpux_major_release): New function.
6990 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6991
4e18c053
MF
69922011-01-14 Mike Frysinger <[email protected]>
6993
6994 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6995
a9df6b22
JB
69962011-01-14 Joel Brobecker <[email protected]>
6997
6998 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6999 new-line at end of warning message.
7000 (ia64_hpux_store_register): Remove trailing new-line at end of
7001 error message.
7002 * ia64-hpux-tdep.c: Rephrase comment.
7003 * solib-ia64-hpux.c (struct dld_info): Change type of field
7004 dld_flags from "long long" to ULONGEST.
7005
ecb956dd
PA
70062011-01-14 Pedro Alves <[email protected]>
7007
7008 * target.h (deprecated_child_ops): Delete declaration.
7009 * target.c (deprecated_child_ops): Delete definition.
7010
76adfcae
PA
70112011-01-14 Pedro Alves <[email protected]>
7012
7013 * Makefile.in (hpux-thread.o): Delete rule.
7014 * configure.ac: Don't check for HPUX DCE threads support.
7015 * configure, config.in: Regenerate.
7016 * hppa-hpux-nat.c (child_suppress_run): Delete.
7017 (hppa_hpux_child_can_run): Delete.
7018 (_initialize_hppa_hpux_nat): Don't override to_can_run.
7019 * hpux-thread.c: Delete.
7020
042e866e
JB
70212011-01-13 Joel Brobecker <[email protected]>
7022
7023 * hpux-thread.c (hpux_pid_to_str): Delete.
7024
4ffa5a33
JB
70252011-01-13 Joel Brobecker <[email protected]>
7026
7027 * ada-valprint.c (ada_emit_char): Remove strange code.
7028 Check that c is <= UCHAR_MAX before passing it to isascii.
7029 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
7030
de8fa76c
JB
70312011-01-13 Joel Brobecker <[email protected]>
7032
7033 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
7034 to the case where instream is stdin.
7035
c4de7027
JB
70362011-01-13 Joel Brobecker <[email protected]>
7037
7038 * ia64-tdep.h (struct regcache): Forward declare.
7039 (struct ia64_infcall_ops): New struct type.
7040 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
7041 and "infcall_ops".
7042 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
7043 Renames ia64_find_global_pointer.
7044 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
7045 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
7046 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
7047 methods.
7048 (ia64_infcall_ops): New static global constant.
7049 (ia64_gdbarch_init): Set tdep->infcall_ops.
7050 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
7051 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
7052 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
7053 (ia64_hpux_dummy_code): New static global constant.
7054 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
7055 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
7056 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
7057 New function.
7058 (ia64_hpux_infcall_ops): New static global constant.
7059 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
7060 for inferior function calls to work properly on ia64-hpux.
7061
77ca787b
JB
70622011-01-13 Joel Brobecker <[email protected]>
7063
7064 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
7065 * ia64-tdep.h (struct frame_info): forward declaration.
7066 (struct gdbarch_tdep): Add field size_of_register_frame.
7067 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
7068 to determine the size of the register frame.
7069 (ia64_size_of_register_frame): New function.
7070 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
7071 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
7072 (IA64_HPUX_UREG_REASON): New macro.
7073 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
7074 New functions.
7075 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
7076 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
7077 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
7078 objects.
7079
92c9a463
JB
70802011-01-13 Joel Brobecker <[email protected]>
7081
7082 Add support for ia64-hpux.
7083 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
7084 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
7085
7086 * configure.host: Add handling for ia64-hpux hosts. Add associated
7087 floatformats.
7088 * configure.tgt: Add handling for ia64-hpux targets.
7089 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
7090 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
7091 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
7092
f688d93f
JB
70932011-01-13 Joel Brobecker <[email protected]>
7094
7095 [ttrace] Compute thread list immediately after attach.
7096 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
7097 New subprogram.
7098 (inf_ttrace_attach): Use it.
7099
1b89e62f
JB
71002011-01-13 Joel Brobecker <[email protected]>
7101
7102 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
7103 if we could not determine the frame's function address. Instead,
7104 use the frame's PC, and then continue.
7105
3e5e6e2a
JB
71062011-01-13 Joel Brobecker <[email protected]>
7107
7108 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
7109 not already defined.
7110
825d6d8a
JB
71112011-01-13 Joel Brobecker <[email protected]>
7112
7113 * ia64-tdep.c (ia64_struct_type_p): New function.
7114 (ia64_extract_return_value): Handle integral values that are
7115 less than 8 bytes long.
7116 (ia64_push_dummy_call): Likewise.
7117
7458e667
JB
71182011-01-13 Joel Brobecker <[email protected]>
7119
7120 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
7121 floatformat_ia64_ext.
7122 (floatformat_ia64_ext_big): New static const.
7123 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
7124
1b05df00
TT
71252011-01-12 Tom Tromey <[email protected]>
7126
7127 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
7128 messages.
7129 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
7130 (mi_cmd_thread_list_ids): Likewise.
7131 (mi_cmd_data_list_changed_registers): Likewise.
7132 (mi_cmd_data_list_register_values): Likewise.
7133 (mi_cmd_data_write_register_values): Likewise.
7134 (mi_cmd_data_evaluate_expression): Likewise.
7135 (mi_cmd_data_read_memory): Likewise.
7136 (mi_cmd_data_read_memory_bytes): Likewise.
7137 (mi_cmd_data_write_memory): Likewise.
7138 (mi_cmd_enable_timings): Likewise.
7139 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
7140 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
7141 (mi_cmd_var_delete): Likewise.
7142 (mi_cmd_var_set_format): Likewise.
7143 (mi_cmd_var_show_format): Likewise.
7144 (mi_cmd_var_info_num_children): Likewise.
7145 (mi_cmd_var_list_children): Likewise.
7146 (mi_cmd_var_info_type): Likewise.
7147 (mi_cmd_var_info_expression): Likewise.
7148 (mi_cmd_var_show_attributes): Likewise.
7149 (mi_cmd_var_assign): Likewise.
7150 (mi_cmd_var_update): Likewise.
7151 (mi_cmd_enable_pretty_printing): Likewise.
7152 (mi_cmd_var_set_update_range): Likewise.
7153 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
7154 messages.
7155 (mi_cmd_target_file_put): Likewise.
7156 (mi_cmd_target_file_delete): Likewise.
7157 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
7158 messages.
7159 (mi_cmd_stack_info_depth): Likewise.
7160 (mi_cmd_stack_list_locals): Likewise.
7161 (mi_cmd_stack_list_args): Likewise.
7162 (mi_cmd_stack_select_frame): Likewise.
7163 (mi_cmd_stack_select_frame): Likewise.
7164 (mi_cmd_stack_info_frame): Likewise.
7165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
7166 messages.
7167 (mi_cmd_file_list_exec_source_files): Likewise.
7168 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
7169 (mi_cmd_env_cd): Likewise.
7170 (mi_cmd_env_path): Likewise.
7171 (mi_cmd_env_dir): Likewise.
7172 (mi_cmd_inferior_tty_show): Likewise.
7173 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
7174 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
7175 (mi_cmd_break_watch): Likewise.
7176
ad422571
TJB
71772011-01-12 Thiago Jung Bauermann <[email protected]>
7178
7179 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
7180 (ppc_linux_insert_hw_breakpoint): Likewise.
7181 (ppc_linux_remove_hw_breakpoint): Likewise.
7182 (ppc_linux_insert_watchpoint): Likewise.
7183
c2ff108b
JK
71842011-01-12 Andrew Burgess <[email protected]>
7185 Jan Kratochvil <[email protected]>
7186
7187 PR fortran/11104 and DWARF unbound arrays detection.
7188 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
7189 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
7190 unspecified upper bound.
7191 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
7192 variables array_size_array, tmp_type and offset_item. New variable
7193 array. Remove call to f77_get_upperbound. New variables array_type
7194 and index. Call value_subscripted_rvalue for each dimenasion. Remove
7195 the final call to deprecated_set_value_type.
7196
41e8491f
JK
71972011-01-12 Jan Kratochvil <[email protected]>
7198
7199 Make value allocations more lazy.
7200 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
7201 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 7202 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
7203 instead of allocate_value and set_value_lazy.
7204 * findvar.c (value_of_register_lazy): Likewise.
7205 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 7206 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
7207 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
7208 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
7209 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
7210 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
7211 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
7212 the end, remove set_value_lazy there.
7213 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
7214 instead of allocate_value and set_value_lazy when possible.
7215 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
7216 * value.c (allocate_computed_value): Use allocate_value_lazy instead
7217 of allocate_value and set_value_lazy.
7218 (value_from_contents_and_address): Use allocate_value_lazy instead of
7219 allocate_value and set_value_lazy when possible.
7220
b716877b
AB
72212011-01-12 Andrew Burgess <[email protected]>
7222
7223 * disasm.c (dump_insns): Support dumping opcodes for MI.
7224 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
7225 dumping of instruction opcodes.
7226
d5ae309f
JB
72272011-01-09 Robert Millan <[email protected]> (tiny patch)
7228
7229 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
7230 appropiately.
7231
98871305
TT
72322011-01-11 Tom Tromey <[email protected]>
7233
7234 * thread.c (do_captured_thread_select): Emit newline before
7235 printing frame.
7236
c378eb4e
MS
72372011-01-11 Michael Snyder <[email protected]>
7238
7239 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
7240 * score-tdep.c: Ditto.
7241 * score-tdep.h: Ditto.
7242 * ser-base.c: Ditto.
7243 * ser-go32.c: Ditto.
7244 * serial.c: Ditto.
7245 * serial.h: Ditto.
7246 * ser-mingw.c: Ditto.
7247 * ser-pipe.c: Ditto.
7248 * ser-tcp.c: Ditto.
7249 * ser-unix.c: Ditto.
7250 * sh64-tdep.c: Ditto.
7251 * shnbsd-nat.c: Ditto.
7252 * sh-tdep.c: Ditto.
7253 * sh-tdep.h: Ditto.
7254 * solib.c: Ditto.
7255 * solib-darwin.c: Ditto.
7256 * solib-frv.c: Ditto.
7257 * solib.h: Ditto.
7258 * solib-irix.c: Ditto.
7259 * solib-osf.c: Ditto.
7260 * solib-pa64.c: Ditto.
7261 * solib-som.c: Ditto.
7262 * solib-spu.c: Ditto.
7263 * solib-sunos.c: Ditto.
7264 * solib-svr4.c: Ditto.
7265 * solist.h: Ditto.
7266 * sol-thread.c: Ditto.
7267 * somread.c: Ditto.
7268 * source.c: Ditto.
7269 * source.h: Ditto.
7270 * sparc64-linux-tdep.c: Ditto.
7271 * sparc64-tdep.c: Ditto.
7272 * sparc-linux-nat.c: Ditto.
7273 * sparc-linux-tdep.c: Ditto.
7274 * sparc-sol2-nat.c: Ditto.
7275 * sparc-sol2-tdep.c: Ditto.
7276 * sparc-tdep.c: Ditto.
7277 * sparc-tdep.h: Ditto.
7278 * spu-tdep.c: Ditto.
7279 * stabsread.c: Ditto.
7280 * stabsread.h: Ditto.
7281 * stack.c: Ditto.
7282 * symfile.c: Ditto.
7283 * symfile.h: Ditto.
7284 * symmisc.c: Ditto.
7285 * symtab.c: Ditto.
7286 * symtab.h: Ditto.
7287 * target.c: Ditto.
7288 * target-descriptions.c: Ditto.
7289 * target-descriptions.h: Ditto.
7290 * target.h: Ditto.
7291 * target-memory.c: Ditto.
7292 * terminal.h: Ditto.
7293 * thread.c: Ditto.
7294 * top.c: Ditto.
7295 * tracepoint.c: Ditto.
7296 * tracepoint.h: Ditto.
7297 * trad-frame.h: Ditto.
7298 * typeprint.c: Ditto.
7299
581e13c1
MS
73002011-01-11 Michael Snyder <[email protected]>
7301
7302 * ui-file.c: Comment cleanup, mostly periods and spaces.
7303 * ui-file.h: Ditto.
7304 * ui-out.c: Ditto.
7305 * ui-out.h: Ditto.
7306 * utils.c: Ditto.
7307 * v850-tdep.c: Ditto.
7308 * valarith.c: Ditto.
7309 * valops.c: Ditto.
7310 * valprint.c: Ditto.
7311 * valprint.h: Ditto.
7312 * value.c: Ditto.
7313 * value.h: Ditto.
7314 * varobj.c: Ditto.
7315 * varobj.h: Ditto.
7316 * vax-tdep.c: Ditto.
7317 * vec.c: Ditto.
7318 * vec.h: Ditto.
7319 * version.h: Ditto.
7320 * windows-nat.c: Ditto.
7321 * windows-tdep.c: Ditto.
7322 * xcoffread.c: Ditto.
7323 * xcoffsolib.c: Ditto.
7324 * xml-support.c: Ditto.
7325 * xstormy16-tdep.c: Ditto.
7326 * xtensa-tdep.c: Ditto.
7327 * xtensa-tdep.h: Ditto.
7328
90e4670f
TJB
73292011-01-11 Thiago Jung Bauermann <[email protected]>
7330
7331 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
7332 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
7333
e09342b5
TJB
73342011-01-11 Sergio Durigan Junior <[email protected]>
7335 Thiago Jung Bauermann <[email protected]>
7336
7337 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 7338 * breakpoint.h
e09342b5
TJB
7339 (struct breakpoint_ops) <resources_needed>: New method.
7340 Initialize to NULL in all existing breakpoint_ops instances.
7341 (struct breakpoint) <exact>: New field.
7342 (target_exact_watchpoints): Declare external global.
7343 * breakpoint.c (target_exact_watchpoints): New global flag.
7344 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
7345 b->enable_state to bp_enabled before calling
7346 hw_watchpoint_used_count.
7347 (hw_watchpoint_used_count): Iterate over all bp_locations in a
7348 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
7349 if available.
7350 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
7351 if the watchpoint is exact.
7352 (resources_needed_watchpoint): New function.
7353 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
7354 (watch_command_1): Set b->exact if the user asked for an exact
7355 watchpoint and one can be set.
7356 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
7357 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
7358 the user asks for an exact watchpoint and one can be set. Return
7359 number of needed debug registers to watch the expression.
7360 * gdbtypes.c (is_scalar_type): New function, based on
7361 valprint.c:scalar_type_p.
7362 (is_scalar_type_recursive): New function.
7363 * gdbtypes.h (is_scalar_type_recursive): Declare.
7364 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
7365 handle regions when ranged watchpoints are available.
7366 (create_watchpoint_request): New function.
7367 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
7368 create_watchpoint_request.
7369 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
7370 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
7371 `set powerpc' and `show powerpc' commands.
7372 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7373 Mention documentation comment in the target macro.
7374 (target_region_ok_for_hw_watchpoint): Document return value.
7375
9fa40276
TJB
73762011-01-11 Thiago Jung Bauermann <[email protected]>
7377
7378 * breakpoint.c (update_watchpoint): Decide on using a software or
7379 hardware watchpoint after the bp_locations are created.
7380
77b06cd7
TJB
73812010-01-11 Thiago Jung Bauermann <[email protected]>
7382
7383 Convert hardware watchpoints to use breakpoint_ops.
7384 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
7385 <insert_location>: ... this. Return int instead of void.
7386 Accept pointer to struct bp_location instead of pointer to
7387 struct breakpoint. Adapt all implementations.
f2eb0bc8 7388 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
7389 <remove_location>: ... this. Accept pointer to struct bp_location
7390 instead of pointer to struct breakpoint. Adapt all implementations.
7391 * breakpoint.c (insert_catchpoint): Delete function.
7392 (insert_bp_location): Call the watchpoint or catchpoint's
7393 breakpoint_ops.insert method.
7394 (remove_breakpoint_1): Call the watchpoint or catchpoint's
7395 breakpoint_ops.remove method.
7396 (insert_watchpoint, remove_watchpoint): New functions.
7397 (watchpoint_breakpoint_ops): New structure.
7398 (watch_command_1): Initialize the OPS field.
7399 * inf-child.c (inf_child_insert_fork_catchpoint)
7400 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
7401 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
7402 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
7403 Delete functions.
7404 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
7405 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
7406 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
7407 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
7408 * target.c (update_current_target): Change default implementation of
7409 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
7410 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
7411 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
7412 to_set_syscall_catchpoint to return_one.
7413 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
7414 (debug_to_insert_exec_catchpoint): Report return value.
7415 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
7416 (to_insert_exec_catchpoint): Change declaration to return int instead
7417 of void.
7418
9b20d036
MS
74192011-01-11 Michael Snyder <[email protected]>
7420
7421 * arm-tdep.c: Internationalization.
7422 * c-lang.c: Ditto.
7423 * charset.c: Ditto.
7424 * fork-child.c: Ditto.
7425 * nto-procfs.c: Ditto.
7426 * ppc-sysv-tdep.c: Ditto.
7427 * procfs.c: Ditto.
7428 * remote-mips.c: Ditto.
7429 * remote.c: Ditto.
7430 * rs6000-nat.c: Ditto.
7431 * rs6000-tdep.c: Ditto.
7432 * target.c: Ditto.
7433 * valops.c: Ditto.
7434 * value.c: Ditto.
7435 * xml-support.c: Ditto.
7436 * mi/mi-cmd-break.c: Ditto.
7437 * mi/mi-cmd-var.c: Ditto.
7438 * mi/mi-interp.c: Ditto.
7439 * mi/mi-main.c: Ditto.
7440
dae477fe
AB
74412011-01-11 Andrew Burgess <[email protected]>
7442
7443 * remote-sim.c (gdbsim_store_register): Update API to
7444 sim_store_register to check more error conditions.
7445
0df8b418
MS
74462011-01-10 Michael Snyder <[email protected]>
7447
7448 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
7449 * nto-tdep.c: Ditto.
7450 * nto-tdep.h: Ditto.
7451 * objc-exp.y: Ditto.
7452 * objc-lang.c: Ditto.
7453 * objfiles.c: Ditto.
7454 * objfiles.h: Ditto.
7455 * observer.c: Ditto.
7456 * opencl-lang.c: Ditto.
7457 * osabi.c: Ditto.
7458 * parse.c: Ditto.
7459 * parser-defs.h: Ditto.
7460 * p-exp.y: Ditto.
7461 * p-lang.c: Ditto.
7462 * posix-hdep.c: Ditto.
7463 * ppcbug-rom.c: Ditto.
7464 * ppc-linux-nat.c: Ditto.
7465 * ppc-linux-tdep.c: Ditto.
7466 * ppc-linux-tdep.h: Ditto.
7467 * ppcnbsd-tdep.c: Ditto.
7468 * ppcobsd-tdep.c: Ditto.
7469 * ppcobsd-tdep.h: Ditto.
7470 * ppc-sysv-tdep.c: Ditto.
7471 * ppc-tdep.h: Ditto.
7472 * printcmd.c: Ditto.
7473 * proc-abi.c: Ditto.
7474 * proc-flags.c: Ditto.
7475 * procfs.c: Ditto.
7476 * proc-utils.h: Ditto.
7477 * progspace.h: Ditto.
7478 * prologue-value.c: Ditto.
7479 * prologue-value.h: Ditto.
7480 * psympriv.h: Ditto.
7481 * psymtab.c: Ditto.
7482 * p-typeprint.c: Ditto.
7483 * p-valprint.c: Ditto.
7484 * ravenscar-sparc-thread.c: Ditto.
7485 * ravenscar-thread.c: Ditto.
7486 * ravenscar-thread.h: Ditto.
7487 * record.c: Ditto.
7488 * regcache.c: Ditto.
7489 * regcache.h: Ditto.
7490 * remote.c: Ditto.
7491 * remote-fileio.c: Ditto.
7492 * remote-fileio.h: Ditto.
7493 * remote.h: Ditto.
7494 * remote-m32r-sdi.c: Ditto.
7495 * remote-mips.c: Ditto.
7496 * remote-sim.c: Ditto.
7497 * rs6000-aix-tdep.c: Ditto.
7498 * rs6000-nat.c: Ditto.
7499 * rs6000-tdep.c: Ditto.
7500
0d7a18f7
MS
75012011-01-10 Michael Snyder <[email protected]>
7502
7503 * charset.c (validate): Internationalization.
7504 * coffread.c (read_one_sym): Ditto.
7505 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
7506 * h8300-tdep.c (H8300_extract_return_value): Ditto.
7507 * inflow.c (new_tty): Ditto.
7508 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
7509 * m32c-tdep.c (m32c_return_value): Ditto.
7510 * mep-tdep.c (mep_store_return_value): Ditto.
7511 * score-tdep.c (score7_fetch_insn): Ditto.
7512 * ser-mingw.c (pipe_windows_open): Ditto.
7513 * sh64-tdep.c (sh64_extract_return_value): Ditto.
7514 * spu-tdep.c (spu_register_type): Ditto.
7515 * tracepoint.c (trace_find_command): Ditto.
7516 * valarith.c (value_pos): Ditto.
7517
9a153e0b
JB
75182011-01-10 Joel Brobecker <[email protected]>
7519
7520 * ada-valprint.c (printstr): Minor comment reformatting.
7521
35ecd2d6
MS
75222011-01-08 Michael Snyder <[email protected]>
7523
7524 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
7525 markup.
7526
1777feb0
MS
75272011-01-08 Michael Snyder <[email protected]>
7528
7529 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
7530 * hppa-hpux-tdep.c: Ditto.
7531 * hppa-linux-nat.c: Ditto.
7532 * hppa-linux-tdep.c: Ditto.
7533 * hppanbsd-tdep.c: Ditto.
7534 * hppa-tdep.c: Ditto.
7535 * hppa-tdep.h: Ditto.
7536 * hpux-thread.c: Ditto.
7537 * i386-cygwin-tdep.c: Ditto.
7538 * i386-darwin-nat.c: Ditto.
7539 * i386gnu-nat.c: Ditto.
7540 * i386-linux-nat.c: Ditto.
7541 * i386-linux-tdep.c: Ditto.
7542 * i386-nat.c: Ditto.
7543 * i386-nat.h: Ditto.
7544 * i386nbsd-tdep.c: Ditto.
7545 * i386-sol2-nat.c: Ditto.
7546 * i386-stub.c: Ditto.
7547 * i386-tdep.c: Ditto.
7548 * i386-tdep.h: Ditto.
7549 * i387-tdep.c: Ditto.
7550 * ia64-linux-nat.c: Ditto.
7551 * ia64-linux-tdep.c: Ditto.
7552 * ia64-tdep.c: Ditto.
7553 * infcall.c: Ditto.
7554 * infcall.h: Ditto.
7555 * infcmd.c: Ditto.
7556 * inferior.c: Ditto.
7557 * inferior.h: Ditto.
7558 * infloop.c: Ditto.
7559 * inflow.c: Ditto.
7560 * infrun.c: Ditto.
7561 * interps.c: Ditto.
7562 * interps.h: Ditto.
7563 * iq2000-tdep.c: Ditto.
7564 * irix5-nat.c: Ditto.
7565 * jit.c: Ditto.
7566 * jit.h: Ditto.
7567 * jv-exp.y: Ditto.
7568 * jv-lang.c: Ditto.
7569 * jv-lang.h: Ditto.
7570 * jv-typeprint.c: Ditto.
7571 * jv-valprint.c: Ditto.
7572 * language.c: Ditto.
7573 * language.h: Ditto.
7574 * linespec.c: Ditto.
7575 * linux-fork.c: Ditto.
7576 * linux-nat.c: Ditto.
7577 * linux-thread-db.c: Ditto.
7578 * lm32-tdep.c: Ditto.
7579
025bb325
MS
75802011-01-08 Michael Snyder <[email protected]>
7581
7582 * m2-exp.y: Comment cleanup, mostly periods and spaces.
7583 * m2-lang.c: Ditto.
7584 * m2-typeprint.c: Ditto.
7585 * m2-valprint.c: Ditto.
7586 * m32c-tdep.c: Ditto.
7587 * m32r-linux-nat.c: Ditto.
7588 * m32r-rom.c: Ditto.
7589 * m32r-tdep.c: Ditto.
7590 * m32r-tdep.h: Ditto.
7591 * m68hc11-tdep.c: Ditto.
7592 * m58klinux-nat.c: Ditto.
7593 * m68k-tdep.c: Ditto.
7594 * m88k-tdep.c: Ditto.
7595 * m88k-tdep.h: Ditto.
7596 * machoread.c: Ditto.
7597 * macrocmd.c: Ditto.
7598 * macroexp.c: Ditto.
7599 * macrotab.c: Ditto.
7600 * main.c: Ditto.
7601 * maint.c: Ditto.
7602 * mdebugread.c: Ditto.
7603 * mdebugread.h: Ditto.
7604 * memattr.c: Ditto.
7605 * memattr.h: Ditto.
7606 * memory-map.h: Ditto.
7607 * mep-tdep.c: Ditto.
7608 * microblaze-rom.c: Ditto.
7609 * microblaze-tdep.c: Ditto.
7610 * minsyms.c: Ditto.
7611 * mips-irix-tdep.c: Ditto.
7612 * mips-linux-nat.c: Ditto.
7613 * mips-linux-tdep.c: Ditto.
7614 * mips-linux-tdep.h: Ditto.
7615 * mipsnbsd-nat.c: Ditto.
7616 * mipsnbsd-tdep.c: Ditto.
7617 * mipsread.c: Ditto.
7618 * mips-tdep.c: Ditto.
7619 * mips-tdep.h: Ditto.
7620 * mn10300-linux-tdep.c: Ditto.
7621 * mn10300-tdep.c: Ditto.
7622 * mn10300-tdep.h: Ditto.
7623 * monitor.c: Ditto.
7624 * monitor.h: Ditto.
7625 * moxie-tdep.c: Ditto.
7626 * moxie-tdep.h: Ditto.
7627 * mt-tdep.c: Ditto.
7628
1642781b
MF
76292011-01-08 Mike Frysinger <[email protected]>
7630
7631 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
7632
394b0adb
JB
76332011-01-08 Robert Millan <[email protected]>
7634
7635 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
7636
b670013c
MS
76372011-01-07 Michael Snyder <[email protected]>
7638
7639 * charset.c (_initialize_charset): Fix typo in string.
7640
a743e542
MS
76412011-01-07 Michael Snyder <[email protected]>
7642
7643 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
7644 for i18n.
f2eb0bc8 7645 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
7646 Split line so that operator goes to beginning of line.
7647 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
7648 assignment out of if statement.
7649
0963b4bd
MS
76502011-01-07 Michael Snyder <[email protected]>
7651
7652 * ada-lang.c: Comment cleanup, mostly periods and spaces.
7653 * ada-lang.h: Ditto.
7654 * ada-tasks.c: Ditto.
7655 * ada-valprint.c: Ditto.
7656 * aix-threads.c: Ditto.
7657 * alpha-linux-nat.c: Ditto.
7658 * alpha-linux-tdep.c: Ditto.
7659 * alpha-mdebug-tdep.c: Ditto.
7660 * alpha-nat.c: Ditto.
7661 * alpha-osf1-tdep.c: Ditto.
7662 * alpha-tdep.c: Ditto.
7663 * alphabsd-nat.c: Ditto.
7664 * alphabsd-tdep.c: Ditto.
7665 * amd64-darwin-tdep.c: Ditto.
7666 * amd64-linux-nat.c: Ditto.
7667 * amd64-linux-tdep.c: Ditto.
7668 * amd64-sol2-tdep.c: Ditto.
7669 * amd64-tdep.c: Ditto.
7670 * amd64-fbsd-tdep.c: Ditto.
7671 * amd64-nbsd-tdep.c: Ditto.
7672 * amd64-obsd-tdep.c: Ditto.
7673 * amd64-linux-nat.c: Ditto.
7674 * amd64-linux-tdep.c: Ditto.
7675 * arm-tdep.c: Ditto.
7676 * arm-tdep.h: Ditto.
7677 * armnbsd-nat.c: Ditto.
7678 * avr-tdep.c: Ditto.
7679 * bfin-tdep.c: Ditto.
7680 * bsd-kvm.c: Ditto.
7681 * c-typeprintc: Ditto.
7682 * c-valprint.c: Ditto.
7683 * coff-pe-read.h: Ditto.
7684 * coffreead.c: Ditto.
7685 * cris-tdep.c: Ditto.
7686 * d-lang.c: Ditto.
7687 * darwin-nat-info.c: Ditto.
7688 * darwin-nat.c: Ditto.
7689 * dbug-rom.c: Ditto.
7690 * dbxread.c: Ditto.
7691 * dcache.c: Ditto.
7692 * dcache.h: Ditto.
7693 * dec-thread.c: Ditto.
7694 * defs.h: Ditto.
7695 * demangle.c: Ditto.
7696 * dicos-tdep.c: Ditto.
7697 * dictionary.c: Ditto.
7698 * dictionary.h: Ditto.
7699 * dink32-rom.c: Ditto.
7700 * disasm.c: Ditto.
7701 * doublest.c: Ditto.
7702 * dsrec.c: Ditto.
7703 * dummy-frame.c: Ditto.
7704 * dwarf2-frame.c: Ditto.
7705 * dwarf2expr.c: Ditto.
7706 * dwarf2loc.c: Ditto.
7707 * dwarf2read.c: Ditto.
7708 * elfread.c: Ditto.
7709 * environ.c: Ditto.
7710 * eval.c: Ditto.
7711 * event-top.h: Ditto.
7712 * exceptions.c: Ditto.
7713 * exceptions.h: Ditto.
7714 * exec.c: Ditto.
7715 * expprint.c: Ditto.
7716 * expression.h: Ditto.
7717 * f-exp.y: Ditto.
7718 * f-lang.c: Ditto.
7719 * f-lang.h: Ditto.
7720 * f-typeprint.c: Ditto.
7721 * f-valprint.c: Ditto.
7722 * fbsd-nat.c: Ditto.
7723 * findvar.c: Ditto.
7724 * fork-child.c: Ditto.
7725 * frame.c: Ditto.
7726 * frame.h: Ditto.
7727 * frv-linux-tdep.c: Ditto.
7728 * frv-tdep.c: Ditto.
7729 * gcore.c: Ditto.
7730 * gdb-stabs.h: Ditto.
7731 * gdb_assert.h: Ditto.
7732 * gdb_string.h: Ditto.
7733 * gdb_thread_db.h: Ditto.
7734 * gdb_wait.h: Ditto.
7735 * gdbarch.sh: Ditto.
7736 * gdbcore.h: Ditto.
7737 * gdbthread.h: Ditto.
7738 * gdbtypes.c: Ditto.
7739 * gdbtypes.h: Ditto.
7740 * gnu-nat.c: Ditto.
7741 * gnu-nat.h: Ditto.
7742 * gnu-v2-abi.c: Ditto.
7743 * gnu-v3-abi.c: Ditto.
7744 * go32-nat.c: Ditto.
7745 * gdbarch.c: Regenerate.
7746 * gdbarch.h: Regenerate.
7747
ac74f770
MS
77482011-01-07 Michael Snyder <[email protected]>
7749
7750 * ax-gdb.c: Adjust some long output strings.
7751 * breakpoint.c: Ditto.
7752 * charset.c: Ditto.
7753 * cp-abi.c: Ditto.
7754 * infcall.c: Ditto.
7755 * infrun.c: Ditto.
7756 * linux-nat.c: Ditto.
7757 * solib-pa64.c: Ditto.
7758 * solib-som.c: Ditto.
7759
d8e22779
TT
77602011-01-06 Tom Tromey <[email protected]>
7761
7762 PR python/12367:
7763 * NEWS: Add item.
7764 * python/python.c (GdbMethods): Add "newest_frame" method.
7765 * python/python-internal.h (gdbpy_newest_frame): Declare.
7766 * python/py-frame.c (gdbpy_newest_frame): New function.
7767
a255712f
PP
77682010-01-06 Paul Pluzhnikov <[email protected]>
7769
7770 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
7771 * jit.c (jit_debug): New variable.
7772 (show_jit_debug): New function.
7773 (struct target_buffer): Use ULONGEST.
7774 (bfd_open_from_target_memory): Likewise.
7775 (jit_register_code, jit_inferior_init): Add debug output.
7776 (_initialize_jit): Register "debug jit" command.
7777
ccfc3d6e
TT
77782011-01-06 Tom Tromey <[email protected]>
7779
7780 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7781 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7782 and ARCH_FRAME.
7783
57126e4a
TT
77842011-01-06 Tom Tromey <[email protected]>
7785
7786 * python/py-frame.c (frapy_block): Use get_frame_block.
7787
16dfc9ce
JB
77882011-01-06 Joel Brobecker <[email protected]>
7789
7790 Do not stop on SIGPRIO signals by default
7791 * infrun.c (_initialize_infrun): Unset signal_stop and
7792 signal_print for TARGET_SIGNAL_PRIO.
7793
b1ce2347
JB
77942011-01-06 Joel Brobecker <[email protected]>
7795
7796 * ada-tasks.c: Fix style violation in comment.
7797
8f7e195f
JB
77982011-01-06 Joel Brobecker <[email protected]>
7799
7800 * linespec.c (decode_compound, find_method): Remove trailing \n
7801 at end of error string.
7802 * solib-irix.c (irix_current_sos): Likewise.
7803 * varobj.c (uninstall_variable): Likewise.
7804
e9bdf92c
JB
78052011-01-06 Joel Brobecker <[email protected]>
7806
7807 * copyright.py: New script.
7808 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7809 Launch emacs without exec'ing. Call copyright.py afterwards.
7810
3e43a32a
MS
78112011-01-05 Michael Snyder <[email protected]>
7812
7813 * addrmap.c: Shorten lines of >= 80 columns.
7814 * arch-utils.c: Ditto.
7815 * arch-utils.h: Ditto.
7816 * ax-gdb.c: Ditto.
7817 * ax-general.c: Ditto.
7818 * bcache.c: Ditto.
7819 * blockframe.c: Ditto.
7820 * breakpoint.c: Ditto.
7821 * buildsym.c: Ditto.
7822 * c-lang.c: Ditto.
7823 * c-typeprint.c: Ditto.
7824 * charset.c: Ditto.
7825 * coffread.c: Ditto.
7826 * command.h: Ditto.
7827 * corelow.c: Ditto.
7828 * cp-abi.c: Ditto.
7829 * cp-namespace.c: Ditto.
7830 * cp-support.c: Ditto.
7831 * dbug-rom.c: Ditto.
7832 * dbxread.c: Ditto.
7833 * defs.h: Ditto.
7834 * dfp.c: Ditto.
7835 * dfp.h: Ditto.
7836 * dictionary.c: Ditto.
7837 * disasm.c: Ditto.
7838 * doublest.c: Ditto.
7839 * dwarf2-frame.c: Ditto.
7840 * dwarf2expr.c: Ditto.
7841 * dwarf2loc.c: Ditto.
7842 * dwarf2read.c: Ditto.
7843 * elfread.c: Ditto.
7844 * eval.c: Ditto.
7845 * event-loop.c: Ditto.
7846 * event-loop.h: Ditto.
7847 * exceptions.h: Ditto.
7848 * exec.c: Ditto.
7849 * expprint.c: Ditto.
7850 * expression.h: Ditto.
7851 * f-lang.c: Ditto.
7852 * f-valprint.c: Ditto.
7853 * findcmd.c: Ditto.
7854 * frame-base.c: Ditto.
7855 * frame-unwind.c: Ditto.
7856 * frame-unwind.h: Ditto.
7857 * frame.c: Ditto.
7858 * frame.h: Ditto.
7859 * gcore.c: Ditto.
7860 * gdb-stabs.h: Ditto.
7861 * gdb_assert.h: Ditto.
7862 * gdb_dirent.h: Ditto.
7863 * gdb_obstack.h: Ditto.
7864 * gdbcore.h: Ditto.
7865 * gdbtypes.c: Ditto.
7866 * gdbtypes.h: Ditto.
7867 * inf-ttrace.c: Ditto.
7868 * infcall.c: Ditto.
7869 * infcmd.c: Ditto.
7870 * inflow.c: Ditto.
7871 * infrun.c: Ditto.
7872 * inline-frame.h: Ditto.
7873 * language.c: Ditto.
7874 * language.h: Ditto.
7875 * libunwind-frame.c: Ditto.
7876 * libunwind-frame.h: Ditto.
7877 * linespec.c: Ditto.
7878 * linux-nat.c: Ditto.
7879 * linux-nat.h: Ditto.
7880 * linux-thread-db.c: Ditto.
7881 * machoread.c: Ditto.
7882 * macroexp.c: Ditto.
7883 * macrotab.c: Ditto.
7884 * main.c: Ditto.
7885 * maint.c: Ditto.
7886 * mdebugread.c: Ditto.
7887 * memattr.c: Ditto.
7888 * minsyms.c: Ditto.
7889 * monitor.c: Ditto.
7890 * monitor.h: Ditto.
7891 * objfiles.c: Ditto.
7892 * objfiles.h: Ditto.
7893 * osabi.c: Ditto.
7894 * p-typeprint.c: Ditto.
7895 * p-valprint.c: Ditto.
7896 * parse.c: Ditto.
7897 * printcmd.c: Ditto.
7898 * proc-events.c: Ditto.
7899 * procfs.c: Ditto.
7900 * progspace.c: Ditto.
7901 * progspace.h: Ditto.
7902 * psympriv.h: Ditto.
7903 * psymtab.c: Ditto.
7904 * record.c: Ditto.
7905 * regcache.c: Ditto.
7906 * regcache.h: Ditto.
7907 * remote-fileio.c: Ditto.
7908 * remote.c: Ditto.
7909 * ser-mingw.c: Ditto.
7910 * ser-tcp.c: Ditto.
7911 * ser-unix.c: Ditto.
7912 * serial.c: Ditto.
7913 * serial.h: Ditto.
7914 * solib-frv.c: Ditto.
7915 * solib-irix.c: Ditto.
7916 * solib-osf.c: Ditto.
7917 * solib-pa64.c: Ditto.
7918 * solib-som.c: Ditto.
7919 * solib-sunos.c: Ditto.
7920 * solib-svr4.c: Ditto.
7921 * solib-target.c: Ditto.
7922 * solib.c: Ditto.
7923 * somread.c: Ditto.
7924 * source.c: Ditto.
7925 * stabsread.c: Ditto.
7926 * stabsread.c: Ditto.
7927 * stack.c: Ditto.
7928 * stack.h: Ditto.
7929 * symfile-mem.c: Ditto.
7930 * symfile.c: Ditto.
7931 * symfile.h: Ditto.
7932 * symmisc.c: Ditto.
7933 * symtab.c: Ditto.
7934 * symtab.h: Ditto.
7935 * target-descriptions.c: Ditto.
7936 * target-memory.c: Ditto.
7937 * target.c: Ditto.
7938 * target.h: Ditto.
7939 * terminal.h: Ditto.
7940 * thread.c: Ditto.
7941 * top.c: Ditto.
7942 * tracepoint.c: Ditto.
7943 * tracepoint.h: Ditto.
7944 * ui-file.c: Ditto.
7945 * ui-file.h: Ditto.
7946 * ui-out.h: Ditto.
7947 * user-regs.c: Ditto.
7948 * user-regs.h: Ditto.
7949 * utils.c: Ditto.
7950 * valarith.c: Ditto.
7951 * valops.c: Ditto.
7952 * valprint.c: Ditto.
7953 * valprint.h: Ditto.
7954 * value.c: Ditto.
7955 * varobj.c: Ditto.
7956 * varobj.h: Ditto.
7957 * vec.h: Ditto.
7958 * xcoffread.c: Ditto.
7959 * xcoffsolib.c: Ditto.
7960 * xcoffsolib.h: Ditto.
7961 * xml-syscall.c: Ditto.
7962 * xml-tdesc.c: Ditto.
7963
9a2b4c1b
MS
79642011-01-05 Michael Snyder <[email protected]>
7965
7966 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7967 * cli/cli-decode.c: Ditto.
7968 * cli/cli-dump.c: Ditto.
7969 * cli/cli-logging.c: Ditto.
7970 * cli/cli-script.c: Ditto.
7971 * cli/cli-setshow.c: Ditto.
7972 * common/signals.c: Ditto.
7973 * mi/mi-cmd-break.c: Ditto.
7974 * mi/mi-cmd-disas.c: Ditto.
7975 * mi/mi-cmd-stack.c: Ditto.
7976 * mi/mi-cmd-var.c: Ditto.
7977 * mi/mi-cmds.c: Ditto.
7978 * mi/mi-common.h: Ditto.
7979 * mi/mi-console.c: Ditto.
7980 * mi/mi-interp.c: Ditto.
7981 * mi/mi-main.c: Ditto.
7982 * osf-share/cma_attr.c: Ditto.
7983 * osf-share/cma_deb_core.h: Ditto.
7984 * osf-share/cma_debug_client.h: Ditto.
7985 * osf-share/cma_handle.h: Ditto.
7986 * osf-share/cma_mutex.h: Ditto.
7987 * osf-share/cma_stack_int.h: Ditto.
7988 * osf-share/cma_tcb_defs.h: Ditto.
7989 * python/py-auto-load.c: Ditto.
7990 * python/py-breakpoint.c: Ditto.
7991 * python/py-cmd.c: Ditto.
7992 * python/py-frame.c: Ditto.
7993 * python/py-objfile.c: Ditto.
7994 * python/py-param.c: Ditto.
7995 * python/py-progspace.c: Ditto.
7996 * python/py-symbol.c: Ditto.
7997 * python/py-value.c: Ditto.
7998 * python/python-internal.h: Ditto.
7999 * python/python.c: Ditto.
8000 * tui/tui-data.c: Ditto.
8001 * tui/tui-disasm.c: Ditto.
8002 * tui/tui-hooks.c: Ditto.
8003 * tui/tui-io.c: Ditto.
8004 * tui/tui-layout.c: Ditto.
8005 * tui/tui-regs.c: Ditto.
8006 * tui/tui-source.c: Ditto.
8007 * tui/tui-stack.c: Ditto.
8008 * tui/tui-win.c: Ditto.
8009 * tui/tui-windata.c: Ditto.
8010 * tui/tui-winsource.c: Ditto.
8011
44944448
JB
80122011-01-05 Joel Brobecker <[email protected]>
8013
8014 * configure.ac, gdb.1: Copyright year update.
8015
ebedcab5
JK
80162011-01-03 Jan Kratochvil <[email protected]>
8017
8018 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
8019 this_pc_in_block, morestack_msym and morestack_name. Check for
8020 "__morestack" minimal symbol there.
8021
e5cc9f32
JB
80222011-01-03 Joel Brobecker <[email protected]>
8023
8024 * symfile.c (find_sym_fns): Add call to dont_repeat.
8025
7b6bb8da
JB
80262011-01-01 Joel Brobecker <[email protected]>
8027
8028 Copyright year update in most files (performed by copyright.sh).
8029
71ce852c
JB
80302011-01-01 Joel Brobecker <[email protected]>
8031
8032 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 8033
c3c1ebe8 8034For older changes see ChangeLog-2010.
c906108c
SS
8035\f
8036Local Variables:
8037mode: change-log
8038left-margin: 8
8039fill-column: 74
8040version-control: never
57da7796 8041coding: utf-8
c906108c 8042End:
This page took 3.726943 seconds and 4 git commands to generate.