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