http://sourceware.org/ml/gdb-patches/2011-06/msg00442.html
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e0d00bc7
JK
12011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Disable epilogue unwinders on recent GCCs.
4 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
6 * dwarf2read.c (process_full_comp_unit): Initialize
7 EPILOGUE_UNWIND_VALID.
8 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
9 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
10 * symtab.h (struct symtab): New field epilogue_unwind_valid.
11
4632c0d0
JK
122011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 Code cleanup - reformatting.
15 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
16 (producer_is_gcc_ge_4): ... here, change the return value.
17 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
18 interpretation.
19
32019081
JK
202011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 Fix non-only rename list for Fortran modules import.
23 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
24 cp_add_using_directive caller.
25 (cp_add_using_directive): New parameter excludes, describe it. New
26 variables ix and param. Compare if also excludes match. Allocate NEW
27 with variable size, initialize EXCLUDES there.
28 (cp_lookup_symbol_imports): New variable excludep, test
29 current->EXCLUDES with it.
30 * cp-support.h: Include vec.h.
31 (struct using_direct): New field excludes, describe it.
32 (DEF_VEC_P (const_char_ptr)): New.
33 (cp_add_using_directive): New parameter excludes.
34 * defs.h (const_char_ptr): New typedef.
35 * dwarf2read.c (read_import_statement): New variables child_die,
36 excludes and cleanups, read in excludes.
37 (read_namespace): Adjust the cp_add_using_directive caller.
38
70c622a3
JK
392011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 Code cleanup.
42 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
43 negative comparisons.
44
39c4d40a
TT
452011-06-29 André Pönitz <andre.poenitz@nokia.com>
46
47 * mi/mi-main.c (mi_cmd_list_features): Emit
48 breakpoint-notifications.
49
3b2b8fea
TT
502011-06-29 Tom Tromey <tromey@redhat.com>
51
52 PR fortran/10036:
53 * valprint.h (generic_emit_char, generic_printstr): Declare.
54 * valprint.c (wchar_printable, append_string_as_wide)
55 (print_wchar): Move from c-lang.c.
56 (generic_emit_char): New function; mostly taken from c_emit_char.
57 (generic_printstr): New function; mostly taken from c_printstr.
58 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
59 represented as arrays.
60 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
61 type.
62 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
63 identically to TYPE_CODE_INT.
64 * f-lang.c (f_get_encoding): New function.
65 (f_emit_char): Use generic_emit_char.
66 (f_printchar): Replace comment.
67 (f_printstr): Use generic_printstr.
68 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
69 "character" types specially.
70 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
71 for Fortran.
72 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
73 Move to valprint.c
74 (c_emit_char): Call generic_emit_char.
75 (c_printstr): Call generic_printstr.
76
168e6d44
GB
772011-06-29 Gary Benson <gbenson@redhat.com>
78
79 * breakpoint.c (bpstat_what): Removed duplicated case.
80
1c033f8c
TT
812011-06-28 Tom Tromey <tromey@redhat.com>
82
83 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
84
5fe41fbf
TT
852011-06-27 Tom Tromey <tromey@redhat.com>
86
87 * valops.c (find_overload_match): Call do_cleanups before early
88 return.
89 * top.c (execute_command): Call do_cleanups before early return.
90 (command_loop): Likewise.
91 * stack.c (backtrace_command): Make a null cleanup early. Don't
92 conditionally call do_cleanups.
93 * python/py-value.c (TRY_CATCH): Move cleanup handling into
94 TRY_CATCH.
95 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
96 so cleanups are always run.
97 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
98 * findcmd.c (parse_find_args): Call do_cleanups on early return
99 path.
100 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
101 Don't conditionally call do_cleanups.
102 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
103 later.
104
e26bd57d
EB
1052011-06-27 Eric Botcazou <ebotcazou@adacore.com>
106
107 * MAINTAINERS (Write After Approval): Use default email address.
108
6c3097fc
JB
1092011-06-27 Joel Brobecker <brobecker@adacore.com>
110
111 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
112
369c397b
JB
1132011-06-27 Eric Botcazou <ebotcazou@adacore.com>
114
115 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
116 saved_regs_mask and copied_regs_mask fields.
117 (sparc_record_save_insn): New prototype.
118 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
119 (sparc_record_save_insn): New function.
120 (sparc_analyze_prologue): Add head comment. Recognize store insns
121 of call-saved registers. Use OFFSET consistently. Recognize flat
122 frames and cache their settings.
123 (sparc32_skip_prologue): Handle flat frames.
124 (sparc_frame_cache): Add frame_offset to the base address.
125 (sparc32_frame_cache): Adjust to new frame description.
126 (sparc32_frame_prev_register): Likewise.
127 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
128 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
129 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
130 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
131 frame by calling sparc_record_save_insn.
132 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
133 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
134 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
135
b315ab21
TG
1362011-06-27 Tristan Gingold <gingold@adacore.com>
137
138 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
139 field by map_addr and map_len.
140 (dwarf2_read_section): Adjust for the new bfd_mmap api.
141 (munmap_section_buffer): Likewise.
142
ddd49eee
TT
1432011-06-24 Tom Tromey <tromey@redhat.com>
144
145 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
146 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
147 * python/python.c (gdbpy_parameter): Make 'arg' const.
148 (execute_gdb_command): Likewise.
149 (gdbpy_decode_line): Likewise. Copy it.
150 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
151 (gdbpy_write): Make 'arg' const.
152 * python/py-type.c (typy_lookup_typename): Make 'type_name'
153 const.
154 (gdbpy_lookup_type): Likewise.
155 * python/py-prettyprint.c (print_children): Make 'name' const.
156 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
157 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
158 Py_ssize_t.
159 * python/py-function.c (fnpy_init): Make 'name' const.
160 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
161 (gdbpy_string_to_argv): Make 'input' const.
162 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
163 it.
164 * gdbtypes.h (lookup_typename): Update.
165 * gdbtypes.c (lookup_typename): Make 'name' const.
166 (lookup_struct): Likewise.
167 (lookup_union): Likewise.
168 (lookup_enum): Likewise.
169
5998129b
TT
1702011-06-24 Tom Tromey <tromey@redhat.com>
171
172 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
173 gdb_thread_db.h. Move all common/ entries to be together.
174 (TAGS): Don't depend on DEPFILES.
175
6e586cc5
YQ
1762011-06-23 Yao Qi <yao@codesourcery.com>
177
178 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
179 * remote.c (remote_start_remote): ... here.
180 * monitor.c (monitor_open): ... here.
181
86c3c1fc
AB
1822011-06-23 Andrew Burgess <aburgess@broadcom.com>
183
184 * gdbtypes.c (append_composite_type_field_aligned): Fix
185 calculation of bit position based on alignment.
186
28010a5d
PA
1872011-06-22 Pedro Alves <pedro@codesourcery.com>
188
189 * breakpoint.c (bpstat_stop_status): Call the check_status
190 breakpoint_ops method.
191 (print_one_breakpoint_location): Also print the condition for Ada
192 exception catchpoints.
193 (allocate_bp_location): New, factored out from
194 allocate_bp_location.
195 (allocate_bp_location): Adjust. Call the owner breakpoint's
196 allocate_location method, if there is one.
197 (free_bp_location): Call the locations's dtor method, if there is
198 one.
199 (init_raw_breakpoint_without_location): New breakpoint_ops
200 parameter. Use it.
201 (set_raw_breakpoint_without_location): Adjust.
202 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
203 (set_raw_breakpoint): Adjust.
204 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
205 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
206 re_set and check_status methods.
207 (init_catchpoint): Don't memset, initialize thread, addr_string
208 and enable_state. Pass the ops down to init_raw_breakpoint.
209 (install_catchpoint): Rename to ...
210 (install_breakpoint): ... this, and make extern.
211 (create_fork_vfork_event_catchpoint): Adjust.
212 (catch_exec_breakpoint_ops): Install NULL allocate_location,
213 re_set and check_status methods.
214 (create_syscall_event_catchpoint): Adjust.
215 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
216 (masked_watchpoint_breakpoint_ops): Install NULL
217 allocate_location, re_set and check_status methods.
218 (catch_exec_command_1): Adjust.
219 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
220 re_set and check_status methods.
221 (create_ada_exception_breakpoint): Rename to ...
222 (init_ada_exception_breakpoint): ... this. Add a struct
223 breakpoint parameter, and delete the exp_string, cond_string and
224 cond parameters. Use init_raw_breakpoint, and don't install or
225 mention the breakpoint yet. Don't clear breakpoint fields that
226 init_raw_breakpoint already clears.
227 (re_set_breakpoint): Delete, split into ...
228 (breakpoint_re_set_default, prepare_re_set_context): ... these new
229 functions.
230 (breakpoint_re_set_one): Call the breakpoint's
231 breakpoint_ops->re_set implementation, if there's one. Adjust.
232 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
233 (struct bp_location_ops): New type.
234 (struct bp_location): New field `ops'.
235 (struct breakpoint_ops): New `allocate_location', `re_set' and
236 `check_status' fields. Make `breakpoint_hit''s description match
237 reality.
238 (init_bp_location): Declare.
239 (breakpoint_re_set_default): Declare.
240 (create_ada_exception_breakpoint): Rename to ...
241 (init_ada_exception_breakpoint): ... this. Add a struct
242 breakpoint parameter, and delete the exp_string, cond_string and
243 cond parameters.
244 (install_breakpoint): Declare.
245 * ada-lang.c: Include exceptions.h.
246 <Ada exceptions description>: Update.
247 (struct ada_catchpoint_location): New type.
248 (ada_catchpoint_location_dtor): New function.
249 (ada_catchpoint_location_ops): New global.
250 (ada_catchpoint): New type.
251 (create_excep_cond_exprs): New function.
252 (dtor_exception, allocate_location_exception, re_set_exception)
253 (should_stop_exception, check_status_exception): New functions.
254 (print_one_exception, print_mention_exception)
255 (print_recreate_exception): Adjust.
256 (dtor_catch_exception, allocate_location_catch_exception)
257 (re_set_catch_exception, check_status_catch_exception): New
258 functions.
259 (catch_exception_breakpoint_ops): Install them.
260 (dtor_catch_exception_unhandled)
261 (allocate_location_catch_exception_unhandled)
262 (re_set_catch_exception_unhandled)
263 (check_status_catch_exception_unhandled): New functions.
264 (catch_exception_unhandled_breakpoint_ops): Install them.
265 (dtor_catch_assert, allocate_location_catch_assert)
266 (re_set_catch_assert, check_status_catch_assert): New functions.
267 (catch_assert_breakpoint_ops): Install them.
268 (ada_exception_catchpoint_p): Delete.
269 (catch_ada_exception_command_split)
270 (ada_exception_catchpoint_cond_string): Rename exp_string
271 parameter to excep_string. Adjust.
272 (ada_parse_catchpoint_condition): Delete.
273 (ada_exception_sal): Rename the exp_string parameter to
274 excep_string. Delete the cond_string and cond parameters.
275 Adjust.
276 (ada_decode_exception_location): Rename the exp_string parameter
277 to excep_string. Delete the cond_string and cond parameters.
278 Adjust.
279 (create_ada_exception_catchpoint): New function.
280 (catch_ada_exception_command, ada_decode_assert_location)
281 (catch_assert_command): Adjust.
282 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
283
9ac4176b
PA
2842011-06-22 Pedro Alves <pedro@codesourcery.com>
285
286 * ada-lang.c: Include arch-utils.h.
287 (ada_decode_exception_location): Make static.
288 (catch_ada_exception_command): Moved here from breakpoint.c.
289 (ada_decode_assert_location): Make static.
290 (catch_assert_command): Moved here from breakpoint.c.
291 (_initialize_ada_lang): Install the exception and assert
292 catchpoint commands here.
293 * ada-lang.h (ada_decode_exception_location)
294 (ada_decode_assert_location): Delete declarations.
295 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
296 breakpoint.h.
297 (create_ada_exception_breakpoint): Make extern.
298 (catch_ada_exception_command, catch_assert_command): Moved to
299 ada-lang.c.
300 (add_catch_command): Make extern.
301 (_initilize_breakpoint): Don't install the exception and assert
302 catchpoint commands here.
303 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
304 breakpoint.c
305 (add_catch_command, create_ada_exception_breakpoint): Declare.
306
c56053d2
PA
3072011-06-22 Pedro Alves <pedro@codesourcery.com>
308
309 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
310 the breakpoint to the breakpoint chain here.
311 (set_raw_breakpoint_without_location): Add the breakpoint to the
312 breakpoint chain here.
313 (init_raw_breakpoint): Adjust comments.
314 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
315 here.
316 (init_catchpoint): Don't set the catchpoint's breakpoint number
317 here.
318 (install_catchpoint): New function.
319 (create_fork_vfork_event_catchpoint)
320 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
321 use install_catchpoint.
322
d2f3fc74
PA
3232011-06-22 Pedro Alves <pedro@codesourcery.com>
324
325 * breakpoint.c (create_catchpoint_without_mention)
326 (create_catchpoint): Delete.
327
b4d90040
PA
3282011-06-22 Pedro Alves <pedro@codesourcery.com>
329
330 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
331 * breakpoint.c (init_raw_breakpoint_without_location): Remove
332 reference to exec_pathname.
333 (struct exec_catchpoint): New type.
334 (dtor_catch_exec): New function.
335 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
336 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
337 (catch_exec_command_1): Adjust to use init_catchpoint.
338 (delete_breakpoint): Remove reference to exec_pathname.
339
be5c67c1
PA
3402011-06-22 Pedro Alves <pedro@codesourcery.com>
341
342 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
343 (struct breakpoint): Delete field `syscalls_to_be_caught'.
344 * breakpoint.c (init_raw_breakpoint_without_location): Remove
345 reference to syscalls_to_be_caught.
346 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
347 NULL `dtor'.
348 (struct syscall_catchpoint): New type.
349 (dtor_catch_syscall): New function.
350 (insert_catch_syscall, remove_catch_syscall)
351 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
352 (print_recreate_catch_syscall): Adjust.
353 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
354 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
355 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
356 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
357 (masked_watchpoint_breakpoint_ops)
358 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
359 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
360 there is one. Remove references to syscalls_to_be_caught.
361 (catching_syscall_number): Adjust.
362 * ada-lang.c (catch_exception_breakpoint_ops)
363 (catch_exception_unhandled_breakpoint_ops)
364 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
365
e29a4733
PA
3662011-06-22 Pedro Alves <pedro@codesourcery.com>
367
368 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
369 field.
370 * breakpoint.c (init_raw_breakpoint_without_location): Remove
371 reference to forked_inferior_pid.
372 (struct fork_catchpoint): New type.
373 (breakpoint_hit_catch_fork, print_it_catch_fork)
374 (print_one_catch_fork, breakpoint_hit_catch_vfork)
375 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
376 (create_fork_vfork_event_catchpoint): Adjust to use
377 init_catchpoint.
378
346774a9
PA
3792011-06-22 Pedro Alves <pedro@codesourcery.com>
380
381 * breakpoint.c (add_to_breakpoint_chain)
382 (init_raw_breakpoint_without_location): New functions, factored
383 out from ...
384 (set_raw_breakpoint_without_location): ... this one.
385 (init_raw_breakpoint): New function, factored out from
386 set_raw_breakpoint and adjusted to use
387 init_raw_breakpoint_without_location.
388 (set_raw_breakpoint): Adjust.
389 (init_catchpoint): New function, factored out from
390 create_catchpoint_without_mention and adjusted to use
391 init_raw_breakpoint.
392 (create_catchpoint_without_mention): Adjust.
393
c38c4bc5
TT
3942011-06-22 Tom Tromey <tromey@redhat.com>
395
396 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
397 argument of 0 specially.
398
b138ce37
YQ
3992011-06-22 Yao Qi <yao@codesourcery.com>
400
401 * infrun.c (handle_inferior_event): Remove write-only local variable
402 `sw_single_step_trap_p'.
403
03de6823
TT
4042011-06-20 Tom Tromey <tromey@redhat.com>
405
406 * symtab.c (lookup_language_this): End loop if block is NULL.
407
66a17cb6
TT
4082011-06-17 Tom Tromey <tromey@redhat.com>
409
410 * valops.c (value_of_this): Use lookup_language_this.
411 * symtab.h (lookup_language_this): Declare.
412 * symtab.c (lookup_language_this): New function.
413 (lookup_symbol_aux): Use lookup_language_this.
414 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
415
7518bff5
TT
4162011-06-17 Tom Tromey <tromey@redhat.com>
417
418 * value.h (value_of_this): Update.
419 (value_of_local): Remove.
420 * valops.c (value_of_this): Rename from value_of_local. Change
421 parameters.
422 * p-exp.y (exp): Update.
423 (variable): Likewise.
424 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
425
aee28ec6
TT
4262011-06-17 Tom Tromey <tromey@redhat.com>
427
428 * valops.c (value_of_local): Complain if NAME is NULL.
429 * std-operator.def (OP_OBJC_SELF): Remove.
430 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
431 * objc-exp.y (name_not_typename): Use OP_THIS.
432 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
433 name for "this".
434 <OP_OBJC_SELF>: Remove.
435 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
436
eed8f803
TG
4372011-06-16 Tristan Gingold <gingold@adacore.com>
438
439 * python/py-events.h (gdb_py_events): Make it extern.
440 * python/py-evtregistry.c (gdb_py_events): Declare.
441
864ac8a7
HZ
4422011-06-16 Hui Zhu <teawater@gmail.com>
443
444 * remote.c (remote_trace_set_readonly_regions): Add check for
445 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
446 output warning.
447
ef7e8358
UW
4482011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
449
450 * arm-linux-tdep.c: Include "auxv.h".
451 (AT_HWCAP): Define.
452 (ARM_LINUX_SIZEOF_VFP): Define.
453 (arm_linux_supply_vfp): New function.
454 (arm_linux_collect_vfp): Likewise.
455 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
456 (arm_linux_fpa_regset_sections): New variable.
457 (arm_linux_vfp_regset_sections): Likewise.
458 (arm_linux_core_read_description): New function.
459 (arm_linux_init_abi): Install arm_linux_core_read_description and
460 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
461 appropriate for the architecture.
462 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
463 (tdesc_arm_with_m): Declare.
464 (tdesc_arm_with_iwmmxt): Likewise.
465 (tdesc_arm_with_vfpv2): Likewise.
466 (tdesc_arm_with_vfpv3): Likewise.
467 (tdesc_arm_with_neon): Likewise.
468 * arm-linux-nat.c: Move features/*.c includes ...
469 * arm-tdep.c: ... here.
470 * arm-linux-nat.c (arm_linux_read_description): Move initializing
471 target description data structures ...
472 * arm-tdep.c (_initialize_arm_tdep): ... here.
473 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
474 HWCAP_VFPv3D16): Move definitions ...
475 * arm-linux-tdep.h: ... here.
476
c2fa21f1
HZ
4772011-06-15 Hui Zhu <teawater@gmail.com>
478
479 * remote.c (remote_trace_set_readonly_regions): Add a check for
480 target_buf_size.
481
dd707e8e
TT
4822011-06-14 Tom Tromey <tromey@redhat.com>
483
484 * coffread.c (coffread_objfile): Rename from current_objfile.
485 * dbxread.c (dbxread_objfile): Rename from current_objfile.
486 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
487
86cc0029
TT
4882011-06-14 Tom Tromey <tromey@redhat.com>
489
490 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
491 (class_symtab): Remove.
492 (jv_dynamics_progspace_key): New global.
493 (jv_per_objfile_free): Reset program space data. Update assert.
494 Don't clear globals.
495 (get_dynamics_objfile): Use and set program space data.
496 (get_java_class_symtab): Use get_dynamics_objfile.
497 (add_class_symbol): Likewise.
498 (java_link_class_type): Likewise.
499 (java_object_type, jv_clear_object_type, set_java_object_type):
500 Remove.
501 (get_java_object_type): Update. Don't cache result.
502 (is_object_type): Don't call set_java_object_type.
503 (_initialize_java_language): Don't set jv_type_objfile_data_key;
504 initialize jv_dynamics_progspace_key.
505
91a81f69
TT
5062011-06-14 Tom Tromey <tromey@redhat.com>
507
508 * symtab.h (current_objfile): Don't declare.
509 * objfiles.h (current_objfile): Don't declare.
510 * objfiles.c (current_objfile): Remove.
511 * mdebugread.c (current_objfile): New file-scope global.
512 * dbxread.c (current_objfile): New file-scope global.
513 * coffread.c (current_objfile): New file-scope global.
514
dc7eb48e
PA
5152011-06-13 Pedro Alves <pedro@codesourcery.com>
516
517 * top.h (line): Rename to ...
518 (saved_command_line): ... this.
519 (linesize): Rename to ...
520 (saved_command_line_size): ... this.
521 * top.c (line): Rename to ...
522 (saved_command_line): ... this.
523 (linesize): Rename to ...
524 (saved_command_line_size): ... this.
525 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
526 * event-top.c (command_line_handler): Adjust.
527 * main.c (captured_main): Adjust.
528
0d6c2135
MK
5292011-06-12 Mark Kettenis <kettenis@gnu.org>
530
531 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
532 get_frame_func instead of get_frame_pc to determine the code
533 address used to construct the frame ID.
534 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
535 (i386_epilogue_frame_this_id): Likewise.
536 (i386_epilogue_frame_prev_register): New function.
537 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
538 (i386_stack_tramp_frame_sniffer): Fix coding style.
539 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
540 (i386_gdbarch_init): Fix comments.
541
8bbdd3f4
MK
5422011-06-12 Mark Kettenis <kettenis@gnu.org>
543
544 * i386-tdep.c (i386_match_insn_block): Use length of the proper
545 instruction when walking back through the instruction stream.
546
533a737e
JK
5472011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 * symtab.c (output_partial_symbol_filename): Exchange the filename and
550 fullname parameters order.
551
44b13c5a
JK
5522011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
553
554 Code cleanup.
555 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
556 for fun.
557 * psymtab.c (map_symbol_filenames_psymtab)
558 (map_partial_symbol_filenames): Likewise.
559 * psymtab.h: Include symfile.h.
560 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
561 * symfile.h (symbol_filename_ftype): New.
562 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
563 map_symbol_filenames, clarify more the naming in comment.
564
0b5574da
DE
5652011-06-07 Doug Evans <dje@google.com>
566
567 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 568 Look for ../../gdb, for fullname.exp.
0b5574da 569
5be4dfca
JK
5702011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
571 Pedro Alves <pedro@codesourcery.com>
572
573 * cli/cli-cmds.c (shell_escape): Use waitpid.
574 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
575
316a8b21
TG
5762011-06-07 Tristan Gingold <gingold@adacore.com>
577
578 * xcoffread.c (dwarf2_xcoff_names): New variable.
579 (aix_process_linenos): Add a guard.
580 (xcoff_symfile_finish): Free dwarf2.
581 (xcoff_initial_scan): Add dwarf2 support.
582
3dd5b83d
PA
5832011-06-06 Pedro Alves <pedro@codesourcery.com>
584
585 * infcall.c (run_inferior_call): Don't mask async. Instead force
586 a synchronous wait, if the target can async.
587
588 * target.h (struct target_ops): Delete to_async_mask.
589 (target_async_mask): Delete.
590 * target.c (update_current_target): Delete references to to_async_mask.
591 * linux-nat.c (linux_nat_async_mask_value): Delete.
592 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
593 to linux_nat_async_mask_value.
594 (linux_nat_async_mask): Delete.
595 (linux_nat_async, linux_nat_close): Remove references to
596 linux_nat_async_mask_value.
597 * record.c (record_async_mask_value): Delete.
598 (record_async): Remove references to record_async_mask_value.
599 (record_async_mask): Delete.
600 (record_can_async_p, record_is_async_p): Remove references to
601 record_async_mask_value.
602 (init_record_ops, init_record_core_ops): Remove references to
603 record_async_mask.
604 * remote.c (remote_async_mask_value): Delete.
605 (init_remote_ops): Remove reference to remote_async_mask.
606 (remote_can_async_p, remote_is_async_p): Remove references to
607 remote_async_mask_value.
608 (remote_async): Remove references to remote_async_mask_value.
609 (remote_async_mask): Delete.
610
611 * infrun.c (fetch_inferior_event): Don't claim registers changed
612 if the current thread is already not executing.
613
64b9b334
JB
6142011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
615
616 From Stephen Kitt <steve@sk2.org>
617 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
618 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
619
325663dc
JB
6202011-06-03 Joel Brobecker <brobecker@adacore.com>
621
622 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
623 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
624
8cf64490
TT
6252011-06-03 Tom Tromey <tromey@redhat.com>
626
627 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
628 code fields.
629 * python/py-exitedevent.c (create_exited_event_object): Change
630 type of 'exit_code'. Optionally add exit_code attribute.
631 (emit_exited_event): Change type of 'exit_code'.
632 * python/py-event.h (emit_exited_event): Update.
633 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
634 * infrun.c (handle_inferior_event): Set exit code fields on
635 inferior.
636 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
637 fields.
638 * inferior.c (exit_inferior_1): Initialize new fields.
639
8ddd9a20
TT
6402011-06-03 Tom Tromey <tromey@redhat.com>
641
642 * dwarf2expr.c (get_signed_type): New function.
643 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
644
8dfd1e6d
KS
6452011-06-02 Keith Seitz <keiths@redhat.com>
646
647 * objc-lang.c (find_methods): Increment objfile_csym earlier.
648
65fdb766
PA
6492011-06-02 Pedro Alves <pedro@codesourcery.com>
650
651 * top.h (simplified_command_loop): Delete declaration.
652
f4b8c29b
MF
6532011-06-01 Mike Frysinger <vapier@gentoo.org>
654
655 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
656 gdb_sysroot to the "len" variable. Append both to "arg_buf".
657
1706c199
YQ
6582011-06-01 Yao Qi <yao@codesourcery.com>
659
660 * objfiles.h (obj_section_addr): Update reference to objfile from
661 `abfd' to `obfd'.
662 (obj_section_endaddr): Likewise.
663
d19cd713 6642011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
665
666 * MAINTAINERS: Update my email address and affiliation. Also
667 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
668
e8eb7bc5
KS
6692010-05-31 Keith Seitz <keiths@redhat.com>
670
671 PR c++/12750
672 * linespec.c (get_search_block): New function.
673 (find_methods): Add FILE_SYMTATB parameter and use it and
674 get_search_block to pass an appropriate block to
675 lookup_symbol_in_namespace.
676 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
677 Check if *ARGPTR starts with a filename first.
678 If it does, call locate_first_half again to locate the next
679 "first half" of the linespec.
680 Pass FILE_SYMTATB to decode_objc and decode_compound.
681 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
682 (locate_first_half): Stop on the first colon seen.
683 (decode_compound): Add FILE_SYMTAB parameter.
684 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
685 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
686 get_search_block with lookup_symbol.
687 (find_method): Add FILE_SYMTAB parameter and pass it to
688 find_methods.
689 (decode_objc): Use get_search_block.
690
2b1dbab0
KS
6912010-05-31 Keith Seitz <keiths@redhat.com>
692
693 PR symtab/12704
694 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
695 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
696 and CP_ANONYMOUS_NAMESPACE_LEN.
697 (cp_is_anonymous): Likewise.
698 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
699 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
700 * dwarf2read.c (namespace_name): Likewise.
701 (fixup_partial_die): Likewise.
702 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
703 seen in the input, keep it.
704
6d549500
PA
7052011-05-30 Pedro Alves <pedro@codesourcery.com>
706
707 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
708 * inf-loop.h (inferior_event_handler_wrapper): Delete.
709 * inf-loop.c (inferior_event_handler_wrapper): Delete.
710 (inferior_event_handler): Don't handle INF_QUIT_REQ.
711 * remote.c (_initialize_remote): Register
712 async_remote_interrupt_twice directly as
713 sigint_remote_twice_token event.
714
395bff70
PA
7152011-05-30 Pedro Alves <pedro@codesourcery.com>
716
717 * target.h (enum inferior_event_type): Delete INF_ERROR.
718 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
719
97224164
PA
7202011-05-30 Pedro Alves <pedro@codesourcery.com>
721
722 * interps.c (interp_set): Don't cancel continuations.
723
07e78767
JK
7242011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
725
726 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
727
fa4cd53f
PA
7282011-05-30 Pedro Alves <pedro@codesourcery.com>
729
730 * continuations.h (continuation_ftype): Add `err' parameter.
731 Document parameters.
732 (do_all_continuations, do_all_continuations_thread)
733 (do_all_intermediate_continuations)
734 (do_all_intermediate_continuations_thread)
735 (do_all_inferior_continuations): Add `err' parameter.
736 * continuations.c (do_my_continuations_1, do_my_continuations)
737 (do_all_inferior_continuations, do_all_continuations_ptid)
738 (do_all_continuations_thread_callback)
739 (do_all_continuations_thread, do_all_continuations)
740 (do_all_intermediate_continuations_thread_callback)
741 (do_all_intermediate_continuations_thread)
742 (do_all_intermediate_continuations): Add `err' parameter, and pass
743 it down all the way to the continuations proper.
744 * inf-loop.c (inferior_event_handler): If fetching an inferior
745 event throws an error, don't pop the target, and still call the
746 continuations, but with `err' set. Adjust all other continuation
747 calls.
748 * breakpoint.c (until_break_command_continuation): Add `err'
749 parameter.
750 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
751 issue another step if `err' is set.
752 (struct until_next_continuation_args): New.
753 (until_next_continuation): Add `err' parameter. Adjust.
754 (until_next_command): Adjust.
755 (struct finish_command_continuation_args): Add `thread' field.
756 (finish_command_continuation): Add `err' parameter. Handle it.
757 (finish_forward): Adjust.
758 (attach_command_continuation): Add `err' parameter. Handle it.
759 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
760 cancel the continuations.
761 * interps.c (interp_set): Adjust to cancel the continuations.
762 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
763 continuations rather than discarding.
764 (free_thread): Don't clear thread inferior resources here.
765 (delete_thread_1): Do it here instead. And do it before removing
766 the thread from the threads list. Tag the thread as exited before
767 clearing thread inferior resources.
768
c2949be0
JB
7692011-05-30 Joel Brobecker <brobecker@adacore.com>
770
771 * infcall.c (call_function_by_hand): Rephrase error message.
772
619cebe8
PA
7732011-05-27 Pedro Alves <pedro@codesourcery.com>
774
775 * defs.h (struct thread_info, struct inferior): Delete forward
776 declarations.
777 * breakpoint.h (struct thread_info): New forward declaration.
778 * observer.sh (struct inferior): New forward declaration.
779 * python/python-internal.h (struct inferior): New forward
780 declaration.
781
be34f849
PA
7822011-05-27 Pedro Alves <pedro@codesourcery.com>
783
784 * defs.h (struct continuation, continuation_ftype)
785 (continuation_free_arg_ftype, add_continuation)
786 (do_all_continuations, do_all_continuations_thread)
787 (discard_all_continuations, discard_all_continuations_thread)
788 (add_intermediate_continuation, do_all_intermediate_continuations)
789 (do_all_intermediate_continuations_thread)
790 (discard_all_intermediate_continuations)
791 (discard_all_intermediate_continuations_thread)
792 (add_inferior_continuation, do_all_inferior_continuations)
793 (discard_all_inferior_continuations): Move to ...
794 * continuations.h: ... this new file.
795 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
796 infcmd.c, inferior.c, infrun.c, interps.c: Include
797 continuations.h.
798
432b4d03
JK
7992011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
800 Doug Evans <dje@google.com>
801
802 Fix PR 10970, PR 12702.
803 * linux-nat.c (linux_lwp_is_zombie): New function.
804 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
805 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
806
b0f260d6
PA
8072011-05-27 Pedro Alves <pedro@codesourcery.com>
808
809 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
810 typedefs.
811 (add_continuation, add_intermediate_continuation)
812 (add_inferior_continuation): Use them.
813 * continuations.c (struct continuation): Use them.
814 (make_continuation_ftype): Delete.
815 (make_continuation, add_inferior_continuation, add_continuation)
816 (add_intermediate_continuation): Use continuation_ftype and
817 continuation_free_arg_ftype. Rename parameters to shorter names.
818
af1e9a32
PA
8192011-05-27 Pedro Alves <pedro@codesourcery.com>
820
821 * continuations.c (make_continuation): Make it return void.
822 (do_my_continuations): Rename to ...
823 (do_my_continuations_1): ... this. Remove old_chain parameter and
824 adjust.
825 (do_my_continuations): New.
826 (discard_my_continuations): Rename to ...
827 (discard_my_continuations_1): ... this. Remove old_chain
828 parameter and adjust.
829 (discard_my_continuations): New.
830 (add_inferior_continuation): Simplify.
831 (do_all_inferior_continuations): Reimplement on top
832 do_my_continuations.
833 (discard_all_inferior_continuations): Simplify.
834 (add_continuation): Simplify.
835 (do_all_continuations_ptid): Simplify.
836 (discard_all_continuations_thread_callback): Simplify.
837 (add_intermediate_continuation): Simplify.
838 (discard_all_intermediate_continuations_thread_callback):
839 Simplify.
840
50c0c017
PA
8412011-05-27 Pedro Alves <pedro@codesourcery.com>
842
843 * utils.c (struct continuation, add_continuation)
844 (add_inferior_continuation)
845 (do_all_inferior_continuations, discard_all_inferior_continuations)
846 (restore_thread_cleanup, do_all_continuations_ptid)
847 (do_all_continuations_thread_callback)
848 (do_all_continuations_thread, do_all_continuations)
849 (discard_all_continuations_thread_callback)
850 (discard_all_continuations_thread, discard_all_continuations)
851 (add_intermediate_continuation)
852 (do_all_intermediate_continuations_thread_callback)
853 (do_all_intermediate_continuations_thread)
854 (do_all_intermediate_continuations)
855 (discard_all_intermediate_continuations_thread_callback)
856 (discard_all_intermediate_continuations_thread)
857 (discard_all_intermediate_continuations): Move to ...
858 * continuations.c: ... this new file, and adjust to no longer
859 implement continuations on top of cleanups.
860 * Makefile.in (SFILES): Add continuations.c.
861 (COMMON_OBS): Add continuations.o.
862
d8b34453
PA
8632011-05-26 Pedro Alves <pedro@codesourcery.com>
864
865 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
866 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
867 Internal error on invalid values.
868 * reverse.c: Don't handle EXEC_ERROR.
869 * mi/mi-main.c: Don't handle EXEC_ERROR.
870
32231432
PA
8712011-05-26 Pedro Alves <pedro@codesourcery.com>
872
873 * record.c: Include event-loop.h, inf-loop.h.
874 (record_beneath_to_async): New global.
875 (tmp_to_async): New global.
876 (record_async_inferior_event_token): New global.
877 (record_open_1): Don't error out if async is enabled.
878 (record_open): Handle to_async. Create an async event source in
879 the event loop.
880 (record_close): Delete the async event source.
881 (record_resumed): New global.
882 (record_execution_dir): New global.
883 (record_resume, record_core_resume): Set them. Register the
884 target on the event loop.
885 (record_wait): Rename to ...
886 (record_wait_1): ... this. Add more debug output. Handle
887 TARGET_WNOHANG, and the target beneath returning
888 TARGET_WAITKIND_IGNORE.
889 (record_wait): Reimplement on top of record_wait_1.
890 (record_async_mask_value): New global.
891 (record_async, record_async_mask, record_can_async_p)
892 (record_is_async_p, record_execution_direction): New functions.
893 (init_record_ops, init_record_core_ops): Install new methods.
894 * infrun.c (fetch_inferior_event): Temporarily switch the global
895 execution direction to the direction the target was going.
896 (execution_direction): Change type to int.
897 * target.c (default_execution_direction): New function.
898 (update_current_target): Inherit and de_fault
899 to_execution_direction.
900 * target.h (struct target_ops) <to_execution_direction>: New
901 field.
902 (target_execution_direction): New macro.
903 * inferior.h (execution_direction): Change type to int.
904
949dc678
PA
9052011-05-26 Pedro Alves <pedro@codesourcery.com>
906
907 * infcall.c (call_function_by_hand): Don't allow calling functions
908 in reverse execution mode.
909
c13bd2b5
PA
9102011-05-26 Pedro Alves <pedro@codesourcery.com>
911
912 * infcmd.c (finish_command): Allow async finish in reverse.
913
6938fd34
YQ
9142011-05-26 Yao Qi <yao@codesourcery.com>
915
916 * gdb_thread_db.h: Delete. Move to ...
917 * common/gdb_thread_db.h: ... here.
918
9da8c2a0
PA
9192011-05-26 Pedro Alves <pedro@codesourcery.com>
920
921 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
922 function's entry point instead of a manually managed momentary
923 breakpoint, and only ever issue one proceed call.
924 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
925 doing a reverse-finish, switch to stepi mode, to do another step.
926 (insert_step_resume_breakpoint_at_sal): Make public.
927 (normal_stop): No need to save function value return registers if
928 going reverse.
929 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
930
2c03e5be
PA
9312011-05-26 Pedro Alves <pedro@codesourcery.com>
932
933 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
934 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
935 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
936 at the end.
937 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
938 step-resume breakpoints.
939 (print_it_typical): Handle bp_hp_step_resume.
940 (bpstat_what): Ditto.
941 (bptype_string): Ditto.
942 (print_one_breakpoint_location): Ditto.
943 (allocate_bp_location): Ditto.
944 (mention): Ditto.
945 (breakpoint_re_set_one): Ditto.
946 * infrun.c (handle_inferior_event): Adjust. Split
947 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
948 BPSTAT_WHAT_HP_STEP_RESUME.
949 (insert_step_resume_breakpoint_at_sal): Rename to ...
950 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
951 parameter. Handle it.
952 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
953 insert_step_resume_breakpoint_at_sal_1.
954 (insert_step_resume_breakpoint_at_frame): Rename to ...
955 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
956 set a high-priority step-resume breakpoint.
957 (insert_step_resume_breakpoint_at_frame): Adjust comment.
958 (insert_step_resume_breakpoint_at_caller): Ditto.
959
51be5b68
PA
9602011-05-26 Pedro Alves <pedro@codesourcery.com>
961
962 * breakpoint.c (iterate_over_related_breakpoints): New.
963 (do_map_delete_breakpoint): New.
964 (delete_command): Pass do_map_delete_breakpoint to
965 map_breakpoint_numbers.
966 (do_disable_breakpoint): New.
967 (do_map_disable_breakpoint): Iterate over the breakpoint's related
968 breakpoints.
969 (do_enable_breakpoint): Rename to ...
970 (enable_breakpoint_disp): ... this.
971 (enable_breakpoint): Adjust.
972 (do_enable_breakpoint): New.
973 (enable_once_breakpoint): Delete.
974 (do_map_enable_breakpoint): New.
975 (do_map_enable_once_breakpoint): New.
976 (enable_once_command, enable_delete_command)
977 (delete_trace_command): Iterate over the breakpoint's related
978 breakpoints.
979
4a1be8d2
PA
9802011-05-26 Pedro Alves <pedro@codesourcery.com>
981
982 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
983 for ALPHA_ZERO_REGNUM.
984 (alpha_supply_int_regs): Explicitly supply zero as the value for
985 ALPHA_ZERO_REGNUM in the register cache.
986 * alpha-nat.c (fetch_osf_core_registers): Ditto.
987
59d70315
YQ
9882011-05-26 Yao Qi <yao@codesourcery.com>
989
990 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
991
251d32d9
TG
9922011-05-26 Tristan Gingold <gingold@adacore.com>
993
994 * symfile.h (struct dwarf2_section_names): New type.
995 (struct dwarf2_debug_sections): New type.
996 (dwarf2_has_info): Add parameter.
997 * dwarf2read.c (dwarf2_elf_names): New variable.
998 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
999 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1000 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1001 (dwarf2_has_info): Add names parameter. Pass names
1002 to dwarf2_locate_sections.
1003 (section_is_p): Rewrite using the names parameter.
1004 (dwarf2_locate_sections): Use section names from the names parameter.
1005 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1006 * elfread.c (read_psyms): Ditto.
1007 * machoread.c (macho_symfile_read): Ditto.
1008
652c71b4
AS
10092011-05-25 Andreas Schwab <schwab@redhat.com>
1010
1011 PR gdb/8677
1012 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1013
f17170e5
KS
10142011-05-24 Keith Seitz <keiths@redhat.com>
1015
1016 PR breakpoint/12803
1017 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1018 (decode_compound): Unconditionally call keep_name_info.
1019
cdac0397
PA
10202011-05-24 Pedro Alves <pedro@codesourcery.com>
1021
1022 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1023 scope, clear its command list.
1024 (map_breakpoint_numbers): Don't walk the related breakpoints list
1025 of each breakpoint.
1026
91d4fe3f
TT
10272011-05-24 Tom Tromey <tromey@redhat.com>
1028
1029 * MAINTAINERS: Move Jim Blandy to past maintainers.
1030
3017a003
TG
10312011-05-24 Tristan Gingold <gingold@adacore.com>
1032
1033 * symfile.h (enum dwarf2_section_enum): New type.
1034 (dwarf2_get_section_info): New prototype.
1035 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1036 section_name by sect. Use a switch to select the info.
1037 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1038 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1039
c91c8c16
PA
10402011-05-24 Pedro Alves <pedro@codesourcery.com>
1041
1042 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1043 shared library event breakpoint if there's no execution.
1044
77bc418a
TJB
10452011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
1046
1047 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1048 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1049
c50491a7
TT
10502011-05-23 Tom Tromey <tromey@redhat.com>
1051
1052 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1053 NULL.
1054
6d64e6d4
DE
10552011-05-23 Doug Evans <dje@google.com>
1056
1057 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1058 entry for RuntimeError to doc string.
1059
2067c8d4
JG
10602011-05-23 Jerome Guitton <guitton@adacore.com>
1061
1062 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1063 sequence for probing loops.
1064
b136cd05
PA
10652011-05-23 Pedro Alves <pedro@codesourcery.com>
1066
1067 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1068 comment.
1069
22e74ef9
MK
10702011-05-21 Mark Kettenis <kettenis@gnu.org>
1071
1072 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1073 zero as the value for %g0 in the register cache.
1074 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1075 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1076
842951eb
PA
10772011-05-20 Pedro Alves <pedro@codesourcery.com>
1078
1079 * infrun.c (proceed): Set previous_inferior_ptid here.
1080 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1081 inferior_ptid, not null_ptid.
1082 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1083 (fetch_inferior_event): Nor here.
1084
46cf51e6
PA
10852011-05-20 Pedro Alves <pedro@codesourcery.com>
1086
1087 * inf-loop.c (inferior_event_handler): Only output a message if
1088 verbose.
1089
29ef4c46
LM
10902011-05-20 Luis Machado <lgustavo@codesourcery.com>
1091
1092 * MAINTAINERS: Update my e-mail address.
1093
f148b27e
PA
10942011-05-20 Pedro Alves <pedro@codesourcery.com>
1095
1096 * infrun.c (proceed): Switch the inferior event loop to
1097 INF_EXEC_COMPLETE if the target refused to resume from a
1098 vfork/fork.
1099
09cee04b
PA
11002011-05-20 Pedro Alves <pedro@codesourcery.com>
1101
1102 * infcmd.c: Include "inf-loop.h".
1103 (step_once): When stepping into an inline subroutine, pretend the
1104 target has run. If the target can async, switch the inferior
1105 event loop to INF_EXEC_COMPLETE.
1106 * inferior.h (user_visible_resume_ptid): Declare.
1107 * infrun.c (user_visible_resume_ptid): New function, factored out
1108 from `resume'.
1109 (resume): Use it.
1110 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1111 that the current thread is running. Merge async and sync
1112 branches.
1113
751b8ce1
PA
11142011-05-20 Pedro Alves <pedro@codesourcery.com>
1115
1116 * infcmd.c (step_1): Simplify synchronous case.
1117
e93a69ed
PA
11182011-05-20 Pedro Alves <pedro@codesourcery.com>
1119
1120 * tracepoint.c: Include exceptions.h.
1121 (TFILE_PID): Move higher in file.
1122 (tfile_open): Delay pushing the tfile target until we're assured
1123 the tfile header is present in the file. Wrap reading the initial
1124 newline-terminated lines in TRY_CATCH. Pop the target if the
1125 initial setup failed. Add the tfile's thread immediately
1126 aftwards, before any non-essential setup. Don't skip
1127 post_create_inferior if there are no traceframes present in the
1128 file.
1129 (tfile_close): Remove redundant check for null before xfree call.
1130 (tfile_thread_alive): New function.
1131 (init_tfile_ops): Register it as to_thread_alive callback.
1132
6823e2b1
PA
11332011-05-20 Pedro Alves <pedro@codesourcery.com>
1134
1135 * tracepoint.c (tfile_open): Delete #if 0'd code.
1136
b3c8eb43
JK
11372011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1138
1139 Fix -readnow for -gdwarf-4 unused type units.
1140 * dwarf2read.c (struct signatured_type): Remove the field offset.
1141 (create_signatured_type_table_from_index): Remove its initialization.
1142 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1143 instead. Add a complaint call.
1144 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1145 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1146 (lookup_signatured_type_at_offset, read_signatured_type)
1147 (write_one_signatured_type): Update the field for per_cu.
1148
310afc76
TT
11492011-05-19 Tom Tromey <tromey@redhat.com>
1150
1151 * python/py-inferior.c (python_inferior_exit): Use
1152 target_gdbarch.
1153 (python_on_resume): Likewise.
1154
cf6c5ffb
TT
11552011-05-19 Matt Rice <ratmice@gmail.com>
1156
1157 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1158
fb80a3c5
HZ
11592011-05-19 Hui Zhu <teawater@gmail.com>
1160
1161 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1162
3672b1be
HZ
11632011-05-19 Hui Zhu <teawater@gmail.com>
1164
1165 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1166
ff355380
TT
11672011-05-18 Tom Tromey <tromey@redhat.com>
1168
1169 * dwarf2read.c (dwarf2_add_field): Constify.
1170 * value.c (value_static_field): Constify.
1171 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1172 Now const.
1173 * ax-gdb.c (gen_static_field): Constify
1174
ed731959
JK
11752011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 * linux-nat.c (kill_callback): Use SIGKILL first.
1178
967cff16
JB
11792011-05-18 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1182
1d06ead6
TT
11832011-05-18 Tom Tromey <tromey@redhat.com>
1184
1185 * value.c (value_fn_field): Constify.
1186 * symtab.c (gdb_mangle_name): Constify.
1187 * stabsread.c (update_method_name_from_physname): Make 'physname'
1188 argument const.
1189 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1190 const. Use explicit fputc_filtered loop.
1191 (pascal_type_print_base): Constify.
1192 * p-lang.h (pascal_type_print_method_args): Update.
1193 * linespec.c (add_matching_methods): Constify.
1194 (add_constructors): Likewise.
1195 * jv-typeprint.c (java_type_print_base): Constify.
1196 * gdbtypes.h (struct cplus_struct_type)
1197 <fn_fieldlist.fn_field.physname>: Now const.
1198 * dwarf2read.c (compute_delayed_physnames): Constify.
1199 (dwarf2_add_member_fn): Likewise.
1200 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1201
0d9a9a5f
PA
12022011-05-18 Pedro Alves <pedro@codesourcery.com>
1203
1204 * infrun.c (resume): Mention which is the current thread, and its
1205 current PC in debug output.
1206 (prepare_to_proceed): Mention the thread switching in debug
1207 output.
1208
05386e9e
TT
12092011-05-18 Tom Tromey <tromey@redhat.com>
1210
1211 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1212 path check. Use xmalloc and cleanups.
1213 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1214
ee86786c
TT
12152011-05-17 Tom Tromey <tromey@redhat.com>
1216
1217 * cp-valprint.c (cp_print_value_fields): Catch errors from
1218 value_static_field.
1219
9ff3b74f
TT
12202011-05-17 Tom Tromey <tromey@redhat.com>
1221
1222 * dwarf2read.c (dwarf2_get_die_type): Call
1223 get_die_type_at_offset.
1224 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1225 get_base_type function.
1226
cd3da28e
PA
12272011-05-17 Tomas Martinec <fyzmat@gmail.com>
1228
1229 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1230 trap_expected.
1231
fd20d931
DE
12322011-05-16 Doug Evans <dje@google.com>
1233
1234 * python/py-auto-load.c (source_section_scripts): Mention objfile
1235 name in warning.
1236
75fc9810
DE
12372011-05-15 Doug Evans <dje@google.com>
1238
290351b8
DE
1239 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1240 (try_thread_db_load_from_pdir): Call it. If unable to find
1241 libthread_db in directory of libpthread, see if we're looking at
1242 the separate-debug-info copy.
1243
75fc9810
DE
1244 * python/py-autoload.c (print_script): Print "Missing" instead of
1245 "No" for missing scripts.
1246 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1247
9f7bc587
DE
12482011-05-13 Doug Evans <dje@google.com>
1249
1250 * ui-file.c (stdio_file_write_async_safe): Add comment.
1251
093cee7d
HZ
12522011-05-14 Hui Zhu <teawater@gmail.com>
1253
1254 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1255
dbaefcf7
DE
12562011-05-13 Doug Evans <dje@google.com>
1257
98a5dd13
DE
1258 Support $pdir and $sdir in libthread-db-search-path.
1259 * NEWS: Mention $sdir,$pdir.
1260 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1261 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1262 (try_thread_db_load_from_sdir): New function.
1263 (try_thread_db_load_from_dir): New function.
1264 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1265 system directories if search of libthread-db-search-path fails,
1266 that is now done via $sdir.
1267 (has_libpthread): New function.
1268 (thread_db_load): Remove search for libthread_db in directory of
1269 libpthread, that is now done via $pdir.
1270
dbaefcf7
DE
1271 * NEWS: Mention "info auto-load-scripts".
1272 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1273 script_not_found_warning_printed.
1274 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1275 all callers updated. Initialize script_not_found_warning_printed.
1276 (get_auto_load_pspace_data_for_loading): New function.
1277 (maybe_add_script): New function.
1278 (source_section_scripts): Simplify. Only print one warning regardless
1279 of the number of auto-load scripts not found.
1280 (clear_section_scripts): Clear script_not_found_warning_printed.
1281 (auto_load_objfile_script): Record script in hash table.
1282 (count_matching_scripts): New function.
1283 (maybe_print_script): Renamed from maybe_print_section_script, all
1284 callers updated. Rewrite to use ui_out_*.
1285 (info_auto_load_scripts): Renamed from
1286 maintenance_print_section_scripts, all callers updated.
1287 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1288 renamed as "info auto-load-scripts".
1289
9930639c
TT
12902011-05-13 Tom Tromey <tromey@redhat.com>
1291
1292 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1293 (read_sleb128): Likewise.
1294
06826322
TT
12952011-05-13 Tom Tromey <tromey@redhat.com>
1296
1297 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1298 offset display.
1299
01124a23
DE
13002011-05-13 Doug Evans <dje@google.com>
1301
1302 * linux-nat.c (debug_linux_nat_async): Delete.
1303 Replace all references to use debug_linux_nat instead.
1304 (show_debug_linux_nat_async): Delete.
1305 (sigchld_handler): Call ui_file_write_async_safe instead of
1306 fprintf_unfiltered.
1307 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1308 * ui-file.c (struct ui_file): New member to_write_async_safe.
1309 (null_file_write_async_safe): New function.
1310 (ui_file_write_async_safe): New function.
1311 (set_ui_file_write_async_safe): New function.
1312 (ui_file_new): Initialize to_write_async_safe.
1313 (stdio_file_write_async_safe): New function.
1314 (struct stdio_file): New member fd.
1315 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
1316 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1317 fileno.
01124a23
DE
1318 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1319 (set_ui_file_write_async_safe): Declare.
1320 (ui_file_write_async_safe): Declare.
1321
72fc29ff
TT
13222011-05-13 Tom Tromey <tromey@redhat.com>
1323
1324 * utils.c (do_value_free): New function.
1325 (make_cleanup_value_free): Likewise.
1326 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1327 freeing correctly.
1328 (dwarf2_loc_desc_needs_frame): Call
1329 make_cleanup_value_free_to_mark.
1330 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1331 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1332 value_free_to_mark.
1333 (new_dwarf_expr_context): Don't call value_mark.
1334 * dwarf2-frame.c (execute_stack_op): Call
1335 make_cleanup_value_free_to_mark.
1336 * defs.h (make_cleanup_value_free): Declare.
1337
028d0ed5
TJB
13382011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1339
1340 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1341 prepare_execute_command.
1342 * top.c (prepare_execute_command): Return cleanup.
1343 (execute_command): Use cleanup from prepare_execute_command.
1344 * top.h (prepare_execute_command): Change prototype to return
1345 cleanup.
1346 * defs.h (struct value): Add opaque declaration.
1347 (make_cleanup_value_free_to_mark): Add prototype.
1348 * utils.c (do_value_free_to_mark): New function.
1349 (make_cleanup_value_free_to_mark): Likewise.
1350
b087e0ed
TT
13512011-05-12 Tom Tromey <tromey@redhat.com>
1352
1353 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1354 cast left-hand-side to unsigned.
1355
8a9b8146
TT
13562011-05-12 Tom Tromey <tromey@redhat.com>
1357
1358 PR gdb/12617:
1359 * value.h (value_from_contents): Declare.
1360 * value.c (value_from_contents): New function.
1361 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1362 (dwarf2_get_die_type): New function.
1363 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1364 (allocate_piece_closure): Acquire reference to values.
1365 (read_pieced_value): Update for value-based expressions.
1366 (write_pieced_value): Likewise.
1367 (free_pieced_value_closure): Call value_free as needed.
1368 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1369 Update for value-based expressions.
1370 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1371 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1372 <get_base_type>: New field.
1373 (struct dwarf_expr_piece) <v.value>: Change type.
1374 <v.regno>: New field.
1375 (struct dwarf_expr_context) <mark>: New field.
1376 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1377 (dwarf_expr_pop, dwarf_expr_push): Remove.
1378 (dwarf_expr_push_address): Declare.
1379 * dwarf2expr.c (dwarf_arch_cookie): New global.
1380 (struct dwarf_gdbarch_types): New.
1381 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1382 functions.
1383 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1384 static.
1385 (dwarf_expr_push_address): New function.
1386 (dwarf_expr_pop): Now static.
1387 (dwarf_expr_fetch): Change return type.
1388 (dwarf_require_integral): New function.
1389 (dwarf_expr_fetch): Simplify.
1390 (add_piece): Update.
1391 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1392 functions.
1393 (execute_stack_op) <sign_ext>: Remove.
1394 Use values for DWARF stack.
1395 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1396 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1397 New cases.
1398 (_initialize_dwarf2expr): New function.
1399 (add_piece): Update.
1400 (new_dwarf_expr_context): Set new field.
1401 (free_dwarf_expr_context): Call value_free_to_mark.
1402 * dwarf2-frame.c (no_base_type): New function.
1403 (execute_stack_op): Set get_base_type field. Update.
1404
e8d28ef4
TT
14052011-05-12 Tom Tromey <tromey@redhat.com>
1406
1407 * dwarf2read.c (read_common_block): Fix formatting.
1408
d248b706
KY
14092011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
1410
1411 * breakpoint.c (disable_breakpoint): Disable all locations
1412 associated with a tracepoint on target if a trace experiment is
1413 running.
1414 (disable_command): Disable a specific tracepoint location on target if
1415 a trace experiment is running.
1416 (do_enable_breakpoint): Enable all locations associated with a
1417 tracepoint on target if a trace experiment is running.
1418 (enable_command) Enable a specific tracepoint location on target if a
1419 trace experiment is running.
1420 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1421 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1422 to_disable_tracepoint.
1423 * target.h: Add declaration of struct bp_location.
1424 (struct target_ops): Add new functions
1425 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1426 to_disable_tracepoint to target operations.
1427 (target_supports_enable_disable_tracepoint): New macro.
1428 (target_enable_tracepoint): New macro.
1429 (target_disable_tracepoint): New macro.
1430 * remote.c (struct remote_state): Add new field.
1431 (remote_enable_disable_tracepoint_feature): New.
1432 (remote_protocol_features): Add new entry.
1433 (remote_supports_enable_disable_tracepoint): New.
1434 (remote_enable_tracepoint): New.
1435 (remote_disable_tracepoint): New.
1436 (init_remote_ops): Add remote_enable_tracepoint,
1437 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1438 to remote operations.
1439 * tracepoint.c (start_tracing): Allow tracing to start without any
1440 tracepoints enabled with just a warning if they can be re-enabled
1441 later.
1442 * NEWS: Add news item for the new behaviour of the enable and disable
1443 GDB commands when applied to tracepoints.
1444 Add news items for the new remote packets QTEnable and QTDisable.
1445
cc88a640
JK
14462011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1447
1448 * config.in: Regenerate.
1449 * configure: Regenerate.
1450 * configure.ac <--with-system-readline> (for readline_echoing_p):
1451 Remove the test.
1452 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1453 (tui_old_rl_echoing_p): ... here.
1454 (tui_setup_io): Rename extern declaration readline_echoing_p to
1455 _rl_echoing_p. Adjust assignments for the both renames.
1456
1f84b619
TJB
14572011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
1458
1459 * symtab.c (lookup_symtab): Run cleanup before returning.
1460
74ac6d43
TT
14612011-05-11 Tom Tromey <tromey@redhat.com>
1462
1463 * dwarf2read.c (handle_data_member_location): New function.
1464 (dwarf2_add_field): Use it.
1465 (read_common_block): Likewise.
1466
5488dafb
JK
14672011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1468
1469 Make addrs->SECTINDEX always defined.
1470 * symfile.c (relative_addr_info_to_section_offsets): Check for
1471 SECTINDEX -1, not for zero ADDR.
1472 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1473 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1474 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1475 on its validity.
1476
84e578fb
DE
14772011-05-10 Doug Evans <dje@google.com>
1478
2471d008
DE
1479 * linux-thread-db.c: Whitespace cleanup.
1480 (try_thread_db_load_1): Fix comment.
1481
84e578fb
DE
1482 * linux-thread-db.c (set_libthread_db_search_path): New function.
1483 (_initialize_thread_db): Add setter for libthread-db-search-path.
1484
673c2bbe
DE
14852011-05-09 Doug Evans <dje@google.com>
1486
478aac75
DE
1487 * NEWS: Mention --with-iconv-bin.
1488 * configure.ac: New option --with-iconv-bin.
1489 * configure: Regenerate.
1490 * config.in: Regenerate.
1491 * defs.h (relocate_gdb_directory): Declare.
1492 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1493 removed progname parameter, and exported. All callers updated.
1494 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1495
673c2bbe
DE
1496 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1497 adding missing call to restore_child_signals_mask.
1498
e4c8541f
PA
14992011-05-09 Pedro Alves <pedro@codesourcery.com>
1500
1501 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1502 parameter.
1503 * infrun.c (proceed, start_remote): Adjust.
1504 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1505 and adjust to not handle it.
1506 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1507 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1508 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1509 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1510 * windows-nat.c (do_initial_windows_stuff): Adjust.
1511 * infcmd.c (attach_command): Adjust.
1512 (notice_new_inferior): Adjust.
1513
a536c6d7
UW
15142011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1515
1516 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1517 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1518 * spu-tdep.c (op_selb): Use correct value.
1519
7845b013
UW
15202011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
1521
1522 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1523 "parent" parameter to symbol_file_add_from_bfd call.
1524
9c06b0b4
TJB
15252011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1526 Thiago Jung Bauermann <bauerman@br.ibm.com>
1527
1528 Implement support for PowerPC BookE masked watchpoints.
1529 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1530 section.
1531 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1532 method. Initialize to NULL in all existing breakpoint_ops instances.
1533 (struct breakpoint) <hw_wp_mask>: New field.
1534 * breakpoint.c (is_masked_watchpoint): Add prototype.
1535 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1536 breakpoint's breakpoint_ops.works_in_software_mode if available.
1537 (watchpoints_triggered): Handle the case of a hardware masked
1538 watchpoint trigger.
1539 (watchpoint_check): Likewise.
1540 (works_in_software_mode_watchpoint): New function.
1541 (insert_masked_watchpoint, remove_masked_watchpoint)
1542 (resources_needed_masked_watchpoint)
1543 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1544 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1545 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1546 functions.
1547 (masked_watchpoint_breakpoint_ops): New structure.
1548 (watch_command_1): Check for the existence of the `mask' parameter.
1549 Set b->ops according to the type of hardware watchpoint being created.
1550 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1551 (ppc_linux_remove_mask_watchpoint)
1552 (ppc_linux_masked_watch_num_registers): New functions.
1553 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1554 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1555 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1556 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1557 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1558 (target_masked_watch_num_registers): New functions.
1559 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1560 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1561 methods.
1562 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1563 (target_masked_watch_num_registers): Add prototypes.
1564
8be455d7
JK
15652011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 PR 12573
1568 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1569 (producer_is_gcc_ge_4_0): New function.
1570 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1571 symtab->language code.
1572 (var_decode_location): Set cu->has_loclist.
1573 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1574 skip. Intialize force_skip from locations_valid. Move the prologue
1575 skipping code into two passes.
1576 * symtab.h (struct symtab): Make the primary field a bitfield. New
1577 field locations_valid.
1578
d8228535
JK
15792011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1582 (classify_inner_name): Call cp_lookup_nested_type with
1583 yylval.tsym.type.
1584 * cp-namespace.c (cp_lookup_nested_type): New variable
1585 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1586 type_name_no_tag_or_error with saved_parent_type.
1587 * dwarf2read.c (load_partial_dies): Read in any children of
1588 DW_TAG_typedef with complaint in such case.
1589 * gdbtypes.c (type_name_no_tag_or_error): New function.
1590 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1591 * valops.c (destructor_name_p): New comment for parameter type. Remove
1592 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1593 * value.h (destructor_name_p): Remove type const.
1594
1976171a
JK
15952011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * symtab.c (compare_symbol_name): New function.
1598 (completion_list_add_name, expand_partial_symbol_name): Call it,
1599 remove the variable ncmp.
1600 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1601 gdb_assert it.
1602
a9634178
TJB
16032011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
1604
1605 Demote to sw watchpoint only in update_watchpoint.
1606 * breakpoint.c (update_watchpoint): Change between software and
1607 hardware watchpoint for all kinds of watchpoints, not just
1608 read/write ones. Determine b->exact value here instead of
1609 in watch_command_1. Error out if there are not enough resources
1610 for a read or access hardware watchpoint.
1611 (watch_command_1): Remove logic of checking whether there are
1612 enough resources available, since update_watchpoint will do that
1613 work now. Don't set b->exact here. Catch exceptions thrown by
1614 update_watchpoint and delete the watchpoint.
1615 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1616 Use target_exact_watchpoints instead.
1617 (delete_breakpoint): Notify observers only if deleted watchpoint
1618 has a breakpoint number assigned to it.
1619
4c67c798
JJ
16202011-05-05 Janis Johnson <janisjo@codesourcery.com>
1621
1622 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1623
a3fcb948
JG
16242011-05-05 Jerome Guitton <guitton@adacore.com>
1625
1626 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1627 New functions.
1628 (i386_stack_tramp_frame_unwind): New static global.
1629 (i386_match_pattern): New function, extracted from i386_match_insn.
1630 (i386_match_insn): Use i386_match_pattern.
1631 (i386_match_insn_block): New function.
1632 (i386_tramp_chain_in_reg_insns)
1633 (i386_tramp_chain_on_stack_insns): New static variables.
1634 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1635 of unwinders.
1636
4d393d60
JM
16372011-05-04 Joseph Myers <joseph@codesourcery.com>
1638
1639 * configure.host (xscale*): Don't handle target.
1640 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1641 handle targets.
1642
f70bd40b
YQ
16432011-05-04 Yao Qi <yao@codesourcery.com>
1644
1645 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1646
dd3295ee
JB
16472011-05-03 Joel Brobecker <brobecker@adacore.com>
1648
1649 Revert:
1650 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
1651 | * elfread.c (elf_symtab_read): Stop memory leak.
1652
90375a0e
PM
16532011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1654
1655 * nto-tdep.c (nto_target): Replace deprecated call to
1656 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1657
d07205c2
JK
16582011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1659
1660 Fix false GCC warning.
1661 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1662
1e718ff1
TJB
16632011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
1664
1665 * breakpoint.c (update_watchpoint): Move code to change
1666 the enable state of breakpoint from here ...
1667 (do_enable_breakpoint): ... to here.
1668
35bef4fd
TT
16692011-04-26 Andrew Gontarek <andrewg@cray.com>
1670
78290264
PP
1671 * valprint.c (val_print_array_elements): Fixed poor performance
1672 of printing very large arrays with repeat_count_threshold set
1673 to unlimited. New comment.
35bef4fd 1674
38a714bb
TT
16752011-04-29 Tom Tromey <tromey@redhat.com>
1676
1677 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1678 (mi_parse): Likewise.
1679 * breakpoint.c (break_range_command): Use sizeof char*, not
1680 char**.
1681 (create_breakpoint): Likewise.
1682 (parse_breakpoint_sals): Likewise.
1683
eb73ad13
PA
16842011-04-29 Pedro Alves <pedro@codesourcery.com>
1685
1686 * linux-nat.c (linux_child_remove_fork_catchpoint)
1687 (linux_child_remove_vfork_catchpoint)
1688 (linux_child_remove_exec_catchpoint): New functions.
1689 (linux_target_install_ops): Install them.
1690
d65aec65
PM
16912011-04-29 Phil Muldoon <pmuldoon@redhat.com>
1692
1693 PR mi/12531
1694
1695 * varobj.c (install_default_visualizer): Do not install a
1696 visualizer if the varobj is CPLUS_FAKE_CHILD.
1697 (construct_visualizer): Likewise.
1698
165195f4
JK
16992011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1700
1701 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1702 case insensitive comparison.
1703
30852783
UW
17042011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
1705
1706 * infrun.c (proceed): Revert previous change.
1707 (resume): Instead, handle the case of signal delivery while stepping
1708 off a breakpoint location here, and only if software single-stepping
1709 is used. Handle nested signals.
1710
7ff120b4
YQ
17112011-04-28 Yao Qi <yao@codesourcery.com>
1712
1713 * arm-tdep.c (copy_unmodified): Rename to ...
1714 (arm_copy_unmodified): .. this. New.
1715 (copy_preload): Move common part to ...
1716 (install_preload): .. this. New.
1717 (arm_copy_preload): New.
1718 (copy_preload_reg): Move common part to ...
1719 (install_preload_reg): ... this. New.
1720 (arm_copy_preload_reg): New.
1721 (copy_b_bl_blx): Move common part to ...
1722 (install_b_bl_blx): .. this. New.
1723 (arm_copy_b_bl_blx): New.
1724 (copy_bx_blx_reg): Move common part to ...
1725 (install_bx_blx_reg): ... this. New.
1726 (arm_copy_bx_blx_reg): New.
1727 (copy_alu_reg): Move common part to ...
1728 (install_alu_reg): ... this. New.
1729 (arm_copy_alu_reg): New.
1730 (copy_alu_shifted_reg): Move common part to ...
1731 (install_alu_shifted_reg): ... this. New.
1732 (copy_ldr_str_ldrb_strb): Move common part to ...
1733 (install_ldr_str_ldrb_strb): ... this. New.
1734 (arm_copy_ldr_str_ldrb_strb): New.
1735 (copy_copro_load_store): Move some common part to ...
1736 (install_copy_copro_load_store): ... this. New.
1737 (arm_copy_copro_load_store): New.
1738 (copy_svc): Delete.
1739 (arm_copy_svc): Renamed from copy_svc.
1740 (copy_undef): Delete.
1741 (arm_copy_undef): Renamed from copy_undef.
1742 (decode_ext_reg_ld_st): Delete.
1743 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1744 (decode_svc_copro): Delete.
1745 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1746 (copy_copro_load_store, copy_alu_imm): update callers.
1747 (copy_extra_ld_st, copy_block_xfer): Likewise.
1748 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1749 (decode_miscellaneous, decode_dp_misc): Likewise.
1750 (decode_ld_st_word_ubyte, decode_media): Likewise.
1751 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1752 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1753 (decode_unconditional, decode_miscellaneous): Likewise.
1754 (decode_media, decode_b_bl_ldmstm): Likewise.
1755 (arm_process_displaced_insn): Likewise..
1756 (decode_misc_memhint_neon): Delete.
1757 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1758 (decode_miscellaneous): Delete.
1759 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1760 (decode_dp_misc): Delete.
1761 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1762 (decode_ld_st_word_ubyte): Delete.
1763 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1764 (decode_media): Delete.
1765 (arm_decode_media): Renamed from decode_media.
1766 (decode_b_bl_ldmstm): Delete.
1767 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1768 (decode_ext_reg_ld_st): Delete.
1769 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1770 (decode_unconditional): Delete.
1771 (arm_decode_unconditional): Renamed from decode_unconditional.
1772
559a7a62
JK
17732011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 Case insensitive lookups implementation.
1776 * dwarf2read.c: Include ctype.h.
1777 (struct mapped_index): New field version.
1778 (mapped_index_string_hash): New parameter index_version. New comment
1779 for it. Call tolower appropriately.
1780 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1781 Choose the right index version for mapped_index_string_hash.
1782 (dwarf2_read_index): Support also the index version 5. Initialize the
1783 new struct mapped_index field version.
1784 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1785 (find_slot): Explain the version needs. Pass INT_MAX for the new
1786 parameter.
1787 (write_psymtabs_to_index): Produce version 5.
1788 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1789 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1790 * psymtab.c (lookup_partial_symbol): Find the
1791 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1792 entries.
1793 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1794 NAME lowercasing.
1795 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1796 (completion_list_add_name): New variable ncmp, initialize it, use it.
1797 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1798 * utils.c (strcmp_iw): Support case_sensitive_off.
1799 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1800 New function comment part. New variables saved_string1,
1801 saved_string2 and case_pass. Add a proper second pass.
1802
681bf369
JK
18032011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1804
1805 Replace re_comp/re_exec by regcomp/regexec.
1806 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1807 (search_symbols_name_matches): Use them, use regexec.
1808 (search_symbols): New variable retval_chain, adjust the use of
1809 old_chain against it. Replace re_comp by regcomp. Use the new struct
1810 search_symbols_data fields, use regexec instead of re_exec.
1811
b11b1f88
JK
18122011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 Format the code for the next patch.
1815 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1816 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1817 New variables c1 and c2.
1818
2484c66b
UW
18192011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1820
1821 * infrun.c (proceed): Do not single-step into signal delivery
1822 when stepping off a breakpoint location.
1823 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1824 (insert_step_resume_breakpoint_at_caller): Likewise.
1825 (insert_step_resume_breakpoint_at_sal): Likewise.
1826 (insert_longjmp_resume_breakpoint): Likewise.
1827
47423772
YQ
18282011-04-27 Yao Qi <yao@codesourcery.com>
1829
1830 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1831
13bdd2e7
JB
18322011-04-27 Joel Brobecker <brobecker@adacore.com>
1833
1834 * procfs.c (procfs_pass_signals): Fix advance declaration.
1835
2455069d
UW
18362011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1837
1838 * target.h (struct target_ops): Remove to_notice_signals;
1839 add to_pass_signals.
1840 (target_notice_signals): Remove.
1841 (target_pass_signals): Add prototype.
1842 * target.c (update_current_target): Remove to_notice_signals;
1843 mention to_pass_signals.
1844 (target_pass_signals): New function.
1845 (debug_to_notice_signals): Remove.
1846 (setup_target_debug): Do not install debug_to_notice_signals.
1847
1848 * infrun.c (signal_pass): New global.
1849 (resume): Call target_pass_signals.
1850 (handle_inferior_event): Report all signals while stepping over
1851 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1852 are re-inserted when stepping over a signal handler.
1853 (signal_cache_update): New function.
1854 (signal_stop_update): Call it.
1855 (signal_print_update): Likewise.
1856 (signal_pass_update): Likewise.
1857 (handle_command): Call signal_cache_update and target_pass_signals
1858 instead of target_notice_signals.
1859 (_initialize_infrun): Initialize signal_pass.
1860
1861 * linux-nat.c (pass_mask): New global.
1862 (linux_nat_pass_signals): New function.
1863 (linux_nat_create_inferior): Report all signals initially.
1864 (linux_nat_attach): Likewise.
1865 (linux_nat_resume): Use pass_mask to decide whether to directly
1866 handle an inferior signal.
1867 (linux_nat_wait_1): Likewise.
1868 (linux_nat_add_target): Install to_pass_signals callback.
1869
1870 * nto-procfs.c (notice_signals): Remove.
1871 (procfs_resume): Do not call notice_signals.
1872 (procfs_notice_signals): Remove.
1873 (procfs_pass_signals): New function.
1874 (init_procfs_ops): Install to_pass_signals callback instead of
1875 to_notice_signals callback.
1876 (_initialize_procfs): Report all signals initially.
1877
1878 * procfs.c (procfs_notice_signals): Remove.
1879 (procfs_pass_signals): New function.
1880 (procfs_target): Install to_pass_signals callback instead of
1881 to_notice_signals callback.
1882 (register_gdb_signals): Remove.
1883 (procfs_debug_inferior): Report all signals initially.
1884 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1885
1886 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1887 parameters; use them instead of calling signal_..._state routines.
1888 (remote_notice_signals): Remove.
1889 (remote_start_remote): Report all signals initially.
1890 (remote_resume): Do not call remote_pass_signals.
1891 (_initialize_remote): Install to_pass_signals callback instead of
1892 to_notice_signals callback.
1893
46c6471b
PA
18942011-04-27 Pedro Alves <pedro@codesourcery.com>
1895
1896 * breakpoint.c (user_settable_breakpoint): Delete.
1897 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1898 (delete_command): Check user_breakpoint_p instead of looking at
1899 the breakpoint's type.
1900 (disable_command): Ditto.
1901 (enable_command): Ditto.
1902 (delete_trace_command): Use user_breakpoint_p instead of looking
1903 at the breakpoint number directly. When checking if there are
1904 user visible tracepoints, in order to know whether to ask the user
1905 for confirmation, check whether the breakpoint is actually a
1906 tracepoint.
1907
f6d90398
VP
19082011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1909
1910 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1911 compilation.
1912
8d3788bd
VP
19132011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1914
1915 MI breakpoint notifications.
1916
f33edef8
PP
1917 * annotate.c (breakpoint_changed): Adjust parameter type.
1918 * breakpoint.c (set_breakpoint_condition): Adjust to change
1919 in breakpoint_modified type.
1920 (breakpoint_set_commands): Likewise.
1921 (do_map_commands_command): Likewise.
1922 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1923 changed after bumping hit count.
1924 (bpstat_stop_status): Likewise.
1925 (print_one_breakpoint_location): Don't wrap in tuple here.
1926 (print_one_breakpoint): Always print individual locations.
1927 For locations, use unnamed tuple.
1928 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1929 has changed.
1930 (create_catchpoint, create_syscall_event_catchpoint): Call
1931 breakpoint_created obsever.
1932 (mention): Don't call breakpoint_created observer.
1933 (create_breakpoint_sal): Call breakpoint_created observer.
1934 (create_breakpoint, watch_command_1): Likewise.
1935 (create_ada_exception_breakpoint): Likewise.
1936 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1937 (locations_are_equal): New.
1938 (update_breakpoint_locations): If locations were changed, notify.
1939 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1940 Call breakpoint_modified observer.
1941
1942 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1943 (mi_cmd_break_insert): Don't set observers for modify and delete.
1944 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1945 (mi_breakpoint_created, mi_breakpoint_deleted)
1946 (mi_breakpoint_modified): New.
1947 (mi_interpreter_init): Hook the above.
1948 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1949 while -break-* commands are executing.
1950 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1951 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1952 (mi_redirect): New.
1953 (mi_ui_out_impl): Hook in mi_redirect.
1954 (mi_field_skip): True to the name, skip the field, don't output
1955 a field with an empty value.
1956
1957 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1958 (gdbpy_breakpoint_deleted): Adjust.
1959 * tui/tui-hooks.c (tui_event_create_breakpoint)
1960 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 1961
a8f42b45
UW
19622011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1963
1964 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1965 (procfs_remove_hw_watchpoint): Likewise.
1966
57e12211
TT
19672011-04-26 Michael Walle <michael@walle.cc>
1968
1969 * remote.c (remote_start_remote): Ack packet after sending the
1970 interrupt sequence.
1971
af96c192
YQ
19722011-04-26 Yao Qi <yao@codesourcery.com>
1973
f33edef8
PP
1974 * linux-nat.c: Move common macros to ...
1975 Include linux-ptrace.h.
1976 * common/linux-ptrace.h: ... here. New.
af96c192 1977
3e03848b
JK
19782011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1979
1980 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1981 !objfile_has_partial_symbols. New comment.
1982 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1983 SYM_READ_PSYMBOLS is not present. Extend the comment.
1984 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1985
1ae0d051
JK
19862011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1987
1988 * defs.h (ENUM_BITFIELD): Remove.
1989
03f2bd59
JK
19902011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 Eli Zaretskii <eliz@gnu.org>
1992
1993 * NEWS: Document the new gdbserver --once option.
1994
4161fbb0
JZ
19952011-04-21 Jie Zhang <jzhang918@gmail.com>
1996
1997 * MAINTAINERS: Update my email address.
1998
bcb28afc
PM
19992011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2000
2001 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2002 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2003 function call if __STDC_ISO_10646__ macro is defined.
2004 (intermediate_encoding): New prototype.
2005 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2006 to generate compile time error for unsupported gdb_wchar_t size.
2007 (ENDIAN_SUFFIX): New macro.
2008 (intermediate_encoding): New function.
2009
7b08b9eb
JK
20102011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2011
2012 * ada-lang.c (struct add_partial_datum): Update the comment for
2013 expand_partial_symbol_name.
2014 (ada_add_partial_symbol_completions): Rename to ...
2015 (ada_expand_partial_symbol_name): ... here, change return type, update
2016 function comment, call symbol_completion_match instead of
2017 symbol_completion_add.
2018 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2019 and ada_expand_partial_symbol_name.
2020 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2021 FILE_MATCHER.
2022 (dw2_map_symbol_names): Remove.
2023 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2024 * psymtab.c (map_symbol_names_psymtab): Remove.
2025 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2026 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2027 order.
2028 (psym_functions): Unlist map_symbol_names_psymtab.
2029 (map_partial_symbol_names): Rename to ...
2030 (expand_partial_symbol_names): ... here, change the FUN type, call
2031 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2032 * psymtab.h (map_partial_symbol_names): Rename to ...
2033 (expand_partial_symbol_names): ... here, change the FUN type.
2034 * symfile.h (struct quick_symbol_functions): Update the description of
2035 expand_symtabs_matching. Remove map_symbol_names.
2036 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2037 (struct add_name_data): Update the comment for
2038 expand_partial_symbol_name.
2039 (add_partial_symbol_name): Rename to ...
2040 (expand_partial_symbol_name): ... here. Replace
2041 completion_list_add_name call by strncmp.
2042 (default_make_symbol_completion_list_break_on): Use now
2043 expand_partial_symbol_names and expand_partial_symbol_name.
2044 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2045
90476074
TT
20462011-04-20 Tom Tromey <tromey@redhat.com>
2047
2048 * dwarf2read.c (save_gdb_index_command): Replace format
2049 documentation with a pointer to the manual.
2050
c21236dc
PA
20512011-04-20 Pedro Alves <pedro@codesourcery.com>
2052
2053 * regcache.c: Include remote.h.
2054 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2055 (regcache_dump): Handle regcache_dump_remote.
2056 (maintenance_print_remote_registers): New function.
2057 (_initialize_regcache): Install "maint print remote-registers"
2058 command.
2059 * remote.c (map_regcache_remote_table): New function, factored out
2060 from ...
2061 (init_remote_state): ... here.
2062 (remote_register_number_and_offset): New.
2063 * remote.h (remote_register_number_and_offset): Declare.
2064
b78974c3
PA
20652011-04-20 Pedro Alves <pedro@codesourcery.com>
2066
2067 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2068 null_ptid, assume and allow a NULL address space, instead of
2069 asking the target for the ptid's address space.
2070 * infrun.c (ptid_is_pid): Remove assertion.
2071
7a9dd1b2
TT
20722011-04-19 Tom Tromey <tromey@redhat.com>
2073
2074 * windows-tdep.c (windows_xfer_shared_library):
2075 * windows-nat.c (get_module_name, windows_make_so):
2076 * v850-tdep.c (v850_handle_pushm):
2077 * utils.c (null_cleanup, gdb_realpath):
2078 * ui-out.c (get_next_header):
2079 * tracepoint.c (clear_traceframe_info):
2080 * symtab.c (lookup_symtab):
2081 * serial.h (struct serial_ops):
2082 * mipsread.c (read_alphacoff_dynamic_symtab):
2083 * infcmd.c (print_return_value):
2084 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2085 * f-exp.y (parse_number):
2086 * exceptions.c (catch_exceptions):
2087 * dummy-frame.c (dummy_frame_this_id):
2088 * defs.h (struct cleanup):
2089 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2090 * arm-tdep.c (arm_push_dummy_call):
2091 * amd64-tdep.h (amd64_collect_xsave):
2092 * amd64-tdep.c (amd64_collect_xsave):
2093 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2094 * README (typing): Remove duplicate words.
2095 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2096 * infrun.c (siginfo_value_read): Fix typo.
2097 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2098 * top.c (source_line_number): Add comma.
2099
9941e0c5
MK
21002011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
2101
2102 * thread.c (any_live_thread_of_process): Prioritize threads
2103 that are not executing.
2104 * gdbthread.h (any_live_thread_of_process): Update comment
2105 as per above change.
2106
ed4b0e6a
AS
21072011-04-19 Andreas Schwab <schwab@linux-m68k.org>
2108
2109 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2110 (scan_xcoff_symtab): Likewise.
2111
9b13a2db
PM
21122011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2113
2114 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2115 inside if clause.
2116
1c6e1b0d
PM
21172011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2118 Pedro Alves <pedro@codesourcery.com>
2119
2120 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2121 variables to simplify code and avoid == operator at end of
2122 line as this is against GNU coding standards.
2123
74de0234
PM
21242011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2125
2126 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2127 lm_name to name_lm to avoid conflict with lm_name function.
2128
b23518f0
PM
21292011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2130
2131 ARI fixes: Use only lowercase function name for static functions.
2132 * nto-tdep.c (LM_ADDR): Rename to...
2133 (lm_addr): New function name.
2134 (nto_relocate_section_addresses): Adapt to change above.
2135 * solib-sunos.c (LM_ADDR): Rename to...
2136 (lm_addr): New function name.
2137 (LM_NEXT): Rename to...
2138 (lm_next): New function name.
2139 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2140 function name changes above.
2141 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2142 (lm_addr_from_link_map): New function name.
2143 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2144 (has_lm_dynamic_from_link_map): New function name.
2145 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2146 (lm_dynamic_from_link_map): New function name.
2147 (LM_ADDR_CHECK): Rename to...
2148 (lm_addr_check): New function name.
2149 (LM_NEXT): Rename to...
2150 (lm_next): New function name.
2151 (LM_PREV): Rename to...
2152 (lm_prev): New function name.
2153 (LM_NAME): Rename to...
2154 (lm_name): New function name.
2155 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2156 (ignore_first_link_map_entry): New function name.
2157 (svr4_keep_data_in_core): Adapt to function name changes above.
2158 (svr4_current_sos): Likewise.
2159 (enable_break): Likewise.
2160 (svr4_relocate_section_addresses): Likewise.
2161
1448a0a2
PM
21622011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
2163
2164 ARI cleanup.
2165 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2166 sprintf. Simplify code and avoid loosing memory.
2167 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2168 (call0_frame_cache): Remove && operator from end of line.
2169
02835898
JK
21702011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 Fix libraries displacement if they change whether they were prelinked.
2173 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2174 does not match. Comment why.
2175
9a845ea2
JK
21762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 * corelow.c: Include wrapper.h.
2179 (core_open): Call now gdb_target_find_new_threads.
2180 * wrapper.c: Include target.h.
2181 (gdb_target_find_new_threads): New.
2182 * wrapper.h (gdb_target_find_new_threads): New declaration.
2183
254f582e
JK
21842011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2185
2186 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2187 even if !TARGET_HAS_EXECUTION.
2188
63524580
JK
21892011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2190
2191 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2192 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2193 bfd_get_synthetic_symtab.
2194 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2195 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2196 parameter parent, remove the call to add_separate_debug_objfile.
2197 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2198 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2199 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2200 parent, new comment for it, call add_separate_debug_objfile for it.
2201 (symbol_file_add_separate): Pass objfile as the parameter parent,
2202 remove the call to add_separate_debug_objfile.
2203 (symbol_file_add_from_bfd): New parameter parent, pass it.
2204 (symbol_file_add): Pass NULL to the new parameter parent.
2205 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2206
90359a16
JK
22072011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2210 BSF_SYNTHETIC.
2211
626e7282
JK
22122011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2213
2214 Fix Python access to inlined frames.
2215 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2216 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2217
cf31e6f9
TT
22182011-04-15 Tom Tromey <tromey@redhat.com>
2219
2220 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2221
c8d895f1
GB
22222011-04-15 Gary Benson <gbenson@redhat.com>
2223
2224 * MAINTAINERS: Add myself to write-after-approval section.
2225
56a9aa1d
MF
22262011-04-14 Mike Frysinger <vapier@gentoo.org>
2227
2228 * remote-sim.c (sim_command_completer): New function.
2229 (_initialize_remote_sim): Set completer to sim_command_completer.
2230
ba770c9c
TJB
22312011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2232
2233 * breakpoint.c (print_exception_catchpoint): Rename to ...
2234 (print_it_exception_catchpoint): ... this.
2235 (gnu_v3_exception_catchpoint_ops): Update with new name
2236 for print_it_exception_catchpoint.
2237
51bf2553
EBM
22382011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
2239
2240 * MAINTAINERS: Add myself for write after approval privileges.
2241
d242658c
MP
22422011-04-13 Marek Polacek <mpolacek@redhat.com>
2243
2244 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2245
4a4106ca
TJB
22462011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2247
2248 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2249
26063d49
TJB
22502011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
2251
2252 * breakpoint.c (save_breakpoints): Verify whether
2253 breakpoint_ops.print_recreate is defined before calling it.
2254
7782b183
GB
22552011-04-11 Gary Benson <gbenson@redhat.com>
2256
2257 Fix failure with --enable-maintainer-mode.
2258 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2259
e8930875
JK
22602011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2261
2262 Code cleanup.
2263 * symtab.c (search_symbols): Reorder the KIND description in the
2264 function comment. Remove the unused 4th element of types, types2,
2265 types3 and types4. New gdb_assert on KIND.
2266 (symtab_symbol_info): Remove the unused 4th element of classnames.
2267 New gdb_assert on KIND.
2268 * symtab.h (enum search_domain): New warning in the enum comment.
2269 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2270 TYPES_DOMAIN.
2271
b4f2f049
JK
22722011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 Fix crash of gdb save-index on a STABS file.
2275 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2276 PSYMTABS_ADDRMAP.
2277
60d5a603
JK
22782011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2279
2280 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2281 * dwarf2read.c: Include ctype.h.
2282 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2283 functions.
2284 (dwarf2_add_field): Fix new_field->accessibility by calling
2285 dwarf2_default_access_attribute. Restructure setting accessibility
2286 vs. virtuality.
2287 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2288 is_private and is_protected by calling
2289 dwarf2_default_access_attribute.
2290
e0f68161
KB
22912011-04-08 Kevin Buettner <kevinb@redhat.com>
2292
2293 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2294 to the initialization.
2295
2e1aae43
SE
22962011-04-08 Steve Ellcey <sje@cup.hp.com>
2297
2298 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2299 initalization.
2300
c6ca3dab
PM
23012011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
2302
2303 Remove support for old Cygwin 1.5 versions.
2304 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2305 function on old Cygwin version.
2306 * windows-nat.c: Remove cygwin version check and always define
2307 __USEWIDE for Cygwin compilation.
2308
bd18283a
YQ
23092011-04-07 Yao Qi <yao@codesourcery.com>
2310
2311 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2312 and TO.
2313 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2314 (arm_copy_svc): Remove parameters INSN and TO.
2315 (decode_svc_copro): Update caller.
2316 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2317 from function pointer `copy_svc_os'.
2318
8c8dba6d
YQ
23192011-04-07 Yao Qi <yao@codesourcery.com>
2320
2321 * arm-tdep.c (cleanup_branch): Set a correct return address in
2322 LR for ARM and Thumb.
2323
59d7bcaf
JK
23242011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 Code cleanup.
2327 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2328 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2329 in the function comment, a new note on values compatibility.
2330 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2331 * symtab.h (SYMBOL_HASH_NEXT): New.
2332
e7db58ea
TJB
23332011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
2334
2335 * ppc-linux-nat.c (check_condition): Add len output parameter.
2336 Set it based on the memory region referenced in the condition
2337 expression. Update all callers.
2338
9f743ef6
JK
23392011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Fix crash regression on systems featuring .gdb_index.
2342 * objfiles.c (free_objfile): Move the
2343 forget_cached_source_info_for_objfile call earlier. Comment it.
2344 Extend the comment for objfile_free_data.
2345
9182c5bc
JK
23462011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2347
2348 Fix regression of displaying the debug format.
2349 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2350 subfile.
2351
04bd08de
TT
23522011-04-04 Tom Tromey <tromey@redhat.com>
2353
2354 * cli/cli-interp.c (struct captured_execute_command_args):
2355 Remove.
2356 (do_captured_execute_command): Remove.
2357 (safe_execute_command): Use TRY_CATCH.
2358 * cli/cli-script.c (struct wrapped_read_command_file_args):
2359 Remove.
2360 (wrapped_read_command_file): Remove.
2361 (script_from_file): Use TRY_CATCH.
2362 * exceptions.c (catch_exception): Remove.
2363 * exceptions.h (catch_exception): Remove.
2364 (deprecated_throw_reason): Update comment.
2365 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2366 argument to 'context'.
2367 (mi_execute_command): Use TRY_CATCH.
2368 * remote.c (struct start_remote_args): Remove.
2369 (remote_start_remote): Update; change arguments.
2370 (remote_open_1): Use TRY_CATCH.
2371
58438ac1
TT
23722011-04-04 Tom Tromey <tromey@redhat.com>
2373
2374 * tracepoint.c (scope_info): Update.
2375 * symtab.c (decode_line_spec): Update.
2376 * python/python.c (gdbpy_decode_line): Update.
2377 * linespec.h (decode_line_1): Update.
2378 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2379 (decode_compound, find_method, symtab_from_filename)
2380 (decode_variable): Likewise.
2381 * cli/cli-cmds.c (edit_command): Update.
2382 (list_command): Update.
2383 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2384 argument.
2385 (create_breakpoint): Update.
2386 (until_break_command): Update.
2387 (addr_string_to_sals): Update.
2388 (decode_line_spec_1): Update.
2389
b78a6381
TT
23902011-04-04 Tom Tromey <tromey@redhat.com>
2391
2392 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2393 (do_captured_parse_breakpoint): Remove.
2394 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2395 Use TRY_CATCH directly.
2396
00174a86
TT
23972011-04-04 Tom Tromey <tromey@redhat.com>
2398
2399 * symtab.h (free_symtab): Remove.
2400 (forget_cached_source_info_for_objfile): Declare.
2401 * symmisc.c (free_symtab): Remove.
2402 * source.c (forget_cached_source_info_for_objfile): New function.
2403 (forget_cached_source_info): Use it.
2404 * objfiles.c (free_objfile): Simplify check before calling
2405 clear_current_source_symtab_and_line. Call
2406 forget_cached_source_info_for_objfile.
2407
30cc903e
TT
24082011-04-04 Tom Tromey <tromey@redhat.com>
2409
2410 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2411 (new_symtab): Don't set `free_code' on symtab.
2412 (new_linetable): Properly handle size==0.
2413 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2414 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2415 free_func.
2416 * jv-lang.c (struct jv_per_objfile_data): New.
2417 (jv_per_objfile_free): Free the data.
2418 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2419 (get_java_class_symtab): Set the `dict' field on the
2420 jv_per_objfile_data.
2421 (free_class_block): Remove.
2422 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2423 the symtab.
2424
0c2e6019
TT
24252011-04-04 Tom Tromey <tromey@redhat.com>
2426
2427 * symfile.c (reread_symbols): Update.
2428 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2429 field.
2430 * objfiles.c (allocate_objfile): Update.
2431 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2432 declare.
2433 * cp-namespace.c (lookup_symbol_file): Don't call
2434 lookup_possible_namespace_symbol.
2435 (initialize_namespace_symtab, get_possible_namespace_block)
2436 (free_namespace_block, cp_check_possible_namespace_symbols)
2437 (check_possible_namespace_symbols_loop)
2438 (check_one_possible_namespace_symbol)
2439 (lookup_possible_namespace_symbol): Remove.
2440 (maintenance_cplus_namespace): Replace with notice.
2441 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2442
554d387d
TT
24432011-04-04 Tom Tromey <tromey@redhat.com>
2444
2445 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2446 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2447 * symmisc.c (free_symtab): Don't free debugformat.
2448 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2449 (record_debugformat, record_producer): Document.
2450 * buildsym.c (end_symtab): Don't save debugformat and producer
2451 names on obstack.
2452 (end_symtab): Don't free debugformat and producer fields.
2453 (record_debugformat): Don't call xstrdup.
2454 (record_producer): Likewise.
2455
d4d4db8a
TT
24562011-04-04 Tom Tromey <tromey@redhat.com>
2457
2458 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2459 (source_line_charpos, source_charpos_line): Remove.
2460
8903c50d
TT
24612011-04-04 Tom Tromey <tromey@redhat.com>
2462
2463 * symtab.h (domain_enum): Split in two...
2464 (enum search_domain): New.
2465 (search_symbols): Update.
2466 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2467 redundant declarations.
2468 (search_symbols): Change 'kind' argument to search_domain.
2469 Update.
2470 (print_symbol_info): Likewise.
2471 (symtab_symbol_info): Likewise.
2472 * symfile.h (struct quick_symbol_functions)
2473 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2474 <expand_symtabs_matching>: Likewise.
2475 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2476 (expand_symtabs_matching_via_partial): Update.
2477 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2478 (dw2_expand_symtabs_for_function): Update.
2479 * block.h: Moved anonymous enum...
2480 * defs.h (enum block_enum): ... here. Now named.
2481
d9351f5f 24822011-04-03 Joel Brobecker <brobecker@adacore.com>
2483
2484 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2485 * version.in: Bump version to 7.3.50.20110403-cvs.
2486
d6e00af6
JB
24872011-04-03 Joel Brobecker <brobecker@adacore.com>
2488
2489 * NEWS: Create a new section for the next release branch.
2490 Rename the section of the current branch, now that it has
2491 been cut.
2492
2b9e5ea6
UW
24932011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2494
2495 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2496 for "fpscr" in target description.
2497
0cf03b49
JK
24982011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2499
2500 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2501 initialize it. Delay HASH initialization. Strip the part after open
2502 parenthesis for languages with qualifiers. Call do_cleanups.
2503
5d901a73
TT
25042011-04-01 Tom Tromey <tromey@redhat.com>
2505
2506 * utils.c (report_command_stats): Don't print `-' for negative
2507 number.
2508
b0dd7688
JB
25092011-04-01 Eric Botcazou <ebotcazou@adacore.com>
2510
2511 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2512 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2513 typedefs.
2514
956a9fb9
JB
25152011-04-01 Joel Brobecker <brobecker@adacore.com>
2516
2517 * breakpoint.h (bpdisp_text): Add declaration.
2518 * breakpoint.c (bpdisp_text): Make non-static.
2519 * ada-lang.c: #include "mi/mi-common.h".
2520 (print_it_exception): Rewrite to improve GDB/MI output.
2521
3352110b
PA
25222011-04-01 Pedro Alves <pedro@codesourcery.com>
2523
2524 * arm-tdep.h (struct address_space): Add forward declaration.
2525
18819fa6
UW
25262011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2527
2528 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2529 * arm-tdep.c (arm_override_mode): New global.
2530 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2531 execution mode heuristics.
2532 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2533 second single-step breakpoint if needed, using
2534 arm_insert_single_step_breakpoint.
2535 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2536 ARM execution mode, do not call thumb_get_next_pc_raw.
2537 (arm_get_next_pc): Encode execution mode in return value. Call
2538 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2539 (arm_insert_single_step_breakpoint): New function.
2540 (arm_software_single_step): Call it.
2541 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2542 argument to return execution mode of sigreturn target.
2543 (arm_linux_syscall_next_pc): Use it.
2544 (arm_linux_copy_svc): Update call.
2545 (arm_linux_software_single_step): Call
2546 arm_insert_single_step_breakpoint.
2547
a6e293d1
JK
25482011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2549
2550 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2551 the comment.
2552
a4c8e806
TT
25532011-03-31 Tom Tromey <tromey@redhat.com>
2554
2555 * varobj.c (update_dynamic_varobj_children): Properly handle
2556 errors from iterator.
2557
df5c6c50
JK
25582011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2559
2560 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2561 struct linkage name twice.
2562
1dae3efc
TT
25632011-03-31 Tom Tromey <tromey@redhat.com>
2564
2565 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2566 missing ">" to message.
2567
f4f7ab05
TT
25682011-03-31 Tom Tromey <tromey@redhat.com>
2569
2570 * varobj.c (instantiate_pretty_printer): Remove duplicate
2571 'return'.
2572
fcf250e2
UW
25732011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
2574
2575 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2576 if neither saved value nor register available (e.g. signal frame).
2577
ee6436e3
TJB
25782011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2579
2580 * macroexp.c (expand): Avoid uninitialized variable
2581 compiler warning.
2582
423f41a5
TJB
25832011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2584
2585 * breakpoint.c (break_range_command): Fix typo in comment.
2586
f1310107
TJB
25872011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2588 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2589
2590 Implement support for PowerPC BookE ranged breakpoints.
2591 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2592 * breakpoint.h (struct bp_target_info) <length>: New member
2593 variable.
2594 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2595 instead of struct breakpoint as argument, and also add ASPACE
2596 and BP_ADDR arguments. Update all callers.
2597 (struct breakpoint_ops) <print_one_detail>: New method.
2598 (struct breakpoint) <addr_string_range_end>: New member variable.
2599 * breakpoint.c (breakpoint_location_address_match): Add function
2600 prototype.
2601 (insert_bp_location): Set bl->target_info.length.
2602 (breakpoint_here_p): Call breakpoint_location_address_match.
2603 (moribund_breakpoint_here_p): Likewise.
2604 (regular_breakpoint_inserted_here_p): Likewise.
2605 (breakpoint_thread_match): Likewise.
2606 (bpstat_stop_status): Likewise.
2607 (bpstat_check_location): Move call to
2608 breakpoint_ops.breakpoint_hit to the top.
2609 (print_one_breakpoint_location): Call
2610 breakpoint_ops.print_one_detail if available.
2611 (breakpoint_address_match_range): New function.
2612 (breakpoint_location_address_match): Likewise.
2613 (breakpoint_locations_match): Compare the length field of the
2614 locations too.
2615 (hw_breakpoint_used_count): Count resources used by all locations
2616 in a breakpoint, and use breakpoint_ops.resources_needed if
2617 available.
2618 (breakpoint_hit_ranged_breakpoint): New function.
2619 (resources_needed_ranged_breakpoint): Likewise.
2620 (print_it_ranged_breakpoint): Likewise.
2621 (print_one_ranged_breakpoint): Likewise.
2622 (print_one_detail_ranged_breakpoint): Likewise.
2623 (print_mention_ranged_breakpoint): Likewise.
2624 (print_recreate_ranged_breakpoint): Likewise.
2625 (ranged_breakpoint_ops): New structure.
2626 (find_breakpoint_range_end): New function.
2627 (break_range_command): Likewise.
2628 (delete_breakpoint): Free addr_string_range_end.
2629 (update_breakpoint_locations): Add SALS_END argument. Update
2630 all callers. Calculate breakpoint length if a non-zero SALS_END
2631 is given. Call breakpoint_locations_match instead of
2632 breakpoint_address_match.
2633 (reset_breakpoint): Find SaL of the end of the range if B is a
2634 ranged breakpoint.
2635 (_initialize_breakpoint): Register break-range command.
2636 * defs.h (print_core_address): Add function prototype.
2637 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2638 function.
2639 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2640 (ppc_linux_remove_hw_breakpoint): Likewise.
2641 (_initialize_ppc_linux_nat): Initialize
2642 to_ranged_break_num_registers.
2643 * target.c (update_current_target): Add comment about
2644 to_ranged_break_num_registers.
2645 (target_ranged_break_num_registers): New function.
2646 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2647 New method.
2648 (target_ranged_break_num_registers): Add function prototype.
2649 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2650 * utils.c (print_core_address): ... here.
2651
02d20e4a
UW
26522011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
2653
2654 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2655 variable compiler warning.
2656
ef23e705
TJB
26572011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2658
2659 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2660 code from here ...
2661 (re_set_breakpoint): ... to here ...
2662 (addr_string_to_sals): ... and here.
2663
311e6ab3
PM
26642011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2665
2666 * Makefile.in (SFILES): Add missing C sources.
2667 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2668 Add missing headers.
2669
acd1d99c
MF
26702011-03-29 Mike Frysinger <vapier@gentoo.org>
2671
2672 * .gitignore: New file.
2673
66ee2731
MF
26742011-03-29 Mike Frysinger <vapier@gentoo.org>
2675
2676 * NEWS: Mention new cfi device simulation.
2677
53832f31
TT
26782011-03-29 Tom Tromey <tromey@redhat.com>
2679
2680 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2681 otherwise anonymous types.
2682 (dwarf2_name): Likewise.
2683 * valops.c (value_struct_elt_for_reference): Refine artificial
2684 type logic. Call error if j==-1.
2685
09b58708
JK
26862011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
2687
2688 Fix false GCC warning.
2689 * infcall.c (find_function_addr): Initialize funaddr.
2690
6023c606
PM
26912011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
2692
2693 Fix mingw compilation with --enable-targets=all.
2694 * remote-mips.c (gdb_usleep.h): Include header.
2695 (mips_enter_debug): Use gdb_usleep instead of sleep.
2696
0e30163f
JK
26972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2698
2699 Support resolution of STT_GNU_IFUNC via breakpoints.
2700 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2701 bp_gnu_ifunc_resolver_return.
2702 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2703 the loop. Support bp_gnu_ifunc_resolver and
2704 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2705 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2706 breakpoints.
2707 (bptype_string, print_one_breakpoint_location): Support
2708 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2709 (user_settable_breakpoint): Return true also for
2710 bp_gnu_ifunc_resolver.
2711 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2712 bp_gnu_ifunc_resolver_return.
2713 (set_breakpoint_location_function): New parameter explicit_loc,
2714 describe it. Call find_pc_partial_function_gnu_ifunc with new
2715 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2716 EXPLICIT_LOC is not set.
2717 (set_raw_breakpoint): Set EXPLICIT_LOC for
2718 set_breakpoint_location_function.
2719 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2720 set_breakpoint_location_function.
2721 (mention): Support bp_gnu_ifunc_resolver and
2722 bp_gnu_ifunc_resolver_return.
2723 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2724 set_breakpoint_location_function.
2725 (update_breakpoint_locations): Remove static.
2726 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2727 bp_gnu_ifunc_resolver_return.
2728 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2729 bp_gnu_ifunc_resolver_return.
2730 (update_breakpoint_locations): New declaration.
2731 * elfread.c: Include gdbthread.h and regcache.h.
2732 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2733 functions.
2734 (elf_gnu_ifunc_fns): Install them.
2735 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2736 (stub_gnu_ifunc_resolver_return_stop): New functions.
2737 (stub_gnu_ifunc_fns): Install them.
2738 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2739 and gnu_ifunc_resolver_return_stop.
2740 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2741
07be84bf
JK
27422011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2743
2744 STT_GNU_IFUNC reader implementation.
2745 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2746 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2747 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2748 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2749 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2750 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2751 (elf_gnu_ifunc_resolve_addr): New.
2752 (elf_symfile_read): Call elf_rel_plt_read.
2753 (elf_gnu_ifunc_fns): New.
2754 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2755 Install elf_gnu_ifunc_fns.
2756 * infcall.c (find_function_return_type): New function.
2757 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2758 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2759 (stub_gnu_ifunc_resolve_name): New functions.
2760 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2761 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2762 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2763
300f8e10
JK
27642011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2765
2766 Code cleanup for later STT_GNU_IFUNC support.
2767 * infcall.c (find_function_addr): Remove variable code, use explicit
2768 dereferences for it. Move VALUE_TYPE initialization later.
2769
11c81455
JK
27702011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2771
2772 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2773 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2774 (clear_pc_function_cache): Clear it.
2775 (find_pc_partial_function): Rename to ...
2776 (find_pc_partial_function_gnu_ifunc): ... this function. New
2777 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2778 (find_pc_partial_function): New wrapper for this function.
2779 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2780
0875794a
JK
27812011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 GDB internal type support for STT_GNU_IFUNC.
2784 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2785 (elf_symtab_read): Set mst_text_gnu_ifunc for
2786 BSF_GNU_INDIRECT_FUNCTION.
2787 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2788 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2789 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2790 nodebug_got_plt_symbol.
2791 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2792 (TYPE_GNU_IFUNC): New.
2793 (struct main_type): New field flag_gnu_ifunc.
2794 (struct builtin_type): New field builtin_func_func.
2795 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2796 nodebug_got_plt_symbol.
2797 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2798 (in_gnu_ifunc_stub): New.
2799 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2800 mst_text_gnu_ifunc.
2801 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2802 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2803 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2804 in_gnu_ifunc_stub.
2805 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2806 * symtab.c (search_symbols): Likewise.
2807 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2808 and mst_slot_got_plt.
2809 (in_gnu_ifunc_stub): New declaration.
2810
d0fb5eae
JK
28112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 Support a ring of related breakpoints.
2814 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2815 other functions, add gdb_assert.
2816 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2817 watchpoint_del_at_next_stop.
2818 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2819 (bpstat_stop_status): Handle ring in related_breakpoint.
2820 (set_raw_breakpoint_without_location): Initialize ring in
2821 related_breakpoint.
2822 (delete_breakpoint): Handle ring in related_breakpoint, use
2823 watchpoint_del_at_next_stop.
2824 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2825
9cded63f
TT
28262011-03-28 Tom Tromey <tromey@redhat.com>
2827
2828 PR symtab/12441:
2829 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2830 with `language_minimal'.
2831
467d42c4
UW
28322011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2833
2834 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2835 instead of checking for STT_ARM_TFUNC symbol type.
2836
62853458
TT
28372011-03-25 Tom Tromey <tromey@redhat.com>
2838
2839 * linespec.c (symbol_found): Restore line-based result for
2840 non-LOC_LABEL symbols.
2841
a7417d46
KT
28422011-03-25 Kai Tietz <ktietz@redhat.com>
2843
2844 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2845 instead of strcmp for comparison.
2846 (tui_source_is_displayed): Likewise.
2847 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2848
55f1336d
TT
28492011-03-24 Mark Wielaard <mjw@redhat.com>
2850
f33edef8
PP
2851 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2852 complaint.
2853 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2854 (find_partial_die_in_comp_unit): Likewise in comment.
2855 (read_attribute_value): Likewise.
2856 (lookup_die_type): Likewise.
2857 (dwarf_form_name): Likewise.
2858 (dump_die_shallow): Likewise.
2859 (follow_die_ref_or_sig): Likewise.
55f1336d 2860
9ef07c8c
TT
28612011-03-24 Tom Tromey <tromey@redhat.com>
2862
2863 PR breakpoints/11816:
2864 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2865 (decode_compound): Update.
2866 (find_function_symbol): New function.
2867 (decode_dollar): Update.
2868 (decode_label): Add 'function_symbol' parameter. Handle
2869 function-relative labels.
2870 (decode_variable): Update.
2871 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2872 not its line. Set `special_display' and canonical name for
2873 labels.
2874
56435ebe
TT
28752011-03-24 Tom Tromey <tromey@redhat.com>
2876
2877 * linespec.h (struct linespec_result) <special_display>: New
2878 field.
2879 * breakpoint.h (struct breakpoint) <display_canonical>: New
2880 field.
2881 * breakpoint.c (print_breakpoint_location): Respect
2882 display_canonical.
2883 (create_breakpoint_sal): Add 'display_canonical' parameter.
2884 (create_breakpoints_sal): Update.
2885 (create_breakpoint): Update.
2886
7efd8fc2
TT
28872011-03-24 Tom Tromey <tromey@redhat.com>
2888
2889 * symtab.c (decode_line_spec): Update.
2890 * linespec.c (build_canonical_line_spec): Change type of
2891 'canonical'.
2892 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2893 (find_method, decode_all_digits, decode_dollar, decode_label)
2894 (symbol_found): Likewise.
2895 (init_linespec_result): New function.
2896 * breakpoint.c (struct captured_parse_breakpoint_args)
2897 <canonical_p>: New field, replaces addr_string_p.
2898 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2899 'addr_string'.
2900 (parse_breakpoint_sals): Likewise.
2901 (do_captured_parse_breakpoint): Update.
2902 (create_breakpoint): Use struct linespec_result.
2903 (until_break_command): Update.
2904 (breakpoint_re_set_one): Update.
2905 (decode_line_spec_1): Update.
2906 * linespec.h (struct linespec_result): New.
2907 (init_linespec_result): Declare.
2908
788c8b10
PA
29092011-03-23 Pedro Alves <pedro@codesourcery.com>
2910
2911 * regcache.c (regcache_raw_read): If the target didn't supply a
2912 given raw register, mark it as unavailable.
2913
0ba1096a
KT
29142011-03-23 Kai Tietz <ktietz@redhat.com>
2915
2916 * breakpoint.c (clear_command): Use filename_cmp
2917 instead of strcmp for comparison.
2918 * buildsym.c (watch_main_source_file_lossage): Likewise.
2919 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2920 checking just for slash.
2921 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2922 strrchr and filename_cmp instead of strcmp for filenames.
2923 (add_old_header_file): Use filename_cmp
2924 instead of strcmp for comparison.
2925 * exec.c (exec_set_section_address): Likewise.
2926 * macrotab.c (macro_lookup_inclusion): Likewise.
2927 (macro_lookup_inclusion): Likewise.
2928 * elfread.c (_initialize_elfread): Likewise.
2929 (elfstab_offset_sections): Likewise.
2930 (elfstab_offset_sections): Use lbasename instead of
2931 strrchr.
2932 * mdebugread.c (parse_partial_symbols): Likewise.
2933 (arse_partial_symbols): Use filename_(n)cmp instead of
2934 str(n)cmp for comparison.
2935 * minsyms.c (lookup_minimal_symbol): Likewise.
2936 * psymtab.c (read_psymtabs_with_filename): Likewise.
2937 * solib.c (solib_read_symbols): Likewise.
2938 (reload_shared_libraries_1): Likewise.
2939 * symmisc.c (maintenance_print_symbols): Likewise.
2940 * symfile.c (separate_debug_file_exists): Likewise.
2941 (reread_symbols): Likewise.
2942 (find_separate_debug_file_by_debuglink): Likewise.
2943 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2944 * source.c (add_path): Likewise.
2945 * symtab.c (filename_seen): Likewise.
2946 (file_matches): Likewise.
2947 (print_symbol_info): Likewise.
2948 (maybe_add_partial_symtab_filename): Likewise.
2949 (make_source_files_completion_list): Likewise.
2950 * xml-syscall.c (init_sysinfo): Likewise.
2951 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2952 IS_DIR_SEPARATOR for checking for trailing path separator.
2953
dd90784c
JK
29542011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2955
2956 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2957 label abort_expression.
2958 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2959 DWARF_VALUE_OPTIMIZED_OUT.
2960
3167638f
JK
29612011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2962
2963 Code cleanup.
2964 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2965 to linkage_name. Invert its value. Update the function comment.
2966 (c_type_print_varspec_suffix): Invert it at the caller.
2967 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2968
ce406537
PA
29692011-03-22 Pedro Alves <pedro@codesourcery.com>
2970
2971 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2972 errors when reading the `stop_pc'.
2973 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2974 get_frame_pc.
2975
da5d4055
PM
29762011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2977
2978 * NEWS: Document gdb.Write stream keyword.
2979
29e0eb9c
JK
29802011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2981
2982 Revert:
2983 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2984 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2985 (dwarf2_add_field): Fix new_field->accessibility for
2986 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2987
05775840
PM
29882011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2989
f33edef8 2990 PR python/12183
05775840
PM
2991
2992 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2993 other error classes. Do not print stack trace.
2994
a0cb7835
JK
29952011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2996
2997 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2998 (dwarf2_add_field): Fix new_field->accessibility for
2999 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3000
d19f7eee
UW
30012011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
3002
3003 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3004 encountering a load via a non-SP register.
3005
4a2fbb50
UW
30062011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
3007
3008 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3009 field in returned unwinder.
3010
3489610d
JB
30112012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3012
3013 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3014
8c1a34e7
JB
30152012-03-21 Joel Brobecker <brobecker@adacore.com>
3016
3017 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3018 of xmalloc.
3019
8fbca658
PA
30202012-03-18 Pedro Alves <pedro@codesourcery.com>
3021
3022 * frame.c (frame_unwind_register): Throw an error if unwinding the
3023 register failed.
3024 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3025 an unwind stop reason.
3026 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3027 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3028 UNWIND_UNAVAILABLE>: New.
3029 * inline-frame.c (inline_frame_unwind): Install
3030 default_frame_unwind_stop_reason.
3031 * frame-unwind.c: Include "exceptions.h".
3032 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3033 (default_frame_unwind_stop_reason): New.
3034 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3035 (default_frame_unwind_stop_reason): Declare.
3036 (struct frame_unwind) <stop_reason>: New function pointer.
3037
3038 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3039 * dwarf2-frame.c: Include exceptions.h.
3040 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3041 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3042 computing the CFA. If such an error was thrown, set
3043 unavailable_retaddr.
3044 (dwarf2_frame_unwind_stop_reason): New.
3045 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3046 unavailable.
3047 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3048 (dwarf2_signal_frame_unwind): Ditto.
3049
3050 * amd64-tdep.c: Include "exceptions.h".
3051 (struct amd64_frame_cache): New field "base_p".
3052 (amd64_init_frame_cache): Clear it.
3053 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3054 Avoid reading registers with functions that throw if the register
3055 is not necessary to compute the frame base.
3056 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3057 swallowing NOT_AVAILABLE_ERROR.
3058 (amd64_frame_unwind_stop_reason): New.
3059 (amd64_frame_this_id): Don't build a frame id if the frame base
3060 was unavailable.
3061 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3062 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3063 base_p if the frame base was computable.
3064 (amd64_sigtramp_frame_unwind_stop_reason): New.
3065 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3066 frame base was unavailable.
3067 (amd64_sigtramp_frame_unwind): Install
3068 amd64_sigtramp_frame_unwind_stop_reason.
3069 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3070 base_p if the frame base was computable.
3071 (amd64_epilogue_frame_unwind_stop_reason): New.
3072 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3073 frame base was unavailable.
3074 (amd64_epilogue_frame_unwind): Install
3075 amd64_epilogue_frame_unwind_stop_reason.
3076 * i386-tdep.c: Include "exceptions.h".
3077 (struct i386_frame_cache): New field "base_p".
3078 (i386_init_frame_cache): Clear it.
3079 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3080 Avoid reading registers with functions that throw if the register
3081 is not necessary to compute the frame base.
3082 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3083 swallowing NOT_AVAILABLE_ERROR.
3084 (i386_frame_unwind_stop_reason): New.
3085 (i386_frame_this_id): Don't build a frame id if the frame base was
3086 unavailable.
3087 (i386_frame_prev_register): Handle unavailable SP.
3088 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3089 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3090 base_p if the frame base was computable.
3091 (i386_epilogue_frame_unwind_stop_reason): New.
3092 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3093 base was unavailable.
3094 (i386_epilogue_frame_unwind): Install
3095 i386_epilogue_frame_unwind_stop_reason.
3096 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3097 base_p if the frame base was computable.
3098 (i386_sigtramp_frame_unwind_stop_reason): New.
3099 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3100 base was unavailable.
3101 (i386_sigtramp_frame_unwind): Install
3102 i386_sigtramp_frame_unwind_stop_reason.
3103 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3104 type's size, not the register's.
3105 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3106
3107 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3108 default_frame_unwind_stop_reason.
3109 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3110 (alpha_heuristic_frame_unwind): Ditto.
3111 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3112 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3113 * avr-tdep.c (avr_frame_unwind): Ditto.
3114 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3115 Ditto.
3116 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3117 * frv-tdep.c (frv_frame_unwind): Ditto.
3118 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3119 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3120 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3121 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3122 (hppa_stub_frame_unwind): Ditto.
3123 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3124 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3125 (ia64_libunwind_frame_unwind)
3126 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3127 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3128 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3129 * m32c-tdep.c (m32c_unwind): Ditto.
3130 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3131 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3132 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3133 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3134 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3135 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3136 * mep-tdep.c (mep_frame_unwind): Ditto.
3137 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3138 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3139 (mips_stub_frame_unwind): Ditto.
3140 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3141 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3142 * mt-tdep.c (mt_frame_unwind): Ditto.
3143 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3144 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3145 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3146 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3147 (s390_sigtramp_frame_unwind): Ditto.
3148 * score-tdep.c (score_prologue_unwind): Ditto.
3149 * sh-tdep.c (sh_frame_unwind): Ditto.
3150 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3151 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3152 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3153 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3154 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3155 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3156 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3157 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3158 (sparc64obsd_trapframe_unwind): Ditto.
3159 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3160 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3161 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3162 * v850-tdep.c (v850_frame_unwind): Ditto.
3163 * vax-tdep.c (vax_frame_unwind): Ditto.
3164 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3165 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3166 * xtensa-tdep.c (xtensa_unwind): Ditto.
3167
f23d1b92
PA
31682011-03-18 Pedro Alves <pedro@codesourcery.com>
3169
3170 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3171 there's always a frame. Use get_frame_pc_if_available instead of
3172 get_frame_pc, and if there's no PC available, don't look up a
3173 symtab.
3174
1d4f5741
PA
31752011-03-18 Pedro Alves <pedro@codesourcery.com>
3176
3177 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3178 unavailable PC.
3179
dba09041
PA
31802011-03-18 Pedro Alves <pedro@codesourcery.com>
3181
3182 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3183 gracefully.
3184
9a26e44c
PA
31852011-03-18 Pedro Alves <pedro@codesourcery.com>
3186
3187 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3188 * frame.c (frame_unwind_caller_pc_if_available): New.
3189 * stack.c (frame_info): Handle unavailable PC.
3190
31912011-03-18 Pedro Alves <pedro@codesourcery.com>
3192
3193 * frame.c (frame_unwind_pc): Rename to ...
3194 (frame_unwind_pc_if_available): ... this. New `pc' output
3195 parameter. Change return type to int. Gracefully handle
3196 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3197 happened, or 1 otherwise.
3198 (frame_unwind_pc): Reimplement on top of
3199 frame_unwind_pc_if_available.
3200 (get_frame_func): Rename to ...
3201 (get_frame_func_if_available): New `pc' output parameter. Change
3202 return type to int. Gracefully handle the PC not being available.
3203 (get_frame_func): Reimplement on top of
3204 get_frame_func_if_available.
3205 (select_frame): Handle the PC being unavailable.
3206 (get_prev_frame): Handle the PC being unavailable.
3207 (get_frame_pc_if_available): New.
3208 (get_frame_address_in_block_if_available): New.
3209 (find_frame_sal): Handle the frame PC not being available.
3210 * frame.h (get_frame_pc_if_available): Declare.
3211 (get_frame_address_in_block_if_available): Declare.
3212 (get_frame_func_if_available): Declare.
3213 * stack.c (print_frame_info): Handle the PC being unavailable.
3214 (find_frame_funname): Ditto.
3215 (print_frame): Handle the PC being unavailable.
3216 (get_frame_language): Ditto.
3217 * blockframe.c (get_frame_block): Ditto.
3218 * macroscope.c (default_macro_scope): Ditto.
3219 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3220
32212011-03-18 Pedro Alves <pedro@codesourcery.com>
3222
3223 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3224 NOT_AVAILABLE_ERROR when evaluating the location expression.
3225
32262011-03-18 Pedro Alves <pedro@codesourcery.com>
3227
3228 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3229 returning that the register piece is unavailable/optimized out.
3230 (write_pieced_value): Handle get_frame_register_bytes returning
3231 that the register piece is unavailable/optimized out when doing a
3232 read-modify write of a bitfield.
3233 * findvar.c (value_from_register): Handle get_frame_register_bytes
3234 returning that the register piece is unavailable/optimized out.
3235 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3236 and `unavailablep'. Throw error on bad debug info. Use
3237 frame_register instead of frame_register_read, to fill in the new
3238 arguments.
3239 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3240 and `unavailablep'.
3241 * valops.c: (value_assign): Adjust, and handle
3242 get_frame_register_bytes failing.
3243 * spu-tdep.c: Include exceptions.h.
3244 (spu_software_single_step): Adjust, and handle
3245 get_frame_register_bytes failing.
3246 (spu_get_longjmp_target): Ditto.
3247 * gdbarch.sh (register_to_value): Change to return int. New
3248 parameters `optimizedp' and `unavailablep'.
3249 * gdbarch.h, gdbarch.c: Regenerate.
3250 * i386-tdep.c (i386_register_to_value): Adjust to new
3251 gdbarch_register_to_value interface.
3252 * i387-tdep.c (i387_register_to_value): Ditto.
3253 * i387-tdep.h (i387_register_to_value): Ditto.
3254 * alpha-tdep.c (alpha_register_to_value): Ditto.
3255 * ia64-tdep.c (ia64_register_to_value): Ditto.
3256 * m68k-tdep.c (m68k_register_to_value): Ditto.
3257 * mips-tdep.c (mips_register_to_value): Ditto.
3258 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3259
0fdb4f18
PA
32602011-03-18 Pedro Alves <pedro@codesourcery.com>
3261
3262 * findvar.c (value_of_register): Mark the value as unavailable, if
3263 the register is unavailable.
3264 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3265 (frame_register): New `unavailablep' parameter.
3266 (frame_register_read): Update comment.
3267 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3268 Set it if the register is unavailable. If the register is
3269 unavailable, clear the output buffer.
3270 (frame_register): New `unavailablep' parameter. Pass it down.
3271 (frame_unwind_register): Adjust.
3272 (put_frame_register): Adjust.
3273 (frame_register_read): Adjust. Also return false if the register
3274 is not available.
3275 (frame_register_unwind_location): Adjust.
3276 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3277 is unavailable, mark the value accordingly.
3278 * stack.c (frame_info): Handle unavailable registers.
3279
e69aa73e
PA
32802011-03-18 Pedro Alves <pedro@codesourcery.com>
3281
3282 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3283 simplify, using regcache_cooked_read.
3284
05d1431c
PA
32852011-03-18 Pedro Alves <pedro@codesourcery.com>
3286
3287 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3288 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3289 (regcache_raw_read_unsigned, regcache_raw_read_part)
3290 (regcache_cooked_read, regcache_cooked_read_signed)
3291 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3292 (regcache_cooked_read_ftype): Change return to enum
3293 register_status.
3294 * regcache.c: Include exceptions.h
3295 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3296 (do_cooked_read): Change return to enum register_status. Always
3297 forward to regcache_cooked_read.
3298 (regcache_raw_read): Change return to enum register_status. If
3299 the register is not REG_VALID, memset the buffer. Return the
3300 register's status.
3301 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3302 return the register's status.
3303 (regcache_raw_read_unsigned): Ditto.
3304 (regcache_cooked_read): Change return to enum register_status.
3305 Assert that with read-only regcaches, the register's status must
3306 be known. If the regcache is read-only, and the register is not
3307 REG_VALID, memset the buffer. Return the register's status.
3308 (regcache_cooked_read_signed): Change return to enum
3309 register_status. Handle non-REG_VALID registers and return the
3310 register's status.
3311 (regcache_cooked_read_unsigned): Change return to enum
3312 register_status. Handle non-REG_VALID registers and return the
3313 register's status.
3314 (regcache_xfer_part, regcache_raw_read_part)
3315 (regcache_cooked_read_part): Change return to enum
3316 register_status. Return the register's status.
3317 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3318 unavailable.
3319 (regcache_dump): Handle unavailable cooked registers.
3320 * frame.c (do_frame_register_read): Adjust interface to match
3321 regcache_cooked_read_ftype.
3322 * gdbarch.sh (pseudo_register_read): Change return to enum
3323 register_status.
3324 * gdbarch.h, gdbarch.c: Regenerate.
3325
3326 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3327 register_status.
3328 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3329 register_status. If reading a raw register indicates the raw
3330 register is not valid, return the raw register's status,
3331 otherwise, return REG_VALID.
3332 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3333 register_status. Handle non-REG_VALID raw registers and return
3334 the register's status.
3335 * arm-tdep.c (arm_neon_quad_read)
3336 (arm_pseudo_read): Change return to enum register_status. Handle
3337 non-REG_VALID raw registers and return the register's status.
3338 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3339 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3340 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3341 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3342 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3343 register_status.
3344 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3345 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3346 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3347 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3348 (m32c_pseudo_register_read): Change return to enum
3349 register_status. Adjust.
3350 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3351 enum register_status. Return the register's status.
3352 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3353 register_status. Return the register's status.
3354 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3355 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3356 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3357 * rs6000-tdep.c (move_ev_register_func): New typedef.
3358 (e500_move_ev_register): Use it. Change return to enum
3359 register_status. Return the register's status.
3360 (do_regcache_raw_read): New function.
3361 (do_regcache_raw_write): New function.
3362 (e500_pseudo_register_read): Change return to enum
3363 register_status. Return the register's status. Use
3364 do_regcache_raw_read.
3365 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3366 (dfp_pseudo_register_read): Change return to enum register_status.
3367 Return the register's status.
3368 (vsx_pseudo_register_read): Ditto.
3369 (efpr_pseudo_register_read): Ditto.
3370 (rs6000_pseudo_register_read): Ditto.
3371 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3372 register_status. Return the register's status.
3373 * sh64-tdep.c (pseudo_register_read_portions): New function.
3374 (sh64_pseudo_register_read): Change return to enum
3375 register_status. Use pseudo_register_read_portions. Return the
3376 register's status.
3377 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3378 register_status. Return the register's status.
3379 * sh-tdep.c (pseudo_register_read_portions): New function.
3380 (sh_pseudo_register_read): Change return to enum register_status.
3381 Use pseudo_register_read_portions. Return the register's status.
3382 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3383 enum register_status. Return the register's status.
3384 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3385 * spu-tdep.c (spu_pseudo_register_read_spu)
3386 (spu_pseudo_register_read): Ditto.
3387 * xtensa-tdep.c (xtensa_register_read_masked)
3388 (xtensa_pseudo_register_read): Ditto.
3389 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3390
e10abd8f
PM
33912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3392
3393 * python/py-value.c (valpy_getitem): Fix formatting of error function
3394 call.
3395
7ea6d463
PM
33962011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3397
3398 ARI fixes: Add missing internationalization markups throughout
3399 C source files.
3400 * darwin-nat-info.c: Ditto.
3401 * record.c: Ditto.
3402 * remote.c: Ditto.
3403 * mi/mi-main.c: Ditto.
3404
001083c6
PM
34052011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3406
3407 ARI fixes: Add missing internationalization markups throughout
3408 yacc files.
3409 * c-exp.y: Ditto.
3410 * cp-name-parser.y: Ditto.
3411 * f-exp.y: Ditto.
3412 * m2-exp.y: Ditto.
3413 * objc-exp.y: Ditto.
3414 * p-exp.y: Ditto.
3415
4f1cdeec
PM
34162011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3417
3418 ARI fixes: Messages should have no trailing new lines.
3419 * darwin-nat.c (mach_check_error): Remove trailing new line from
3420 warning function call message.
3421 * record.c (bfdcore_read): Idem for error call.
3422
28e698f1
PM
34232011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
3424
3425 * common/signals.c (target_signal_from_host): Add _ markup to error
3426 function call message.
3427 (target_signal_to_host): Add _ markup and remove trailing new line
3428 from warning call message.
3429 (target_signal_from_command): Add _ markup to error function call
3430 message.
3431
99c3dc11
PM
34322011-03-18 Phil Muldoon <pmuldoon@redhat.com>
3433
f33edef8 3434 PR python/12149
99c3dc11
PM
3435
3436 * python/python.c (gdbpy_write): Accept a stream argument and
3437 operate to the appropriate stream.
3438 (gdbpy_flush): Likewise.
3439 (_initialize_python): Add stream constants.
3440 (finish_python_initialization): Add GdbOutputErrorFile class.
3441
c20800be
KY
34422011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3443
3444 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3445
f4a1794a
KY
34462011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
3447
3448 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
3449 to store_signed_integer. Add debug message when relocating CALL
3450 instructions. Fix formatting of debug message.
3451 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 3452
d4862372
JB
34532011-03-17 Joel Brobecker <brobecker@gnat.com>
3454
3455 * target.h (struct target_ops): Remove to_lookup_symbol field.
3456 (target_lookup_symbol): Delete macro.
3457 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3458 (update_current_target, setup_target_debug): Remove handling
3459 of to_lookup_symbol target_ops field.
3460 * ada-tasks.c (get_known_tasks_addr): Remove use of
3461 target_lookup_symbol.
3462 * coffread.c (coff_symtab_read): Likewise.
3463 * dbxread.c (read_dbx_symtab): Ditto.
3464
d645e32e
JB
34652011-03-17 Joel Brobecker <brobecker@gnat.com>
3466
3467 PR gdb/12116:
3468 * configure.ac: Add getthrds declaration check.
3469 * configure, config.in: Regenerate.
3470 * aix-thread.c (getthrds): Declare only if not already declared
3471 in procinfo.h. More declaration out of get_signaled_thread to
3472 global scope.
3473
29703da4
PM
34742011-03-17 Phil Muldoon <pmuldoon@redhat.com>
3475
3476 * python/py-symtab.c: Populate symtab_object_methods,
3477 sal_object_methods.
3478 (stpy_is_valid): New function.
3479 (salpy_is_valid): Ditto.
3480 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3481 (sympy_is_valid): New function.
3482 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3483 (objfpy_is_valid): New function.
3484 * python/py-inferior.c: Populate inferior_object_methods.
3485 (infpy_is_valid): New function.
3486 * python/py-infthread.c: Populate thread_object_methods.
3487 (thpy_is_valid): New function.
3488 * python/py-block.c: Declare block_object_methods. Populate. Declare
3489 block_iterator_object_methods. Populate.
3490 (blpy_is_valid): New function.
3491 (blpy_iter_is_valid): Ditto.
3492
c00f8484
KS
34932011-03-16 Keith Seitz <keiths@redhat.com>
3494
3495 * linespec.c (find_methods): Canonicalize NAME before looking
3496 up the symbol.
3497 (name_end): New function.
3498 (keep_name_info): New function.
3499 (decode_line_1): Use keep_name_info.
3500 (decode_compound): Likewise.
3501 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3502 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3503
3504 PR c++/12273
3505 * linespec.c (locate_first_half): Keep overload information, too.
3506 (decode_compound): Use a string to represent break characters
3507 to escape the loop.
3508 If P points to a break character, do not increment it.
3509 For C++ and Java, keep overload information and relevant keywords.
3510 If we cannot find a symbol, search the minimal symbols.
3511
3512 PR c++/11734
3513 * linespec.c (decode_compound): Rename SAVED_ARG to
3514 THE_REAL_SAVED_ARG.
3515 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3516 single-quotes.
3517 Pass a valid block to lookup_symbol.
3518 (lookup_prefix_sym): Likewise.
3519 (find_method): Construct search name based on SYM_CLASS instead
3520 of SAVED_ARG.
3521 * psymtab.c (lookup_partial_symbol): Add language parameter.
3522 (lookup_symbol_aux_psymtabs): Likewise.
3523 Don't assume that the psymtab we found was the right one. Search
3524 for the desired symbol in the symtab to be certain.
3525 (psymtab_search_name): New function.
3526 (lookup_partial_symbol): Use psymtab_search_name.
3527 Add language parameter.
3528 (read_symtabs_for_function): Add language parameter and pass to
3529 lookup_partial_symbol.
3530 (find_symbol_file_from_partial): Likewise.
3531
c91513d8
PP
35322011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
3533
3534 PR gdb/12528
3535 * dwarf2read.c (noop_record_line): New function.
3536 (dwarf_decode_lines): Ignore line tables for GCd functions.
3537
b37520b6
PM
35382011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3539
3540 Fix ARI warnings about new lines at the end of messages, which
3541 are unneeded as there is a new line added at the end of the message
3542 automatically.
3543 * darwin-nat.c (darwin_stop_inferior): Ditto.
3544 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3545 * dfp.c (decimal_to_number): Ditto.
3546 * exec.c (print_section_info): Ditto.
3547 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3548 * osdata.c (get_osdata): Ditto.
3549 * record.c (bfdcore_write): Ditto.
3550 * remote-mips.c (mips_readchar): Ditto.
3551 * remote.c (read_ptid): Ditto.
3552 * ser-mingw.c (ser_windows_raw): Ditto.
3553 * tracepoint.c (add_local_symbols): Ditto.
3554 * windows-nat.c (fake_create_process): Ditto.
3555
b08ee6a2
TT
35562011-03-16 Tom Tromey <tromey@redhat.com>
3557
3558 * tracepoint.c (stop_tracing): Don't declare.
3559 * event-top.c (after_char_processing_hook): Add `(void)'.
3560
9a6f1302
PM
35612011-03-16 Phil Muldoon <pmuldoon@redhat.com>
3562
3563 * NEWS: Add Parameter sub-classing description.
3564
7ceb86b1
KT
35652011-03-16 Kai Tietz <ktietz@redhat.com>
3566
3567 * MAINTAINERS: Update my e-mail address.
3568
efeff6cf
AT
35692011-03-15 Andreas Tobler <andreast@fgznet.ch>
3570
3571 * MAINTAINERS: Add myself for write after approval privileges.
3572
681c238c
MS
35732011-03-15 Michael Snyder <msnyder@vmware.com>
3574
f3df5b08
MS
3575 * frame.c (find_frame_sal): Assert sym is not null.
3576
13f6513c
MS
3577 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3578
50412521
MS
3579 * objc-lang.c (selectors_info): Check strchr for null result.
3580
681c238c
MS
3581 * stabsread.c (define_symbol): Guard against bad stabstring input.
3582
6ced1581
PM
35832011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3584
3585 Remove trailing spaces and tabulations from pascal language
3586 support sources.
3587 p-exp.y: Ditto.
3588 p-lang.c: Ditto.
3589 p-lang.h: Ditto.
3590 p-valprint.c: Ditto.
3591
9373cf26
JK
35922011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
3594 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3595 than LOW. Comment it.
3596 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3597 HIGHPC not strictly higher than LOWPC.
3598
9a1edae6
PM
35992011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
3600
3601 Fix formatting of function declarations returning a pointer in
3602 previous commit.
3603 * varobj.c (varobj_add_child): Ditto.
3604 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3605 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3606
24e9cda0
UW
36072011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
3608
3609 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3610 for the "generic" vector ABI used with GCC 4.3 and later.
3611 (ppc64_sysv_abi_return_value): Likewise.
3612
36132011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
3614
3615 * infcall.c (call_function_by_hand): Function return value is
3616 always a non_lval, even when using struct_return.
3617
c9174737
PA
36182011-03-15 Pedro Alves <pedro@codesourcery.com>
3619
3620 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3621 (map_display_numbers): New.
3622 (do_delete_display): New.
3623 (undisplay_command): Use map_display_numbers.
3624 (do_enable_disable_display): New.
3625 (enable_disable_display_command): New function.
3626 (enable_display): Delete.
3627 (enable_display_command): New.
3628 (disable_display_command): Reimplement.
3629 (_initialize_printcmd): Adjust "enable display" command to use
3630 `enable_display_command' as callback.
3631
350c6c65
PM
36322011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3633
3634 * NEWS: Add Python breakpoint 'stop' operation.
3635
824446ad
PM
36362011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3637
3638 * NEWS: Delete duplicate entry. Fix typo.
3639
2021ad3a
PM
36402011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3641
3642 Fix ARI warning about function names in first column.
3643 Put prototype declaration on same line as return type.
3644 * objc-exp.y: Ditto.
3645 * p-exp.y: Ditto.
3646 * python/py-stopevent.h: Ditto.
3647 For long function names, split parameters to
3648 allow function name on same line as return type.
3649 * solib-pa64.c: Ditto.
3650 * varobj.c: Ditto.
3651 * varobj.h: Ditto.
3652 For long function declaration, use single line.
3653 * hppa-tdep.h: Ditto.
3654 * inferior.h: Ditto.
3655
7371cf6d
PM
36562011-03-14 Phil Muldoon <pmuldoon@redhat.com>
3657
3658 * python/python.h: Declare gdbpy_should_stop and
3659 gdbpy_breakpoint_has_py_cond.
3660 * python/python.c: Add python.h to includes. Remove python.h from
3661 HAVE_PYTHON definition
3662 (gdbpy_should_stop): New dummy function.
3663 (gdbpy_breakpoint_has_py_cond): New dummy function.
3664 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3665 sub-classing capabilities.
3666 (gdbpy_should_stop): New function.
3667 (gdbpy_breakpoint_has_py_cond): New function.
3668 (local_setattro): New function.
3669 * breakpoint.c (condition_command): Add check for Python 'stop'
3670 operation.
3671 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3672 operation function as part of stop/continue tests.
3673
37b50a69
TT
36742011-03-14 Tom Tromey <tromey@redhat.com>
3675
3676 PR gdb/12576:
3677 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3678 (needs_frame_dwarf_call): Likewise.
3679
eeae04df
PM
36802011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
3681
3682 Fix ARI warning about functions without parameters that do not
3683 use (void).
3684 * breakpoint.c (all_tracepoints): Replace () by (void).
3685 * f-exp.y (match_string_literal): Ditto.
3686 (yylex): Ditto.
3687 * m2-exp.y (yylex): Ditto.
3688 * mep-tdep.c (current_me_module): Ditto.
3689 (current_options): Ditto.
3690 (current_cop_data_bus_width): Ditto.
3691 (current_cr_names): Ditto.
3692 (current_cr_is_float): Ditto.
3693 (current_ccr_names): Ditto.
3694 * objc-exp.y (yylex): Ditto.
3695 * p-exp.y (yylex): Ditto.
3696 * remote.c (send_interrupt_sequence): Ditto.
3697 * tracepoint.c (current_trace_status): Ditto.
3698 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3699 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3700
6dc3565d
MS
37012011-03-11 Michael Snyder <msnyder@vmware.com>
3702
1427fe5e
MS
3703 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3704 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3705 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3706 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3707 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3708
60bc018f
MS
3709 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3710 (delete_async_event_handler): Ditto.
3711
f3be5b64
MS
3712 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3713
4c2d5724
MS
3714 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3715
6dc3565d
MS
3716 * top.c (set_verbose): Assert showcmd was found.
3717
4e6ca6d5
MG
37182011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
3719
3720 * xtensa-tdep.c (warning_once): Correct style issues.
3721
815a83e4
YQ
37222011-03-11 Yao Qi <yao@codesourcery.com>
3723
3724 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3725
f2eb0bc8
AS
37262011-03-11 Andreas Schwab <schwab@redhat.com>
3727
3728 * common/aclocal.m4: Remove.
3729
b801de47
MG
37302011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3731
3732 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3733 (xtensa_write_register, xtensa_read_register): Likewise.
3734 (xtensa_hextochar): Removed.
3735 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3736
dbab50de
MG
37372011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
3738
3739 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 3740 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
3741 (xtensa_alloc_frame_cache): Add initialization for new fields.
3742 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3743 (warning_once): New function.
3744 (xtensa_insn_kind): New item c0opc_and.
3745 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
3746 (call0_track_op): Change arguments. New local variable litbase.
3747 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3748 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3749 in the prologue.
dbab50de 3750 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 3751 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
3752 Add the variety of updates to handle extended prologues, which now can
3753 conduct dynamic stack adjustments.
3754 (call0_frame_cache): Likewise.
3755 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3756 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3757
b2c04452
MS
37582011-03-10 Michael Snyder <msnyder@vmware.com>
3759
f8f67713
MS
3760 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3761 (cmd_qtframe): Ditto.
3762 (cmd_qtbuffer): Ditto.
3763 (cmd_bigqtbuffer): Ditto.
3764
197f0a60
TT
37652011-03-10 Tom Tromey <tromey@redhat.com>
3766
3767 * tracepoint.c (trace_actions_command): Update.
3768 * thread.c (thread_apply_command): Update.
3769 * reverse.c (delete_bookmark_command): Update.
3770 (bookmarks_info): Update.
3771 * printcmd.c (undisplay_command): Update.
3772 * memattr.c (mem_enable_command): Update.
3773 (mem_disable_command): Update.
3774 (mem_delete_command): Update.
3775 * inferior.c (detach_inferior_command): Update.
3776 (kill_inferior_command): Update.
3777 (remove_inferior_command): Update.
3778 * cli/cli-utils.h (struct get_number_or_range_state): New.
3779 (init_number_or_range): Declare.
3780 (get_number_or_range): Update.
3781 * cli/cli-utils.c (init_number_or_range): New function.
3782 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3783 static variables.
3784 (number_is_in_list): Update.
3785 * breakpoint.h (get_tracepoint_by_number): Update.
3786 * breakpoint.c (map_breakpoint_numbers): Update for change to
3787 get_number_or_range.
3788 (find_location_by_number): Use get_number, not
3789 get_number_or_range.
3790 (trace_pass_set_count): New function.
3791 (trace_pass_command): Update for change to get_number_or_range.
3792 Rework loop logic.
3793 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3794 'state' parameter.
3795
ecec24e6
PM
37962011-03-10 Phil Muldoon <pmuldoon@redhat.com>
3797
3798 * python/py-param.c (add_setshow_generic): Add set/show callback
3799 parameters. Register Python object context.
3800 (get_show_value): New function.
3801 (get_set_value): New function.
3802 (call_doc_function): New function.
3803 (get_doc_string): Move behind get_show_value/get_set_value.
3804
6d6c6b1f
JK
38052011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3806
3807 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3808
68d6df83
MG
38092011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3810
dbab50de 3811 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
3812 (xtensa_write_register): Likewise.
3813 (xtensa_hextochar): Add comment and update to match coding conventions.
3814 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3815 (execute_l32e, execute_s32e, execute_code): Update comments.
3816 (xtensa_exception_handler_t): Update to match coding conventions.
3817 (xtensa_insn_kind): Likewise.
3818
85c9d6a6
MS
38192011-03-09 Michael Snyder <msnyder@vmware.com>
3820
3821 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3822
91495617
PA
38232011-03-09 Pedro Alves <pedro@codesourcery.com>
3824
3825 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3826
eb8c0621
TT
38272011-03-09 Tom Tromey <tromey@redhat.com>
3828
3829 * thread.c (restore_selected_frame): Handle frame_level == -1.
3830 (make_cleanup_restore_current_thread): Use
3831 get_selected_frame_if_set.
3832 * frame.h (get_selected_frame_if_set): Declare.
3833 * frame.c (get_selected_frame_if_set): New function.
3834
9f37bbcc
PA
38352011-03-09 Pedro Alves <pedro@codesourcery.com>
3836
3837 * cli/cli-cmds.c (shell_escape): Use lbasename.
3838 * coffread.c (coff_start_symtab): Constify parameter.
3839 (complete_symtab): Constify `name' parameter.
3840 (coff_symtab_read): Constify `filestring' local.
3841 (coff_getfilename): Constify return and `result' local.
3842 Use lbasename.
3843 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3844 * linux-fork.c (info_checkpoints_command): Use lbasename.
3845 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3846 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3847 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3848 * procfs.c (procfs_make_note_section): Use lbasename.
3849 * tui/tui-io.c (printable_part): Constity return and parameter.
3850 Use lbasename.
3851 (print_filename): Constify parameters, and local `s'.
3852 (tui_rl_display_match_list): Constify local `temp'.
3853
f8de3c55
JK
38542011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3855
3856 Revert:
3857 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 Fix DWARF-3+ DW_AT_accessibility default assumption.
3859 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3860 cu->header.version >= 3.
3861
d9837b00
YQ
38622011-03-09 Yao Qi <yao@codesourcery.com>
3863
3864 * common/Makefile.in: Remove.
3865 * common/configure: Remove.
3866 * common/configure.ac: Remove.
3867
e637a4f5
YQ
38682011-03-09 Yao Qi <yao@codesourcery.com>
3869
3870 Revert:
3871 2011-02-11 Yao Qi <yao@codesourcery.com>
3872
3873 * common/Makefile.in: Add copyright header.
3874
3875 2011-02-11 Yao Qi <yao@codesourcery.com>
3876
3877 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3878 libcommon.a.
3879 * configure.ac: Add common to sub dir.
3880 * configure: Regenerate.
3881
f976a05d
MG
38822011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3883
3884 * xtensa-tdep.c (call0_ret): New function.
3885 (xtensa_skip_prologue): Speed up analysis.
3886
57041825
MG
38872011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3888
3889 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3890 while executing MI command -data-list-changed-registers.
3891
08b9c608
MG
38922011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3893
3894 * xtensa-tdep.c (xtensa_read_register): New function.
3895 (xtensa_write_register): New function.
3896 (xtensa_find_register_by_name): New function.
3897 (xtensa_windowed_frame_cache): Update comments in type description.
3898 (xtensa_frame_cache): Likewise.
3899 (xtensa_window_interrupt_insn): New function.
3900 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3901 (xtensa_insn_kind): Add new instructions.
3902 (rwx_special_register): New function.
3903 (call0_classify_opcode): Add new instructions to the analysis.
3904 (a0_saved, a7_saved, a11_saved): New variables.
3905 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3906 (execute_l32e): New function.
3907 (execute_s32e): New function.
3908 (xtensa_exception_handler_t): New type.
3909 (execute_code): New function.
3910 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3911 analysis for Xtensa Window Exception handlers.
3912
4d1acb11
MG
39132011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3914
98689b25
MG
3915 * xtensa-tdep.c (TX_PS): New.
3916 (windowing_enabled): Update to count for Call0 ABI.
3917 (xtensa_hextochar): New.
3918 (xtensa_init_reggroups): Make algorithm generic.
3919 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3920
39212011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3922
3923 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 3924
d3f323f3
MS
39252011-03-08 Michael Snyder <msnyder@vmware.com>
3926
3dcabaa8
MS
3927 * i386-tdep.c (i386_follow_jump): Check return value of
3928 target_read_memory.
3929 (i386_analyze_struct_return): Ditto.
3930 (i386_skip_probe): Ditto.
3931 (i386_match_insn): Ditto.
3932 (i386_skip_noop): Ditto.
3933 (i386_analyze_frame_setup): Ditto.
3934 (i386_analyze_register_saves): Ditto.
3935 (i386_skip_prologue): Ditto.
3936 (i386_skip_main_prologue): Ditto.
3937
13b3fd9b
MS
3938 * target.c (read_whatever_is_readable): Fix memory leak.
3939
d3f323f3
MS
3940 * i386-tdep.c (i386_process_record): Document fall through.
3941
421d5c74
JK
39422011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3943
3944 Fix DWARF-3+ DW_AT_accessibility default assumption.
3945 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3946 cu->header.version >= 3.
3947
63154eca
PA
39482011-03-08 Pedro Alves <pedro@codesourcery.com>
3949
3950 * remote.c (remote_check_symbols): Skip if the target has no
3951 execution.
3952
f1a507a1
JB
39532011-03-08 Joel Brobecker <brobecker@adacore.com>
3954
3955 * target.c (read_whatever_is_readable): Reformat comment,
3956 with a minor typo fix. Minor reformatting of the code.
3957
36073a92
YQ
39582011-03-08 Yao Qi <yao@codesourcery.com>
3959
3960 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3961 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3962 Use cached result instead of calling displaced_in_arm_mode again.
3963 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3964 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3965 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3966 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3967 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3968 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3969 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3970 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3971 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3972 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3973 (arm_catch_kernel_helper_return): Likewise.
3974 * gdb/arm-tdep.h : Update function declarations.
3975
d3f323f3 39762011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 3977
e0e40094
MS
3978 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3979
0b2381f5
MS
3980 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3981
0350914a
MS
3982 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3983
69feea6f
MS
3984 * elfread.c (elf_symtab_read): Stop memory leak.
3985
e6040cbd
MS
3986 * main.c (captured_main): Fix memory leak.
3987
052874e8
AS
39882011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3989
3990 * ada-lang.c (compare_names): Call is_name_suffix with string1
3991 instead of string2.
3992
b11896a5
TT
39932011-03-07 Tom Tromey <tromey@redhat.com>
3994
3995 * xcoffread.c (xcoff_sym_fns): Update.
3996 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3997 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3998 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3999 (symbol_file_add_with_addrs_or_offsets): Likewise.
4000 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4001 * somread.c (som_sym_fns): Update.
4002 * psymtab.h (require_partial_symbols): Declare.
4003 * psymtab.c (require_partial_symbols): New function.
4004 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4005 (ALL_OBJFILE_PSYMTABS): Undef.
4006 (ALL_PSYMTABS): Move from psympriv.h.
4007 (lookup_partial_symtab, find_pc_sect_psymtab)
4008 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4009 (find_last_source_symtab_from_partial)
4010 (forget_cached_source_info_partial)
4011 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4012 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4013 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4014 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4015 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4016 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4017 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4018 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4019 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4020 psymtabs.
4021 * mipsread.c (ecoff_sym_fns): Update.
4022 * machoread.c (macho_sym_fns): Update.
4023 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4024 (read_psyms): New function.
4025 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4026 (elf_sym_fns_lazy_psyms): New global.
4027 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4028 dwarf2_build_psymtabs.
4029 * dbxread.c (aout_sym_fns): Update.
4030 * coffread.c (coff_sym_fns): Update.
4031
fda326dd
TT
40322011-03-07 Tom Tromey <tromey@redhat.com>
4033
4034 * infrun.c (print_exited_reason): Include inferior id and pid in
4035 message.
4036
aeaec162
TT
40372011-03-07 Tom Tromey <tromey@redhat.com>
4038
4039 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4040 parameter.
4041 (target_has_execution_1): Update.
4042 (target_has_execution_current): Declare.
4043 (target_has_execution): Call target_has_execution_current.
4044 (default_child_has_execution): Update.
4045 * target.c (default_child_has_execution): Add 'the_ptid'
4046 parameter.
4047 (target_has_execution_1): Likewise.
4048 (target_has_execution_current): New function.
4049 (add_target): Update.
4050 (init_dummy_target): Update.
4051 * remote-m32r-sdi.c (m32r_has_execution): New function.
4052 (init_m32r_ops): Use it.
4053 * record.c (record_core_has_execution): Now static. Add
4054 'the_ptid' parameter.
4055 * inferior.c (have_live_inferiors): Don't save current thread.
4056 Use target_has_execution_1.
4057
08e14083
YQ
40582011-03-07 Yao Qi <yao@codesourcery.com>
4059
4060 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4061
c05d19c5
JB
40622011-03-07 Joel Brobecker <brobecker@adacore.com>
4063
4064 * elfread.c (elf_symtab_read): Minor reformatting.
4065
3e6ef9e4
JB
40662011-03-07 Joel Brobecker <brobecker@adacore.com>
4067
4068 * objc-lang.c (selectors_info): Minor reformatting.
4069
dbb8534f
JB
40702011-03-07 Joel Brobecker <brobecker@adacore.com>
4071
4072 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4073
dd70cc93
JB
40742011-03-07 Joel Brobecker <brobecker@adacore.com>
4075 Michael Snyder <msnyder@vmware.com>
4076
4077 * ada-valprint.c (ada_val_print_array): Move the declaration of
4078 "byte_order" and "elttype" inside the block where these variables
4079 are actually used. Remove some special handling for the case
4080 where "elttype" and "eltlen" are null. Replace by a comment
4081 and a couple of assertion checks.
4082
b27cf2b3
MS
40832011-03-05 Michael Snyder <msnyder@vmware.com>
4084
4085 * source.c (add_path): Replace semicolon at end of block.
4086 * dwarf2expr.c (execute_stack_op): Ditto.
4087
5387a0c6
MF
40882011-03-05 Mike Frysinger <vapier@gentoo.org>
4089
4090 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4091 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4092 (bfin-*-*): Likewise.
4093
e3aa49af
MS
40942011-03-05 Michael Snyder <msnyder@vmware.com>
4095
82ae4854
MS
4096 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4097 * mdebugread.c (parse_symbol): Ditto.
4098 * parse.c (parse_exp_in_context): Ditto.
4099 * source.c (add_path): Ditto.
4100 * utils.c (gnu_debuglink_crc32): Ditto.
4101 * varobj.c (variable_language): Ditto.
4102
e3aa49af
MS
4103 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4104
154f592e
MS
41052011-03-04 Michael Snyder <msnyder@vmware.com>
4106
da3ecdc6
MS
4107 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4108
9cc89665
MS
4109 * symfile.c (simple_overlay_update): Check for null return value
4110 from lookup_minimal_symbol.
4111
154f592e
MS
4112 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4113
63ffa6ee
TJB
41142011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4115
4116 * eval.c (parse_and_eval_address_1): Remove function.
4117 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4118 instead of parse_and_eval_address_1.
4119 * value.h (parse_and_eval_address_1): Remove prototype.
4120
a17d146e
MS
41212011-03-04 Michael Snyder <msnyder@vmware.com>
4122
4123 * remote.c (putpkt_binary): Document that case stmt falls through.
4124
1a6a67de
TJB
41252011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4126
4127 * breakpointc (print_it_typical): Move NULL check from here...
4128 (print_bp_stop_message): ... to here.
4129
488919c4
MS
41302011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
4131
4132 * breakpoint.c (enable_command): Use break instead of continue,
4133 and fill in a missing break.
4134 (disable_command): Ditto.
4135
1e182ce8
UW
41362011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4137
4138 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4139 (terminal_save_ours): Remove misleading comment.
4140 (inflow_inferior_data_cleanup): Free ttystate.
4141 (inflow_inferior_exit): Likewise.
4142 (copy_terminal_info): Copy ttystate.
4143
4144 * serial.c (serial_copy_tty_state): New function.
4145 * serial.h (serial_copy_tty_state): Add prototype.
4146 (struct serial_ops): Add copy_tty_state callback.
4147 * ser-base.c (ser_base_copy_tty_state): New function.
4148 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4149 * ser-go32.c (dos_copy_tty_state): New function.
4150 (dos_ops): Install copy_tty_state callback.
4151 * ser-mingw.c (_initialize_ser_windows): Likewise.
4152 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4153 * ser-unix.c (hardwire_copy_tty_state): New function.
4154 (_initialize_ser_hardwire): Install it.
4155
b2c5f112
MS
41562011-03-04 Michael Snyder <msnyder@vmware.com>
4157
2abae994
MS
4158 * breakpoint.c (create_breakpoint): Add missing break statement.
4159
7f5936f9
MS
4160 Reverting this patch:
4161 * infcall.c (call_function_by_hand): Add break statements for lint.
4162
b2c5f112
MS
4163 Reverting this patch:
4164 * cli/cli-script.c (script_from_file): Add break for lint.
4165
42b1321c
MS
41662011-03-04 Michael Snyder <msnyder@vmware.com>
4167
4168 * solib.c (reload_shared_libraries_1): Close memory leak.
4169
3e2a0cee
TT
41702011-03-03 Tom Tromey <tromey@redhat.com>
4171
4172 PR gdb/12538:
4173 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4174 DW_STRING is NULL.
4175
58397cb7
MS
41762011-03-03 Michael Snyder <msnyder@vmware.com>
4177
2e3fd767
MS
4178 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4179 fields of struct 'st' to zero.
4180
58397cb7
MS
4181 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4182 sal.pspace before calling set_current_source_symtab_and_line.
4183
ced54c8f
YQ
41842011-03-03 Yao Qi <yao@codesourcery.com>
4185
4186 * Makefile.in (configure-common): Remove. Let Makefile
4187 in dir common to rebuild itself.
4188 (common/Makefile): Likewise.
4189
3351ea09
JB
41902011-03-03 Joel Brobecker <brobecker@adacore.com>
4191
4192 * utils.c (parse_escape): Add i18n markup in error message.
4193
bf9f652a
YQ
41942011-03-03 Yao Qi <yao@codesourcery.com>
4195
4196 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4197 ARM_PC_REGNUM.
4198 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4199 (displaced_write_reg, displaced_read_reg): Likewise.
4200 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4201 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4202 (cleanup_branch): Replace magic number 14 and 15 with
4203 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4204
d42de051
MS
42052011-03-02 Michael Snyder <msnyder@vmware.com>
4206
240f9570
MS
4207 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4208
10dd8b54
MS
4209 * cli/cli-script.c (script_from_file): Add break for lint.
4210
b98bd911
MS
4211 * mdebugread.c (parse_partial_symbols): Fix indent.
4212
3494b66d
MS
4213 * target-descriptions.c (tdesc_gdb_type): No need to call
4214 xstrdup, callee saves a copy.
4215
daac021a
MS
4216 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4217
c38d16a7
MS
4218 * infcall.c (call_function_by_hand): Add break statements for lint.
4219
905b671b
MS
4220 * utils.c (parse_escape): Escape the escape char.
4221
f2eb0bc8 4222 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
4223 PyList_Append fails.
4224 (gdbpy_inferiors): Error out if build_inferior_list fails.
4225
8c6a60d1
MS
4226 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4227 a function call.
4228
d42de051
MS
4229 * record.c (record_restore): Move printf to before error return.
4230
4db71c0b
YQ
42312011-03-02 Yao Qi <yao@codesourcery.com>
4232
4233 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4234 is_thumb and insn_size.
4235 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4236 on both ARM and Thumb mode.
4237 (arm_process_displaced_insn): Set is_thumb and insn_size.
4238 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4239 (arm_displaced_step_fixup): Likewise.
4240
a9dc8dcc
MS
42412011-03-01 Michael Snyder <msnyder@vmware.com>
4242
53624a93
MS
4243 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4244
77766669
MS
4245 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4246
62d5b8da
MS
4247 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4248
5e9e105f
MS
4249 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4250
dc19db01
MS
4251 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4252 with xmalloc.
4253
5ce64950
MS
4254 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4255 which shadows function parameter.
4256
a0aa2878
MS
4257 * tracepoint.c (create_tsv_from_upload): Superfluous call
4258 to xstrdup. Callee already calls xstrdup.
4259
e325fb69
MS
4260 * linespec.c (decode_line_1): Remove unnecessary null check.
4261
21cbba77
MS
4262 * tracepoint.c (scope_info): Fix mem leak, remove underused
4263 variable.
4264
63360adc
MS
4265 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4266 superfluous null check.
4267
18ea20ac 4268 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 4269 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 4270
d014929c
MS
4271 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4272
6e9130cf
MS
4273 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4274 be null.
4275
5f01dbc0
MS
4276 * linespec.c (decode_line_1): Check for null before dereference.
4277
d684ab85
MS
4278 * reverse.c (record_restore): Move null-check to before pointer
4279 dereference.
4280
bfffb7e3
MS
4281 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4282
a9dc8dcc
MS
4283 * objc-lang.c (selectors_info): Add explanitory comment.
4284 (classes_info): Ditto.
4285
478fd957
UW
42862011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4287
4288 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4289 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4290 versions of the trampoline. Handle Thumb vs. ARM addresses.
4291 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4292 (arm_linux_init_abi): Install it.
4293 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4294 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4295
0480cefa
MS
42962011-02-28 Michael Snyder <msnyder@vmware.com>
4297
ac50ab3b
MS
4298 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4299 a little bigger, to avoid possibility of an overflow.
4300
f63fbe86
MS
4301 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4302 buffers a little bigger, to avoid possibility of an overflow.
4303
9e91a352
MS
4304 * coffread.c (coff_getfilename): Add check to avoid overflow.
4305
f2eb0bc8 4306 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
4307 avoid overflow.
4308 (classes_info): Error out on too long REGEXP.
4309
098ab512
MS
4310 * infrun.c (handle_inferior_event): Remove unused function call.
4311
bcbd1de9
MS
4312 * fork-child.c (fork_inferior): Remove ifdef'd code and
4313 unused variable.
4314
2e456570
MS
4315 * linux-thread-db.c (attach_thread): Discard unused value.
4316
14571dad
MS
4317 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4318
a9cbf802
MS
4319 * remote.c (remote_get_noisy_reply): Discard unused value.
4320 (remote_vcont_resume): Ditto.
4321 (remote_stop_ns): Ditto.
4322
5715d26e
MS
4323 * linespec.c (decode_objc): Delete unused variable.
4324
4a9bca80
MS
4325 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4326
f47fb265
MS
4327 * dwarf2read.c (add_partial_symbol): Discard unused values.
4328 (read_base_type): Delete unused variable.
4329
e81cff30
MS
4330 * dbxread.c (read_dbx_symtab): Discard unused value.
4331
262acaeb
MS
4332 * eval.c (evaluate_subexp_standard): Delete unused variable,
4333 and discard unused values.
4334
df983543
MS
4335 * infcmd.c (_initialize_infcmd): Discard unused values.
4336
89acf84d
MS
4337 * stabsread.c (rs6000_builtin_type): Missing break statement.
4338
ab8b8aca
MS
4339 * dbxread.c (process_one_symbol): Discard unused value.
4340
6b4511ab
MS
4341 * coffread.c (coff_end_symtab): Delete unused variable.
4342
e8e80198
MS
4343 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4344 (dwarf2_add_typedef): Delete unused variable.
4345 (read_namespace): Ditto.
4346 (dwarf_decode_macros): Ditto.
4347
976aa66e
MS
4348 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4349
5b92b49f
MS
4350 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4351
91e8df85
MS
4352 * p-valprint.c (pascal_val_print): Discard unused value.
4353
899500d6
MS
4354 * utils.c (nquery): Call va_end before return;
4355 (yquery): Ditto.
4356 (query): Ditto.
4357
0480cefa
MS
4358 * proc-service.c (ps_plog): Call va_end before return.
4359
fb6a3ed3
TT
43602011-02-28 Tom Tromey <tromey@redhat.com>
4361
4362 * python/python.c (gdbpy_value_cst): New global.
4363 (_initialize_python): Initialize it.
4364 * python/python-internal.h (gdbpy_value_cst): Declare.
4365 * python/py-value.c (convert_value_from_python): Use
4366 gdbpy_value_cst.
4367
c05202a1
MS
43682011-02-28 Michael Snyder <msnyder@vmware.com>
4369
e463f587
MS
4370 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4371
c38eea1a
MS
4372 * breakpoint.c (catch_syscall_completer): Free malloced list.
4373
3ef09ab5
MS
4374 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4375
8f9a01ee
MS
4376 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4377 (lval_func_check_synthetic_pointer): Ditto.
4378 (lval_func_free_closure): Fix use-after-free.
c05202a1 4379
477d0d57
TT
43802011-02-28 Tom Tromey <tromey@redhat.com>
4381
4382 * psymtab.c (expand_partial_symbol_tables): Use
4383 ALL_OBJFILE_PSYMTABS.
4384
20937029
JK
43852011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4386
4387 * objc-lang.c (selectors_info): Error on too long REGEXP.
4388
907b7f4f
MS
43892011-02-28 Michael Snyder <msnyder@vmware.com>
4390
92e96192
MS
4391 * python/py-param.c (set_parameter_value): Add missing
4392 break statement.
4393
907b7f4f
MS
4394 * linux-record.c (record_linux_system_call): Add missing
4395 break statement.
4396
12c5a436
UW
43972011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4398
4399 * breakpoint.c (print_one_breakpoint_location): Remove unused
4400 argument PRINT_ADDRESS_BITS. Update callers.
4401 (print_one_breakpoint): Likewise.
4402
170b53b2
UW
44032011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4404
4405 * breakpoint.c (wrap_indent_at_field): New function.
4406 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4407 Allocate ui_stream locally instead of using STB argument.
4408 (print_one_breakpoint_location): Update call.
4409 * ui-out.c (ui_out_query_field): New function.
4410 * ui-out.h (ui_out_query_field): Add prototype.
4411
8ab1f94d
JB
44122011-02-28 Joel Brobecker <brobecker@adacore.com>
4413
4414 From Michael Snyder <msnyder@vmware.com>
4415 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4416
7d488639
MS
44172011-02-27 Michael Snyder <msnyder@vmware.com>
4418
ae179fba
MS
4419 * objc-lang.c (selectors_info): Prevent string overrun.
4420
086dbf66
MS
4421 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4422 error in strncpy.
4423
f2eb0bc8 4424 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
4425 outer scope.
4426
7d488639
MS
4427 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4428 param with a local variable of the same name.
4429
3bd0f5ef
MS
44302011-02-27 Michael Snyder <msnyder@vmware.com>
4431
4432 * value.c (value_from_history_ref): New function.
4433 * value.h (value_from_history_ref): Export.
4434 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4435 to parse value history references.
4436 * cli/cli-utils.h (get_number_trailer): Update comment.
4437
44382011-02-27 Michael Snyder <msnyder@vmware.com>
4439
4440 * inferior.c (detach_inferior_command): Use get_number_or_range.
4441 (kill_inferior_command): Ditto.
4442 (remove_inferior_command): Ditto.
4443 (initialize_inferiors): Make command names plural.
4444 Update help strings.
4445
766062f6
MS
44462011-02-27 Michael Snyder <msnyder@vmware.com>
4447
4448 * darwin-nat-info.c: Fix comment typo.
4449 * dwarf2expr.h: Ditto.
4450 * fbsd-nat.c: Ditto.
4451 * fbsd-nat.h: Ditto.
4452 * frame-unwind.h: Ditto.
4453 * frame.h: Ditto.
4454 * hppa-hpux-tdep.c: Ditto.
4455 * i386-linux-nat.c: Ditto.
4456 * linux-nat.c: Ditto.
4457 * nbsd-nat.c: Ditto.
4458 * nbsd-nat.h: Ditto.
4459 * ppc-linux-tdep.c: Ditto.
4460 * serial.c: Ditto.
4461 * ui-file.h: Ditto.
4462 * tui/tui-winsource.c: Ditto.
4463
f2c4ead5
MS
44642011-02-26 Michael Snyder <msnyder@vmware.com>
4465
86b887df
MS
4466 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4467
66fd3b1e
MS
4468 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4469
8c814cdd
MS
4470 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4471 with a local variable of the same name.
4472
6d5e094a 4473 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 4474 param with a local variable of the same name.
6d5e094a 4475 (i387_supply_xsave): Ditto.
e5b3d7d6 4476
5eee517d
MS
4477 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4478 that it does not shadow a function parameter.
4479
8fbf6b93
MS
4480 * i386-nat.c (i386_length_and_rw_bits): Document that case
4481 statement is meant to fall through.
4482
cb969d61
MS
4483 * expprint.c (dump_subexp_body_standard): Document that case
4484 statement is meant to fall through.
4485
f2c4ead5
MS
4486 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4487 dead if statement. Condition can't be false.
4488
b021a221
MS
44892011-02-25 Michael Snyder <msnyder@vmware.com>
4490
4491 * arm-tdep.c: Fix typos in comments.
4492 * bsd-uthread.c: Ditto.
4493 * completer.c: Ditto.
4494 * corelow.c: Ditto.
4495 * cp-namespace.c: Ditto.
4496 * cp-support.c: Ditto.
4497 * cris-tdep.c: Ditto.
4498 * dbxread.c: Ditto.
4499 * dwarf2read.c: Ditto.
4500 * frame.h: Ditto.
4501 * gdbtypes.h: Ditto.
4502 * inferior.h: Ditto.
4503 * mdebugread.c: Ditto.
4504 * mips-tdep.c: Ditto.
4505 * ppc-linux-nat.c: Ditto.
4506 * ppc-linux-tdep.c: Ditto.
4507 * printcmd.c: Ditto.
4508 * sol-thread.c: Ditto.
4509 * solib-frv.c: Ditto.
4510 * solist.h: Ditto.
4511 * sparc64-tdep.c: Ditto.
4512 * spu-tdep.c: Ditto.
4513 * stabsread.c: Ditto.
4514 * symfile.c: Ditto.
4515 * valops.c: Ditto.
4516 * varobj.c: Ditto.
4517 * vax-nat.c: Ditto.
4518 * python/py-block.c: Ditto.
4519 * python/py-symbol.c: Ditto.
4520 * python/py-symtab.c: Ditto.
4521 * python/py-value.c: Ditto.
4522 * tui/tui-win.c: Ditto.
4523
c82c0b55
MS
45242011-02-25 Michael Snyder <msnyder@vmware.com>
4525
4526 * inferior.c (print_inferior): Accept a string instead of an int
4527 for requested_inferiors, and use get_number_or_range to parse it.
4528 (info_inferiors_command): Pass args string to print_inferior.
4529 (initialize_inferiors): Change help string for info inferiors.
4530 * inferior.h (print_inferior): Export prototype change.
4531
ee00cd23
TT
45322011-02-25 Tom Tromey <tromey@redhat.com>
4533
4534 * common/ax.def (invalid2): Set to 0x31.
4535
0502ed8c
JK
45362011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4537
4538 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4539 L and plongest.
4540 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4541 use L and plongest.
4542 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4543
2c9de912
MS
45442011-02-24 Michael Snyder <msnyder@vmware.com>
4545
4546 * Makefile.in (clean): Make clean should remove generated files
4547 observer.h and observer.inc.
4548
a04b0428
JB
45492011-02-24 Joel Brobecker <brobecker@adacore.com>
4550
4551 Revert the following patch (not approved yet):
4552 2011-02-21 Hui Zhu <teawater@gmail.com>
4553 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4554 * ax-gdb.c (gen_printf_expr_callback): New function.
4555 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4556 * ax-general.c (ax_memcpy): New function.
4557 (ax_print): Handle "printf".
4558 (ax_reqs): Ditto.
4559 * ax.h (ax_memcpy): Forward declare.
4560 * common/ax.def (invalid2): Removed.
4561 (printf): New entry.
4562 * printcmd.c (printcmd.h): New include.
4563 (string_printf): New function.
4564 (ui_printf): Removed.
4565 (printf_command): Remove static. Call string_printf.
4566 (eval_command): Call string_printf.
4567 * printcmd.h: New file.
4568 * tracepoint.c (validate_actionline,
4569 encode_actions_1): handle printf_command.
4570
2b52013f
TT
45712011-02-23 Tom Tromey <tromey@redhat.com>
4572
4573 * ax-general.c (ax_pick): Add missing newline.
4574
e5a67952
MS
45752011-02-23 Michael Snyder <msnyder@vmware.com>
4576
4577 * breakpoint.c (breakpoint_1): Change first argument from an int
4578 to a char pointer, so that the function now accepts a list of
f2eb0bc8 4579 breakpoints rather than just one. Use new function
e5a67952
MS
4580 'number_is_in_list' to implement.
4581 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4582 (watchpoints_info): Ditto.
4583 (tracepoints_info): Ditto.
4584 (maintenance_info_breakpoints): Ditto.
4585 (_initialize_breakpoint): Update help strings to reflect the fact
4586 that these functions can now take more than one argument.
4587 * cli/cli-utils.c (number_is_in_list): New function.
4588 * cli/cli-utils.h (number_is_in_list): Export.
4589
45902011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
4591
4592 * memattr.c (mem_enable_command): Use get_number_or_range.
4593 (mem_disable_command): Ditto.
4594 (mem_delete_command): Ditto.
4595 (_initialize_mem): Tweak usage message to reflect multiple
4596 arguments.
4597
6e6fbe60
DE
45982011-02-22 Doug Evans <dje@google.com>
4599
4600 Add gdb.lookup_global_symbol python function.
4601 * NEWS: Add entry.
4602 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4603 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4604 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4605
79b97fa8
TT
46062011-02-22 Tom Tromey <tromey@redhat.com>
4607
4608 * language.c (language_class_name_from_physname): Rename
4609 'curr_language' argument to 'lang'; use in body.
4610
298f437a
MS
46112011-02-22 Michael Snyder <msnyder@vmware.com>
4612
4613 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4614
b7ea3126
PA
46152011-02-22 Pedro Alves <pedro@codesourcery.com>
4616
4617 * frame-unwind.h: Fix comment to mention the this frame, not the
4618 next.
4619
58ee6d60
TT
46202011-02-22 Tom Tromey <tromey@redhat.com>
4621
4622 * symfile.c (auto_solib_limit): Remove.
4623 * symfile.h (auto_solib_limit): Remove.
4624
36238dbc
JB
46252011-02-22 Joel Brobecker <brobecker@adacore.com>
4626
4627 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4628
aea5b279
MS
46292011-02-21 Michael Snyder <msnyder@vmware.com>
4630
4631 * gdbthread.h (print_thread_info): Change prototype.
4632 * thread.c (print_thread_info): Accept char* instead of int for
4633 requested_threads argument. Use new function number_is_in_list
4634 to determine which threads to list.
4635 (info_threads_command): Pass char* to print_thread_info.
4636 * cli/cli-utils.c (number_is_in_list): New function.
4637 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 4638 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
4639 print_thread_info.
4640 (print_one_inferior): Ditto.
4641 (mi_cmd_list_thread_groups): Ditto.
4642
8caa75ee
JK
46432011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4644
4645 * common/Makefile.in (CFLAGS): New.
4646 (COMPILE): Add $(CFLAGS).
4647
ea666128
TT
46482011-02-21 Tom Tromey <tromey@redhat.com>
4649
4650 * breakpoint.c (catch_syscall_command_1): Fix typo.
4651
e9cafbcc
TT
46522011-02-21 Tom Tromey <tromey@redhat.com>
4653
4654 * reverse.c: Include cli-utils.h.
4655 * printcmd.c: Include cli-utils.h.
4656 (string_printf): Use skip_spaces.
4657 * cli/cli-utils.h: New file.
4658 * cli/cli-utils.c: New file.
4659 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4660 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4661 * breakpoint.h (get_number, get_number_or_range): Move to
4662 cli-utils.h.
4663 * breakpoint.c: Include cli-utils.h.
4664 (get_number_trailer, get_number, get_number_or_range)
4665 (ep_skip_leading_whitespace): Move to cli-utils.c.
4666 (create_breakpoint_sal, find_condition_and_thread)
4667 (decode_static_tracepoint_spec, watch_command_1)
4668 (watch_maybe_just_location, ep_parse_optional_if_clause)
4669 (catch_fork_command_1, catch_exec_command_1)
4670 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4671 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4672 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4673 (HFILES_NO_SRCDIR): Add cli-utils.h.
4674 (cli-utils.o): New target.
4675
f67fd822
PM
46762011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4677
4678 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4679 before calling discard_all_inferiors.
4680
c9def01d
UW
46812011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4682
4683 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4684 (struct builtin_opencl_type): Remove.
4685 (builtin_opencl_type): Change return type to "struct type **".
4686 (lookup_opencl_vector_type): Update caller.
4687 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4688 (build_opencl_types): Install plain array of "struct type *"
4689 instead of "struct builtin_opencl_type".
4690
e3039479
UW
46912011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4692 Ulrich Weigand <uweigand@de.ibm.com>
4693
4694 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4695 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4696 (struct arm_linux_hwbp_cap): New type.
4697 (arm_linux_get_hwbp_cap): New function.
4698 (arm_linux_get_hw_breakpoint_count): Likewise.
4699 (arm_linux_get_hw_watchpoint_count): Likewise.
4700 (arm_linux_can_use_hw_breakpoint): Likewise.
4701 (arm_hwbp_type): New type.
4702 (arm_hwbp_control_t): Likewise.
4703 (struct arm_linux_hw_breakpoint): Likewise.
4704 (struct arm_linux_thread_points): Likewise.
4705 (arm_threads): New global variable.
4706 (arm_linux_find_breakpoints_by_tid): New function.
4707 (arm_hwbp_control_initialize): Likewise.
4708 (arm_hwbp_control_is_enabled): Likewise.
4709 (arm_hwbp_control_disable): Likewise.
4710 (arm_linux_hw_breakpoint_initialize): Likewise.
4711 (arm_linux_get_hwbp_type): Likewise.
4712 (arm_linux_hw_watchpoint_initialize): Likewise.
4713 (arm_linux_hw_breakpoint_equal): Likewise.
4714 (arm_linux_insert_hw_breakpoint1): Likewise.
4715 (arm_linux_remove_hw_breakpoint1): Likewise.
4716 (arm_linux_insert_hw_breakpoint): Likewise.
4717 (arm_linux_remove_hw_breakpoint): Likewise.
4718 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4719 (arm_linux_insert_watchpoint): Likewise.
4720 (arm_linux_remove_watchpoint): Likewise.
4721 (arm_linux_stopped_data_address): Likewise.
4722 (arm_linux_stopped_by_watchpoint): Likewise.
4723 (arm_linux_watchpoint_addr_within_range): Likewise.
4724 (arm_linux_new_thread): Likewise.
4725 (arm_linux_thread_exit): Likewise.
4726 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4727 related target callbacks. Register arm_linux_new_thread and
4728 arm_linux_thread_exit.
4729 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4730 * arm-tdep.c (arm_pc_is_thumb): Make global.
4731 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4732
b5db5dfc
UW
47332011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
4734
4735 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4736 per-frame locations while within a function epilogue.
4737
e25b2cfa
PM
47382011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4739
4740 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4741 to GNU coding standards.
4742
4af53f97
PM
47432011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
4744
4745 Allow use of mingw native on Windows 95 OS.
e25b2cfa 4746 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
4747 (ser_windows_close): Only call CancelIo if function exists.
4748 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4749 to check for existence of CancelIo function in kernel32 DLL.
4750
d0e92d82
HZ
47512011-02-21 Hui Zhu <teawater@gmail.com>
4752
4753 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4754 * ax-gdb.c (gen_printf_expr_callback): New function.
4755 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4756 * ax-general.c (ax_memcpy): New function.
4757 (ax_print): Handle "printf".
4758 (ax_reqs): Ditto.
4759 * ax.h (ax_memcpy): Forward declare.
4760 * common/ax.def (invalid2): Removed.
4761 (printf): New entry.
4762 * printcmd.c (printcmd.h): New include.
4763 (string_printf): New function.
4764 (ui_printf): Removed.
4765 (printf_command): Remove static. Call string_printf.
4766 (eval_command): Call string_printf.
4767 * printcmd.h: New file.
4768 * tracepoint.c (validate_actionline,
4769 encode_actions_1): handle printf_command.
4770
7d357efd
MS
47712011-02-19 Michael Snyder <msnyder@vmware.com>
4772
4773 * reverse.c (delete_one_bookmark): Argument is now bookmark
4774 id rather than pointer to bookmark struct.
4775 (delete_bookmark_command): Use get_number_or_range.
4776 (goto_bookmark_command): Parse with get_number instead of strtoul.
4777 (bookmark_1): New function. Print info for one bookmark.
4778 (bookmarks_info): Use get_number_or_range and bookmark_1.
4779
7a45ebd7
MS
47802011-02-18 Michael Snyder <msnyder@vmware.com>
4781
f2eb0bc8 4782 * thread.c (info_threads_command): Re-implement using
7a45ebd7 4783 get_number_or_range.
65ebfb52 4784 (thread_apply_command): Ditto.
7a45ebd7 4785
94d5e490
TT
47862011-02-18 Tom Tromey <tromey@redhat.com>
4787
4788 * common/ax.def: New file.
4789 * ax.h (enum agent_op): Use ax.def.
4790 * ax-general.c (aop_map): Use ax.def.
4791
c7f96d2b
TT
47922011-02-18 Tom Tromey <tromey@redhat.com>
4793
4794 * ax-general.c (aop_map): Add pick and rot.
4795 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4796 <DW_OP_rot>: Implement.
4797 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4798 (ax_pick): Declare.
4799 * ax-general.c (ax_pick): New function.
4800
66694b75
TT
48012011-02-18 Tom Tromey <tromey@redhat.com>
4802
4803 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4804
eeaafae2
JK
48052011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4806 Tom Tromey <tromey@redhat.com>
4807
4808 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4809 make_symbol_overload_list_block with NULL BLOCK.
4810 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4811
3c3fe74c
PA
48122011-02-18 Pedro Alves <pedro@codesourcery.com>
4813
4814 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4815 * breakpoint.h (get_number_or_range): Declare.
4816 * printcmd.c (ALL_DISPLAYS): Declare.
4817 (delete_display): Reimplement taking a display pointer.
4818 (undisplay_command): Accept a range of displays to delete, using
4819 get_number_or_range.
4820
13163d80
PM
48212011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4822
4823 * c-valprint.c (c_val_print): Add embedded_offset to address
4824 for arrays of unspecified length.
4825 * p-valprint.c (pascal_val_print): Likewise.
4826
b434a28f
YQ
48272011-02-18 Yao Qi <yao@codesourcery.com>
4828
4829 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4830 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4831 (thumb_process_displaced_insn): New.
4832 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4833 call to arm_process_displaced_insn.
4834 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4835
9f6f94ff
TT
48362011-02-17 Tom Tromey <tromey@redhat.com>
4837
4838 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4839 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4840 compile_dwarf_to_ax. No longer static. Call
4841 dwarf2_compile_cfa_to_ax.
4842 (locexpr_tracepoint_var_ref): Update.
4843 (loclist_tracepoint_var_ref): Update.
4844 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4845 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4846 argument; add 'gdbarch' and 'pc'.
4847 (dwarf2_compile_cfa_to_ax): New function.
4848 (dwarf2_frame_cache): Update.
4849
e67ad678
JB
48502011-02-17 Joel Brobecker <brobecker@adacore.com>
4851
4852 * ada-lang.c (ada_type_of_array): Fix the size of the array
4853 in the case of an unconstrained packed array.
4854
946ebb0d
YQ
48552011-02-17 Yao Qi <yao@codesourcery.com>
4856
4857 * common/Makefile.in: Add more targets for make.
4858
1ba1b353
TT
48592011-02-16 Tom Tromey <tromey@redhat.com>
4860
4861 * dwarf2loc.c (unimplemented): Fix typo.
4862
b1bfef65
TT
48632011-02-16 Tom Tromey <tromey@redhat.com>
4864
4865 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4866 (compile_dwarf_to_ax) <default>: Use unimplemented.
4867 <DW_OP_deref>: Update.
4868 (disassemble_dwarf_expression): Update.
4869 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4870 (decode_locdesc): Update.
4871 * dwarf2expr.h (dwarf_stack_op_name): Update.
4872
5f1e6f19
TT
48732011-02-16 Tom Tromey <tromey@redhat.com>
4874
4875 * ax.h (struct aop_map) <name>: Now const.
4876
a0c78a73
PA
48772011-02-16 Tom Tromey <tromey@redhat.com>
4878
4879 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4880 than axs_rvalue.
4881
946ebb0d 48822011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
4883
4884 * infrun.c (get_displaced_step_closure_by_addr): New.
4885 * inferior.h: Declare it.
4886 * arm-tdep.c: (arm_pc_is_thumb): Call
4887 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4888 returns non-NULL.
4889
08807d5a
PA
48902011-02-16 Pedro Alves <pedro@codesourcery.com>
4891 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 gdb/
4894 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4895
29976f3f
PA
48962011-02-16 Pedro Alves <pedro@codesourcery.com>
4897 Jan Kratochvil <jan.kratochvil@redhat.com>
4898
4899 * value.c (value_contents_copy_raw): Extend describing comment.
4900 Assert that the destination contents we're overwriting are wholly
4901 available.
fb68ae73 4902 (value_contents_copy): Extend describing comment.
29976f3f 4903
cd24cfaa
PA
49042011-02-16 Pedro Alves <pedro@codesourcery.com>
4905 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 * value.c (value_available_contents_eq): Remove redundant local
4908 variables. Fix available contents comparision.
4909 * value.h (value_available_contents_eq): Extend describing
4910 comment.
4911
60bbf338
YQ
49122011-02-16 Yao Qi <yao@codesourcery.com>
4913
4914 * thread.c (info_threads_command): Add missing i18n markup and remove
4915 trailing newline.
4916
17450429
PP
49172011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4918
4919 * breakpoint.c (longjmp_names): New variable.
4920 (struct breakpoint_objfile_data): New type.
4921 (breakpoint_objfile_key): New variable.
4922 (msym_not_found): New variable.
4923 (msym_not_found_p): New predicate.
4924 (get_breakpoint_objfile_data): New function.
4925 (create_overlay_event_breakpoint): Check per-objfile cache for
4926 symbols first.
4927 (create_longjmp_master_breakpoint): Likewise.
4928 (create_std_terminate_master_breakpoint): Likewise.
4929 (create_exception_master_breakpoint): Likewise.
4930 (_initialize_breakpoint): Register per-objfile data key.
4931
af02033e
PP
49322011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4933
4934 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4935 parameter value.
4936 (create_longjmp_master_breakpoint): Loop over longjmp names.
4937 (create_std_terminate_master_breakpoint): Const-propagate parameter
4938 value.
4939 (update_breakpoints_after_exec): Adjust.
4940 (breakpoint_re_set): Adjust.
4941
60f98dde
MS
49422011-02-15 Michael Snyder <msnyder@vmware.com>
4943
cdf99611
MS
4944 * thread.c (info_threads_command): Process arg as thread id,
4945 or list of thread ids.
4946 (thread_find_command): New command.
4947 (_initialize_thread): Document argument for info threads.
4948 Document 'thread find' command.
4949 * NEWS: Document new command "thread find".
60f98dde 4950
0feedb2c
JK
49512011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4954 * aclocal.m4: Regenerated with aclocal-1.11.1.
4955 * common/configure: Regenerate with autoconf-2.64.
4956
648cd113
KW
49572011-02-15 Ken Werner <ken.werner@de.ibm.com>
4958
4959 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4960 bool data type to a size of one byte.
4961
5657161f
PA
49622011-02-15 Pedro Alves <pedro@codesourcery.com>
4963 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 * target.c (memory_xfer_live_readonly_partial): Document where to
4966 look for interface description.
4967
494e194e
YQ
49682011-02-15 Yao Qi <yao@codesourcery.com>
4969
4970 PR tdep/12352
4971 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4972 order to store PC value on stack instead of text section.
4973
d9492458
TJB
49742011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4975
4976 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4977 the EFP register set size.
4978 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4979 data from the VMX register.
4980 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4981 and write data from/to the VMX register.
4982
cdf99611
MS
49832011-02-14 Michael Snyder <msnyder@vmware.com>
4984
4985 * command.h (enum command_class): New class 'no_set_class', for
4986 "show" commands without a corresponding "set" command.
4987 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4988 * copying.c (_initialize_copying): Ditto for "show copying" and
4989 "show warranty".
4990 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4991 "show version".
4992 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4993 which there is no corresponding "set" command (eg. "show copying").
4994
424447ee
PA
49952011-02-14 Pedro Alves <pedro@codesourcery.com>
4996 Jan Kratochvil <jan.kratochvil@redhat.com>
4997
4998 * exec.c (section_table_available_memory): Change `len' parameter
4999 type to ULONGEST.
5000 * exec.h (section_table_available_memory): Ditto.
5001 * value.h (read_value_memory): Rename the `offset' parameter to
5002 `embedded_offset'.
5003
c0f61f9c 50042011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 5005 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
5006
5007 * memrange.c (compare_mem_ranges): Mention sort order in
5008 describing comment.
5009 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5010 * tracepoint.c (traceframe_available_memory): Extend comment to
5011 mention what happens to RESULT when the target does not support
5012 the query.
5013
6bfc80c7
PA
50142011-02-14 Pedro Alves <pedro@codesourcery.com>
5015 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5018 range.
5019
e7303042
PA
50202011-02-14 Pedro Alves <pedro@codesourcery.com>
5021
5022 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5023 No longer handle NULL values.
5024
8af8e3bc
PA
50252011-02-14 Pedro Alves <pedro@codesourcery.com>
5026
5027 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5028 * value.c: Include "exceptions.h".
5029 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5030 generic error.
5031 * cp-abi.c: Include gdb_assert.h.
5032 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5033 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5034 errors.
5035 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5036 parameters. No longer returns -1 on error.
5037 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5038 `val' parameters.
5039 * cp-valprint.c: Include exceptions.h.
5040 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5041 the baseclass_offset. Handle unavailable base classes. Use
5042 val_print_invalid_address.
5043 * p-valprint.c: Include exceptions.h.
5044 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5045 when fetching the baseclass_offset. No longer expect
5046 baseclass_offset returning -1. Handle unavailable base classes.
5047 Use val_print_invalid_address.
5048 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5049 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5050 `embedded_offset' and `val' parameters. Adjust.
5051 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5052 parameter, and change its type to gdb_byte pointer. Add
5053 `embedded_offset' and `val' parameters. Adjust. No longer expect
5054 baseclass_offset returning -1.
5055 (value_dynamic_cast): Use value_contents_for_printing rather than
5056 value_contents. Adjust.
5057 (search_struct_field): No longer expect baseclass_offset returning
5058 -1.
5059 (search_struct_method): If reading memory from the target is
5060 necessary, wrap it in a new value to pass to baseclass_offset. No
5061 longer expect baseclass_offset returning -1.
5062 (find_method_list): No longer expect baseclass_offset returning
5063 -1. Use value_contents_for_printing rather than value_contents.
5064 * valprint.c (val_print_invalid_address): New function.
5065 * valprint.h (val_print_invalid_address): Declare.
5066 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5067 and `val' parameters. No longer expect baseclass_offset returning
5068 -1. Adjust.
5069 * gnu-v2-abi.c: Include "exceptions.h".
5070 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5071 parameters. Handle unavailable memory. Recurse through
5072 gnuv2_baseclass_offset directly, rather than through
5073 baseclass_offset. No longer returns -1 on not found, instead
5074 throw an error.
5075 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5076 `val' parameters. Adjust.
5077
1b28d0b3
PA
50782011-02-14 Pedro Alves <pedro@codesourcery.com>
5079
5080 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5081 almost but not quite adjacent.
5082
ec0a52e1
PA
50832011-02-14 Pedro Alves <pedro@codesourcery.com>
5084
5085 * value.h (value_entirely_available): Declare.
5086 * value.c (value_entirely_available): New function.
5087 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5088 real type if the pointer is unavailable.
5089
24e6bcee
PA
50902011-02-14 Pedro Alves <pedro@codesourcery.com>
5091
5092 * valops.c (value_repeat): Use read_value_memory instead of
5093 read_memory.
5094
39d37385
PA
50952011-02-14 Pedro Alves <pedro@codesourcery.com>
5096
5097 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5098 * value.c (value_contents_copy_raw, value_contents_copy): New
5099 functions.
5100 (value_primitive_field): Use value_contents_copy_raw instead of
5101 memcpy.
5102 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5103 memcpy.
5104 (value_array, value_slice): Ditto.
5105 * valarith.c (value_subscripted_rvalue): Use
5106 value_contents_copy_raw instead of memcpy.
5107
a3d34bf4
PA
51082011-02-14 Pedro Alves <pedro@codesourcery.com>
5109
5110 <unavailable> references.
5111
5112 * valops.c (get_value_at): Use value_from_contents_and_address,
5113 avoiding read_memory.
5114
9fc6d940
PA
51152011-02-14 Pedro Alves <pedro@codesourcery.com>
5116
5117 * c-valprint.c (c_val_print): Print a string with unavailable
5118 contents as an array.
5119
5467c6c8
PA
51202011-02-14 Pedro Alves <pedro@codesourcery.com>
5121
5122 * value.h (unpack_bits_as_long): Delete declaration.
5123 (unpack_value_bits_as_long): Declare.
5124 (unpack_value_field_as_long): Declare.
5125 (value_field_bitfield): Declare.
5126 * value.c (unpack_bits_as_long): Rename to...
5127 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5128 value parameters. Return the extracted result in a new output
5129 parameter. If the value contents are unavailable, return false,
5130 otherwise return true.
5131 (unpack_value_bits_as_long): New.
5132 (unpack_field_as_long): Rename to...
5133 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5134 Add embedded_offset and value parameters. Return the extracted
5135 result in a new output parameter. If the value contents are
5136 unavailable, return false, otherwise return true.
5137 (unpack_value_field_as_long): New.
5138 (unpack_field_as_long_1): New.
5139 (unpack_field_as_long): Reimplement as wrapper around
5140 unpack_value_field_as_long_1.
5141 (value_field_bitfield): New function.
5142 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5143 unpack_value_bits_as_long. Mark the value as unavailable, if it
5144 is unavailable.
5145 * jv-valprint.c (java_print_value_fields): Use
5146 value_field_bitfield.
5147 * p-valprint.c (pascal_object_print_value_fields): Use
5148 value_field_bitfield.
5149 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5150
3158c6ed
PA
51512011-02-14 Pedro Alves <pedro@codesourcery.com>
5152
5153 * value.c (get_internalvar_integer): Also return the int value of
5154 TYPE_CODE_INT INTERNALVAR_VALUE values.
5155 (set_internalvar): Don't special case TYPE_CODE_INT.
5156
9fbdca0d
PA
51572011-02-14 Pedro Alves <pedro@codesourcery.com>
5158
5159 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5160 INTERNALVAR_POINTER.
5161 <pointer>: Delete.
5162 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5163 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5164 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5165
c8c1c22f
PA
51662011-02-14 Pedro Alves <pedro@codesourcery.com>
5167
5168 * value.h (value_available_contents_eq): Declare.
5169 * value.c (find_first_range_overlap): New function.
5170 (value_available_contents_eq): New function.
5171 * valprint.c (val_print_array_elements): Use
5172 value_available_contents_eq.
5173 * ada-valprint.c (val_print_packed_array_elements): Use
5174 value_available_contents_eq.
5175 * jv-valprint.c (java_value_print): Use
5176 value_available_contents_eq.
5177
e6e4e701
PA
51782011-02-14 Pedro Alves <pedro@codesourcery.com>
5179
5180 * target.c (target_read_live_memory): New function.
5181 (memory_xfer_live_readonly_partial): New.
5182 (memory_xfer_partial): If reading from a traceframe, fallback to
5183 reading unavailable read-only memory from read-only regions of
5184 live target memory.
5185 * tracepoint.c (disconnect_tracing): Adjust.
5186 (set_current_traceframe): New, factored out from
5187 set_traceframe_number.
5188 (set_traceframe_number): Reimplement to only change the traceframe
5189 number on the GDB side.
5190 (do_restore_current_traceframe_cleanup): Adjust.
5191 (make_cleanup_restore_traceframe_number): New.
5192 (cur_traceframe_number): New global.
5193 (tfile_open): Set cur_traceframe_number to no traceframe.
5194 (set_tfile_traceframe): New function.
5195 (tfile_trace_find): If looking up a traceframe using any method
5196 other than by number, make sure the current tfile traceframe
5197 matches gdb's current traceframe. Update the current tfile
5198 traceframe if the lookup succeeded.
5199 (tfile_fetch_registers, tfile_xfer_partial)
5200 (tfile_get_trace_state_variable_value): Make sure the remote
5201 traceframe matches gdb's current traceframe.
5202 * remote.c (remote_traceframe_number): New global.
5203 (remote_open_1): Set it to -1.
5204 (set_remote_traceframe): New function.
5205 (remote_fetch_registers, remote_store_registers)
5206 (remote_xfer_memory, remote_xfer_partial)
5207 (remote_get_trace_state_variable_value): Make sure the remote
5208 traceframe matches gdb's current traceframe.
5209 (remote_trace_find): If looking up a traceframe using any method
5210 other than by number, make sure the current remote traceframe
5211 matches gdb's current traceframe. Update the current remote
5212 traceframe if the lookup succeeded.
5213 * infrun.c (fetch_inferior_event): Adjust.
5214 * tracepoint.h (set_current_traceframe): Declare.
5215 (get_traceframe_number, set_traceframe_number): Add describing
5216 comments.
5217
e6ca34fc
PA
52182011-02-14 Pedro Alves <pedro@codesourcery.com>
5219
5220 Mark pieces of values as unavailable if the corresponding memory
5221 is unavailable.
5222
5223 * valops.c: Include tracepoint.h.
5224 (value_fetch_lazy): Use read_value_memory.
5225 (read_value_memory): New.
5226 * value.h (read_value_memory): Declare.
5227 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5228 * exec.c (section_table_available_memory): New function.
5229 * exec.h (section_table_available_memory): Declare.
5230
2a7498d8
PA
52312011-02-14 Pedro Alves <pedro@codesourcery.com>
5232
5233 * Makefile.in (SFILES): Add memrange.c.
5234 (HFILES_NO_SRCDIR): Add memrange.h.
5235 (COMMON_OBS): Add memrange.o.
5236 * memrange.c: New file.
5237 * memrange.h: New file.
5238 * tracepoint.c: Include memrange.h.
5239 (struct mem_range): Delete.
5240 (mem_range_s): Delete.
5241 (traceframe_available_memory): New function.
5242 * tracepoint.h (traceframe_available_memory): Declare.
5243
b3b9301e
PA
52442011-02-14 Pedro Alves <pedro@codesourcery.com>
5245
5246 * target.h (struct traceframe_info): Forward declare.
5247 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5248 (struct target_ops) <to_traceframe_info>: New field.
5249 (target_traceframe_info): New.
5250 * target.c (update_current_target): Inherit and default
5251 to_traceframe_info.
5252 * remote.c (PACKET_qXfer_traceframe_info): New.
5253 (remote_protocol_features): Register qXfer:traceframe-info:read.
5254 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5255 (remote_traceframe_info): New.
5256 (init_remote_ops): Install it.
5257 (_initialize_remote): Install "set/show remote traceframe-info"
5258 commands.
5259 * tracepoint.h (parse_traceframe_info): Declare.
5260 * tracepoint.c (struct mem_range): New.
5261 (mem_range_s): New typedef.
5262 (struct traceframe_info): New.
5263 (traceframe_info): New global.
5264 (free_traceframe_info): New function.
5265 (clear_traceframe_info): New function.
5266 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5267 info.
5268 (build_traceframe_info): New function.
5269 (tfile_traceframe_info): New function.
5270 (init_tfile_ops): Install tfile_traceframe_info.
5271 (traceframe_info_start_memory, free_result): New functions.
5272 (memory_attributes, traceframe_info_elements): New globals.
5273 (parse_traceframe_info, get_traceframe_info): New functions.
5274 * features/traceframe-info.dtd: New file.
5275 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5276
4e07d55f
PA
52772011-02-14 Pedro Alves <pedro@codesourcery.com>
5278
5279 Base support for <unavailable> value contents.
5280
4e07d55f
PA
5281 * value.h (value_bytes_available): Declare.
5282 (mark_value_bytes_unavailable): Declare.
5283 * value.c (struct range): New struct.
5284 (range_s): New typedef.
5285 (ranges_overlap): New function.
5286 (range_lessthan): New function.
5287 (ranges_contain_p): New function.
5288 (struct value) <unavailable>: New field.
5289 (value_bytes_available): New function.
5290 (mark_value_bytes_unavailable): New function.
5291 (require_not_optimized_out): Constify parameter.
5292 (require_available): New function.
5293 (value_contents_all, value_contents): Require all bytes be
5294 available.
5295 (value_free): Free `unavailable'.
5296 (value_copy): Copy `unavailable'.
5297 * valprint.h (val_print_unavailable): Declare.
5298 * valprint.c (valprint_check_validity): Rename `offset' parameter
5299 to `embedded_offset'. If printing a scalar, check whether the
5300 value chunk is available.
5301 (val_print_unavailable): New.
5302 (val_print_scalar_formatted): Check whether the value is
5303 available.
5304 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5305 pretty-printing unavailable values.
5306
bc9a5551
JK
53072011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5308
5309 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5310 * c-typeprint.c (c_type_print_args): Update the function comment. New
5311 variable param_type, initialize it. Remove const/volatile qualifiers
5312 for language_cplus and !show_artificial. Use param_type.
5313
93b55aa1
JK
53142011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5315
5316 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5317 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5318 * symtab.h (struct symtab) <next>: Comment extension.
5319
181d9476
YQ
53202011-02-12 Yao Qi <yao@codesourcery.com>
5321
5322 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5323
b708a5c7
JK
53242011-02-11 Yao Qi <yao@codesourcery.com>
5325
5326 * common/Makefile.in: Add copyright header.
5327
c5187ac6
PA
53282011-02-11 Pedro Alves <pedro@codesourcery.com>
5329
5330 * infrun.c (proceed): Move switching out and in of tfind mode from
5331 here ...
5332 (fetch_inferior_event): ... to here.
5333
4f3e6fb7
YQ
53342011-02-11 Yao Qi <yao@codesourcery.com>
5335
5336 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5337 libcommon.a.
5338 * configure.ac: Add common to sub dir.
5339 * configure: Regenerate.
5340
b708a5c7
JK
53412011-02-11 Yao Qi <yao@codesourcery.com>
5342
5343 Build libcommon.a.
5344
5345 * common/Makefile.in: New.
5346 * common/configure.ac: New.
5347 * common/aclocal.m4: New.
5348 * common/configure: Generate.
5349
2287cc7e
PA
53502011-02-10 Pedro Alves <pedro@codesourcery.com>
5351
5352 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5353 side of the parenthesis.
5354
5355 Merge from GCC:
5356 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 5357 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 5358
fd62cb89
MS
53592011-02-08 Michael Snyder <msnyder@vmware.com>
5360
5361 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5362
56d2815c
JK
53632011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5364
5365 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5366 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5367 psubd and paddd.
5368
4f7d61a8
JK
53692011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5370
5371 PR 12361.
5372 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5373 phsubsw.
5374 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5375 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5376
54fcddd0
UW
53772011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5378
5379 * dwarf2read.c (read_subroutine_type): Set special calling
5380 convention flag for functions compiled by IBM XL C for OpenCL.
5381 * ppc-sysv-tdep.c: Include "dwarf2.h"
5382 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5383 calling convention.
5384 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5385 IBM OpenCL vector types calling convention.
5386 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5387 (ppc_sysv_abi_broken_return_value): Likewise.
5388 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5389 types calling convention.
5390 (ppc64_sysv_abi_return_value): Likewise.
5391 * spu-tdep.c: Include "dwarf2.h"
5392 (spu_return_value): Implement IBM OpenCL vector types calling
5393 convention.
5394
d6dafb7c
UW
53952011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
5396
5397 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5398 correct ABI for AltiVec vector arguments.
5399
32b72a42
PA
54002011-02-07 Pedro Alves <pedro@codesourcery.com>
5401
5402 * valprint.c (val_print): Extend comment.
5403 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5404 interface explanation to val_print.
5405 (ada_val_print_array): Adjust comment to current interface.
5406 (print_field_values): Adjust comment to current interface.
5407 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5408 explanation to val_print.
5409 * f-valprint.c (f_val_print): Ditto.
5410 * jv-valprint.c (java_val_print): Ditto.
5411 * m2-valprint.c (m2_val_print): Ditto.
5412 * p-valprint.c (pascal_val_print): Ditto.
5413
9998af43
TJB
54142011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
5415
5416 * breakpoint.c (parse_breakpoint_sals): Fix description.
5417
505500db 54182011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 5419 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
5420
5421 * python/py-inferior.c (python_on_normal_stop): New function.
5422 (python_on_resume): New function.
5423 (python_inferior_exit): New function.
5424 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5425 inferior_exit observers.
5426 * python/py-evtregistry.c: New file.
5427 * python/py-threadevent.c : New file.
5428 * python/py-event.c: New file.
5429 * python/py-evts.c: New file.
5430 * python/py-continueevent.c: New file.
5431 * python/py-bpevent.c: New file.
5432 * python/py-signalevent.c: New file.
5433 * python/py-exetiedevent.c: New file.
5434 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5435 Move struct breakpoint_object from here...
5436 * python/python-internal.h: ... to here.
5437 * python/py-event.h: New file.
5438 * python/py-events.h: New file.
5439 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5440 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5441 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5442 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5443 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5444 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5445 Add build rules for all the above.
5446
9e0ac564
TT
54472011-02-04 Tom Tromey <tromey@redhat.com>
5448
5449 * dwarf2read.c (dwarf2_section_empty_p): New function.
5450 (dwarf2_read_section): Use dwarf2_section_empty_p.
5451 (dwarf2_section_size): New function.
5452 (dwarf2_get_section_info): Unconditionally read section.
5453 (dwarf2_read_index): Use dwarf2_section_empty_p.
5454 (partial_read_comp_unit_head): Use dwarf2_section_size.
5455 (dwarf2_symbol_mark_computed): Likewise.
5456
eee5b35e
DD
54572011-02-04 David Daney <ddaney@caviumnetworks.com>
5458
5459 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5460
385203ed
DD
54612011-02-04 David Daney <ddaney@caviumnetworks.com>
5462
5463 * mips-linux-tdep.c: Include xml-syscall.h.
5464 (mips_linux_get_syscall_number): New function.
5465 (mips_linux_init_abi): Add calls to
5466 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5467 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5468 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5469 * syscalls/mips-n32-linux.xml: New file.
5470 * syscalls/mips-n64-linux.xml: New file.
5471 * syscalls/mips-o32-linux.xml: New file.
5472
9277c30c
UW
54732011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
5474
5475 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5476 Complain about inverted range entries.
5477 (dwarf2_record_block_ranges): Likewise.
5478
a3be7890
TJB
54792011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5480
5481 Fix some typos.
5482 * breakpoint.c (update_watchpoint): Fix name of the
5483 update_global_location_list function.
5484 (print_one_breakpoint): Fix typo.
5485 (_initialize_breakpoint): Remove extra space in hbreak help
5486 string.
5487 * breakpoint.h (struct bp_location) <length>: Fix field
5488 description.
5489
041274d8
PA
54902011-02-04 Pedro Alves <pedro@codesourcery.com>
5491
5492 * regcache.c (registers_changed_ptid): Don't explictly always
5493 clear `current_regcache'. Only clear current_thread_ptid and
5494 current_thread_arch when PTID matches. Only reinit the frame
5495 cache if PTID matches the current inferior_ptid. Move alloca(0)
5496 call to ...
5497 (registers_changed): ... here.
5498
c1c2ab58
UW
54992011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
5500
5501 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5502 starts with __stack_chk_guard as stack guard symbol.
5503
9011945e
AB
55042011-02-03 Andrew Burgess <aburgess@broadcom.com>
5505
5506 * disasm.c (compare_lines): Handle the end of sequence markers
5507 within the line table to better support disassembling over
5508 compilation unit boundaries.
5509
e0634ccf
UW
55102011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5511
5512 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5513 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5514 implementation even if no symbols are available.
5515 (thumb_analyze_prologue): Update call to skip_prologue_function.
5516 (arm_analyze_prologue): Likewise.
5517
0e9e9abd
UW
55182011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5519
5520 * arm-tdep.c: Include "observer.h".
5521 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5522 (arm_exidx_data_key): New static variable.
5523 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5524 (struct arm_exidx_data): Likewise.
5525 (arm_exidx_data_free): New function.
5526 (arm_compare_exidx_entries): Likewise.
5527 (arm_obj_section_from_vma): Likewise.
5528 (arm_exidx_new_objfile): Likewise.
5529 (arm_find_exidx_entry): Likewise.
5530 (arm_exidx_fill_cache): Likewise.
5531 (arm_exidx_unwind_sniffer): Likewise.
5532 (arm_exidx_unwind): New global variable.
5533 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5534 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5535 observer. Register arm_exidx_data_key as objfile data.
5536
2e9e421f
UW
55372011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
5538
5539 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5540 due to accessing uninitialized variable. Fix indentation.
5541
580688f3
PA
55422011-02-02 Pedro Alves <pedro@codesourcery.com>
5543
5544 * c-valprint.c (c_value_print): When doing virtual base pointer
5545 adjustment, create a new value with adjusted contents rather than
5546 changing the contents of the value being printed (and getting it
5547 wrong).
5548
3d2c1d41
PA
55492011-02-02 Pedro Alves <pedro@codesourcery.com>
5550
5551 * xml-support.c (xml_find_attribute): New.
5552 (xinclude_start_include): Use it.
5553 * xml-support.h (xml_find_attribute): Declare.
5554 * memory-map.c (memory_map_start_memory)
5555 (memory_map_start_property): Use xml_find_attribute.
5556 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5557 xml_find_attribute.
5558 * remote.c (start_thread): Use xml_find_attribute.
5559 * solib-target.c (library_list_start_segment)
5560 (library_list_start_section, library_list_start_library)
5561 (library_list_start_list): Use xml_find_attribute.
5562 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5563 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5564 (tdesc_start_field): Use xml_find_attribute.
5565
0af3e2db
UW
55662011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
5567
5568 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5569 (BUILD_OCL_VTYPES): Update.
5570
c1039e3c
JB
55712011-02-02 Joel Brobecker <brobecker@adacore.com>
5572
5573 * configure.ac: Work around non-GNU sed limitation when computing
5574 python version number.
5575 * configure: Regenerate.
5576
600ea1be
JK
55772011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5578
5579 Fix debug printing of TYPE_INSTANCE.
5580 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5581 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5582
56c12414
JK
55832011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5584
5585 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5586 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5587 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5588 * ada-operator.inc: Rename the file to ...
5589 * ada-operator.def: ... here, wrap all the entries by macro OP.
5590 * expprint.c (op_name_standard): Remove all the entries. Include
5591 "std-operator.def" instead.
5592 * expression.h (enum exp_opcode): Include "std-operator.def" and
5593 "ada-operator.def". Move all the entries ...
5594 * std-operator.def: ... here, wrap all the entries by macro OP.
5595
c52b559d
PP
55962011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
5597
5598 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5599 * breakpoint.c (remove_jit_event_breakpoints): New function.
5600 * jit.c (jit_descriptor_addr): Delete.
5601 (registering_code): Delete.
5602 (clear_int): Delete.
5603 (jit_inferior_data): New variable.
5604 (struct jit_inferior_data): New type.
5605 (get_jit_inferior_data): New function.
5606 (jit_inferior_data_cleanup): New function.
5607 (jit_read_descriptor): Adjust.
5608 (jit_register_code): Adjust.
5609 (jit_breakpoint_re_set_internal): New function; move code here ...
5610 (jit_inferior_init): ... from here.
5611 (jit_breakpoint_re_set): Adjust.
5612 (jit_reset_inferior_data_and_breakpoints): New function.
5613 (jit_inferior_created_observer): Adjust.
5614 (jit_inferior_exit_hook): Adjust.
5615 (jit_executable_changed_observer): New function.
5616 (jit_event_handler): Adjust.
5617 (_initialize_jit): Adjust.
5618
e839132d
MS
56192011-01-31 Michael Snyder <msnyder@vmware.com>
5620
5621 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5622 line.
5623
47a80e90
TT
56242011-01-31 Tom Tromey <tromey@redhat.com>
5625
5626 PR python/12216:
5627 * python/python.c (execute_gdb_command): Call
5628 prevent_dont_repeat.
5629 * top.c (suppress_dont_repeat): New global.
5630 (dont_repeat): Use it.
5631 (prevent_dont_repeat): New function.
5632 * command.h (prevent_dont_repeat): Declare.
5633
45a43567
TT
56342011-01-31 Tom Tromey <tromey@redhat.com>
5635
5636 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5637 * python/py-breakpoint.c (bppy_set_silent): Use
5638 breakpoint_set_silent.
5639 (bppy_set_thread): Use breakpoint_set_thread.
5640 (bppy_set_task): Use breakpoint_set_task.
5641 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5642 (breakpoint_set_task): Declare.
5643 (make_breakpoint_silent): Remove.
5644 * breakpoint.c (breakpoint_set_silent): New function.
5645 (breakpoint_set_thread): Likewise.
5646 (breakpoint_set_task): Likewise.
5647 (make_breakpoint_silent): Remove.
5648
09d682a4
TT
56492011-01-31 Tom Tromey <tromey@redhat.com>
5650
5651 * breakpoint.h (user_breakpoint_p): Declare.
5652 * breakpoint.c (user_breakpoint_p): New function.
5653 (breakpoint_1): Use it.
5654 (save_breakpoints): Likewise.
5655
9c4ea6c5
JB
56562011-01-31 Joel Brobecker <brobecker@adacore.com>
5657
5658 * configure.ac: Add handling of Python distribution on Windows.
5659 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5660 sysconfig variables are not defined, then do not use them.
5661 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5662 instead. On Windows, return all paths using forward-slashes
5663 rather than backslashes.
5664
ac534cba
JB
56652011-01-31 Joel Brobecker <brobecker@adacore.com>
5666
5667 * configure.ac: Remove fallback behavior for building
5668 against Python. Remove tweaking of Python include path.
5669 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5670 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5671 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5672 Always restore CPPFLAGS and LIBS after linking test.
5673 * configure: Regenerated.
5674 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5675 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5676 * python/python-internal.h: Adjust includes of Python .h files.
5677
c2f0d045
JB
56782011-01-31 Joel Brobecker <brobecker@adacore.com>
5679
5680 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5681 in error message.
5682
6b0c4c1f
JB
56832011-01-31 Joel Brobecker <brobecker@adacore.com>
5684
5685 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5686 value test.
5687
672c9795
YQ
56882011-01-31 Yao Qi <yao@codesourcery.com>
5689
5690 * arm-linux-nat.c: Update calls to regcache_register_status
5691 instead of regcache_valid_p.
5692 * aix-thread.c: Likewise.
5693 * i386gnu-nat.c: Likewise.
5694
80b23b6a
JK
56952011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5696
5697 Fix crash.
5698 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5699 touching TYPE_FIELD_ARTIFICIAL.
5700
4cd712bd
RE
57012011-01-28 Richard Earnshaw <rearnsha@arm.com>
5702
5703 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5704 Committers.
5705
ffd5ec24
PA
57062011-01-28 Pedro Alves <pedro@codesourcery.com>
5707
5708 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5709 selected, don't try iterating over the traceframe's blocks.
5710 (tfile_has_stack): If there's no traceframe selected, then there's
5711 no stack.
5712 (tfile_has_registers): If there's no traceframe selected, then
5713 there's no registers.
5714
e8c9e0a1
PA
57152011-01-28 Pedro Alves <pedro@codesourcery.com>
5716
5717 * target.c (memory_xfer_partial): No need to restore shadows if we
5718 haven't read anything.
5719
de15c4ab
PA
57202011-01-28 Pedro Alves <pedro@codesourcery.com>
5721
5722 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5723 and val_print_scalar_formatted.
5724
9f41c731
PA
57252011-01-27 Pedro Alves <pedro@codesourcery.com>
5726
5727 * tracepoint.c (tfile_read): New.
5728 (tfile_open): Use it.
5729 (tfile_get_traceframe_address): Use it.
5730 (tfile_trace_find): Use it.
5731 (walk_blocks_callback_func): New typedef.
5732 (match_blocktype): New function.
5733 (traceframe_walk_blocks): New function.
5734 (traceframe_find_block_type): New function.
5735 (tfile_fetch_registers, tfile_xfer_partial)
5736 (tfile_get_trace_state_variable_value): Use
5737 traceframe_find_block_type and tfile_read.
5738
cdefc55d
KB
57392011-01-26 Kevin Buettner <kevinb@redhat.com>
5740
5741 * remote-mips.c: Add internationalization mark ups. Remove
5742 trailing \n from already marked up strings.
5743
a81766d8
TT
57442011-01-26 Tom Tromey <tromey@redhat.com>
5745
5746 * python/py-prettyprint.c (print_string_repr): Clear
5747 'addressprint' option when calling val_print_string.
5748 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5749 option when calling val_print_string.
5750
74aedc46
TT
57512011-01-26 Tom Tromey <tromey@redhat.com>
5752
5753 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5754 GDB_PY_LL_ARG.
5755 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5756 macros.
5757 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5758 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5759 (gdb_py_long_as_ulongest): New defines.
5760 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5761 (gdb_py_int_as_long): Declare.
5762 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5763 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5764 (valpy_long): Add comment.
5765 * python/py-utils.c (get_addr_from_python): Use
5766 gdb_py_long_as_ulongest. Handle overflow properly.
5767 (gdb_py_object_from_longest): New function.
5768 (gdb_py_object_from_ulongest): Likewise.
5769 (gdb_py_int_as_long): Likewise.
5770 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5771 * python/py-symtab.c (salpy_get_pc): Use
5772 gdb_py_long_from_ulongest.
5773 (salpy_get_line): Use PyInt_FromLong.
5774 * python/py-param.c (set_parameter_value): Use
5775 gdb_py_int_as_long.
5776 * python/py-lazy-string.c (stpy_get_address): Use
5777 gdb_py_long_from_ulongest.
5778 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5779 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5780 * python/py-breakpoint.c (bppy_set_thread): Use
5781 gdb_py_int_as_long.
5782 (bppy_set_task): Likewise.
5783 (bppy_set_ignore_count): Likewise.
5784 (bppy_set_hit_count): Likewise.
5785 * python/py-block.c (blpy_get_start): Use
5786 gdb_py_object_from_ulongest.
5787 (blpy_get_end): Likewise.
5788 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5789
e4f6d2ec
TJB
57902011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
5791
5792 PR/symtab 11766:
5793 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5794 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5795 equality test for objfile, initialize addr_low if needed.
5796
b30aa278
PA
57972011-01-25 Pedro Alves <pedro@codesourcery.com>
5798
5799 * tui/tui-regs.c (tui_register_format): Remove dead code.
5800
ab2188aa
PA
58012011-01-25 Pedro Alves <pedro@codesourcery.com>
5802
5803 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5804 instead of print_scalar_formatted.
5805 (print_scalar_formatted): Don't handle 's' format strings here,
5806 and add an assertion that we never see such format here.
5807 * valprint.h (val_print_scalar_formatted): Declare.
5808 * valprint.c (val_print_scalar_formatted): New.
5809 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5810 instead of print_scalar_formatted.
5811 * jv-valprint.c (java_val_print): Ditto.
5812 * p-valprint.c (pascal_val_print): Ditto.
5813 * ada-valprint.c (ada_val_print_1): Ditto.
5814 * f-valprint.c (f_val_print): Ditto.
5815 * infcmd.c (registers_info): Ditto.
5816 * m2-valprint.c (m2_val_print): Ditto.
5817
66d61a4c
PA
58182011-01-25 Pedro Alves <pedro@codesourcery.com>
5819
5820 * m2-valprint.c (print_unbounded_array): Pass
5821 value_contents_for_printing rather than value_contents, to
5822 m2_print_array_contents. Also pass in the value.
5823
831adc1f
JK
58242011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5825
5826 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5827 (save_gdb_index_command): Switch to .gdb_index version 4.
5828
20622269
PA
58292011-01-25 Pedro Alves <pedro@codesourcery.com>
5830
5831 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5832 than frame_register, and always pass a valid value to val_print.
5833
585fdaa1
PA
58342011-01-25 Pedro Alves <pedro@codesourcery.com>
5835
5836 Centralize printing "<optimized out>".
5837
5838 * valprint.h (val_print_optimized_out): Declare.
5839 * cp-valprint.c (cp_print_value_fields): Use
5840 val_print_optimized_out.
5841 * jv-valprint.c (java_print_value_fields): Ditto.
5842 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5843 * printcmd.c (print_formatted): Ditto.
5844 * valprint.c (valprint_check_validity): Ditto.
5845 (value_check_printable): Ditto.
5846 (val_print_optimized_out): New.
5847
29ec5263
PA
58482011-01-25 Pedro Alves <pedro@codesourcery.com>
5849
5850 * infcmd.c (default_print_registers_info): Allocate values so to
5851 never pass a NULL value to val_print.
5852
de4127a3
PA
58532011-01-25 Pedro Alves <pedro@codesourcery.com>
5854
5855 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5856 boolean. Make sure to always pass a value that matches the
5857 contents buffer to callees. Preserve `address' for following
5858 iterations.
5859 * value.c (value_contents_for_printing_const): New.
5860 (value_address): Constify value argument.
5861 * value.h (value_contents_for_printing_const): Declare.
5862 (value_address): Constify value argument.
5863
ee99023e
PA
58642011-01-25 Pedro Alves <pedro@codesourcery.com>
5865
5866 * regcache.c (struct regcache_descr): Rename
5867 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5868 and sizeof_cooked_register_valid_p to
5869 sizeof_cooked_register_status.
5870 (init_regcache_descr): Adjust.
5871 (struct regcache): Rename register_valid_p field to
5872 register_status.
5873 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5874 (do_cooked_read): Adjust.
5875 (regcache_valid_p): Rename to ...
5876 (regcache_register_status): ... this. Adjust.
5877 (regcache_invalidate): Adjust.
5878 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5879 Adjust.
5880 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5881 as unavailable, not valid.
5882 (regcache_dump): Adjust.
5883 * regcache.h (enum register_status): New.
5884 (regcache_register_status): Declare.
5885 (regcache_invalidate): Delete declaration.
5886 * corelow.c (get_core_registers): Adjust.
5887 * tracepoint.c (tfile_fetch_registers): Adjust.
5888 * trad-frame.c (REG_VALUE): Rename to ...
5889 (TF_REG_VALUE): ... this.
5890 (REG_UNKNOWN): Rename to ...
5891 (TF_REG_UNKNOWN): ... this.
5892 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5893 * mi/mi-main.c (register_changed_p): Adjust.
5894
99e42fd8
PA
58952011-01-25 Pedro Alves <pedro@codesourcery.com>
5896
5897 * regcache.c (struct regcache_descr): Remove outdated comment.
5898 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5899 overallocate hack.
5900 (regcache_xmalloc): Rename to ...
5901 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5902 Allocate the regcache type accordingly.
5903 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5904 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5905 cooked registers, not raw.
5906 (regcache_dup_no_passthrough): Delete.
5907 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5908 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5909 mention obsolete write_register_bytes.
5910 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5911
f7605bc2
PA
59122011-01-25 Pedro Alves <pedro@codesourcery.com>
5913
5914 Stop remote_read_bytes from handling partial reads itself.
5915
5916 * remote-fileio.c: Include target.h.
5917 (remote_fileio_write_bytes): Delete.
5918 (remote_fileio_func_open, remote_fileio_func_write)
5919 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5920 target_read_memory.
5921 (remote_fileio_func_stat): Use target_read_memory and
5922 target_write_memory.
5923 (remote_fileio_func_gettimeofday): Use target_write_memory.
5924 (remote_fileio_func_system): Use target_read_memory.
5925 * remote.c (remote_write_bytes): Make it static.
5926 (remote_read_bytes): Don't handle partial reads here.
5927 * remote.h (remote_read_bytes): Delete declaration.
5928
efc0eabd
PA
59292011-01-25 Pedro Alves <pedro@codesourcery.com>
5930
5931 Simplify XML parsing a bit.
5932
5933 * xml-support.h (gdb_xml_parse_quick): Declare.
5934 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5935 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5936 parameter.
5937 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5938 gdb_xml_create_parser_and_cleanup_1.
5939 (gdb_xml_parse_quick): New.
5940 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5941 * osdata.c (osdata_parse): Ditto.
5942 * remote.c (remote_threads_info): Ditto.
5943 * solib-target.c (solib_target_parse_libraries): Ditto.
5944 * xml-syscall.c (syscall_parse_xml): Ditto.
5945 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5946
314d366a
KB
59472011-01-24 Kevin Buettner <kevinb@redhat.com>
5948
5949 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5950 with remote-mips.o added to gdb_target_obs.
5951 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5952
a491d753
PA
59532011-01-24 Pedro Alves <pedro@codesourcery.com>
5954
5955 * ada-valprint.c (val_print_packed_array_elements): Pass the
5956 correct struct value to val_print.
5957 (ada_val_print_1): Ditto.
5958
490f124f
PA
59592011-01-24 Pedro Alves <pedro@codesourcery.com>
5960
5961 Don't lose embedded_offset in printing routines throughout.
5962
5963 * valprint.h (val_print_array_elements): Change prototype.
5964 * valprint.c (val_print_array_elements): Add `embedded_offset'
5965 parameter, and adjust to pass it down to val_print, while passing
5966 `valaddr' or `address' unmodified. Take embedded_offset into
5967 account when checking repetitions.
5968 * c-valprint.c (c_val_print): Pass embedded_offset to
5969 val_print_array_elements instead of adjusting `valaddr' and
5970 `address'.
5971 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5972 embedded_offset to val_print_array_elements instead of adjusting
5973 `valaddr'.
5974 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5975 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5976 val_print_array_elements and pascal_object_print_value_fields
5977 instead of adjusting `valaddr'.
5978 (pascal_object_print_value_fields): Add `offset' parameter, and
5979 adjust to use it.
5980 (pascal_object_print_value): Add `offset' parameter, and adjust to
5981 use it.
5982 (pascal_object_print_static_field): Use
5983 value_contents_for_printing/value_embedded_offset, rather than
5984 value_contents.
5985 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5986 parameter, and adjust to use it. Use
5987 value_contents_for_printing/value_embedded_offset, rather than
5988 value_contents.
5989 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5990 (ada_val_print_array): Add `offset' parameter, and adjust to use
5991 it.
5992 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5993 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5994 Instead work with offsets. Use
5995 value_contents_for_printing/value_embedded_offset, rather than
5996 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5997 and use value_from_pointer to extract a target pointer, rather
5998 than value_from_longest.
5999 (print_variant_part): Add `offset' parameter. Replace
6000 `outer_valaddr' parameter by a new `outer_offset' parameter.
6001 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6002 (ada_value_print): Use
6003 value_contents_for_printing/value_embedded_offset, rather than
6004 value_contents.
6005 (print_record): Add `offset' parameter, and adjust to pass it
6006 down.
6007 (print_field_values): Add `offset' parameter. Replace
6008 `outer_valaddr' parameter by a new `outer_offset' parameter.
6009 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6010 Use value_contents_for_printing/value_embedded_offset, rather than
6011 value_contents.
6012 * d-valprint.c (dynamic_array_type): Use
6013 value_contents_for_printing/value_embedded_offset, rather than
6014 value_contents.
6015 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6016 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6017 (java_print_value_fields): Take `offset' into account. Don't
6018 re-adjust `valaddr'. Instead pass down adjusted offsets.
6019 (java_val_print): Take `embedded_offset' into account. Pass it to
6020 java_print_value_fields.
6021 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6022 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6023 down adjusted offsets.
6024 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6025 (f_val_print): Take `embedded_offset' into account.
6026
7bfc9434
JB
60272011-01-21 Joel Brobecker <brobecker@adacore.com>
6028
6029 * inflow.c: Include "gdbcmd.h".
6030 (interactive_mode): New static global, moved here from top.c.
6031 (show_interactive_mode): New function, moved here from top.c.
6032 use gdb_has_a_terminal instead of input_from_terminal_p to
6033 determine the current mode.
6034 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6035 setting.
6036 (_initialize_inflow): Add the "set/show interactive-mode"
6037 commands. Moved here from top.c, after having adjusted slightly
6038 the help text.
6039 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6040 to inflow.c.
6041 (input_from_terminal_p): Remove handling of "interactive-mode"
6042 setting, moved to infow.c.
6043 (init_main): Remove creation of the "set/show interactive-mode"
6044 commands, moved to inflow.c.
6045
44603653
JB
60462011-01-19 Joel Brobecker <brobecker@adacore.com>
6047
6048 * NEWS: Add entry for native ia64-hpux support.
6049
4694da01
TT
60502011-01-19 Tom Tromey <tromey@redhat.com>
6051
6052 PR mi/8618:
6053 * thread.c (free_thread): Free 'name'.
6054 (print_thread_info): Emit thread name. Change CLI output.
6055 (thread_name_command): New function.
6056 (do_captured_thread_select): Emit newline.
6057 (_initialize_thread): Register 'thread name' command.
6058 * target.h (struct target_ops) <to_thread_name>: New field.
6059 (target_thread_name): New macro.
6060 * target.c (update_current_target): Handle to_thread_name.
6061 * python/py-infthread.c (thpy_get_name): New function.
6062 (thpy_set_name): Likewise.
6063 (thread_object_getset): Add "name".
6064 * linux-nat.c (linux_nat_thread_name): New function.
6065 (linux_nat_add_target): Set to_thread_name.
6066 * gdbthread.h (struct thread_info) <name>: New field.
6067
10d44370
JB
60682011-01-18 Joel Brobecker <brobecker@adacore.com>
6069
6070 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6071 (ada_val_print_1): Likewise.
6072
e3acb115
JB
60732011-01-18 Joel Brobecker <brobecker@adacore.com>
6074
6075 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6076 upper limit address is not greater than the function end address
6077 when the upper limit could not be computed using the debugging
6078 info.
6079
dc92e161
TT
60802011-01-17 Tom Tromey <tromey@redhat.com>
6081
6082 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6083 get_regcomp_error.
6084 * utils.c: Include gdb_regex.h.
6085 (do_regfree_cleanup): New function.
6086 (make_regfree_cleanup): Likewise.
6087 (get_regcomp_error): Likewise.
6088 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6089
f55af66d
TT
60902011-01-17 Tom Tromey <tromey@redhat.com>
6091
6092 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6093 re_compile_fastmap.
6094
a5a44b53
PM
60952011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6096
6097 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6098 for internal variables.
6099 (last_was_structop): New static variable.
6100 (COMPLETE): New token.
6101 (field_exp): New rule to group all '.' suffix handling.
6102 Add mark_struct_expression calls when approriate to be able
6103 to correctly find fields for completion.
6104 (yylex): Adapt to handle field completion and set INTVAR when
6105 required.
6106
2c291032
YQ
61072011-01-14 Yao Qi <yao@codesourcery.com>
6108
6109 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6110 save_reggroup, restore_reggroup and all_reggroup.
6111
447b483c
JB
61122011-01-14 Joel Brobecker <brobecker@adacore.com>
6113
6114 * ada-valprint. (ada_printchar): Use the correct type length
6115 in call to ada_emit_char.
6116 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6117
7b64a93b
PM
61182011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6119
6120 * solib-som.h (hpux_major_release): Declare variable here.
6121 * solib-som.c: Remove <sys/utsname.h> header.
6122 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6123 (hpux_major_release): Make global, change default value to
6124 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 6125 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
6126 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6127 Add "solib-som.h" header.
6128 (set_hpux_major_release): New function.
6129 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6130
4e18c053
MF
61312011-01-14 Mike Frysinger <vapier@gentoo.org>
6132
6133 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6134
a9df6b22
JB
61352011-01-14 Joel Brobecker <brobecker@adacore.com>
6136
6137 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6138 new-line at end of warning message.
6139 (ia64_hpux_store_register): Remove trailing new-line at end of
6140 error message.
6141 * ia64-hpux-tdep.c: Rephrase comment.
6142 * solib-ia64-hpux.c (struct dld_info): Change type of field
6143 dld_flags from "long long" to ULONGEST.
6144
ecb956dd
PA
61452011-01-14 Pedro Alves <pedro@codesourcery.com>
6146
6147 * target.h (deprecated_child_ops): Delete declaration.
6148 * target.c (deprecated_child_ops): Delete definition.
6149
76adfcae
PA
61502011-01-14 Pedro Alves <pedro@codesourcery.com>
6151
6152 * Makefile.in (hpux-thread.o): Delete rule.
6153 * configure.ac: Don't check for HPUX DCE threads support.
6154 * configure, config.in: Regenerate.
6155 * hppa-hpux-nat.c (child_suppress_run): Delete.
6156 (hppa_hpux_child_can_run): Delete.
6157 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6158 * hpux-thread.c: Delete.
6159
042e866e
JB
61602011-01-13 Joel Brobecker <brobecker@adacore.com>
6161
6162 * hpux-thread.c (hpux_pid_to_str): Delete.
6163
4ffa5a33
JB
61642011-01-13 Joel Brobecker <brobecker@adacore.com>
6165
6166 * ada-valprint.c (ada_emit_char): Remove strange code.
6167 Check that c is <= UCHAR_MAX before passing it to isascii.
6168 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6169
de8fa76c
JB
61702011-01-13 Joel Brobecker <brobecker@adacore.com>
6171
6172 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6173 to the case where instream is stdin.
6174
c4de7027
JB
61752011-01-13 Joel Brobecker <brobecker@adacore.com>
6176
6177 * ia64-tdep.h (struct regcache): Forward declare.
6178 (struct ia64_infcall_ops): New struct type.
6179 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6180 and "infcall_ops".
6181 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6182 Renames ia64_find_global_pointer.
6183 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6184 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6185 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6186 methods.
6187 (ia64_infcall_ops): New static global constant.
6188 (ia64_gdbarch_init): Set tdep->infcall_ops.
6189 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6190 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6191 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6192 (ia64_hpux_dummy_code): New static global constant.
6193 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6194 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6195 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6196 New function.
6197 (ia64_hpux_infcall_ops): New static global constant.
6198 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6199 for inferior function calls to work properly on ia64-hpux.
6200
77ca787b
JB
62012011-01-13 Joel Brobecker <brobecker@adacore.com>
6202
6203 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6204 * ia64-tdep.h (struct frame_info): forward declaration.
6205 (struct gdbarch_tdep): Add field size_of_register_frame.
6206 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6207 to determine the size of the register frame.
6208 (ia64_size_of_register_frame): New function.
6209 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6210 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6211 (IA64_HPUX_UREG_REASON): New macro.
6212 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6213 New functions.
6214 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6215 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6216 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6217 objects.
6218
92c9a463
JB
62192011-01-13 Joel Brobecker <brobecker@adacore.com>
6220
6221 Add support for ia64-hpux.
6222 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6223 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6224
6225 * configure.host: Add handling for ia64-hpux hosts. Add associated
6226 floatformats.
6227 * configure.tgt: Add handling for ia64-hpux targets.
6228 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6229 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6230 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6231
f688d93f
JB
62322011-01-13 Joel Brobecker <brobecker@adacore.com>
6233
6234 [ttrace] Compute thread list immediately after attach.
6235 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6236 New subprogram.
6237 (inf_ttrace_attach): Use it.
6238
1b89e62f
JB
62392011-01-13 Joel Brobecker <brobecker@adacore.com>
6240
6241 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6242 if we could not determine the frame's function address. Instead,
6243 use the frame's PC, and then continue.
6244
3e5e6e2a
JB
62452011-01-13 Joel Brobecker <brobecker@adacore.com>
6246
6247 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6248 not already defined.
6249
825d6d8a
JB
62502011-01-13 Joel Brobecker <brobecker@adacore.com>
6251
6252 * ia64-tdep.c (ia64_struct_type_p): New function.
6253 (ia64_extract_return_value): Handle integral values that are
6254 less than 8 bytes long.
6255 (ia64_push_dummy_call): Likewise.
6256
7458e667
JB
62572011-01-13 Joel Brobecker <brobecker@adacore.com>
6258
6259 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6260 floatformat_ia64_ext.
6261 (floatformat_ia64_ext_big): New static const.
6262 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6263
1b05df00
TT
62642011-01-12 Tom Tromey <tromey@redhat.com>
6265
6266 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6267 messages.
6268 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6269 (mi_cmd_thread_list_ids): Likewise.
6270 (mi_cmd_data_list_changed_registers): Likewise.
6271 (mi_cmd_data_list_register_values): Likewise.
6272 (mi_cmd_data_write_register_values): Likewise.
6273 (mi_cmd_data_evaluate_expression): Likewise.
6274 (mi_cmd_data_read_memory): Likewise.
6275 (mi_cmd_data_read_memory_bytes): Likewise.
6276 (mi_cmd_data_write_memory): Likewise.
6277 (mi_cmd_enable_timings): Likewise.
6278 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6279 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6280 (mi_cmd_var_delete): Likewise.
6281 (mi_cmd_var_set_format): Likewise.
6282 (mi_cmd_var_show_format): Likewise.
6283 (mi_cmd_var_info_num_children): Likewise.
6284 (mi_cmd_var_list_children): Likewise.
6285 (mi_cmd_var_info_type): Likewise.
6286 (mi_cmd_var_info_expression): Likewise.
6287 (mi_cmd_var_show_attributes): Likewise.
6288 (mi_cmd_var_assign): Likewise.
6289 (mi_cmd_var_update): Likewise.
6290 (mi_cmd_enable_pretty_printing): Likewise.
6291 (mi_cmd_var_set_update_range): Likewise.
6292 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6293 messages.
6294 (mi_cmd_target_file_put): Likewise.
6295 (mi_cmd_target_file_delete): Likewise.
6296 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6297 messages.
6298 (mi_cmd_stack_info_depth): Likewise.
6299 (mi_cmd_stack_list_locals): Likewise.
6300 (mi_cmd_stack_list_args): Likewise.
6301 (mi_cmd_stack_select_frame): Likewise.
6302 (mi_cmd_stack_select_frame): Likewise.
6303 (mi_cmd_stack_info_frame): Likewise.
6304 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6305 messages.
6306 (mi_cmd_file_list_exec_source_files): Likewise.
6307 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6308 (mi_cmd_env_cd): Likewise.
6309 (mi_cmd_env_path): Likewise.
6310 (mi_cmd_env_dir): Likewise.
6311 (mi_cmd_inferior_tty_show): Likewise.
6312 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6313 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6314 (mi_cmd_break_watch): Likewise.
6315
ad422571
TJB
63162011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
6317
6318 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6319 (ppc_linux_insert_hw_breakpoint): Likewise.
6320 (ppc_linux_remove_hw_breakpoint): Likewise.
6321 (ppc_linux_insert_watchpoint): Likewise.
6322
c2ff108b
JK
63232011-01-12 Andrew Burgess <aburgess@broadcom.com>
6324 Jan Kratochvil <jan.kratochvil@redhat.com>
6325
6326 PR fortran/11104 and DWARF unbound arrays detection.
6327 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6328 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6329 unspecified upper bound.
6330 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6331 variables array_size_array, tmp_type and offset_item. New variable
6332 array. Remove call to f77_get_upperbound. New variables array_type
6333 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6334 the final call to deprecated_set_value_type.
6335
41e8491f
JK
63362011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 Make value allocations more lazy.
6339 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6340 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 6341 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
6342 instead of allocate_value and set_value_lazy.
6343 * findvar.c (value_of_register_lazy): Likewise.
6344 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 6345 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
6346 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6347 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6348 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6349 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6350 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6351 the end, remove set_value_lazy there.
6352 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6353 instead of allocate_value and set_value_lazy when possible.
6354 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6355 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6356 of allocate_value and set_value_lazy.
6357 (value_from_contents_and_address): Use allocate_value_lazy instead of
6358 allocate_value and set_value_lazy when possible.
6359
b716877b
AB
63602011-01-12 Andrew Burgess <aburgess@broadcom.com>
6361
6362 * disasm.c (dump_insns): Support dumping opcodes for MI.
6363 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6364 dumping of instruction opcodes.
6365
d5ae309f
JB
63662011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
6367
6368 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6369 appropiately.
6370
98871305
TT
63712011-01-11 Tom Tromey <tromey@redhat.com>
6372
6373 * thread.c (do_captured_thread_select): Emit newline before
6374 printing frame.
6375
c378eb4e
MS
63762011-01-11 Michael Snyder <msnyder@vmware.com>
6377
6378 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6379 * score-tdep.c: Ditto.
6380 * score-tdep.h: Ditto.
6381 * ser-base.c: Ditto.
6382 * ser-go32.c: Ditto.
6383 * serial.c: Ditto.
6384 * serial.h: Ditto.
6385 * ser-mingw.c: Ditto.
6386 * ser-pipe.c: Ditto.
6387 * ser-tcp.c: Ditto.
6388 * ser-unix.c: Ditto.
6389 * sh64-tdep.c: Ditto.
6390 * shnbsd-nat.c: Ditto.
6391 * sh-tdep.c: Ditto.
6392 * sh-tdep.h: Ditto.
6393 * solib.c: Ditto.
6394 * solib-darwin.c: Ditto.
6395 * solib-frv.c: Ditto.
6396 * solib.h: Ditto.
6397 * solib-irix.c: Ditto.
6398 * solib-osf.c: Ditto.
6399 * solib-pa64.c: Ditto.
6400 * solib-som.c: Ditto.
6401 * solib-spu.c: Ditto.
6402 * solib-sunos.c: Ditto.
6403 * solib-svr4.c: Ditto.
6404 * solist.h: Ditto.
6405 * sol-thread.c: Ditto.
6406 * somread.c: Ditto.
6407 * source.c: Ditto.
6408 * source.h: Ditto.
6409 * sparc64-linux-tdep.c: Ditto.
6410 * sparc64-tdep.c: Ditto.
6411 * sparc-linux-nat.c: Ditto.
6412 * sparc-linux-tdep.c: Ditto.
6413 * sparc-sol2-nat.c: Ditto.
6414 * sparc-sol2-tdep.c: Ditto.
6415 * sparc-tdep.c: Ditto.
6416 * sparc-tdep.h: Ditto.
6417 * spu-tdep.c: Ditto.
6418 * stabsread.c: Ditto.
6419 * stabsread.h: Ditto.
6420 * stack.c: Ditto.
6421 * symfile.c: Ditto.
6422 * symfile.h: Ditto.
6423 * symmisc.c: Ditto.
6424 * symtab.c: Ditto.
6425 * symtab.h: Ditto.
6426 * target.c: Ditto.
6427 * target-descriptions.c: Ditto.
6428 * target-descriptions.h: Ditto.
6429 * target.h: Ditto.
6430 * target-memory.c: Ditto.
6431 * terminal.h: Ditto.
6432 * thread.c: Ditto.
6433 * top.c: Ditto.
6434 * tracepoint.c: Ditto.
6435 * tracepoint.h: Ditto.
6436 * trad-frame.h: Ditto.
6437 * typeprint.c: Ditto.
6438
581e13c1
MS
64392011-01-11 Michael Snyder <msnyder@vmware.com>
6440
6441 * ui-file.c: Comment cleanup, mostly periods and spaces.
6442 * ui-file.h: Ditto.
6443 * ui-out.c: Ditto.
6444 * ui-out.h: Ditto.
6445 * utils.c: Ditto.
6446 * v850-tdep.c: Ditto.
6447 * valarith.c: Ditto.
6448 * valops.c: Ditto.
6449 * valprint.c: Ditto.
6450 * valprint.h: Ditto.
6451 * value.c: Ditto.
6452 * value.h: Ditto.
6453 * varobj.c: Ditto.
6454 * varobj.h: Ditto.
6455 * vax-tdep.c: Ditto.
6456 * vec.c: Ditto.
6457 * vec.h: Ditto.
6458 * version.h: Ditto.
6459 * windows-nat.c: Ditto.
6460 * windows-tdep.c: Ditto.
6461 * xcoffread.c: Ditto.
6462 * xcoffsolib.c: Ditto.
6463 * xml-support.c: Ditto.
6464 * xstormy16-tdep.c: Ditto.
6465 * xtensa-tdep.c: Ditto.
6466 * xtensa-tdep.h: Ditto.
6467
90e4670f
TJB
64682011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6469
6470 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6471 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6472
e09342b5
TJB
64732011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6474 Thiago Jung Bauermann <bauerman@br.ibm.com>
6475
6476 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 6477 * breakpoint.h
e09342b5
TJB
6478 (struct breakpoint_ops) <resources_needed>: New method.
6479 Initialize to NULL in all existing breakpoint_ops instances.
6480 (struct breakpoint) <exact>: New field.
6481 (target_exact_watchpoints): Declare external global.
6482 * breakpoint.c (target_exact_watchpoints): New global flag.
6483 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6484 b->enable_state to bp_enabled before calling
6485 hw_watchpoint_used_count.
6486 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6487 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6488 if available.
6489 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6490 if the watchpoint is exact.
6491 (resources_needed_watchpoint): New function.
6492 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6493 (watch_command_1): Set b->exact if the user asked for an exact
6494 watchpoint and one can be set.
6495 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6496 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6497 the user asks for an exact watchpoint and one can be set. Return
6498 number of needed debug registers to watch the expression.
6499 * gdbtypes.c (is_scalar_type): New function, based on
6500 valprint.c:scalar_type_p.
6501 (is_scalar_type_recursive): New function.
6502 * gdbtypes.h (is_scalar_type_recursive): Declare.
6503 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6504 handle regions when ranged watchpoints are available.
6505 (create_watchpoint_request): New function.
6506 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6507 create_watchpoint_request.
6508 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6509 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6510 `set powerpc' and `show powerpc' commands.
6511 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6512 Mention documentation comment in the target macro.
6513 (target_region_ok_for_hw_watchpoint): Document return value.
6514
9fa40276
TJB
65152011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6516
6517 * breakpoint.c (update_watchpoint): Decide on using a software or
6518 hardware watchpoint after the bp_locations are created.
6519
77b06cd7
TJB
65202010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6521
6522 Convert hardware watchpoints to use breakpoint_ops.
6523 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6524 <insert_location>: ... this. Return int instead of void.
6525 Accept pointer to struct bp_location instead of pointer to
6526 struct breakpoint. Adapt all implementations.
f2eb0bc8 6527 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
6528 <remove_location>: ... this. Accept pointer to struct bp_location
6529 instead of pointer to struct breakpoint. Adapt all implementations.
6530 * breakpoint.c (insert_catchpoint): Delete function.
6531 (insert_bp_location): Call the watchpoint or catchpoint's
6532 breakpoint_ops.insert method.
6533 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6534 breakpoint_ops.remove method.
6535 (insert_watchpoint, remove_watchpoint): New functions.
6536 (watchpoint_breakpoint_ops): New structure.
6537 (watch_command_1): Initialize the OPS field.
6538 * inf-child.c (inf_child_insert_fork_catchpoint)
6539 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6540 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6541 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6542 Delete functions.
6543 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6544 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6545 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6546 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6547 * target.c (update_current_target): Change default implementation of
6548 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6549 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6550 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6551 to_set_syscall_catchpoint to return_one.
6552 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6553 (debug_to_insert_exec_catchpoint): Report return value.
6554 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6555 (to_insert_exec_catchpoint): Change declaration to return int instead
6556 of void.
6557
9b20d036
MS
65582011-01-11 Michael Snyder <msnyder@vmware.com>
6559
6560 * arm-tdep.c: Internationalization.
6561 * c-lang.c: Ditto.
6562 * charset.c: Ditto.
6563 * fork-child.c: Ditto.
6564 * nto-procfs.c: Ditto.
6565 * ppc-sysv-tdep.c: Ditto.
6566 * procfs.c: Ditto.
6567 * remote-mips.c: Ditto.
6568 * remote.c: Ditto.
6569 * rs6000-nat.c: Ditto.
6570 * rs6000-tdep.c: Ditto.
6571 * target.c: Ditto.
6572 * valops.c: Ditto.
6573 * value.c: Ditto.
6574 * xml-support.c: Ditto.
6575 * mi/mi-cmd-break.c: Ditto.
6576 * mi/mi-cmd-var.c: Ditto.
6577 * mi/mi-interp.c: Ditto.
6578 * mi/mi-main.c: Ditto.
6579
dae477fe
AB
65802011-01-11 Andrew Burgess <aburgess@broadcom.com>
6581
6582 * remote-sim.c (gdbsim_store_register): Update API to
6583 sim_store_register to check more error conditions.
6584
0df8b418
MS
65852011-01-10 Michael Snyder <msnyder@vmware.com>
6586
6587 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6588 * nto-tdep.c: Ditto.
6589 * nto-tdep.h: Ditto.
6590 * objc-exp.y: Ditto.
6591 * objc-lang.c: Ditto.
6592 * objfiles.c: Ditto.
6593 * objfiles.h: Ditto.
6594 * observer.c: Ditto.
6595 * opencl-lang.c: Ditto.
6596 * osabi.c: Ditto.
6597 * parse.c: Ditto.
6598 * parser-defs.h: Ditto.
6599 * p-exp.y: Ditto.
6600 * p-lang.c: Ditto.
6601 * posix-hdep.c: Ditto.
6602 * ppcbug-rom.c: Ditto.
6603 * ppc-linux-nat.c: Ditto.
6604 * ppc-linux-tdep.c: Ditto.
6605 * ppc-linux-tdep.h: Ditto.
6606 * ppcnbsd-tdep.c: Ditto.
6607 * ppcobsd-tdep.c: Ditto.
6608 * ppcobsd-tdep.h: Ditto.
6609 * ppc-sysv-tdep.c: Ditto.
6610 * ppc-tdep.h: Ditto.
6611 * printcmd.c: Ditto.
6612 * proc-abi.c: Ditto.
6613 * proc-flags.c: Ditto.
6614 * procfs.c: Ditto.
6615 * proc-utils.h: Ditto.
6616 * progspace.h: Ditto.
6617 * prologue-value.c: Ditto.
6618 * prologue-value.h: Ditto.
6619 * psympriv.h: Ditto.
6620 * psymtab.c: Ditto.
6621 * p-typeprint.c: Ditto.
6622 * p-valprint.c: Ditto.
6623 * ravenscar-sparc-thread.c: Ditto.
6624 * ravenscar-thread.c: Ditto.
6625 * ravenscar-thread.h: Ditto.
6626 * record.c: Ditto.
6627 * regcache.c: Ditto.
6628 * regcache.h: Ditto.
6629 * remote.c: Ditto.
6630 * remote-fileio.c: Ditto.
6631 * remote-fileio.h: Ditto.
6632 * remote.h: Ditto.
6633 * remote-m32r-sdi.c: Ditto.
6634 * remote-mips.c: Ditto.
6635 * remote-sim.c: Ditto.
6636 * rs6000-aix-tdep.c: Ditto.
6637 * rs6000-nat.c: Ditto.
6638 * rs6000-tdep.c: Ditto.
6639
0d7a18f7
MS
66402011-01-10 Michael Snyder <msnyder@vmware.com>
6641
6642 * charset.c (validate): Internationalization.
6643 * coffread.c (read_one_sym): Ditto.
6644 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6645 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6646 * inflow.c (new_tty): Ditto.
6647 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6648 * m32c-tdep.c (m32c_return_value): Ditto.
6649 * mep-tdep.c (mep_store_return_value): Ditto.
6650 * score-tdep.c (score7_fetch_insn): Ditto.
6651 * ser-mingw.c (pipe_windows_open): Ditto.
6652 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6653 * spu-tdep.c (spu_register_type): Ditto.
6654 * tracepoint.c (trace_find_command): Ditto.
6655 * valarith.c (value_pos): Ditto.
6656
9a153e0b
JB
66572011-01-10 Joel Brobecker <brobecker@adacore.com>
6658
6659 * ada-valprint.c (printstr): Minor comment reformatting.
6660
35ecd2d6
MS
66612011-01-08 Michael Snyder <msnyder@vmware.com>
6662
6663 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6664 markup.
6665
1777feb0
MS
66662011-01-08 Michael Snyder <msnyder@vmware.com>
6667
6668 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6669 * hppa-hpux-tdep.c: Ditto.
6670 * hppa-linux-nat.c: Ditto.
6671 * hppa-linux-tdep.c: Ditto.
6672 * hppanbsd-tdep.c: Ditto.
6673 * hppa-tdep.c: Ditto.
6674 * hppa-tdep.h: Ditto.
6675 * hpux-thread.c: Ditto.
6676 * i386-cygwin-tdep.c: Ditto.
6677 * i386-darwin-nat.c: Ditto.
6678 * i386gnu-nat.c: Ditto.
6679 * i386-linux-nat.c: Ditto.
6680 * i386-linux-tdep.c: Ditto.
6681 * i386-nat.c: Ditto.
6682 * i386-nat.h: Ditto.
6683 * i386nbsd-tdep.c: Ditto.
6684 * i386-sol2-nat.c: Ditto.
6685 * i386-stub.c: Ditto.
6686 * i386-tdep.c: Ditto.
6687 * i386-tdep.h: Ditto.
6688 * i387-tdep.c: Ditto.
6689 * ia64-linux-nat.c: Ditto.
6690 * ia64-linux-tdep.c: Ditto.
6691 * ia64-tdep.c: Ditto.
6692 * infcall.c: Ditto.
6693 * infcall.h: Ditto.
6694 * infcmd.c: Ditto.
6695 * inferior.c: Ditto.
6696 * inferior.h: Ditto.
6697 * infloop.c: Ditto.
6698 * inflow.c: Ditto.
6699 * infrun.c: Ditto.
6700 * interps.c: Ditto.
6701 * interps.h: Ditto.
6702 * iq2000-tdep.c: Ditto.
6703 * irix5-nat.c: Ditto.
6704 * jit.c: Ditto.
6705 * jit.h: Ditto.
6706 * jv-exp.y: Ditto.
6707 * jv-lang.c: Ditto.
6708 * jv-lang.h: Ditto.
6709 * jv-typeprint.c: Ditto.
6710 * jv-valprint.c: Ditto.
6711 * language.c: Ditto.
6712 * language.h: Ditto.
6713 * linespec.c: Ditto.
6714 * linux-fork.c: Ditto.
6715 * linux-nat.c: Ditto.
6716 * linux-thread-db.c: Ditto.
6717 * lm32-tdep.c: Ditto.
6718
025bb325
MS
67192011-01-08 Michael Snyder <msnyder@vmware.com>
6720
6721 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6722 * m2-lang.c: Ditto.
6723 * m2-typeprint.c: Ditto.
6724 * m2-valprint.c: Ditto.
6725 * m32c-tdep.c: Ditto.
6726 * m32r-linux-nat.c: Ditto.
6727 * m32r-rom.c: Ditto.
6728 * m32r-tdep.c: Ditto.
6729 * m32r-tdep.h: Ditto.
6730 * m68hc11-tdep.c: Ditto.
6731 * m58klinux-nat.c: Ditto.
6732 * m68k-tdep.c: Ditto.
6733 * m88k-tdep.c: Ditto.
6734 * m88k-tdep.h: Ditto.
6735 * machoread.c: Ditto.
6736 * macrocmd.c: Ditto.
6737 * macroexp.c: Ditto.
6738 * macrotab.c: Ditto.
6739 * main.c: Ditto.
6740 * maint.c: Ditto.
6741 * mdebugread.c: Ditto.
6742 * mdebugread.h: Ditto.
6743 * memattr.c: Ditto.
6744 * memattr.h: Ditto.
6745 * memory-map.h: Ditto.
6746 * mep-tdep.c: Ditto.
6747 * microblaze-rom.c: Ditto.
6748 * microblaze-tdep.c: Ditto.
6749 * minsyms.c: Ditto.
6750 * mips-irix-tdep.c: Ditto.
6751 * mips-linux-nat.c: Ditto.
6752 * mips-linux-tdep.c: Ditto.
6753 * mips-linux-tdep.h: Ditto.
6754 * mipsnbsd-nat.c: Ditto.
6755 * mipsnbsd-tdep.c: Ditto.
6756 * mipsread.c: Ditto.
6757 * mips-tdep.c: Ditto.
6758 * mips-tdep.h: Ditto.
6759 * mn10300-linux-tdep.c: Ditto.
6760 * mn10300-tdep.c: Ditto.
6761 * mn10300-tdep.h: Ditto.
6762 * monitor.c: Ditto.
6763 * monitor.h: Ditto.
6764 * moxie-tdep.c: Ditto.
6765 * moxie-tdep.h: Ditto.
6766 * mt-tdep.c: Ditto.
6767
1642781b
MF
67682011-01-08 Mike Frysinger <vapier@gentoo.org>
6769
6770 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6771
394b0adb
JB
67722011-01-08 Robert Millan <rmh@gnu.org>
6773
6774 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6775
b670013c
MS
67762011-01-07 Michael Snyder <msnyder@vmware.com>
6777
6778 * charset.c (_initialize_charset): Fix typo in string.
6779
a743e542
MS
67802011-01-07 Michael Snyder <msnyder@vmware.com>
6781
6782 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6783 for i18n.
f2eb0bc8 6784 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
6785 Split line so that operator goes to beginning of line.
6786 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6787 assignment out of if statement.
6788
0963b4bd
MS
67892011-01-07 Michael Snyder <msnyder@vmware.com>
6790
6791 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6792 * ada-lang.h: Ditto.
6793 * ada-tasks.c: Ditto.
6794 * ada-valprint.c: Ditto.
6795 * aix-threads.c: Ditto.
6796 * alpha-linux-nat.c: Ditto.
6797 * alpha-linux-tdep.c: Ditto.
6798 * alpha-mdebug-tdep.c: Ditto.
6799 * alpha-nat.c: Ditto.
6800 * alpha-osf1-tdep.c: Ditto.
6801 * alpha-tdep.c: Ditto.
6802 * alphabsd-nat.c: Ditto.
6803 * alphabsd-tdep.c: Ditto.
6804 * amd64-darwin-tdep.c: Ditto.
6805 * amd64-linux-nat.c: Ditto.
6806 * amd64-linux-tdep.c: Ditto.
6807 * amd64-sol2-tdep.c: Ditto.
6808 * amd64-tdep.c: Ditto.
6809 * amd64-fbsd-tdep.c: Ditto.
6810 * amd64-nbsd-tdep.c: Ditto.
6811 * amd64-obsd-tdep.c: Ditto.
6812 * amd64-linux-nat.c: Ditto.
6813 * amd64-linux-tdep.c: Ditto.
6814 * arm-tdep.c: Ditto.
6815 * arm-tdep.h: Ditto.
6816 * armnbsd-nat.c: Ditto.
6817 * avr-tdep.c: Ditto.
6818 * bfin-tdep.c: Ditto.
6819 * bsd-kvm.c: Ditto.
6820 * c-typeprintc: Ditto.
6821 * c-valprint.c: Ditto.
6822 * coff-pe-read.h: Ditto.
6823 * coffreead.c: Ditto.
6824 * cris-tdep.c: Ditto.
6825 * d-lang.c: Ditto.
6826 * darwin-nat-info.c: Ditto.
6827 * darwin-nat.c: Ditto.
6828 * dbug-rom.c: Ditto.
6829 * dbxread.c: Ditto.
6830 * dcache.c: Ditto.
6831 * dcache.h: Ditto.
6832 * dec-thread.c: Ditto.
6833 * defs.h: Ditto.
6834 * demangle.c: Ditto.
6835 * dicos-tdep.c: Ditto.
6836 * dictionary.c: Ditto.
6837 * dictionary.h: Ditto.
6838 * dink32-rom.c: Ditto.
6839 * disasm.c: Ditto.
6840 * doublest.c: Ditto.
6841 * dsrec.c: Ditto.
6842 * dummy-frame.c: Ditto.
6843 * dwarf2-frame.c: Ditto.
6844 * dwarf2expr.c: Ditto.
6845 * dwarf2loc.c: Ditto.
6846 * dwarf2read.c: Ditto.
6847 * elfread.c: Ditto.
6848 * environ.c: Ditto.
6849 * eval.c: Ditto.
6850 * event-top.h: Ditto.
6851 * exceptions.c: Ditto.
6852 * exceptions.h: Ditto.
6853 * exec.c: Ditto.
6854 * expprint.c: Ditto.
6855 * expression.h: Ditto.
6856 * f-exp.y: Ditto.
6857 * f-lang.c: Ditto.
6858 * f-lang.h: Ditto.
6859 * f-typeprint.c: Ditto.
6860 * f-valprint.c: Ditto.
6861 * fbsd-nat.c: Ditto.
6862 * findvar.c: Ditto.
6863 * fork-child.c: Ditto.
6864 * frame.c: Ditto.
6865 * frame.h: Ditto.
6866 * frv-linux-tdep.c: Ditto.
6867 * frv-tdep.c: Ditto.
6868 * gcore.c: Ditto.
6869 * gdb-stabs.h: Ditto.
6870 * gdb_assert.h: Ditto.
6871 * gdb_string.h: Ditto.
6872 * gdb_thread_db.h: Ditto.
6873 * gdb_wait.h: Ditto.
6874 * gdbarch.sh: Ditto.
6875 * gdbcore.h: Ditto.
6876 * gdbthread.h: Ditto.
6877 * gdbtypes.c: Ditto.
6878 * gdbtypes.h: Ditto.
6879 * gnu-nat.c: Ditto.
6880 * gnu-nat.h: Ditto.
6881 * gnu-v2-abi.c: Ditto.
6882 * gnu-v3-abi.c: Ditto.
6883 * go32-nat.c: Ditto.
6884 * gdbarch.c: Regenerate.
6885 * gdbarch.h: Regenerate.
6886
ac74f770
MS
68872011-01-07 Michael Snyder <msnyder@vmware.com>
6888
6889 * ax-gdb.c: Adjust some long output strings.
6890 * breakpoint.c: Ditto.
6891 * charset.c: Ditto.
6892 * cp-abi.c: Ditto.
6893 * infcall.c: Ditto.
6894 * infrun.c: Ditto.
6895 * linux-nat.c: Ditto.
6896 * solib-pa64.c: Ditto.
6897 * solib-som.c: Ditto.
6898
d8e22779
TT
68992011-01-06 Tom Tromey <tromey@redhat.com>
6900
6901 PR python/12367:
6902 * NEWS: Add item.
6903 * python/python.c (GdbMethods): Add "newest_frame" method.
6904 * python/python-internal.h (gdbpy_newest_frame): Declare.
6905 * python/py-frame.c (gdbpy_newest_frame): New function.
6906
a255712f
PP
69072010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6908
6909 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6910 * jit.c (jit_debug): New variable.
6911 (show_jit_debug): New function.
6912 (struct target_buffer): Use ULONGEST.
6913 (bfd_open_from_target_memory): Likewise.
6914 (jit_register_code, jit_inferior_init): Add debug output.
6915 (_initialize_jit): Register "debug jit" command.
6916
ccfc3d6e
TT
69172011-01-06 Tom Tromey <tromey@redhat.com>
6918
6919 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6920 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6921 and ARCH_FRAME.
6922
57126e4a
TT
69232011-01-06 Tom Tromey <tromey@redhat.com>
6924
6925 * python/py-frame.c (frapy_block): Use get_frame_block.
6926
16dfc9ce
JB
69272011-01-06 Joel Brobecker <brobecker@adacore.com>
6928
6929 Do not stop on SIGPRIO signals by default
6930 * infrun.c (_initialize_infrun): Unset signal_stop and
6931 signal_print for TARGET_SIGNAL_PRIO.
6932
b1ce2347
JB
69332011-01-06 Joel Brobecker <brobecker@adacore.com>
6934
6935 * ada-tasks.c: Fix style violation in comment.
6936
8f7e195f
JB
69372011-01-06 Joel Brobecker <brobecker@adacore.com>
6938
6939 * linespec.c (decode_compound, find_method): Remove trailing \n
6940 at end of error string.
6941 * solib-irix.c (irix_current_sos): Likewise.
6942 * varobj.c (uninstall_variable): Likewise.
6943
e9bdf92c
JB
69442011-01-06 Joel Brobecker <brobecker@adacore.com>
6945
6946 * copyright.py: New script.
6947 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6948 Launch emacs without exec'ing. Call copyright.py afterwards.
6949
3e43a32a
MS
69502011-01-05 Michael Snyder <msnyder@vmware.com>
6951
6952 * addrmap.c: Shorten lines of >= 80 columns.
6953 * arch-utils.c: Ditto.
6954 * arch-utils.h: Ditto.
6955 * ax-gdb.c: Ditto.
6956 * ax-general.c: Ditto.
6957 * bcache.c: Ditto.
6958 * blockframe.c: Ditto.
6959 * breakpoint.c: Ditto.
6960 * buildsym.c: Ditto.
6961 * c-lang.c: Ditto.
6962 * c-typeprint.c: Ditto.
6963 * charset.c: Ditto.
6964 * coffread.c: Ditto.
6965 * command.h: Ditto.
6966 * corelow.c: Ditto.
6967 * cp-abi.c: Ditto.
6968 * cp-namespace.c: Ditto.
6969 * cp-support.c: Ditto.
6970 * dbug-rom.c: Ditto.
6971 * dbxread.c: Ditto.
6972 * defs.h: Ditto.
6973 * dfp.c: Ditto.
6974 * dfp.h: Ditto.
6975 * dictionary.c: Ditto.
6976 * disasm.c: Ditto.
6977 * doublest.c: Ditto.
6978 * dwarf2-frame.c: Ditto.
6979 * dwarf2expr.c: Ditto.
6980 * dwarf2loc.c: Ditto.
6981 * dwarf2read.c: Ditto.
6982 * elfread.c: Ditto.
6983 * eval.c: Ditto.
6984 * event-loop.c: Ditto.
6985 * event-loop.h: Ditto.
6986 * exceptions.h: Ditto.
6987 * exec.c: Ditto.
6988 * expprint.c: Ditto.
6989 * expression.h: Ditto.
6990 * f-lang.c: Ditto.
6991 * f-valprint.c: Ditto.
6992 * findcmd.c: Ditto.
6993 * frame-base.c: Ditto.
6994 * frame-unwind.c: Ditto.
6995 * frame-unwind.h: Ditto.
6996 * frame.c: Ditto.
6997 * frame.h: Ditto.
6998 * gcore.c: Ditto.
6999 * gdb-stabs.h: Ditto.
7000 * gdb_assert.h: Ditto.
7001 * gdb_dirent.h: Ditto.
7002 * gdb_obstack.h: Ditto.
7003 * gdbcore.h: Ditto.
7004 * gdbtypes.c: Ditto.
7005 * gdbtypes.h: Ditto.
7006 * inf-ttrace.c: Ditto.
7007 * infcall.c: Ditto.
7008 * infcmd.c: Ditto.
7009 * inflow.c: Ditto.
7010 * infrun.c: Ditto.
7011 * inline-frame.h: Ditto.
7012 * language.c: Ditto.
7013 * language.h: Ditto.
7014 * libunwind-frame.c: Ditto.
7015 * libunwind-frame.h: Ditto.
7016 * linespec.c: Ditto.
7017 * linux-nat.c: Ditto.
7018 * linux-nat.h: Ditto.
7019 * linux-thread-db.c: Ditto.
7020 * machoread.c: Ditto.
7021 * macroexp.c: Ditto.
7022 * macrotab.c: Ditto.
7023 * main.c: Ditto.
7024 * maint.c: Ditto.
7025 * mdebugread.c: Ditto.
7026 * memattr.c: Ditto.
7027 * minsyms.c: Ditto.
7028 * monitor.c: Ditto.
7029 * monitor.h: Ditto.
7030 * objfiles.c: Ditto.
7031 * objfiles.h: Ditto.
7032 * osabi.c: Ditto.
7033 * p-typeprint.c: Ditto.
7034 * p-valprint.c: Ditto.
7035 * parse.c: Ditto.
7036 * printcmd.c: Ditto.
7037 * proc-events.c: Ditto.
7038 * procfs.c: Ditto.
7039 * progspace.c: Ditto.
7040 * progspace.h: Ditto.
7041 * psympriv.h: Ditto.
7042 * psymtab.c: Ditto.
7043 * record.c: Ditto.
7044 * regcache.c: Ditto.
7045 * regcache.h: Ditto.
7046 * remote-fileio.c: Ditto.
7047 * remote.c: Ditto.
7048 * ser-mingw.c: Ditto.
7049 * ser-tcp.c: Ditto.
7050 * ser-unix.c: Ditto.
7051 * serial.c: Ditto.
7052 * serial.h: Ditto.
7053 * solib-frv.c: Ditto.
7054 * solib-irix.c: Ditto.
7055 * solib-osf.c: Ditto.
7056 * solib-pa64.c: Ditto.
7057 * solib-som.c: Ditto.
7058 * solib-sunos.c: Ditto.
7059 * solib-svr4.c: Ditto.
7060 * solib-target.c: Ditto.
7061 * solib.c: Ditto.
7062 * somread.c: Ditto.
7063 * source.c: Ditto.
7064 * stabsread.c: Ditto.
7065 * stabsread.c: Ditto.
7066 * stack.c: Ditto.
7067 * stack.h: Ditto.
7068 * symfile-mem.c: Ditto.
7069 * symfile.c: Ditto.
7070 * symfile.h: Ditto.
7071 * symmisc.c: Ditto.
7072 * symtab.c: Ditto.
7073 * symtab.h: Ditto.
7074 * target-descriptions.c: Ditto.
7075 * target-memory.c: Ditto.
7076 * target.c: Ditto.
7077 * target.h: Ditto.
7078 * terminal.h: Ditto.
7079 * thread.c: Ditto.
7080 * top.c: Ditto.
7081 * tracepoint.c: Ditto.
7082 * tracepoint.h: Ditto.
7083 * ui-file.c: Ditto.
7084 * ui-file.h: Ditto.
7085 * ui-out.h: Ditto.
7086 * user-regs.c: Ditto.
7087 * user-regs.h: Ditto.
7088 * utils.c: Ditto.
7089 * valarith.c: Ditto.
7090 * valops.c: Ditto.
7091 * valprint.c: Ditto.
7092 * valprint.h: Ditto.
7093 * value.c: Ditto.
7094 * varobj.c: Ditto.
7095 * varobj.h: Ditto.
7096 * vec.h: Ditto.
7097 * xcoffread.c: Ditto.
7098 * xcoffsolib.c: Ditto.
7099 * xcoffsolib.h: Ditto.
7100 * xml-syscall.c: Ditto.
7101 * xml-tdesc.c: Ditto.
7102
9a2b4c1b
MS
71032011-01-05 Michael Snyder <msnyder@vmware.com>
7104
7105 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7106 * cli/cli-decode.c: Ditto.
7107 * cli/cli-dump.c: Ditto.
7108 * cli/cli-logging.c: Ditto.
7109 * cli/cli-script.c: Ditto.
7110 * cli/cli-setshow.c: Ditto.
7111 * common/signals.c: Ditto.
7112 * mi/mi-cmd-break.c: Ditto.
7113 * mi/mi-cmd-disas.c: Ditto.
7114 * mi/mi-cmd-stack.c: Ditto.
7115 * mi/mi-cmd-var.c: Ditto.
7116 * mi/mi-cmds.c: Ditto.
7117 * mi/mi-common.h: Ditto.
7118 * mi/mi-console.c: Ditto.
7119 * mi/mi-interp.c: Ditto.
7120 * mi/mi-main.c: Ditto.
7121 * osf-share/cma_attr.c: Ditto.
7122 * osf-share/cma_deb_core.h: Ditto.
7123 * osf-share/cma_debug_client.h: Ditto.
7124 * osf-share/cma_handle.h: Ditto.
7125 * osf-share/cma_mutex.h: Ditto.
7126 * osf-share/cma_stack_int.h: Ditto.
7127 * osf-share/cma_tcb_defs.h: Ditto.
7128 * python/py-auto-load.c: Ditto.
7129 * python/py-breakpoint.c: Ditto.
7130 * python/py-cmd.c: Ditto.
7131 * python/py-frame.c: Ditto.
7132 * python/py-objfile.c: Ditto.
7133 * python/py-param.c: Ditto.
7134 * python/py-progspace.c: Ditto.
7135 * python/py-symbol.c: Ditto.
7136 * python/py-value.c: Ditto.
7137 * python/python-internal.h: Ditto.
7138 * python/python.c: Ditto.
7139 * tui/tui-data.c: Ditto.
7140 * tui/tui-disasm.c: Ditto.
7141 * tui/tui-hooks.c: Ditto.
7142 * tui/tui-io.c: Ditto.
7143 * tui/tui-layout.c: Ditto.
7144 * tui/tui-regs.c: Ditto.
7145 * tui/tui-source.c: Ditto.
7146 * tui/tui-stack.c: Ditto.
7147 * tui/tui-win.c: Ditto.
7148 * tui/tui-windata.c: Ditto.
7149 * tui/tui-winsource.c: Ditto.
7150
44944448
JB
71512011-01-05 Joel Brobecker <brobecker@adacore.com>
7152
7153 * configure.ac, gdb.1: Copyright year update.
7154
ebedcab5
JK
71552011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7156
7157 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7158 this_pc_in_block, morestack_msym and morestack_name. Check for
7159 "__morestack" minimal symbol there.
7160
e5cc9f32
JB
71612011-01-03 Joel Brobecker <brobecker@adacore.com>
7162
7163 * symfile.c (find_sym_fns): Add call to dont_repeat.
7164
7b6bb8da
JB
71652011-01-01 Joel Brobecker <brobecker@adacore.com>
7166
7167 Copyright year update in most files (performed by copyright.sh).
7168
71ce852c
JB
71692011-01-01 Joel Brobecker <brobecker@adacore.com>
7170
7171 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 7172
c3c1ebe8 7173For older changes see ChangeLog-2010.
c906108c
SS
7174\f
7175Local Variables:
7176mode: change-log
7177left-margin: 8
7178fill-column: 74
7179version-control: never
57da7796 7180coding: utf-8
c906108c 7181End:
This page took 1.792798 seconds and 4 git commands to generate.