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