gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f3d6df6d
YQ
12011-09-23 Yao Qi <yao@codesourcery.com>
2
3 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
4 to get address.
5
e69860f1
TG
62011-09-22 Tristan Gingold <gingold@adacore.com>
7
8 * fork-child.c (fork_inferior): Add exec_fun parameter.
9 Call exec_fun or execvp.
10 * inferior.h: Adjust prototype.
11 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
12 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
13 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
14 * procfs.c (procfs_create_inferior): Ditto.
15 * darwin-nat.c (darwin_execvp): New function.
16 (darwin_create_inferior): Use it.
17
4b51d87b
YQ
182011-09-22 Yao Qi <yao@codesourcery.com>
19
20 * infrun.c (context_switch): Print debug message when switching to
21 a different thread.
22
56b9d9ac
UW
232011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
24
25 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
26 complex and vector types.
27 (s390_return_value_convention): Likewise.
28
29 (s390_value_from_register): Call check_typedef.
30 (extend_simple_arg): Likewise.
31 (alignment_of): Likewise.
32 (s390_push_dummy_call): Likewise.
33 (s390_return_value): Likewise.
34
b2cd6b29
JM
352011-09-21 Joseph Myers <joseph@codesourcery.com>
36
37 * event-top.c (async_disconnect): If an exception is thrown from
38 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
39 catch_errors.
40 * top.c (quit_cover): Return void and take no arguments.
41 * top.h (quit_cover): Update prototype.
42
67ba4e42
JM
432011-09-20 Joseph Myers <joseph@codesourcery.com>
44
45 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
46 current_uiout, not uiout.
47
562f943b
DE
482011-09-19 Doug Evans <dje@google.com>
49
50 * python/py-auto-load.c (source_section_scripts): Fix file
51 descriptor leak.
52 * python/python.c (source_python_script_for_objfile): Tweak comments.
53
34518530
YQ
542011-09-18 Yao Qi <yao@codesourcery.com>
55 Ulrich Weigand <ulrich.weigand@linaro.org>
56
57 Support displaced stepping for Thumb 16-bit insns.
58 * arm-tdep.c (THUMB_NOP) Define.
59 (thumb_copy_unmodified_16bit): New.
60 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
61 (thumb_copy_alu_reg): New.
62 (arm_copy_svc): Move some common code to ...
63 (install_svc): ... here. New.
64 (thumb_copy_svc): New.
65 (install_pc_relative): New.
66 (thumb_copy_pc_relative_16bit): New.
67 (thumb_decode_pc_relative_16bit): New.
68 (thumb_copy_16bit_ldr_literal): New.
69 (thumb_copy_cbnz_cbz): New.
70 (cleanup_pop_pc_16bit_all): New.
71 (thumb_copy_pop_pc_16bit): New.
72 (thumb_process_displaced_16bit_insn): New.
73 (thumb_process_displaced_32bit_insn): New.
74 (thumb_process_displaced_insn): process thumb instruction.
75
76 Support displaced stepping for Thumb 32-bit insns.
77 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
78 (thumb2_copy_preload): New.
79 (thumb2_copy_copro_load_store): New.
80 (thumb2_copy_b_bl_blx): New.
81 (thumb2_copy_alu_imm): New.
82 (thumb2_copy_load_reg_imm): New.
83 (thumb2_copy_load_literal): New
84 (thumb2_copy_block_xfer): New.
85 (thumb_32bit_copy_undef): New.
86 (thumb_32bit_copy_unpred): New.
87 (thumb2_decode_ext_reg_ld_st): New.
88 (thumb2_decode_svc_copro): New.
89 (decode_thumb_32bit_store_single_data_item): New.
90 (thumb_copy_pc_relative_32bit): New.
91 (thumb_decode_pc_relative_32bit): New.
92 (decode_thumb_32bit_ld_mem_hints): New.
93 (thumb2_copy_table_branch): New
94 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
95 instructions.
96
2b16b2e3
YQ
972011-09-18 Yao Qi <yao@codesourcery.com>
98
99 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
100 (install_b_bl_blx): Likewise.
101
0f6f04ba
YQ
1022011-09-17 Yao Qi <yao@codesourcery.com>
103
104 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
105 (install_load_store): ... this. New.
106 Change parameter BYTE to SIZE.
107 (arm_copy_ldr_str_ldrb_strb): Update caller.
108 (arm_decode_ld_st_word_ubyte): Update caller.
109
e2d96639
YQ
1102011-09-17 Yao Qi <yao@codesourcery.com>
111
112 * infrun.c (displaced_step_fixup): Move some code ...
113 (displaced_step_restore): ... here. New function.
114 (handle_inferior_event): Cleanup displaced stepping state for both
115 child and parent when get forked or vforked event.
116 * regcache.c (get_thread_arch_aspace_regcache): New function.
117 get_thread_arch_regcache (): Call it.
118
a8123151
JB
1192011-09-16 Joel Brobecker <brobecker@adacore.com>
120
121 * ada-tasks.c (print_ada_task_info): New function, merging
122 short_task_info and info_tasks together. Reimplement using
123 ui-out instead of printing to stdout directly. Move the code
124 building and checking the task list here, instead of leaving it
125 in info_tasks_command.
126 (info_task): Move the code building and checking the task
127 list here, instead of leaving it in info_tasks_command.
128 (info_tasks_command): Delete code building and checking
129 the task list - moved elsewhere. Update calls to info_tasks
130 and info_task.
131
fbf06824
JB
1322011-09-16 Joel Brobecker <brobecker@adacore.com>
133
134 * ada-tasks.c (info_task): Delete parameter `from_tty'.
135
34a0bc90
JB
1362011-09-16 Joel Brobecker <brobecker@adacore.com>
137
138 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
139
79779fa9
JB
1402011-09-16 Joel Brobecker <brobecker@adacore.com>
141
142 * ada-lang.h (ada_build_task_list): Remove parameter
143 `warn_if_null'.
144 * ada-tasks.c (ada_build_task_list): Remove parameter
145 `warn_if_null'. Adjust implementation and documentation.
146 (valid_task_id, ada_get_environment_task)
147 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
148 (info_tasks_command): Adjust implementation.
149 (task_command): Likewise.
150 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
151 to ada_build_task_list.
152
e225eb91
JB
1532011-09-16 Joel Brobecker <brobecker@adacore.com>
154
155 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
156 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
157 (ada_tasks_inferior_data_handle): New static global.
158 (get_ada_tasks_inferior_data): New function.
159 (ada_get_task_number, get_task_number_from_id, valid_task_id)
160 (ada_get_environment_task, iterate_over_live_ada_tasks)
161 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
162 Adjust.
163 (ada_set_current_inferior_known_tasks_addr): New function.
164 (read_known_tasks, ada_build_task_list, short_task_info)
165 (info_tasks, info_task, info_tasks_command, task_command_1)
166 (task_command, ada_task_list_changed): Adjust.
167 (ada_tasks_invalidate_inferior_data): New function.
168 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
169 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
170 * ada-lang.h (struct inferior): Add declaration.
171 (ada_task_list_changed): Update profile.
172 * remote-wtx-pd.c: #include "inferior.h".
173 (switch_to_pd_internal): Update call to ada_task_list_changed.
174
6da9ca05
JB
1752011-09-16 Joel Brobecker <brobecker@adacore.com>
176
177 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
178 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
179 (atcb_fieldno): Delete these static globals.
180 (struct ada_tasks_pspace_data): New struct.
181 (ada_tasks_pspace_data_handle): New static global.
182 (get_ada_tasks_pspace_data): New function.
183 (ada_tasks_invalidate_pspace_data): New function.
184 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
185 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
186 (_initialize_tasks): Create this module's per-progspace
187 data handle.
188
dccd3cbd
JB
1892011-09-16 Joel Brobecker <brobecker@adacore.com>
190
191 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
192
f877b031
TG
1932011-09-16 Tristan Gingold <gingold@adacore.com>
194
195 * fork-child.c (fork_inferior): Update comment. Use alloca
196 instead of xmalloc for argv. Move len and shell_command
197 declarations in the block where they are used.
198 Only call execvp. Factorize failure code.
199
ae0c443d
JK
2002011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
201
202 Code cleanup.
203 * parse.c (write_exp_elt): Change argument to pass a pointer of union
204 `exp_element' instead of an element of the same and make the function
205 static.
206 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
207 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
208 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
209 Change argument of `write_exp_elt' function call.
210 Remove extra spaces from comments.
211 * parser-defs.h (write_exp_elt): Remove prototype.
212
5af65ec0
PK
2132011-09-15 Paul Koning <paul_koning@dell.com>
214
215 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
216 count of item appended to list.
217 * python/py-type.c (typy_fields): Likewise.
218
72be8ccc
PK
2192011-09-15 Paul Koning <paul_koning@dell.com>
220
883640a8 221 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 222
92f6badc
KP
2232011-09-15 Kevin Pouget <kevin.pouget@st.com>
224
225 PR threads/12628
226 * linux-fork.c (checkpoint_command): Disallow checkpointing of
227 processes with multiple threads.
228 (inf_has_multiple_thread_cb): New function.
229 (inf_has_multiple_threads): New function.
230
0672bf41 2312011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
232
233 PR Python/12692 Add gdb.selected_inferior() to Python interface.
234 * python/py-inferior.c (GdbMethods): New Python method definition.
235
6839b47f
KP
2362011-09-15 Kevin Pouget <kevin.pouget@st.com>
237
238 Handle multiple breakpoint hits in Python interface:
239 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
240 variable to breakpoints.
241 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
242 bps instead of single breakpoint. Fix some space typos.
243 * python/py-stopevent.c (create_breakpoint_event_object): Rename
244 variable to breakpoints.
245
672f9b60
KP
2462011-09-15 Kevin Pouget <kevin.pouget@st.com>
247
248 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
249 note if the breakpoint is internal.
250
43675ae4
KP
2512011-09-15 Kevin Pouget <kevin.pouget@st.com>
252
0672bf41 253 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 254
15148d6a
PA
2552011-09-14 Pedro Alves <pedro@codesourcery.com>
256
257 * infrun.c (prepare_for_detach, wait_for_inferior)
258 (fetch_inferior_event): Don't flush the register cache.
259 * remote.c (struct stop_reply) <regcache>: Add comment.
260
d83e736b
JK
2612011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 Remove excessive DWARF expressions memory duplication.
264 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
265 for block.data.
266 (indirect_pieced_value): Remove variable result. Remove variable
267 back_to and its use for baton.data.
268 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
269 block.data.
270 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
271 Update the function comment.
272
c65b3e0d
PA
2732011-09-13 Pedro Alves <pedro@codesourcery.com>
274
275 * inferior.h (ALL_INFERIORS): New.
276 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
277 for a stopped thread.
278 (thread_db_find_new_threads): Look for threads in all inferiors.
279
a1398e0c
PA
2802011-09-13 Pedro Alves <pedro@codesourcery.com>
281
282 * breakpoint.c (update_watchpoint): Handle the case of the
283 watchpoint to update not being in the breakpoint list yet.
284 (hw_watchpoint_use_count): New, factored out from
285 hw_watchpoint_used_count.
286 (hw_watchpoint_used_count): Rename to ...
287 (hw_watchpoint_used_count_others): ... this. Add `except'
288 parameter. Don't count resources of `except'. Use
289 hw_watchpoint_use_count.
290
30596231
PA
2912011-09-13 Pedro Alves <pedro@codesourcery.com>
292
293 * gdbthread.h (enum thread_state): Moved here.
294 (struct thread_info): Rename `executing_' field to `executing' and
295 `state_' to `state'.
296 * thread.c (enum thread_state): Moved to gdbthread.h.
297 (new_thread, add_thread_silent, delete_thread_1)
298 (any_live_thread_of_process, thread_alive, set_running)
299 (set_running, is_thread_state, any_running, is_executing)
300 (set_executing, finish_thread_state, print_thread_info)
301 (do_captured_thread_select): Adjust.
302
bede5f5f
JK
3032011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
304
305 Fix compatibility with gcc < 4.3 and non-gcc compilers.
306 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
307
4801a9a3
PA
3082011-09-12 Pedro Alves <pedro@codesourcery.com>
309 Matt Rice <ratmice@gmail.com>
310
311 PR gdb/13175
312
313 * interps.c (struct interp) <interpreter_out>: Delete field.
314 (interp_new): Remove the data and uiout parameters and adjust.
315 (interp_set): Only set the current_uiout from the interpreter's
316 uiout after initializing the interpreter. Adjust call to
317 init_proc.
318 (interp_ui_out): Adjust to call procs->ui_out_proc.
319 (interp_data, interp_name): New.
320 * interps.h (interp_init_ftype): Add `self' parameter.
321 (interp_ui_out_ftype): New typedef.
322 (struct interp_procs) <ui_out_proc>: New method pointer.
323 (interp_new): Remove the data and uiout parameters.
324 (interp_data, interp_name): Declare.
325 * tui/tui-interp.c (tui_init): Adjust prototype.
326 (tui_ui_out): New.
327 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
328 tui_out here. Adjust call to interp_new.
329 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
330 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
331 (cli_ui_out): New.
332 (_initialize_cli_interp): Install it. Adjust call to interp_new.
333 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
334 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
335 Initialize mi->uiout depending on the mi_version as extracted from
336 the interpreter's name.
337 (mi_ui_out): New.
338 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
339 interp_new. Don't allocate the ui_out's of the interpreters here.
340
d0afda03 3412011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 342
d0afda03 343 * solib.c (solib_used): New function.
59145f8c
AR
344 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
345 by another so_list object before freeing it.
346
bdaf8d4a
JK
3472011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
348
349 Code cleanup.
350 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
351 values.
352
df15bd07
JK
3532011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 Code cleanup.
356 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
357 (amd64_skip_xmm_prologue): ... this new function. Describe its
358 parameters. No longer use amd64_prologue_line_bug.
359 * defs.h (producer_is_gcc_ge_4): New declaration.
360 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
361 (process_full_comp_unit): Update its caller. Remove
362 amd64_prologue_line_bug initialization.
363 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
364 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
365
25289eb2
PA
3662011-09-09 Pedro Alves <pedro@codesourcery.com>
367
368 * linux-nat.h (enum resume_kind): New.
369 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
370 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
371 resume_stop on the new lwp.
25289eb2
PA
372 (add_lwp): Set last_resume_kind as resume_continue by default.
373 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
374 (resume_lwp): New, factored out from resume_callback. Also check
375 for pending status in lp->waitstatus.
376 (resume_callback): Reimplement.
377 (resume_clear_callback): Set last_resume_kind as resume_stop.
378 (resume_set_callback): Set last_resume_kind as resume_continue.
379 (linux_nat_resume, linux_handle_extended_wait): Set
380 last_resume_kind.
381 (running_callback): Also check lp->waitstatus for pending events.
382 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
383 is resume_step.
384 (stop_and_resume_callback): Don't re-resume if the core wanted the
385 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
386 using an invalidated pointer.
387 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
388 SIGSTOPs if the core wanted the LWP to stop.
389 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
390 wanted the lwp to stop. If the core wanted the lwp to stop, and
391 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
392 of TARGET_SIGNAL_STOP.
393 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
394 here. Instead, signal the lwp, and set the last_resume_kind to
395 resume_stop.
396
f687d035
PA
3972011-09-09 Pedro Alves <pedro@codesourcery.com>
398
399 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
400 -1 (error), if the lwp exits right after attaching.
401
bc587a6b
DE
4022011-09-08 Doug Evans <dje@google.com>
403
63d97a20
DE
404 * py-cmd.c: Some minor formatting fixes.
405 (gdbpy_parse_command_name): Rename text arg to name, make const.
406 All callers updated.
407 * python-internal.h (gdbpy_parse_command_name): Update.
408
bc587a6b
DE
409 * cli/cli-decode.c (add_cmd): Add comment.
410
08711b9a
JK
4112011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
412
413 PR breakpoints/12435
414 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
415 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
416 * dwarf2read.c (process_full_comp_unit): Initialize
417 amd64_prologue_line_bug.
418 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
419
b2e7f004
JK
4202011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
421
422 Fix TUI screen corruption.
423 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
424 batch_flag.
425
8afd712c
JK
4262011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
427
428 * findvar.c (read_var_value): Never return NULL, throw an error
429 instead. Update the function comment. State symbol name in the error
430 messages.
431 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
432 read_var_value.
433 * stack.c (print_frame_args): Likewise.
434 * valops.c (value_of_variable): Likewise.
435
b99b5f66
JK
4362011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
437
438 * stack.c (print_frame_args): New variable except. Wrap
439 read_var_value and common_val_print into TRY_CATCH.
440
85bc8cb7
JK
4412011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
442
443 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
444 caller to value_of_this.
445 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
446 Twice.
447 * valops.c (value_of_this): Remove parameter complain and variable ret.
448 Update function comment. Never return NULL by this code.
449 (value_of_this_silent): New function.
450 * value.h (value_of_this): Remove parameter complain.
451 (value_of_this_silent): New declaration.
452
ede1849f
YQ
4532011-09-07 Yao Qi <yao@codesourcery.com>
454
455 * gdbthread.h (struct thread_info): Remove fields
456 `stepping_through_solib_after_catch' and
457 `stepping_through_solib_catchpoints'.
458 * infrun.c (init_thread_stepping_state): Update.
459 (process_event_stop_test, currently_stepping): Update.
460 (currently_stepping_or_nexting_callback): Update.
461
6aa27652
YQ
4622011-09-07 Yao Qi <yao@codesourcery.com>
463
464 * gdbthread.h (struct thread_info): Comment on field
465 `step_after_step_resume_breakpoint'.
466
00db5b94
PA
4672011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
468
469 * remote.c (remote_console_output): Reindent.
470
861152be
LM
4712011-09-06 Luis Machado <lgustavo@codesourcery.com>
472
473 * frame.c (has_stack_frames): Check for currently selected
474 traceframe.
475
ab821bc6
PA
4762011-09-06 Pedro Alves <pedro@codesourcery.com>
477
478 * event-top.h (MAXPROMPTS, struct prompts): Delete.
479 (set_async_annotation_level, set_async_prompt, pop_prompt)
480 (push_prompt, new_async_prompt): Delete declarations.
481 * top.h (get_prompt, set_prompt): Change prototype.
482 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
483 declarations.
484 * top.c (command_loop):
485 (top_prompt): New global.
486 (get_prefix, set_prefix, get_suffix, ): Delete.
487 (get_prompt, set_prompt): Rewrite.
488 (show_new_async_prompt): Rename to ...
489 (show_prompt): ... this.
490 (init_main): Adjust. Don't handle --annotate=2 here.
491 * event-top.c (new_async_prompt): Delete.
492 (the_prompts): Delete.
493 (more_to_come): Make static.
494 (display_gdb_prompt): Use top_level_prompt() to compute the top
495 level prompt, and don't notify the before_prompt observers
496 directly here. Always trick readline into not trying to display
497 the prompt if sync_execution and displaying the primary prompt.
498 If displaying a local/secondary prompt, always show it, even if
499 sync_execution is set.
500 (change_annotation_level): Delete.
501 (top_level_prompt): New, based on change_annotation_level.
502 (push_prompt, pop_prompt): Delete.
503 (async_disable_stdin): No longer pushes prompt.
504 (command_line_handler): No longer pushes or pops prompt. If more
505 input is expected, call display_gdb_prompt with an explicit empty
506 prompt.
507 (async_stop_sig): Adjust.
508 (set_async_annotation_level, set_async_prompt): Delete.
509 * python/python.c (before_prompt_hook): Adjust.
510
f1d90504
PA
5112011-09-05 Pedro Alves <pedro@codesourcery.com>
512
513 PR cli/13110
514
515 * infrun.c (fetch_inferior_event): Check if there's a selected
516 thread before checking if the selected thread is executing.
517
0f641c01
PA
5182011-09-05 Pedro Alves <pedro@codesourcery.com>
519
520 * inf-loop.c (execute_command): Don't check if the current thread
521 if running before synchronously waiting for command completion.
522 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
523 here.
524 (normal_stop): Call async_enable_stdin here.
525 * inf-loop.c (inferior_event_handler): Don't call
526 async_enable_stdin, nor handle "set exec-done-display" here.
527
30368258 5282011-09-04 Joel Brobecker <brobecker@adacore.com>
529
530 GDB 7.3.1 released.
531
31916278
JB
5322011-09-04 Joel Brobecker <brobecker@adacore.com>
533
534 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
535
e8d56f18
JB
5362011-09-04 Joel Brobecker <brobecker@adacore.com>
537
538 * NEWS: Add entry for OpenBSD/NetBSD build failure.
539
5dd05d8c
JK
5402011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
543
7d8e6458 5442011-09-02 Matt Rice <ratmice@gmail.com>
545
546 PR gdb/10720
547 * event-top.c (cli_command_loop): Replace readline setup with
548 direct call to display_gdb_prompt.
549 (display_gdb_prompt): Do not call observer mechanism during
550 synchronous execution.
551
84636d28
PA
5522011-09-02 Pedro Alves <pedro@codesourcery.com>
553
554 * linux-nat.c (in_pid_list_p): New.
555 (linux_record_stopped_pid): Delete.
556 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
557 already attached to the LWP. Return an indication if so.
558 (linux_nat_filter_event): Adjust.
559 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
560 returning an indication to ignore this thread.
561
b4a14fd0
PA
5622011-09-02 Pedro Alves <pedro@codesourcery.com>
563
564 * top.c: Include interps.h.
565 (execute_command): If the target can async, but the interpreter is
566 in sync mode, synchronously wait for the command to finish before
567 returning.
568 (execute_command_to_string): Force the interpreter to sync mode.
569 * infrun.c: Include interps.h.
570 (fetch_inferior_event): Don't restore the prompt yet if the
571 interpreter is in sync mode.
572 * interps.c (interpreter_async): New global.
573 * interps.h (interpreter_async): Declare.
574 * inf-loop.c: Include interps.h.
575 (inferior_event_handler): Don't print the language change or run
576 breakpoint commands yet if the interpreter in is sync mode.
577 * main.c (captured_command_loop): Flip the interpreter to async
578 mode.
579 * cli/cli-script.c: Include interps.h.
580 (execute_user_command, while_command, if_command): Force the
581 interpreter to sync mode.
582 * python/python.c: Include interps.h.
583 (python_command, execute_gdb_command): Force the interpreter to
584 sync mode.
585
c709acd1
PA
5862011-09-02 Pedro Alves <pedro@codesourcery.com>
587
588 * value.c (show_convenience): Catch errors thrown while printing
589 each internal variable.
590 * infrun.c (validate_siginfo_access): New function.
591 (siginfo_value_read, siginfo_value_write): Call it.
592
9655e943
JK
5932011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
594
595 Revert:
596 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
597 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
598 attribute.
599
cb457ae2
YQ
6002011-08-29 Yao Qi <yao@codesourcery.com>
601
602 * solib-dsbt.c (bfd_lookup_symbol): Removed.
603 (cmp_name): New.
604 (enable_break2): Update caller.
605 * solib-frv.c (bfd_lookup_symbol): Removed.
606 (cmp_name): New.
607 (enable_break2): Update caller.
608 * solib-pa64.c (bfd_lookup_symbol): Removed.
609 (cmp_name): New.
610 * solib-svr4.c (bfd_lookup_symbol): Removed.
611 (cmp_name_and_sec_flags): New.
612 (enable_break): Update caller.
613 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
614 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
615 (gdb_bfd_lookup_symbol): New.
616 * solib.h: Functions declarations.
617
83d1a36a
YQ
6182011-08-29 Yao Qi <yao@codesourcery.com>
619
620 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
621 and solib-dsbt.o.
622
c04b3e8f
JK
6232011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 Fix TUI stepi on code without symbols.
626 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
627 current PC instead.
628
cb0fd152
JK
6292011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 Code cleanup.
632 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
633 and the static keyword.
634 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
635 Make prefix an array.
636 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
637 * mi/mi-main.c (get_register): Remove stb initialization and the static
638 keyword.
639
91174723
JK
6402011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
641
642 Code cleanup - make mi_opt const.
643 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
644 opts const.
645 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
646 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
647 (mi_cmd_env_dir): Likewise.
648 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
649 (mi_cmd_target_file_put): Likewise.
650 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
651 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
652 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
653 (mi_valid_noargs): Make opts const.
654 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
655 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
656 (mi_cmd_data_read_memory): Likewise.
657 (mi_cmd_data_read_memory_bytes): Likewise.
658 (mi_cmd_data_write_memory): Likewise.
659
5068b8e8 6602011-08-26 Matt Rice <ratmice@gmail.com>
661
662 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
663 bcache_xmalloc, replace bcache_xmalloc with call to
664 psymbol_bcache_init for psymbol_cache.
665 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
666
a4f2ce05
JK
6672011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 * inf-loop.c (inferior_event_handler): Add exception_print in
670 INF_EXEC_COMPLETE.
671
353d1d73
JK
6722011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
673
674 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
675 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
676 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
677 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
678 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
679 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
680 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
681 * infrun.c (fetch_inferior_event): Call
682 make_bpstat_clear_actions_cleanup.
683 * top.c (execute_command): New variable cleanup_if_error, call
684 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
685 * utils.c (do_bpstat_clear_actions_cleanup)
686 (make_bpstat_clear_actions_cleanup): New functions.
687
3ced3da4
PA
6882011-08-26 Pedro Alves <pedro@codesourcery.com>
689
690 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
691 either the parent or the child forks. Rename a couple locals.
692
a9f4bb21
PA
6932011-08-26 Pedro Alves <pedro@codesourcery.com>
694
695 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
696 library call. Avoid reading the `status' local if all waitpid
697 calls failed.
698
e5798bef
PA
6992011-08-26 Pedro Alves <pedro@codesourcery.com>
700
701 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
702 opening /proc/PID/task always succeeds.
703
edb2aadf
AR
7042011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
705
706 * linespec.c (symtab_from_filename): Check for the end of string.
707
0d932b2f
MK
7082011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
709
710 PR mi/11912
711 * varobj.c (cplus_describe_child): Add the keyword
712 'class' to the output of the method when dealing
713 with a cast to a base class.
714
e93ca019
JK
7152011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 No functionality change.
718 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
719 function comment a reference, new variables tp and bs, move here code
720 from throw_exception.
721 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
722 describe it in the comment.
723 * exceptions.c (throw_exception): Remove variable tp, move the code for
724 bpstat_clear_actions to bpstat_clear_actions.
725
13da1c97
LM
7262011-08-24 Luis Machado <lgustavo@codesourcery.com>
727
728 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
729 * linux-nat.c: Include linux-procfs.h.
730 (linux_proc_get_tgid): Move to ...
731 * common/linux-procfs.c: ... here. New file.
732 * common/linux-procfs.h: New file.
733 * linux-thread-db.c: Include linux-procfs.h.
734 * Makefile.in: Update dependencies.
735 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
736 * config/arm/linux.mh: Likewise.
737 * config/i386/linux.mh: Likewise.
738 * config/i386/linux64.mh: Likewise.
739 * config/ia64/linux.mh: Likewise.
740 * config/m32r/linux.mh: Likewise.
741 * config/m68k/linux.mh: Likewise.
742 * config/mips/linux.mh: Likewise.
743 * config/pa/linux.mh: Likewise.
744 * config/pa/linux.mh: Likewise.
745 * config/powerpc/linux.mh: Likewise.
746 * config/powerpc/ppc64-linux.mh: Likewise.
747 * config/powerpc/spu-linux.mh: Likewise.
748 * config/sparc/linux.mh: Likewise.
749 * config/sparc/linux64.mh: Likewise.
750 * config/xtensa/linux.mh: Likewise.
751
4e5c165d
HZ
7522011-08-24 Hui Zhu <teawater@gmail.com>
753
754 * tracepoint.c (cond_string_is_same): New function.
755 (find_matching_tracepoint): Add condition check
756 by cond_string_is_same.
757
6e2f5b22
JK
7582011-08-23 Josh Matthews <josh@joshmatthews.net>
759
760 Fix build error in Darwin port.
761 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
762
abf85f46
JK
7632011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
764
765 Code cleanup.
766 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
767 (command_line_is_silent): New function.
768 (bpstat_do_actions_1): No longer use commands_left, use
769 command_line_is_silent for commands.
770 (bpstat_alloc): Remove clearing of commands_left.
771 (bpstat_stop_status): Remove initialization of commands_left, use
772 command_line_is_silent.
773 * breakpoint.h (struct bpstats): Remove commands_left.
774
3a93a0c2
KS
7752011-08-18 Keith Seitz <keiths@redhat.com>
776
777 PR c++/12266
778 * cp-name-parser.y (struct demangle_info): Remove unused
779 member PREV.
780 (d_grab): Likewise.
781 (allocate_info): Change return type to struct demangle_info *.
782 Always allocate a new demangle_info.
783 Remove unused PREV pointer.
784 (cp_new_demangle_parse_info): New function.
785 (cp_demangled_name_parse_free): New function.
786 (do_demangled_name_parse_free_cleanup): New function.
787 (make_cleanup_cp_demangled_name_parse_free): New function.
788 (cp_demangled_name_to_comp): Change return type to
789 struct demangle_parse_info *.
790 Allocate a new storage for each call.
791 (main): Update usage for cp_demangled_name_to_comp
792 API change.
793 * cp-support.h (struct demangle_parse_info): New structure.
794 (cp_demangled_name_to_comp): Update API change for
795 return type.
796 (cp_new_demangle_parse_info): Declare.
797 (make_cleanup_cp_demangled_name_parse_free): New declaration.
798 (cp_demangled_name_parse_free): Declare.
799 * cp-support.c (cp_canonicalize_string): Update API
800 change for cp_demangled_name_to_comp.
801 (mangled_name_to_comp): Likewise.
802 Return struct demangle_parse_info, too.
803 (cp_class_name_from_physname): Update mangled_name_to_comp
804 API change.
805 (method_name_from_physname): Likewise.
806 (cp_func_name): Update API change for cp_demangled_name_to_comp.
807 (cp_remove_params): Likewise.
808 * python/py-type.c (typy_legacy_template_argument): Likewise.
809
810 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
811 (cp_merge_demangle_parse_infos): Declare.
812 * cp-support.c (ignore_typedefs): New file global.
813 (copy_string_to_obstack): New function.
814 (inspect_type): New function.
815 (replace_typedefs): New function.
816 (replace_typedefs_qualified_name): New function.
817 (cp_canonicalize_string_no_typedefs): New function.
818 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
819 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
820 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
821 instead of cp_canonicalize_string.
822 (find_method): Likewise.
823 (decode_compound): Before looking up the name, call
824 cp_canonicalize_string_no_typedefs.
825 (decode_variable): Likewise.
826
fa3a4f15
PM
8272011-08-17 Phil Muldoon <pmuldoon@redhat.com>
828 Tom Tromey <tromey@redhat.com>
829 Matt Rice <ratmice@gmail.com>
830
831 * python/lib/gdb/prompt.py: New file.
832 * python/lib/gdb/command/prompt.py: New file.
833 * NEWS: Document set extended-prompt and gdb.prompt library
834
85661b1e
YQ
8352011-08-16 Yao Qi <yao@codesourcery.com>
836
837 * tic6x-linux-tdep.c: Move const arrays definition from here...
838 * tic6x-tdep.c: to here ...
839
11315641
YQ
8402011-08-14 Yao Qi <yao@codesourcery.com>
841
842 * NEWS: New port to Texas Instruments TMS320C6x.
843
8cd64e00
YQ
8442011-08-14 Andrew Jenner <andrew@codesourcery.com>
845 Bernd Schmidt <bernds@codesourcery.com>
846 Yao Qi <yao@codesourcery.com>
847
848 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
849 * solib-dsbt.c: New file. Support DSBT shared object.
850 * tic6x-linux-tdep.c: New file.
851 * tic6x-tdep.c: New file.
852 * tic6x-tdep.h: New file.
853
78d85199
YQ
8542011-08-14 Andrew Stubbs <ams@codesourcery.com>
855 Yao Qi <yao@codesourcery.com>
856
857 * remote.c (PACKET_qXfer_fdpic): New enum value.
858 (remote_protocol_features): Add qXfer:fdpic:read packet.
859 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
860 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
861 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
862
224bbe49
YQ
8632011-08-14 Yao Qi <yao@codesourcery.com>
864
865 Target description for tic6x.
866 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
867 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
868 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
869 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
870 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
871 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
872 * features/tic6x-c64xp-linux.xml: New.
873 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
874 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
875 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
876 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
877 * regformats/tic6x-c64xp.dat,
878 regformats/tic6x-c62x-linux.dat: Generated.
879 * regformats/tic6x-c64x-linux.dat,
880 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
881 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
882 features/tic6x-*.c files.
883 Add regformats/tic6x-*.dat files.
884
457e09f0
DE
8852011-08-12 Doug Evans <dje@google.com>
886
887 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
888 * python/py-symbol.c (sympy_get_type): New function.
889 (symbol_object_getset): Add "type".
890
d20c1c3f
PA
8912011-08-12 Pedro Alves <pedro@codesourcery.com>
892
893 PR tui/13073
894
895 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
896 empty name.
897 (tui_show_register_group): Don't store a byte buffer in the data
898 element's value.
899 (tui_register_format): Skip registers with an empty name.
900 (tui_get_register): Store a struct value in the data element's
901 value field instead of a byte buffer holding the raw register
902 contents. Account for optimized-out and unavailable registers
903 when comparing register contents.
904
9d8fa392
PA
9052011-08-09 Pedro Alves <pedro@codesourcery.com>
906
907 * printcmd.c (current_display_number): Update comment.
908 (disable_current_display_cleanup): Delete.
909 (do_one_display): Use make_cleanup_restore_integer. Gracefully
910 catch errors thrown while evaluating and printing the display.
911
401a70b8
TT
9122011-08-09 Tom Tromey <tromey@redhat.com>
913
914 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
915
7f86f058
PA
9162011-08-09 Pedro Alves <pedro@codesourcery.com>
917
94b71cca 918 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
919 * maint.c (maintenance_command): Ditto.
920 * somread.c (som_symtab_read): Ditto.
921 * solib.c (solib_find, solib_map_sections, update_solib_list)
922 (solib_add, info_sharedlibrary_command, solib_name_from_address)
923 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 924 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
925 * solib-irix.c (locate_base, disable_break, enable_break)
926 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
927 (irix_current_sos, irix_open_symbol_file_object)
928 (irix_special_symbol_handling): Ditto.
929 * solib-sunos.c (locate_base, first_link_map_member)
930 (sunos_current_sos, disable_break, enable_break)
931 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
932 Ditto.
933 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
934 (open_symbol_file_object, svr4_current_sos, enable_break)
935 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
936 Ditto.
937 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
938 (frv_current_sos, enable_break, frv_special_symbol_handling)
939 (frv_solib_create_inferior_hook): Ditto.
940 * solist.h (struct target_so_ops): Extend the comments of the
941 special_symbol_handling, current_sos and open_symbol_file_object
942 methods.
943
5e239b84
PM
9442011-08-09 Phil Muldoon <pmuldoon@redhat.com>
945
946 * python/lib/gdb/__init__.py: Auto-load files in command and
947 function directories.
948 * python/python.c (finish_python_initialization): Use
949 os.path.join.
950 * python/lib/gdb/command/pretty_printers.py: Self register
951 command.
952 * NEWS: Document auto-loading.
953
b6cede78
JK
9542011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
957 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
958 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
959
29d0bb3d
TT
9602011-08-08 Tom Tromey <tromey@redhat.com>
961
962 * breakpoint.c (clean_up_filters): Remove.
963 (catch_syscall_split_args): Use VEC_cleanup.
964
2f7fb8e4
JK
9652011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
968 (main): Uncomment "Demangling error\n".
969
d6c10e95
PP
9702011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
971
972 * solib-target.c (segment_attributes): Make them static.
973 (section_attributes, library_children, library_attributes): Likewise.
974 (library_list_children, library_list_attributes): Likesise.
975 (library_list_elements): Likewise.
976
af6e93b2
PA
9772011-08-05 Pedro Alves <pedro@codesourcery.com>
978
979 * exceptions.c (throw_exception): Don't disable the current
980 display.
981 * printcmd.c (disable_current_display_cleanup): New function.
982 (do_one_display): Install a cleanup to disable the current display
983 if doing the display throws.
984
6a1b1664
EZ
9852011-08-05 Eli Zaretskii <eliz@gnu.org>
986
987 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
988 initialization of the tp_new member to the corresponding
989 gdbpy_initialize_* function.
990 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
991 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
992 * python/py-function.c (gdbpy_initialize_functions): Likewise.
993 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
994 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
995
31a0ae49
JK
9962011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
997
998 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
999 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
1000 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
1001 references to current_uiout.
1002
e0dd0826
PA
10032011-08-04 Pedro Alves <pedro@codesourcery.com>
1004
1005 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
1006 (start_event_loop): Use TRY_CATCH instead of catch_errors.
1007 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
1008 * top.c (gdb_readline_wrapper): Adjust.
1009 * tui/tui-interp.c (tui_command_loop):
1010 (_initialize_tui_interp): Don't install it.
1011
79a45e25
PA
10122011-08-04 Pedro Alves <pedro@codesourcery.com>
1013
1014 * ui-out.h (uiout): Rename to ...
1015 (current_uiout): ... this.
1016 * ui-out.c (uiout): Rename to ...
1017 (current_uiout): ... this.
1018 * ada-lang.c (print_it_exception, print_one_exception)
1019 (print_mention_exception): Adjust.
1020 * breakpoint.c (watchpoint_check): Adjust.
1021 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
1022 (default_collect_info, watchpoints_info, print_one_catch_fork)
1023 (print_one_catch_vfork, print_one_catch_syscall)
1024 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
1025 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
1026 (print_it_watchpoint, print_mention_watchpoint)
1027 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
1028 (print_it_exception_catchpoint, print_one_exception_catchpoint)
1029 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
1030 (bkpt_print_mention, momentary_bkpt_print_it)
1031 (tracepoint_print_mention, update_static_tracepoint)
1032 (tracepoints_info, save_breakpoints): Adjust.
1033 * cli-out.c (field_separator): Adjust.
1034 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
1035 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
1036 * frame.c (get_current_frame): Adjust.
1037 * infcmd.c (run_command_1, print_return_value): Adjust.
1038 * inferior.c (inferior_command, info_inferiors_command): Adjust.
1039 * infrun.c (print_end_stepping_range_reason): Adjust.
1040 (print_signal_exited_reason, print_exited_reason): Adjust.
1041 (print_signal_received_reason, print_no_history_reason): Adjust.
1042 * interps.c (interp_set): Adjust.
1043 * osdata.c (info_osdata_command): Adjust.
1044 * progspace.c (maintenance_info_program_spaces_command): Adjust.
1045 * remote-fileio.c (remote_fileio_request): Adjust.
1046 * remote.c (show_remote_cmd): Adjust.
1047 * solib.c (info_sharedlibrary_command): Adjust.
1048 * source.c (print_source_lines_base): Adjust.
1049 * stack.c (print_stack_frame): Adjust.
1050 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
1051 * symfile-mem.c (add_vsyscall_page): Adjust.
1052 * symfile.c (load_progress, generic_load)
1053 (print_transfer_performance): Adjust.
1054 * thread.c (info_threads_command, restore_selected_frame)
1055 (thread_command): Adjust.
1056 * top.c (make_cleanup_restore_ui_file): Adjust.
1057 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
1058 (print_one_static_tracepoint_marker): Adjust.
1059 * cli/cli-cmds.c (print_disassembly): Adjust.
1060 * cli/cli-decode.c (print_doc_line): Adjust.
1061 * cli/cli-interp.c (safe_execute_command): Adjust.
1062 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
1063 (handle_redirections): Adjust.
1064 * cli/cli-script.c (show_user_1): Adjust.
1065 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
1066 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1067 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
1068 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
1069 (mi_cmd_env_dir): Adjust.
1070 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1071 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
1072 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
1073 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
1074 (list_args_or_locals): Adjust.
1075 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
1076 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
1077 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
1078 (mi_cmd_var_list_children, mi_cmd_var_info_type)
1079 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
1080 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
1081 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
1082 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
1083 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
1084 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
1085 (list_available_thread_groups, mi_cmd_list_thread_groups)
1086 (mi_cmd_data_list_register_names)
1087 (mi_cmd_data_list_changed_registers)
1088 (mi_cmd_data_list_register_values, get_register)
1089 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
1090 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
1091 (mi_cmd_list_target_features, mi_cmd_add_inferior)
1092 (mi_execute_command, mi_load_progress): Adjust.
1093 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
1094 * python/py-auto-load.c (print_script, info_auto_load_scripts):
1095 Adjust.
1096 * python/py-breakpoint.c (bppy_get_commands): Adjust.
1097 * tui/tui-interp.c (tui_command_loop): Adjust.
1098 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
1099
f9679975
PA
11002011-08-04 Pedro Alves <pedro@codesourcery.com>
1101
1102 * exceptions.c (struct catcher): Remove saved_uiout field.
1103 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
1104 no longer save/resvore the global ui_out builder.
1105 (catch_exceptions_with_msg): Save/override/restore the global
1106 ui_out builder manually instead of relying on TRY_CATCH to do it.
1107 (catch_errors): Save/restore the global ui_out builder manually
1108 instead of relying on TRY_CATCH to do it.
1109 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
1110 parameter.
1111 (TRY_CATCH): Adjust.
1112 * cli/cli-interp.c (safe_execute_command): Save/override/restore
1113 the global ui_out builder manually instead of relying on TRY_CATCH
1114 to do it.
1115
934709f0
PW
11162011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1117
1118 * breakpoint.c (update_global_location_list): Ensure
1119 invariant 'first loc marked not duplicated and inserted,
1120 following locs marked duplicated/not inserted' is respected
1121 for multiple locations at the same address.
1122 (unduplicated_should_be_inserted) New function.
1123 (swap_insertion) New function.
1124
2421fe6f
JK
11252011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1126
1127 * stack.c (print_frame_arguments_choices): Comment typo fix.
1128
3fbb6ffa
TJB
11292011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
1130
1131 Revert:
1132 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1133 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1134 argument. Update callers.
1135
fbe12357
PP
11362011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1137
1138 PR gdb/13045
1139 * doublest.c (convert_doublest_to_floatformat): Pass correct
1140 mantissa length to put_field.
1141
b1d288d3
JK
11422011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
1145 exception_print code path.
1146 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
1147 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
1148 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
1149
311b5970
JK
11502011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 Code cleanup.
1153 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
1154 Remove, merge them into ...
1155 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
1156 variable args and its initialization.
1157 (struct print_args_args, print_args_stub): Remove, merge them into
1158 print_frame.
1159 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
1160 them into ...
1161 (do_gdb_disassembly): ... here. Remove variable args and its
1162 initialization.
1163 (print_frame): Remove variable args and its initialization, new
1164 variable gdbarch and numargs (from print_args_stub), inline here
1165 print_args_stub with a TRY_CATCH.
1166 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
1167 them into ...
1168 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 1169 New variable e, remove variable btargs and its initialization.
311b5970 1170
484a26a8
TG
11712011-08-01 Tristan Gingold <gingold@adacore.com>
1172
1173 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
1174
c30eee59
TJB
11752011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1176
1177 * breakpoint.c (insert_bp_location): Document return value.
1178 (insert_breakpoint_locations): Fix documentation.
1179 (remove_breakpoints): Add documentation.
1180
f116073b
TJB
11812011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1182
1183 * breakpoint.c (insert_bp_location): Remove disabled_breaks
1184 argument. Update callers.
1185
65aa373f
JK
11862011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1187
1188 * stack.c (print_frame_info): Comment typo fix.
1189
a50242fb
SA
11902011-07-29 Sterling Augustine <saugustine@google.com>
1191
1192 * MAINTAINERS (Write After Approval): Add myself to the list.
1193
267f6504
TT
11942011-07-29 Tom Tromey <tromey@redhat.com>
1195
1196 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
1197 (library_list_start_segment): Update.
1198 (library_list_start_section): Update.
1199
00bd41d6
PM
12002011-07-28 Phil Muldoon <pmuldoon@redhat.com>
1201
1202 * varobj.c (value_get_print_value): Move hint check later into the
1203 function. Comment function. Free thevalue before reusing it.
1204
18a46dbe
JK
12052011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1206 Pedro Alves <pedro@codesourcery.com>
1207
1208 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
1209 value_one.
1210 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
1211 Assert the result kind.
1212 * value.h (value_one): Remove parameter lv.
1213
bb7da2bf
JK
12142011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 Fix crash on lval_computed values.
1217 * valops.c (value_zero): Use not_lval for lval_computed.
1218
2d5213f8
TT
12192011-07-27 Tom Tromey <tromey@redhat.com>
1220
1221 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
1222 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
1223
11081198
JK
12242011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1225
1226 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
1227 "ptype" by their typedefs difference.
1228
3c6e0cb3
JK
12292011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1230
1231 * dwarf2expr.c (ctx_no_read_reg): New function.
1232 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1233 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1234 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1235 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1236
523f3620
JK
12372011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
1240 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
1241 file.
1242 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
1243 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1244 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1245 (ctx_no_get_base_type): Move the functions here.
1246 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1247 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1248 (ctx_no_get_base_type): New declarations.
1249
24d3216f
TT
12502011-07-27 Tom Tromey <tromey@redhat.com>
1251
1252 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
1253 entries.
1254 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
1255 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
1256
5005c8a9
PP
12572011-07-26 Sterling Augustine <saugustine@google.com>
1258
1259 * cli/cli-dump.c (dump_binary_file): Change parameter type to
1260 ULONGEST.
1261 (dump_bfd_file): Likewise.
1262
480a3f21
PW
12632011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1264
1265 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
1266 (remote_hw_watchpoint_length_limit): New variable.
1267 (_initialize_remote) add set,show cmds for this new variable.
1268 * gdb.texinfo: document these new commands.
1269 * NEWS: Mention these new commands.
1270
efa80663
PA
12712011-07-26 Pedro Alves <pedro@codesourcery.com>
1272
1273 * breakpoint.c (works_in_software_mode_watchpoint): Also return
1274 true for software watchpoints.
1275
dbdaa232 12762011-07-26 Joel Brobecker <brobecker@adacore.com>
1277
1278 GDB 7.3 released.
1279
cf2c3c16
TT
12802011-07-26 Tom Tromey <tromey@redhat.com>
1281
1282 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
1283 * dwarf2read.c (read_indirect_string_at_offset): New function.
1284 (read_indirect_string): Use it.
1285 (dwarf_decode_macro_bytes): New function, taken from
1286 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
1287 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
1288 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
1289 New functions.
1290 (struct dwarf2_per_objfile) <macro>: New field.
1291 (dwarf2_elf_names): Add .debug_macro.
1292 (dwarf2_macros_too_long_complaint): Add 'section' argument.
1293 (dwarf2_locate_sections): Handle new section.
1294 (read_file_scope): Handle DW_AT_GNU_macros.
1295 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
1296
1a532630
PP
12972011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1298
1299 * NEWS: Mention dcache configuration.
1300 * dcache.c (dcache_set_list, dcache_show_list): New variables.
1301 (dcache_size, dcache_line_size): New variables.
1302 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
1303 (struct dcache_block): Make it expandable.
1304 (struct dcache_struct): New field.
1305 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
1306 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
1307 (dcache_poke_byte, dcache_print_line): Adjust.
1308 (set_dcache_size, set_dcache_line_size): New functions.
1309 (set_dcache_command, show_dcache_command): New functions.
1310 (_initialize_dcache): Add new commands.
1311
2eff07b3
PP
13122011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
1313
1314 * progspace.h (struct program_space): Add solib_add_generation.
1315 * infcmd.c (post_create_inferior): Only call solib_add if not
1316 already done.
1317 * solib.c (solib_add): Increment solib_add_generation.
1318
543305c9
JK
13192011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 Fix implicit pointer offsets.
1322 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
1323 ptr.OFFSET.
1324
c0a91b2b
TT
13252011-07-25 Tom Tromey <tromey@redhat.com>
1326
1327 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
1328 const.
1329 (ada_exception_sal): Make 'ops' const.
1330 (ada_decode_exception_location): Likewise.
1331 (ada_decode_assert_location): Likewise.
1332 (catch_assert_command): Update.
1333 (catch_ada_exception_command): Update.
1334 (create_ada_exception_catchpoint): Make 'ops' const.
1335 * breakpoint.c (set_raw_breakpoint_without_location)
1336 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
1337 const.
1338 (create_internal_breakpoint): Update.
1339 (init_raw_breakpoint_without_location): Make 'ops' const.
1340 (init_raw_breakpoint, init_catchpoint)
1341 (create_fork_vfork_event_catchpoint)
1342 (create_syscall_event_catchpoint, init_breakpoint_sal)
1343 (create_breakpoint_sal, create_breakpoints_sal)
1344 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
1345 * breakpoint.h (struct breakpoint) <ops>: Now const.
1346 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
1347 const.
1348
6cb9b55b
PP
13492011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
1350
1351 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
1352
d9b3f62e
PA
13532011-07-25 Pedro Alves <pedro@codesourcery.com>
1354
1355 * breakpoint.h (print_recreate_thread): Declare.
1356 (struct breakpoint): Move step_count, pass_count,
1357 number_on_target, static_trace_marker_id,
1358 static_trace_marker_id_idx ...
1359 (struct tracepoint): ... to this new struct.
1360 (get_tracepoint, get_tracepoint_by_number_on_target)
1361 (get_tracepoint_by_number): Change return type to struct
1362 tracepoint pointer.
1363 * breakpoint.c (is_tracepoint_type): New, factored out from
1364 is_tracepoint.
1365 (is_tracepoint): Adjust.
1366 (print_one_breakpoint_location): Cast to struct tracepoint as
1367 necessary, and adjust.
1368 (print_recreate_catch_fork, print_recreate_catch_vfork)
1369 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
1370 print_recreate_thread.
1371 (init_breakpoint_sal): New, factored out from
1372 create_breakpoint_sal.
1373 (create_breakpoint_sal): Reimplement.
1374 (create_breakpoint): Allocate a struct tracecepoint if the caller
1375 wanted a tracepoint. Use init_breakpoint_sal and
1376 install_breakpoint.
1377 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
1378 (print_recreate_masked_watchpoint)
1379 (print_recreate_exception_catchpoint): Call print_recreate_thread.
1380 (tracepoint_print_one_detail): Adjust.
1381 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
1382 Dump the pass count here.
1383 (update_static_tracepoint): Adjust.
1384 (addr_string_to_sals): Adjust.
1385 (create_tracepoint_from_upload): Adjust. Change return type to
1386 struct tracepoint pointer.
1387 (trace_pass_set_count): Change parameter type to struct tracepoint
1388 pointer, and adjust.
1389 (trace_pass_command): Adjust.
1390 (get_tracepoint, get_tracepoint_by_number_on_target)
1391 (get_tracepoint_by_number): Change return type to struct
1392 tracepoint pointer, and adjust.
1393 (print_recreate_thread): New, factored out from save_breakpoints.
1394 (save_breakpoints): Don't print thread and task and passcount
1395 recreation here.
1396 * remote.c (remote_download_tracepoint): Adjust.
1397 * tracepoint.c (trace_actions_command, validate_actionline)
1398 (start_tracing, tfind_1, trace_find_tracepoint_command)
1399 (trace_dump_command): Adjust.
1400 (find_matching_tracepoint): Change return type to struct
1401 tracepoint pointer, and adjust.
1402 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
1403 (tfile_trace_find, tfile_fetch_registers): Adjust.
1404 * tracepoint.h (create_tracepoint_from_upload): Change return type
1405 to struct tracepoint pointer.
1406 * ada-lang.c (print_recreate_exception): Call
1407 print_recreate_thread.
1408 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
1409
3a5c3e22
PA
14102011-07-25 Pedro Alves <pedro@codesourcery.com>
1411
1412 * breakpoint.h (struct breakpoint): Move ops as first field. Move
1413 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1414 cond_exp_valid_block, val, val_valid, watchpoint_frame,
1415 watchpoint_thread, watchpoint_triggered ...
1416 (struct watchpoint): ... to this new struct.
1417 (is_watchpoint): Declare.
1418 (install_breakpoint): Add new `internal' parameter.
1419 * breakpoint.c (is_watchpoint): Delete declaration.
1420 (set_breakpoint_condition): Handle watchpoints.
1421 (is_watchpoint): Make public.
1422 (watchpoint_in_thread_scope): Change parameter type to struct
1423 watchpoint.
1424 (watchpoint_del_at_next_stop): Change parameter type to struct
1425 watchpoint. Remove assertion. Adjust.
1426 (update_watchpoint): Ditto.
1427 (insert_breakpoints, breakpoint_init_inferior)
1428 (watchpoints_triggered, watchpoint_check)
1429 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1430 (bpstat_stop_status, print_one_breakpoint_location)
1431 (print_one_breakpoint_location, watchpoint_locations_match): Cast
1432 to struct watchpoint as necessary, and adjust.
1433 (install_breakpoint): Add `internal' argument. If true, don't
1434 mention the new breakpoint. Use set_breakpoint_number.
1435 (create_fork_vfork_event_catchpoint)
1436 (create_syscall_event_catchpoint): Adjust.
1437 (dtor_watchpoint): New.
1438 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1439 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1440 (print_it_watchpoint, print_mention_watchpoint)
1441 (print_recreate_watchpoint, insert_masked_watchpoint)
1442 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1443 (print_one_detail_masked_watchpoint)
1444 (print_mention_masked_watchpoint)
1445 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1446 necessary, and adjust.
1447 (watch_command_1): Allocate and initialize a struct watchpoint
1448 instead of a struct breakpoint. Use install_breakpoint.
1449 (catch_exec_command_1): Adjust.
1450 (base_breakpoint_dtor): Delete accesses to watchpoint specific
1451 fields.
1452 (delete_breakpoint, enable_breakpoint_disp)
1453 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1454 as necessary, and adjust.
1455 (initialize_breakpoint_ops): Install dtor_watchpoint as
1456 watchpoints' dtor method.
1457 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1458 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1459 to struct watchpoint as necessary, and adjust.
1460
2060206e
PA
14612011-07-25 Pedro Alves <pedro@codesourcery.com>
1462
1463 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1464 the the base class ops table.
1465 (catch_exception_breakpoint_ops)
1466 (catch_exception_unhandled_breakpoint_ops)
1467 (catch_assert_breakpoint_ops): Don't statically initialize.
1468 (initialize_ada_catchpoint_ops): New.
1469 (_initialize_ada_language): Call it.
1470 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1471 (bkpt_breakpoint_ops): Forward declare.
1472 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1473 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1474 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1475 (masked_watchpoint_breakpoint_ops)
1476 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1477 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1478 base class ops table.
1479 (null_re_set, null_check_status, null_works_in_software_mode)
1480 (null_resources_needed, null_print_one_detail): Delete.
1481 (bkpt_dtor): Rename to ...
1482 (base_breakpoint_dtor): ... this. Make static.
1483 (bkpt_allocate_location): Rename to ...
1484 (base_breakpoint_allocate_location): ... this. Make static.
1485 (base_breakpoint_re_set): New.
1486 (internal_error_pure_virtual_called): New.
1487 (base_breakpoint_insert_location, base_breakpoint_remove_location)
1488 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1489 (base_breakpoint_works_in_software_mode)
1490 (base_breakpoint_resources_needed, base_breakpoint_print_it)
1491 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1492 (base_breakpoint_print_recreate): New functions.
1493 (base_breakpoint_ops): New global.
1494 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1495 (bkpt_breakpoint_hit): Make static.
1496 (bkpt_check_status): Delete.
1497 (bkpt_resources_needed): Make static.
1498 (bkpt_works_in_software_mode): Delete.
1499 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1500 static.
1501 (bkpt_breakpoint_ops, internal_breakpoint_ops)
1502 (momentary_breakpoint_ops): Don't statically initialize.
1503 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1504 Delete.
1505 (tracepoint_insert_location, tracepoint_remove_location)
1506 (tracepoint_check_status, tracepoint_works_in_software_mode)
1507 (tracepoint_print_it): Delete.
1508 (tracepoint_breakpoint_ops): Don't statically initialize.
1509 (initialize_breakpoint_ops): New.
1510 (_initialize_breakpoint): Call it.
1511 * breakpoint.h (null_re_set, null_works_in_software_mode)
1512 (null_resources_needed, null_check_status, null_print_one_detail):
1513 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1514 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1515 (bkpt_check_status, bkpt_resources_needed)
1516 (bkpt_works_in_software_mode, bkpt_print_it)
1517 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1518 Delete declarations.
1519 (initialize_breakpoint_ops): Declare.
1520
001c8c33
PA
15212011-07-25 Pedro Alves <pedro@codesourcery.com>
1522
1523 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1524 (momentary_bkpt_print_it): Simplify.
1525
06edf0c0
PA
15262011-07-25 Pedro Alves <pedro@codesourcery.com>
1527
1528 Split internal, momentary and user breakpoints breakpoint_ops
1529 tables.
1530
1531 * breakpoint.c (internal_breakpoint_ops)
1532 (momentary_breakpoint_ops): Forward declare.
1533 (create_internal_breakpoint): Add new breakpoint_ops parameter.
1534 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1535 (create_overlay_event_breakpoint)
1536 (create_std_terminate_master_breakpoint)
1537 (create_exception_master_breakpoint): Create breakpoints with
1538 internal_breakpoint_ops vtable.
1539 (set_longjmp_breakpoint): Create momentary breakpoints with
1540 momentary_breakpoint_ops vtable, using
1541 momentary_breakpoint_from_master.
1542 (create_thread_event_breakpoint, create_jit_event_breakpoint)
1543 (create_solib_event_breakpoint): Create breakpoints with
1544 internal_breakpoint_ops vtable.
1545 (set_momentary_breakpoint): Create breakpoints with
1546 momentary_breakpoint_ops vtable.
1547 (momentary_breakpoint_from_master): New, factored out from
1548 clone_momentary_breakpoint.
1549 (clone_momentary_breakpoint): Adjust.
1550 (watch_command_1): Create scope breakpoints with
1551 momentary_breakpoint_ops vtable.
1552 (bkpt_re_set): Remove handling of internal and momentary
1553 breakpoints.
1554 (bkpt_print_mention, bkpt_print_recreate): New.
1555 (bkpt_breakpoint_ops): Adjust.
1556 (internal_bkpt_re_set, internal_bkpt_check_status)
1557 (internal_bkpt_print_it, internal_bkpt_print_mention)
1558 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1559 (momentary_bkpt_re_set, momentary_bkpt_check_status)
1560 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1561 (momentary_bkpt_print_recreate): New.
1562 (momentary_breakpoint_ops): New.
1563
348d480f
PA
15642011-07-25 Pedro Alves <pedro@codesourcery.com>
1565
1566 Implement most breakpoint_ops methods for all breakpoint types,
1567 and move the default handlings to the proper callbacks.
1568
1569 * breakpoint.c (update_watchpoint): Always call the breakpoint's
1570 works_in_software_mode method.
1571 (insert_bp_location): Go through breakpoint_ops->insert_location
1572 for software and hardware watchpoints.
1573 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1574 breakpoint_ops.
1575 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1576 for software and hardware watchpoints.
1577 (print_it_typical): Delete.
1578 (print_bp_stop_message): Always call the breakpoint_ops->print_it
1579 method.
1580 (watchpoint_check): Adjust comment.
1581 (bpstat_check_location): Simply always call the breakpoint's
1582 breakpoint_hit method.
1583 (bpstat_stop_status): Always call the breakpoint's check_status
1584 method. Remove special cases for watchpoints and internal event
1585 breakpoints from here (moved to the check_status implementations).
1586 (print_one_breakpoint_location): Assume b->ops is never NULL.
1587 Remove static tracepoint marker id printing from here (moved to
1588 the print_one_detail callback implementation of tracepoints).
1589 (init_bp_location): Assert OPS is never NULL.
1590 (allocate_bp_location): Always call the breakpoint's
1591 allocate_location method, and remove the default code from here.
1592 (free_bp_location): Always call the location's dtor method, and
1593 remove the default code from here.
1594 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1595 (set_raw_breakpoint_without_location): Add new breakpoint_ops
1596 parameter. Pass it down.
1597 (set_raw_breakpoint): Ditto.
1598 (print_it_catch_fork): Adjust to take a bpstat as argument.
1599 (catch_fork_breakpoint_ops): Install methods.
1600 (print_it_catch_vfork): Adjust to take a bpstat as argument.
1601 (catch_vfork_breakpoint_ops): Install methods.
1602 (dtor_catch_syscall): Call the base dtor.
1603 (print_it_catch_syscall): Adjust to take a bpstat as argument.
1604 (catch_syscall_breakpoint_ops): Install methods.
1605 (dtor_catch_exec): Call the base dtor.
1606 (print_it_catch_exec): Adjust to take a bpstat as argument.
1607 (catch_exec_breakpoint_ops): Install methods.
1608 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1609 the breakpoint's resources_needed method, and remove the default
1610 code from here.
1611 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1612 breakpoint_ops.
1613 (clone_momentary_breakpoint): Clone the original's ops.
1614 (mention): Always call the breakpoint's print_mention method, and
1615 remove the default code from here.
1616 (create_breakpoint_sal): Adjust to pass the ops to
1617 set_raw_breakpoint rather than setting it manually.
1618 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
1619 ops to set_raw_breakpoint_without_location rather than setting it
1620 manually.
1621 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1622 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1623 (ranged_breakpoint_ops): Install methods.
1624 (break_range_command): Adjust to pass the ops to
1625 set_raw_breakpoint rather than setting it manually.
1626 (re_set_watchpoint, breakpoint_hit_watchpoint)
1627 (check_status_watchpoint, resources_needed_watchpoint)
1628 (works_in_software_mode_watchpoint, print_it_watchpoint)
1629 (print_mention_watchpoint, print_recreate_watchpoint): New
1630 functions.
1631 (watchpoint_breakpoint_ops): Install new methods.
1632 (print_it_masked_watchpoint): New function.
1633 (masked_watchpoint_breakpoint_ops): Install new methods.
1634 (watch_command_1): Adjust to pass the right breakpoint_ops to
1635 set_raw_breakpoint_without_location rather than setting it
1636 manually later. Record the current pspace.
1637 (print_it_exception_catchpoint): Adjust to take a bpstat as
1638 argument.
1639 (gnu_v3_exception_catchpoint_ops): Install new methods.
1640 (say_where): New function.
1641 (null_re_set, null_check_status, null_works_in_software_mode)
1642 (null_resources_needed, null_print_one_detail, bp_location_dtor):
1643 New functions.
1644 (bp_location_ops): New global.
1645 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1646 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1647 (bkpt_check_status, bkpt_resources_needed)
1648 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1649 (bkpt_print_recreate): New functions.
1650 (bkpt_breakpoint_ops): New global.
1651 (tracepoint_re_set, tracepoint_insert_location)
1652 (tracepoint_remove_location, tracepoint_breakpoint_hit)
1653 (tracepoint_check_status, tracepoint_works_in_software_mode)
1654 (tracepoint_print_it, tracepoint_print_one_detail)
1655 (tracepoint_print_mention, tracepoint_print_recreate): New
1656 functions.
1657 (tracepoint_breakpoint_ops): New global.
1658 (delete_breakpoint): Always call the breakpoint's dtor method, and
1659 remove the default handling from here.
1660 (breakpoint_re_set_default): Make static.
1661 (breakpoint_re_set_one): Always call the breakpoints re_set
1662 method, and remove the default handling from here.
1663 (trace_command, ftrace_command, strace_command)
1664 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1665 to create_breakpoint.
1666 (save_breakpoints): Always call the breakpoint's print_recreate
1667 method, and remove the default handling from here.
1668
1669 * ada-lang.c (dtor_exception): Call the base dtor.
1670 (re_set_exception): Call the base method.
1671 (print_it_exception, print_it_catch_exception): Adjust to take a
1672 bpstat as argument.
1673 (catch_exception_breakpoint_ops): Install methods.
1674 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1675 argument.
1676 (catch_exception_unhandled_breakpoint_ops): Install methods.
1677 (print_it_catch_assert): Adjust to take a bpstat as argument.
1678 (catch_assert_breakpoint_ops): Install methods.
1679
1680 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1681 to take a bpstat as argument.
1682 (enum print_stop_action): Add describing comments to each enum
1683 value.
1684 (breakpoint_re_set_default): Delete declaration.
1685 (null_re_set, null_works_in_software_mode, null_resources_needed)
1686 (null_check_status, null_print_one_detail): Declare.
1687 (bkpt_breakpoint_ops): Declare.
1688 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1689 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1690 (bkpt_check_status, bkpt_resources_needed)
1691 (bkpt_works_in_software_mode, bkpt_print_it)
1692 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1693 Declare.
1694
1695 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1696 bkpt_breakpoint_ops.
1697 * python/py-breakpoint.c (bppy_init): Ditto.
1698
be8f8133
PW
16992011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1700
1701 * MAINTAINERS (Write After Approval): Add myself to the list.
1702
3807f613
PP
17032011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1704
1705 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1706
1ced966e
PA
17072011-07-22 Pedro Alves <pedro@codesourcery.com>
1708
1709 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1710 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1711 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1712 adjust.
1713 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1714 (struct i386_debug_reg_state): New.
1715 (i386_init_dregs): New.
1716 (dr_mirror): New.
1717 (i386_cleanup_dregs): Use i386_init_dregs.
1718 (i386_show_dr): Add state parameter and adjust.
1719 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
1720 the inferior here.
1721 (i386_remove_aligned_watchpoint): Likewise.
1722 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1723 (i386_update_inferior_debug_regs): New.
1724 (i386_insert_watchpoint): Work on a local mirror of the debug
1725 registers, and only update the inferior on success.
1726 (i386_remove_watchpoint): Ditto.
1727 (i386_region_ok_for_watchpoint): Adjust.
1728 (i386_stopped_data_address): Adjust.
1729 (i386_insert_hw_breakpoint): Adjust.
1730 (i386_remove_hw_breakpoint): Adjust.
1731
3543a589
TT
17322011-07-22 Tom Tromey <tromey@redhat.com>
1733
1734 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1735 from amd64_pseudo_register_read. Change arguments. Call
1736 mark_value_bytes_unavailable when needed.
1737 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1738 set_gdbarch_pseudo_register_read.
1739 * sentinel-frame.c (sentinel_frame_prev_register): Use
1740 regcache_cooked_read_value.
1741 * regcache.h (regcache_cooked_read_value): Declare.
1742 * regcache.c (regcache_cooked_read_value): New function.
1743 (regcache_cooked_read): Call
1744 gdbarch_pseudo_register_read_value if available.
1745 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1746 (i386_pseudo_register_read): Remove.
1747 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1748 i386_pseudo_register_read. Change arguments. Call
1749 mark_value_bytes_unavailable when needed.
1750 (i386_pseudo_register_read_value): New function.
1751 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1752 not set_gdbarch_pseudo_register_read.
1753 * gdbarch.sh (pseudo_register_read_value): New method.
1754 * gdbarch.c, gdbarch.h: Rebuild.
1755 * findvar.c (value_from_register): Call get_frame_register_value.
1756
95298e72
PM
17572011-07-22 Phil Muldoon <pmuldoon@redhat.com>
1758
1759 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1760 get_prefix.
1761 (display_gdb_prompt): Likewise.
1762 (change_annotation_level): Likewise.
1763 (push_prompt): Likewise.
1764 (pop_prompt): Likewise.
1765 (handle_stop_sig): Use get_prompt with a level.
1766 * top.c (command_loop): Use get_prompt with a level.
1767 (set_async_annotation_level): Use set_prompt with a level.
1768 (get_prefix): New function.
1769 (set_prefix): Ditto.
1770 (set_suffix): Ditto.
1771 (get_suffix): Ditto.
1772 (get_prompt): Accept a level argument.
1773 (set_prompt): Accept a level argument. Free old prompts. Set
1774 new_async_prompt if level is 0.
1775 (init_main): Use set_prompt with a level. Do not set
1776 new_async_prompt.
1777 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1778 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1779 Modify set_prompt, get_prompt to account for levels.
1780 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1781 level.
1782 * python/python.c (before_prompt_hook): Use set_prompt.
1783
d26e3629
KY
17842011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1785
1786 * defs.h: Add guard against inclusion in gdbserver.
1787 (struct ptid, ptid_t): Move to common/ptid.h.
1788 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1789 xsnprintf, internal_error): Move to common/common-utils.h.
1790 (nomem): Delete.
1791 * gdb_assert.h: Move into common/ sub-directory.
1792 * gdb_locale.h: Ditto.
1793 * gdb_dirent.h: Ditto.
1794 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1795 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1796 Move into common/ptid.h.
1797 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1798 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1799 Change nomem to malloc_failure.
1800 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1801 * utils.c (nomem): Rename to malloc_failure.
1802 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1803 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1804 (gdb_buildargv): Change nomem to malloc_failure.
1805 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1806 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1807 ptid_is_pid): Move into common/ptid.c.
1808 (initialize_infrun): Delete initialization of null_ptid and
1809 minus_one_ptid.
1810 * linux-nat.c (linux_nat_xfer_osdata): Defer to
1811 linux_common_xfer_osdata.
1812 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1813 common/ptid.c and common/buffer.c.
1814 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1815 common/ptid.h, common/buffer.h and common/linux-osdata.h.
1816 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1817 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1818 rules.
1819 * common/gdb_assert.h: New.
1820 * common/gdb_dirent.h: New.
1821 * common/gdb_locale.h: New.
1822 * common/buffer.c: New.
1823 * common/buffer.h: New.
1824 * common/ptid.c: New.
1825 * common/ptid.h: New.
1826 * common/xml-utils.c: New.
1827 * common/xml-utils.h: New.
1828 * common/common-utils.c: New.
1829 * common/common-utils.h: New.
1830 * common/linux-osdata.c: New.
1831 * common/linux-osdata.h: New.
1832 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1833 * config/arm/linux.mh (NATDEPFILES): Ditto.
1834 * config/i386/linux.mh (NATDEPFILES): Ditto.
1835 * config/i386/linux64.mh (NATDEPFILES): Ditto.
1836 * config/ia64/linux.mh (NATDEPFILES): Ditto.
1837 * config/m32r/linux.mh (NATDEPFILES): Ditto.
1838 * config/m68k/linux.mh (NATDEPFILES): Ditto.
1839 * config/mips/linux.mh (NATDEPFILES): Ditto.
1840 * config/pa/linux.mh (NATDEPFILES): Ditto.
1841 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1842 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1843 * config/s390/s390.mh (NATDEPFILES): Ditto.
1844 * config/sparc/linux.mh (NATDEPFILES): Ditto.
1845 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1846 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1847
edc84990 18482011-07-21 Matt Rice <ratmice@gmail.com>
1849
1850 * NEWS: Add info macros and info definitions commands.
1851
3a7bf607
PM
18522011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1853
1854 * NEWS: Document Python prompt substitution hook.
1855
9b158ba0 18562011-07-18 Matt Rice <ratmice@gmail.com>
1857
1858 PR macros/12999
1859 * macrotab.h (macro_callback_fn): Add new arguments to callback.
1860 * macrotab.c (foreach_macro): Ditto.
1861 (foreach_macro_in_scope): Ditto.
1862 * macrocmd.c (print_macro_callback): New function.
1863 (info_macro_command): Move some code to print_macro_definition.
1864 (print_macro_definition): New function.
1865 (print_one_macro): Add new arguments to callback.
1866 (info_definitions_command): New function.
1867 (info_macros_command): Ditto.
1868 (_initialize_macrocmd): Add info macros and info definitions commands.
1869 * symtab.c (add_macro_name): Add new arguments to callback.
1870
d17b6f81
PM
18712011-07-21 Phil Muldoon <pmuldoon@redhat.com>
1872 Tom Tromey <tromey@redhat.com>
1873
1874 * top.c (set_prompt): Rewrite to free previous prompt, free
1875 asynch_new_prompt and set both on new prompts.
1876 * event-top.c (display_gdb_prompt): Add prompt substitution
1877 logic.
1878 * python/python.c (before_prompt_hook): New function.
1879
1364323a 18802011-07-20 Matt Rice <ratmice@gmail.com>
1881
1882 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1883 arguments to store_unsigned_integer.
1884
8b70b953
TT
18852011-07-20 Tom Tromey <tromey@redhat.com>
1886
6c83ed52
TT
1887 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1888 in some declaration-only cases.
1889
18902011-07-18 Tom Tromey <tromey@redhat.com>
1891
8b70b953
TT
1892 PR symtab/12984:
1893 * dwarf2read.c (dwarf2_section_info_def): New typedef.
1894 (struct dwarf2_per_objfile) <types>: Change to a VEC.
1895 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1896 <debug_type_section>: New field.
1897 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1898 (load_cu): Use appropriate section.
1899 (create_signatured_type_table_from_index): Add 'section'
1900 argument.
1901 (dwarf2_read_index): Only allow a single .debug_types section.
1902 (dw2_get_file_names): Use appropriate section.
1903 (read_type_comp_unit_head): Add 'section' argument.
1904 (create_debug_types_hash_table): Loop over all .debug_types
1905 sections.
1906 (init_cu_die_reader): Use appropriate section.
1907 (process_psymtab_comp_unit, load_partial_comp_unit)
1908 (load_full_comp_unit, read_die_and_children, find_partial_die)
1909 (lookup_die_type, determine_prefix, follow_die_offset): Update.
1910 (lookup_signatured_type_at_offset): Add 'section' argument.
1911 (read_signatured_type_at_offset): Add 'sect' argument.
1912 (read_signatured_type): Use appropriate section.
1913 (set_die_type, get_die_type_at_offset): Update.
1914 (dwarf2_per_objfile_free): Free all .debug_types sections, and
1915 VEC.
1916 (write_psymtabs_to_index): Don't allow index with more than one
1917 .debug_types section.
1918
918dd910
JK
19192011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 Fix crash if referenced CU is aged out.
1922 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1923 xfree of block.data.
1924 (indirect_pieced_value): New variable back_to, use to for xfree of
1925 baton.data.
1926 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1927 block.data.
1928 * dwarf2read.c (dwarf2_find_base_address): New prototype.
1929 (load_cu): New function from ...
1930 (dw2_do_instantiate_symtab): ... the code here ...
1931 (process_full_comp_unit): ... and here.
1932 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
1933 retval.data.
1934
0e37a63c
JK
19352011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1938 type.
1939
7e324e48
GB
19402011-07-19 Gary Benson <gbenson@redhat.com>
1941
1942 * infrun.c (struct execution_control_state): New member
1943 stop_func_filled_in.
1944 (clear_stop_func, fill_in_stop_func): New functions.
1945 (handle_inferior_event): Call clear_stop_func rather than
1946 manipulating the execution control state directly.
1947 Call fill_in_stop_func lazily as required rather than
1948 directly calling find_pc_partial_function in all cases.
1949
d48323d8
TT
19502011-07-18 Tom Tromey <tromey@redhat.com>
1951
1952 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1953 checking for variable-sized array.
1954
40591b7d
JCD
19552011-07-18 Jean-Charles Delay <delay@adacore.com>
1956
1957 * varobj.h (varobj_languages): Add vlang_ada definition to the list
1958 of supported languages.
1959 * varobj.c: Add top definitions and basic implementation of the
1960 following callbacks: ada_number_of_children, ada_name_of_variable,
1961 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1962 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1963 (languages): Register Ada-specific callbacks.
1964 (variable_language): Add the Ada case in the language setter switch.
1965
2e424e08
JK
19662011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1967
1968 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1969
9e8b7a03
JK
19702011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1971
1972 Code cleanup.
1973 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1974 (execute_stack_op): Use dwarf2_frame_ctx_funcs
1975 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1976 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1977 get_frame_cfa, get_tls_address and dwarf_call via funcs.
1978 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1979 (struct dwarf_expr_context_funcs): New, move here methods from ...
1980 (struct dwarf_expr_context): ... here. New fields funcs.
1981 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1982 (dwarf_expr_ctx_funcs): New.
1983 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1984 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1985 (needs_frame_ctx_funcs): New.
1986 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1987
2b1260ab
FM
19882011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1989
1990 * MAINTAINERS (Write After Approval): Add myself to the list.
1991
8bd90839
FM
19922011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
1993
1994 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1995 that CIE pointer of an FDE really points to a CIE .
1996
953b98d1
HZ
19972011-07-15 Hui Zhu <teawater@gmail.com>
1998
1999 * remote.c (remote_get_trace_status): Add comments.
2000
c8f2448a
JK
20012011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2002
2003 Code cleanup - constify struct lval_funcs.
2004 * dwarf2loc.c (pieced_value_funcs): Make it const.
2005 * infrun.c (siginfo_value_funcs): Likewise.
2006 * opencl-lang.c (opencl_value_funcs): Likewise.
2007 * valops.c (value_assign, value_ind): Make the funcs variable const.
2008 * value.c (struct value): Make location.computed.funcs target const.
2009 Rearrange the comments.
2010 (allocate_computed_value): Make the funcs parameter target const.
2011 (value_computed_funcs): Return the funcs target const.
2012 (value_free, value_copy, set_value_component_location): Make the funcs
2013 variable const.
2014 * value.h (allocate_computed_value): Make the funcs parameter target
2015 const.
2016 (value_computed_funcs): Return the funcs target const.
2017 * windows-tdep.c (tlb_value_funcs): Make it const.
2018
f652de6f
HZ
20192011-07-14 Hui Zhu <teawater@gmail.com>
2020
2021 * remote.c (remote_get_trace_status): Initialize p.
2022
67f41397
JK
20232011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 Work around kgdb.
2026 * remote.c (remote_get_trace_status): New variable ex. Put
2027 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
2028
d1b66e6d
TT
20292011-07-13 Tom Tromey <tromey@redhat.com>
2030
2031 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
2032 value_from_contents for final conversion.
2033
1632a688
JK
20342011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2035
2036 Code cleanup.
2037 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
2038 Indent prototypes so they do not get into tags.
2039
a7035dbb
JK
20402011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2041
2042 Code cleanup making also optimized out values lazy.
2043 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
2044 allocate_optimized_out_value. Twice.
2045 (loclist_read_variable) Use allocate_optimized_out_value. Once.
2046 * findvar.c (read_var_value): Likewise.
2047 * value.c (allocate_optimized_out_value): New function.
2048 * value.h (allocate_optimized_out_value): New declaration.
2049
d07ed419
JK
20502011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2051
2052 Fix occasional crash of CTRL-C during DWARF read in.
2053 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
2054
86d31898
TT
20552011-07-11 Tom Tromey <tromey@redhat.com>
2056
2057 * regcache.c (struct regcache_descr): Fix typo.
2058 * i387-tdep.c (i387_supply_xsave): Fix typo.
2059
2ab95328
TT
20602011-07-11 Tom Tromey <tromey@redhat.com>
2061
2062 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
2063 (read_file_scope, read_type_unit_scope): Use it.
2064
04ad99e6
JK
20652011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2066
2067 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
2068 `int'.
2069
713389e0
PM
20702011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2071
2072 PR python/12438
2073 * python/python.c: Set gdbpy_should_print_stack default to off.
2074 (set_python): Deprecate maint set python print-stack to
2075 class_deprecate.
2076 (_initialize_python): Deprecate maint set/show python print-stack.
2077 Add new prefix command, python. Add new setting, print-backtrace.
2078 * NEWS: Document set python print-stack. Document default change.
2079
754eadd1
PM
20802011-07-11 Phil Muldoon <pmuldoon@redhat.com>
2081
2082 * python/py-inferior.c (infpy_dealloc): New function.
2083 (inferior_to_inferior_object): Return a new object, or a
2084 new reference to the existing object.
2085 (find_thread_object): Cleanup references to inferior.
2086 (delete_thread_object): Ditto.
2087 * python/py-infthread.c (create_thread_object): Do not increment
2088 inferior reference count.
2089
5e44ecb3
TT
20902011-07-08 Tom Tromey <tromey@redhat.com>
2091
2092 * dwarf2loc.c (locexpr_regname): New function.
2093 (locexpr_describe_location_piece): Use it.
2094 (disassemble_dwarf_expression): Add per_cu argument. Use
2095 locexpr_regname.
2096 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
2097 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
2098 New cases.
2099 (locexpr_describe_location_1): Add per_cu argument.
2100 (locexpr_describe_location): Update.
2101 (loclist_describe_location): Update.
2102
e0e9434c
TT
21032011-07-08 Tom Tromey <tromey@redhat.com>
2104
2105 * dwarf2expr.c (execute_stack_op): Add QUIT.
2106
26afc0d7
HZ
21072011-07-07 Hui Zhu <teawater@gmail.com>
2108
2109 Revert:
2110 2011-07-06 Hui Zhu <teawater@gmail.com>
2111 * remote.c (remote_start_remote): Add TRY_CATCH for
2112 remote_get_trace_status.
2113 * tracepoint.c (disconnect_tracing): Ditto.
2114
a40a111f
AB
21152011-07-07 Andrew Burgess <aburgess@broadcom.com>
2116
2117 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
2118 variables as signed, not unsigned.
2119
e2bd3b15
JB
21202011-07-06 Joel Brobecker <brobecker@adacore.com>
2121
2122 * jit.c (jit_inferior_init): Reformat forward declaration.
2123
e3d961fe 21242011-07-06 Matt Rice <ratmice@gmail.com>
2125
2126 * MAINTAINERS (Write After Approval): Add myself to the list.
2127
0f3428f0
HZ
21282011-07-06 Hui Zhu <teawater@gmail.com>
2129
2130 * remote.c (remote_start_remote): Add TRY_CATCH for
2131 remote_get_trace_status.
2132 * tracepoint.c (disconnect_tracing): Ditto.
2133
fc9f3a69
TT
21342011-07-05 Tom Tromey <tromey@redhat.com>
2135
2136 * symtab.c (operator_chars): Now static.
2137 * linespec.c (operator_chars): Don't declare.
2138
26e519b9
TJB
21392011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
2140
2141 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
2142
eb2a6f42
TT
21432011-07-05 Tom Tromey <tromey@redhat.com>
2144
2145 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
2146 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
2147 (TYPE_CPLUS_REALLY_JAVA): New macro.
2148 * dwarf2read.c (process_structure_scope): Set
2149 TYPE_CPLUS_REALLY_JAVA.
2150
21083d0f 21512011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
2152
2153 * ada-lang.c: Fix typos.
2154 * amd64-tdep.c: Likewise.
2155 * breakpoint.c: Likewise.
2156 * cli/cli-decode.c: Likewise.
2157 * findcmd.c: Likewise.
2158 * inline-frame.c: Likewise.
2159 * mi/mi-main.c: Likewise.
2160 * minsyms.c: Likewise.
2161 * monitor.c: Likewise.
2162 * monitor.h: Likewise.
2163 * prologue-value.c: Likewise.
2164 * reverse.c: Likewise.
2165 * s390-tdep.c: Likewise.
2166
3b2a0cf2
JB
21672011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2168
2169 * jit.c (jit_inferior_init): Forward declare.
2170 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
2171
efae1d92
JB
21722011-07-04 Joel Brobecker <brobecker@adacore.com>
2173
2174 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
2175
6040a59d
JB
21762011-07-04 Tristan Gingold <gingold@adacore.com>
2177
2178 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
2179 (tcb_fieldno): Add activation_link field.
2180 (get_known_tasks_addr): Moved and rewritten.
2181 (get_tcb_types_info): Set activation_link field.
2182 (read_known_tasks_array): Add parameter. Rewritten.
2183 (read_known_tasks_list): New function.
2184 (read_known_tasks): New function.
2185 (ada_build_task_list): Call read_known_tasks instead of
2186 read_known_tasks_array.
2187 * ravenscar-thread.c: Add first_task_name constant.
2188 (has_ravenscar_runtime): Check for task list too.
2189
cb741e45
JB
21902011-07-04 Tristan Gingold <gingold@adacore.com>
2191
2192 * ada-tasks.c: Renames fieldno to actb_fieldno.
2193 (ada_get_task_number): Indentation.
2194 (get_tcb_types_info): Remove all parameters. Write directly
2195 the globals.
2196 (ptid_from_atcb_common): Adjust.
2197 (read_atcb): Adjust.
2198
7475b06c
TJB
21992011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2200
2201 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
2202
15230f37
TJB
22032011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2204
2205 * ui-out.c (ui_out_field_core_addr): Mention that the function
2206 description is in the header file.
2207 * ui-out.h (ui_out_field_core_addr): Document function.
2208
65743aba
TJB
22092011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2210
2211 * ui-out.c (ui_out_get_field_separator): Remove unused function.
2212 * ui-out.h (ui_out_get_field_separator): Remove prototype.
2213
c37a5aab
TJB
22142011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2215
2216 * symtab.c (expand_line_sal): Remove empty line.
2217
59adf69e
TS
22182011-07-04 Thomas Schwinge <thomas@schwinge.name>
2219
2220 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
2221 same way as ELFOSABI_NONE.
2222 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
2223
e5dd4106
TJB
22242011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2225
2226 * breakpoint.c: Fix typos in comments.
2227 * linespec.c: Likewise.
2228 * symtab.c: Likewise.
2229
d40102a1
JB
22302011-07-04 Joel Brobecker <brobecker@adacore.com>
2231
2232 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
2233 section in separate object files.
2234
2f741504
JK
22352011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 Fix false GCC warning.
2238 * linespec.c (decode_line_1): Initialize values.
2239
418c7cf7
JK
22402011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2241
2242 * linespec.c (find_method): Accept the function type automatically only
2243 if it was specified with parameter types.
2244
3d50dd94
JK
22452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 Stop on first linespec terminator instead of eating what we can.
2248 * linespec.c (is_linespec_boundary): New function.
2249 (name_end): Remove function.
2250 (keep_name_info): New parameter on_boundary, replace the body.
2251 (decode_line_1): Provide the parameter to keep_name_info.
2252 (decode_compound): Likewise. Drop the trailing java return type
2253 handling. Twice.
2254
dcf9f4ab
JK
22552011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 Fall back linespec to minimal symbols.
2258 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
2259 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
2260 (find_method, symbol_found): Change error to cplusplus_error.
2261
3f542ed1
JK
22622011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
bc68c4e5 2264 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 2265
900e11f9
JK
22662011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2267 Tom Tromey <tromey@redhat.com>
2268
2269 * dwarf2read.c (check_physname): New variable.
2270 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
2271 (show_check_physname): New function.
2272 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
2273
2301925d
JB
22742011-07-01 Joel Brobecker <brobecker@adacore.com>
2275
2276 * machoread.c (macho_symfile_read): Delete OBE comment.
2277
38947cca
JB
22782011-07-01 Joel Brobecker <brobecker@adacore.com>
2279
2280 * machoread.c (struct macho_oso_data): Delete.
2281 (current_oso): Delete.
2282 (macho_relocate_common_syms): New function, mostly extracted
2283 out of
2284 (macho_add_oso_symfile): Call macho_relocate_common_syms.
2285 Remove code that sets and unset current_oso.
2286 (macho_symfile_relocate): Delete handling of common symbols,
2287 now moved to macho_relocate_common_syms.
2288
a7aa0d73
JB
22892011-07-01 Joel Brobecker <brobecker@adacore.com>
2290
2291 * darwin-nat.c (darwin_ptrace): Add documentation.
2292 Set errno to zero before calling ptrace. If ptrace returns
2293 -1 and errno is zero, then change then return zero.
2294 (darwin_kill_inferior): Issue a warning instead of triggering
2295 a failed assertion when the PT_KILL ptrace operations returned
2296 nonzero.
2297
5e9bc145
JB
22982011-07-01 Joel Brobecker <brobecker@adacore.com>
2299
2300 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
2301 only when inf->private->no_ptrace.
2302
00eb2c4a
JB
23032011-07-01 Joel Brobecker <brobecker@adacore.com>
2304
2305 * ada-lang.c (print_it_exception): Print temporary catchpoints
2306 as "Temporary catchpoint".
2307 (print_mention_exception): Likewise.
2308
127c81bc
TT
23092011-07-01 Tom Tromey <tromey@redhat.com>
2310
2311 * jv-lang.c (java_language_defn): Use java_printchar,
2312 java_printstr.
2313 (java_get_encoding): New function.
2314 (java_emit_char): Use generic_emit_char.
2315 (java_printchar): New function.
2316 (java_printstr): Likewise.
2317
25552254
JB
23182011-07-01 Joel Brobecker <brobecker@adacore.com>
2319
2320 * ada-typeprint.c (print_record_type): If unable to decode
2321 the name of the parent type, use the encoded name.
2322
d2d43431
JB
23232011-07-01 Jean-Charles Delay <delay@adacore.com>
2324
2325 * ada-typeprint.c (ada_print_type): Fix both PAD type and
2326 pointer to constrained packed array type output.
2327 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
2328 packed array output.
2329
54ae186f
JB
23302011-07-01 Jean-Charles Delay <delay@adacore.com>
2331
2332 * ada-typeprint.c (print_array_type): removed if condition on show
2333 being negative for bounds printing.
2334
8f17729f
JB
23352011-07-01 Joel Brobecker <brobecker@adacore.com>
2336
2337 * ada-lang.c (ada_identical_enum_types_p): New function.
2338 (symbols_are_identical_enums): New function.
2339 (remove_extra_symbols): Do nothing if NSYMS < 2.
2340 Use symbols_are_identical_enums.
2341
f5aa6869
JB
23422011-07-01 Joel Brobecker <brobecker@adacore.com>
2343
2344 * ada-valprint.c (ada_value_print): Handle typedefs.
2345
8f465ea7
JB
23462011-07-01 Joel Brobecker <brobecker@adacore.com>
2347
2348 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
2349
828292f2
JB
23502011-07-01 Eric Botcazou <ebotcazou@adacore.com>
2351
2352 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
2353 (decode_constrained_packed_array): Likewise.
2354 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
2355
18920c42
JB
23562011-07-01 Joel Brobecker <brobecker@adacore.com>
2357
2358 * ada-exp.y (convert_char_literal): Handle typedef types.
2359
c90092fe
JB
23602011-07-01 Joel Brobecker <brobecker@adacore.com>
2361
2362 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
2363
f748fb40
TT
23642011-06-30 Tom Tromey <tromey@redhat.com>
2365
2366 * varobj.c (varobj_create): Call do_cleanups on early exit path.
2367 * valops.c (find_overload_match): Call do_cleanups on early exit
2368 path.
2369 * solib.c (solib_find): Call do_cleanups on early exit path.
2370
3bb47e8b
TT
23712011-06-30 Tom Tromey <tromey@redhat.com>
2372
2373 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
2374 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
2375 return paths. Defer final do_cleanups until last return.
2376 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
2377 early return.
2378
4727bad3
TT
23792011-06-30 Tom Tromey <tromey@redhat.com>
2380
2381 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
2382
bb361dbf
AB
23832011-06-30 Andrew Burgess <aburgess@broadcom.com>
2384
2385 * MAINTAINERS (Write After Approval): Add myself to the list.
2386
e0d00bc7
JK
23872011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 Disable epilogue unwinders on recent GCCs.
2390 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
2391 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2392 * dwarf2read.c (process_full_comp_unit): Initialize
2393 EPILOGUE_UNWIND_VALID.
2394 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
2395 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
2396 * symtab.h (struct symtab): New field epilogue_unwind_valid.
2397
4632c0d0
JK
23982011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2399
2400 Code cleanup - reformatting.
2401 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
2402 (producer_is_gcc_ge_4): ... here, change the return value.
2403 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
2404 interpretation.
2405
32019081
JK
24062011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 Fix non-only rename list for Fortran modules import.
2409 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2410 cp_add_using_directive caller.
2411 (cp_add_using_directive): New parameter excludes, describe it. New
2412 variables ix and param. Compare if also excludes match. Allocate NEW
2413 with variable size, initialize EXCLUDES there.
2414 (cp_lookup_symbol_imports): New variable excludep, test
2415 current->EXCLUDES with it.
2416 * cp-support.h: Include vec.h.
2417 (struct using_direct): New field excludes, describe it.
2418 (DEF_VEC_P (const_char_ptr)): New.
2419 (cp_add_using_directive): New parameter excludes.
2420 * defs.h (const_char_ptr): New typedef.
2421 * dwarf2read.c (read_import_statement): New variables child_die,
2422 excludes and cleanups, read in excludes.
2423 (read_namespace): Adjust the cp_add_using_directive caller.
2424
70c622a3
JK
24252011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2426
2427 Code cleanup.
2428 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2429 negative comparisons.
2430
39c4d40a
TT
24312011-06-29 André Pönitz <andre.poenitz@nokia.com>
2432
2433 * mi/mi-main.c (mi_cmd_list_features): Emit
2434 breakpoint-notifications.
2435
3b2b8fea
TT
24362011-06-29 Tom Tromey <tromey@redhat.com>
2437
2438 PR fortran/10036:
2439 * valprint.h (generic_emit_char, generic_printstr): Declare.
2440 * valprint.c (wchar_printable, append_string_as_wide)
2441 (print_wchar): Move from c-lang.c.
2442 (generic_emit_char): New function; mostly taken from c_emit_char.
2443 (generic_printstr): New function; mostly taken from c_printstr.
2444 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2445 represented as arrays.
2446 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2447 type.
2448 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2449 identically to TYPE_CODE_INT.
2450 * f-lang.c (f_get_encoding): New function.
2451 (f_emit_char): Use generic_emit_char.
2452 (f_printchar): Replace comment.
2453 (f_printstr): Use generic_printstr.
2454 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2455 "character" types specially.
2456 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2457 for Fortran.
2458 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2459 Move to valprint.c
2460 (c_emit_char): Call generic_emit_char.
2461 (c_printstr): Call generic_printstr.
2462
168e6d44
GB
24632011-06-29 Gary Benson <gbenson@redhat.com>
2464
2465 * breakpoint.c (bpstat_what): Removed duplicated case.
2466
1c033f8c
TT
24672011-06-28 Tom Tromey <tromey@redhat.com>
2468
2469 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2470
5fe41fbf
TT
24712011-06-27 Tom Tromey <tromey@redhat.com>
2472
2473 * valops.c (find_overload_match): Call do_cleanups before early
2474 return.
2475 * top.c (execute_command): Call do_cleanups before early return.
2476 (command_loop): Likewise.
2477 * stack.c (backtrace_command): Make a null cleanup early. Don't
2478 conditionally call do_cleanups.
2479 * python/py-value.c (TRY_CATCH): Move cleanup handling into
2480 TRY_CATCH.
2481 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2482 so cleanups are always run.
2483 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2484 * findcmd.c (parse_find_args): Call do_cleanups on early return
2485 path.
2486 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2487 Don't conditionally call do_cleanups.
2488 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2489 later.
2490
e26bd57d
EB
24912011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2492
2493 * MAINTAINERS (Write After Approval): Use default email address.
2494
6c3097fc
JB
24952011-06-27 Joel Brobecker <brobecker@adacore.com>
2496
2497 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2498
369c397b
JB
24992011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2500
2501 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2502 saved_regs_mask and copied_regs_mask fields.
2503 (sparc_record_save_insn): New prototype.
2504 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2505 (sparc_record_save_insn): New function.
2506 (sparc_analyze_prologue): Add head comment. Recognize store insns
2507 of call-saved registers. Use OFFSET consistently. Recognize flat
2508 frames and cache their settings.
2509 (sparc32_skip_prologue): Handle flat frames.
2510 (sparc_frame_cache): Add frame_offset to the base address.
2511 (sparc32_frame_cache): Adjust to new frame description.
2512 (sparc32_frame_prev_register): Likewise.
2513 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2514 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2515 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2516 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2517 frame by calling sparc_record_save_insn.
2518 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2519 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2520 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2521
b315ab21
TG
25222011-06-27 Tristan Gingold <gingold@adacore.com>
2523
2524 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2525 field by map_addr and map_len.
2526 (dwarf2_read_section): Adjust for the new bfd_mmap api.
2527 (munmap_section_buffer): Likewise.
2528
ddd49eee
TT
25292011-06-24 Tom Tromey <tromey@redhat.com>
2530
2531 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2532 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2533 * python/python.c (gdbpy_parameter): Make 'arg' const.
2534 (execute_gdb_command): Likewise.
2535 (gdbpy_decode_line): Likewise. Copy it.
2536 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
2537 (gdbpy_write): Make 'arg' const.
2538 * python/py-type.c (typy_lookup_typename): Make 'type_name'
2539 const.
2540 (gdbpy_lookup_type): Likewise.
2541 * python/py-prettyprint.c (print_children): Make 'name' const.
2542 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
2543 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2544 Py_ssize_t.
2545 * python/py-function.c (fnpy_init): Make 'name' const.
2546 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
2547 (gdbpy_string_to_argv): Make 'input' const.
2548 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
2549 it.
2550 * gdbtypes.h (lookup_typename): Update.
2551 * gdbtypes.c (lookup_typename): Make 'name' const.
2552 (lookup_struct): Likewise.
2553 (lookup_union): Likewise.
2554 (lookup_enum): Likewise.
2555
5998129b
TT
25562011-06-24 Tom Tromey <tromey@redhat.com>
2557
2558 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2559 gdb_thread_db.h. Move all common/ entries to be together.
2560 (TAGS): Don't depend on DEPFILES.
2561
6e586cc5
YQ
25622011-06-23 Yao Qi <yao@codesourcery.com>
2563
2564 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2565 * remote.c (remote_start_remote): ... here.
2566 * monitor.c (monitor_open): ... here.
2567
86c3c1fc
AB
25682011-06-23 Andrew Burgess <aburgess@broadcom.com>
2569
2570 * gdbtypes.c (append_composite_type_field_aligned): Fix
2571 calculation of bit position based on alignment.
2572
28010a5d
PA
25732011-06-22 Pedro Alves <pedro@codesourcery.com>
2574
2575 * breakpoint.c (bpstat_stop_status): Call the check_status
2576 breakpoint_ops method.
2577 (print_one_breakpoint_location): Also print the condition for Ada
2578 exception catchpoints.
2579 (allocate_bp_location): New, factored out from
2580 allocate_bp_location.
2581 (allocate_bp_location): Adjust. Call the owner breakpoint's
2582 allocate_location method, if there is one.
2583 (free_bp_location): Call the locations's dtor method, if there is
2584 one.
2585 (init_raw_breakpoint_without_location): New breakpoint_ops
2586 parameter. Use it.
2587 (set_raw_breakpoint_without_location): Adjust.
2588 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
2589 (set_raw_breakpoint): Adjust.
2590 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2591 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2592 re_set and check_status methods.
2593 (init_catchpoint): Don't memset, initialize thread, addr_string
2594 and enable_state. Pass the ops down to init_raw_breakpoint.
2595 (install_catchpoint): Rename to ...
2596 (install_breakpoint): ... this, and make extern.
2597 (create_fork_vfork_event_catchpoint): Adjust.
2598 (catch_exec_breakpoint_ops): Install NULL allocate_location,
2599 re_set and check_status methods.
2600 (create_syscall_event_catchpoint): Adjust.
2601 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2602 (masked_watchpoint_breakpoint_ops): Install NULL
2603 allocate_location, re_set and check_status methods.
2604 (catch_exec_command_1): Adjust.
2605 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2606 re_set and check_status methods.
2607 (create_ada_exception_breakpoint): Rename to ...
2608 (init_ada_exception_breakpoint): ... this. Add a struct
2609 breakpoint parameter, and delete the exp_string, cond_string and
2610 cond parameters. Use init_raw_breakpoint, and don't install or
2611 mention the breakpoint yet. Don't clear breakpoint fields that
2612 init_raw_breakpoint already clears.
2613 (re_set_breakpoint): Delete, split into ...
2614 (breakpoint_re_set_default, prepare_re_set_context): ... these new
2615 functions.
2616 (breakpoint_re_set_one): Call the breakpoint's
2617 breakpoint_ops->re_set implementation, if there's one. Adjust.
2618 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2619 (struct bp_location_ops): New type.
2620 (struct bp_location): New field `ops'.
2621 (struct breakpoint_ops): New `allocate_location', `re_set' and
2622 `check_status' fields. Make `breakpoint_hit''s description match
2623 reality.
2624 (init_bp_location): Declare.
2625 (breakpoint_re_set_default): Declare.
2626 (create_ada_exception_breakpoint): Rename to ...
2627 (init_ada_exception_breakpoint): ... this. Add a struct
2628 breakpoint parameter, and delete the exp_string, cond_string and
2629 cond parameters.
2630 (install_breakpoint): Declare.
2631 * ada-lang.c: Include exceptions.h.
2632 <Ada exceptions description>: Update.
2633 (struct ada_catchpoint_location): New type.
2634 (ada_catchpoint_location_dtor): New function.
2635 (ada_catchpoint_location_ops): New global.
2636 (ada_catchpoint): New type.
2637 (create_excep_cond_exprs): New function.
2638 (dtor_exception, allocate_location_exception, re_set_exception)
2639 (should_stop_exception, check_status_exception): New functions.
2640 (print_one_exception, print_mention_exception)
2641 (print_recreate_exception): Adjust.
2642 (dtor_catch_exception, allocate_location_catch_exception)
2643 (re_set_catch_exception, check_status_catch_exception): New
2644 functions.
2645 (catch_exception_breakpoint_ops): Install them.
2646 (dtor_catch_exception_unhandled)
2647 (allocate_location_catch_exception_unhandled)
2648 (re_set_catch_exception_unhandled)
2649 (check_status_catch_exception_unhandled): New functions.
2650 (catch_exception_unhandled_breakpoint_ops): Install them.
2651 (dtor_catch_assert, allocate_location_catch_assert)
2652 (re_set_catch_assert, check_status_catch_assert): New functions.
2653 (catch_assert_breakpoint_ops): Install them.
2654 (ada_exception_catchpoint_p): Delete.
2655 (catch_ada_exception_command_split)
2656 (ada_exception_catchpoint_cond_string): Rename exp_string
2657 parameter to excep_string. Adjust.
2658 (ada_parse_catchpoint_condition): Delete.
2659 (ada_exception_sal): Rename the exp_string parameter to
2660 excep_string. Delete the cond_string and cond parameters.
2661 Adjust.
2662 (ada_decode_exception_location): Rename the exp_string parameter
2663 to excep_string. Delete the cond_string and cond parameters.
2664 Adjust.
2665 (create_ada_exception_catchpoint): New function.
2666 (catch_ada_exception_command, ada_decode_assert_location)
2667 (catch_assert_command): Adjust.
2668 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2669
9ac4176b
PA
26702011-06-22 Pedro Alves <pedro@codesourcery.com>
2671
2672 * ada-lang.c: Include arch-utils.h.
2673 (ada_decode_exception_location): Make static.
2674 (catch_ada_exception_command): Moved here from breakpoint.c.
2675 (ada_decode_assert_location): Make static.
2676 (catch_assert_command): Moved here from breakpoint.c.
2677 (_initialize_ada_lang): Install the exception and assert
2678 catchpoint commands here.
2679 * ada-lang.h (ada_decode_exception_location)
2680 (ada_decode_assert_location): Delete declarations.
2681 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2682 breakpoint.h.
2683 (create_ada_exception_breakpoint): Make extern.
2684 (catch_ada_exception_command, catch_assert_command): Moved to
2685 ada-lang.c.
2686 (add_catch_command): Make extern.
2687 (_initilize_breakpoint): Don't install the exception and assert
2688 catchpoint commands here.
2689 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2690 breakpoint.c
2691 (add_catch_command, create_ada_exception_breakpoint): Declare.
2692
c56053d2
PA
26932011-06-22 Pedro Alves <pedro@codesourcery.com>
2694
2695 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2696 the breakpoint to the breakpoint chain here.
2697 (set_raw_breakpoint_without_location): Add the breakpoint to the
2698 breakpoint chain here.
2699 (init_raw_breakpoint): Adjust comments.
2700 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2701 here.
2702 (init_catchpoint): Don't set the catchpoint's breakpoint number
2703 here.
2704 (install_catchpoint): New function.
2705 (create_fork_vfork_event_catchpoint)
2706 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2707 use install_catchpoint.
2708
d2f3fc74
PA
27092011-06-22 Pedro Alves <pedro@codesourcery.com>
2710
2711 * breakpoint.c (create_catchpoint_without_mention)
2712 (create_catchpoint): Delete.
2713
b4d90040
PA
27142011-06-22 Pedro Alves <pedro@codesourcery.com>
2715
2716 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2717 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2718 reference to exec_pathname.
2719 (struct exec_catchpoint): New type.
2720 (dtor_catch_exec): New function.
2721 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2722 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2723 (catch_exec_command_1): Adjust to use init_catchpoint.
2724 (delete_breakpoint): Remove reference to exec_pathname.
2725
be5c67c1
PA
27262011-06-22 Pedro Alves <pedro@codesourcery.com>
2727
2728 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2729 (struct breakpoint): Delete field `syscalls_to_be_caught'.
2730 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2731 reference to syscalls_to_be_caught.
2732 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2733 NULL `dtor'.
2734 (struct syscall_catchpoint): New type.
2735 (dtor_catch_syscall): New function.
2736 (insert_catch_syscall, remove_catch_syscall)
2737 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2738 (print_recreate_catch_syscall): Adjust.
2739 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2740 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2741 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2742 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2743 (masked_watchpoint_breakpoint_ops)
2744 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2745 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2746 there is one. Remove references to syscalls_to_be_caught.
2747 (catching_syscall_number): Adjust.
2748 * ada-lang.c (catch_exception_breakpoint_ops)
2749 (catch_exception_unhandled_breakpoint_ops)
2750 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2751
e29a4733
PA
27522011-06-22 Pedro Alves <pedro@codesourcery.com>
2753
2754 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2755 field.
2756 * breakpoint.c (init_raw_breakpoint_without_location): Remove
2757 reference to forked_inferior_pid.
2758 (struct fork_catchpoint): New type.
2759 (breakpoint_hit_catch_fork, print_it_catch_fork)
2760 (print_one_catch_fork, breakpoint_hit_catch_vfork)
2761 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2762 (create_fork_vfork_event_catchpoint): Adjust to use
2763 init_catchpoint.
2764
346774a9
PA
27652011-06-22 Pedro Alves <pedro@codesourcery.com>
2766
2767 * breakpoint.c (add_to_breakpoint_chain)
2768 (init_raw_breakpoint_without_location): New functions, factored
2769 out from ...
2770 (set_raw_breakpoint_without_location): ... this one.
2771 (init_raw_breakpoint): New function, factored out from
2772 set_raw_breakpoint and adjusted to use
2773 init_raw_breakpoint_without_location.
2774 (set_raw_breakpoint): Adjust.
2775 (init_catchpoint): New function, factored out from
2776 create_catchpoint_without_mention and adjusted to use
2777 init_raw_breakpoint.
2778 (create_catchpoint_without_mention): Adjust.
2779
c38c4bc5
TT
27802011-06-22 Tom Tromey <tromey@redhat.com>
2781
2782 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2783 argument of 0 specially.
2784
b138ce37
YQ
27852011-06-22 Yao Qi <yao@codesourcery.com>
2786
2787 * infrun.c (handle_inferior_event): Remove write-only local variable
2788 `sw_single_step_trap_p'.
2789
03de6823
TT
27902011-06-20 Tom Tromey <tromey@redhat.com>
2791
2792 * symtab.c (lookup_language_this): End loop if block is NULL.
2793
66a17cb6
TT
27942011-06-17 Tom Tromey <tromey@redhat.com>
2795
2796 * valops.c (value_of_this): Use lookup_language_this.
2797 * symtab.h (lookup_language_this): Declare.
2798 * symtab.c (lookup_language_this): New function.
2799 (lookup_symbol_aux): Use lookup_language_this.
2800 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2801
7518bff5
TT
28022011-06-17 Tom Tromey <tromey@redhat.com>
2803
2804 * value.h (value_of_this): Update.
2805 (value_of_local): Remove.
2806 * valops.c (value_of_this): Rename from value_of_local. Change
2807 parameters.
2808 * p-exp.y (exp): Update.
2809 (variable): Likewise.
2810 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2811
aee28ec6
TT
28122011-06-17 Tom Tromey <tromey@redhat.com>
2813
2814 * valops.c (value_of_local): Complain if NAME is NULL.
2815 * std-operator.def (OP_OBJC_SELF): Remove.
2816 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2817 * objc-exp.y (name_not_typename): Use OP_THIS.
2818 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2819 name for "this".
2820 <OP_OBJC_SELF>: Remove.
2821 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2822
eed8f803
TG
28232011-06-16 Tristan Gingold <gingold@adacore.com>
2824
2825 * python/py-events.h (gdb_py_events): Make it extern.
2826 * python/py-evtregistry.c (gdb_py_events): Declare.
2827
864ac8a7
HZ
28282011-06-16 Hui Zhu <teawater@gmail.com>
2829
2830 * remote.c (remote_trace_set_readonly_regions): Add check for
2831 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2832 output warning.
2833
ef7e8358
UW
28342011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
2835
2836 * arm-linux-tdep.c: Include "auxv.h".
2837 (AT_HWCAP): Define.
2838 (ARM_LINUX_SIZEOF_VFP): Define.
2839 (arm_linux_supply_vfp): New function.
2840 (arm_linux_collect_vfp): Likewise.
2841 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2842 (arm_linux_fpa_regset_sections): New variable.
2843 (arm_linux_vfp_regset_sections): Likewise.
2844 (arm_linux_core_read_description): New function.
2845 (arm_linux_init_abi): Install arm_linux_core_read_description and
2846 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2847 appropriate for the architecture.
2848 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2849 (tdesc_arm_with_m): Declare.
2850 (tdesc_arm_with_iwmmxt): Likewise.
2851 (tdesc_arm_with_vfpv2): Likewise.
2852 (tdesc_arm_with_vfpv3): Likewise.
2853 (tdesc_arm_with_neon): Likewise.
2854 * arm-linux-nat.c: Move features/*.c includes ...
2855 * arm-tdep.c: ... here.
2856 * arm-linux-nat.c (arm_linux_read_description): Move initializing
2857 target description data structures ...
2858 * arm-tdep.c (_initialize_arm_tdep): ... here.
2859 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2860 HWCAP_VFPv3D16): Move definitions ...
2861 * arm-linux-tdep.h: ... here.
2862
c2fa21f1
HZ
28632011-06-15 Hui Zhu <teawater@gmail.com>
2864
2865 * remote.c (remote_trace_set_readonly_regions): Add a check for
2866 target_buf_size.
2867
dd707e8e
TT
28682011-06-14 Tom Tromey <tromey@redhat.com>
2869
2870 * coffread.c (coffread_objfile): Rename from current_objfile.
2871 * dbxread.c (dbxread_objfile): Rename from current_objfile.
2872 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2873
86cc0029
TT
28742011-06-14 Tom Tromey <tromey@redhat.com>
2875
2876 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2877 (class_symtab): Remove.
2878 (jv_dynamics_progspace_key): New global.
2879 (jv_per_objfile_free): Reset program space data. Update assert.
2880 Don't clear globals.
2881 (get_dynamics_objfile): Use and set program space data.
2882 (get_java_class_symtab): Use get_dynamics_objfile.
2883 (add_class_symbol): Likewise.
2884 (java_link_class_type): Likewise.
2885 (java_object_type, jv_clear_object_type, set_java_object_type):
2886 Remove.
2887 (get_java_object_type): Update. Don't cache result.
2888 (is_object_type): Don't call set_java_object_type.
2889 (_initialize_java_language): Don't set jv_type_objfile_data_key;
2890 initialize jv_dynamics_progspace_key.
2891
91a81f69
TT
28922011-06-14 Tom Tromey <tromey@redhat.com>
2893
2894 * symtab.h (current_objfile): Don't declare.
2895 * objfiles.h (current_objfile): Don't declare.
2896 * objfiles.c (current_objfile): Remove.
2897 * mdebugread.c (current_objfile): New file-scope global.
2898 * dbxread.c (current_objfile): New file-scope global.
2899 * coffread.c (current_objfile): New file-scope global.
2900
dc7eb48e
PA
29012011-06-13 Pedro Alves <pedro@codesourcery.com>
2902
2903 * top.h (line): Rename to ...
2904 (saved_command_line): ... this.
2905 (linesize): Rename to ...
2906 (saved_command_line_size): ... this.
2907 * top.c (line): Rename to ...
2908 (saved_command_line): ... this.
2909 (linesize): Rename to ...
2910 (saved_command_line_size): ... this.
2911 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2912 * event-top.c (command_line_handler): Adjust.
2913 * main.c (captured_main): Adjust.
2914
0d6c2135
MK
29152011-06-12 Mark Kettenis <kettenis@gnu.org>
2916
2917 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
2918 get_frame_func instead of get_frame_pc to determine the code
2919 address used to construct the frame ID.
2920 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2921 (i386_epilogue_frame_this_id): Likewise.
2922 (i386_epilogue_frame_prev_register): New function.
2923 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2924 (i386_stack_tramp_frame_sniffer): Fix coding style.
2925 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2926 (i386_gdbarch_init): Fix comments.
2927
8bbdd3f4
MK
29282011-06-12 Mark Kettenis <kettenis@gnu.org>
2929
2930 * i386-tdep.c (i386_match_insn_block): Use length of the proper
2931 instruction when walking back through the instruction stream.
2932
533a737e
JK
29332011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2934
2935 * symtab.c (output_partial_symbol_filename): Exchange the filename and
2936 fullname parameters order.
2937
44b13c5a
JK
29382011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2939
2940 Code cleanup.
2941 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2942 for fun.
2943 * psymtab.c (map_symbol_filenames_psymtab)
2944 (map_partial_symbol_filenames): Likewise.
2945 * psymtab.h: Include symfile.h.
2946 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2947 * symfile.h (symbol_filename_ftype): New.
2948 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2949 map_symbol_filenames, clarify more the naming in comment.
2950
0b5574da
DE
29512011-06-07 Doug Evans <dje@google.com>
2952
2953 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 2954 Look for ../../gdb, for fullname.exp.
0b5574da 2955
5be4dfca
JK
29562011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 Pedro Alves <pedro@codesourcery.com>
2958
2959 * cli/cli-cmds.c (shell_escape): Use waitpid.
2960 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2961
316a8b21
TG
29622011-06-07 Tristan Gingold <gingold@adacore.com>
2963
2964 * xcoffread.c (dwarf2_xcoff_names): New variable.
2965 (aix_process_linenos): Add a guard.
2966 (xcoff_symfile_finish): Free dwarf2.
2967 (xcoff_initial_scan): Add dwarf2 support.
2968
3dd5b83d
PA
29692011-06-06 Pedro Alves <pedro@codesourcery.com>
2970
2971 * infcall.c (run_inferior_call): Don't mask async. Instead force
2972 a synchronous wait, if the target can async.
2973
2974 * target.h (struct target_ops): Delete to_async_mask.
2975 (target_async_mask): Delete.
2976 * target.c (update_current_target): Delete references to to_async_mask.
2977 * linux-nat.c (linux_nat_async_mask_value): Delete.
2978 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2979 to linux_nat_async_mask_value.
2980 (linux_nat_async_mask): Delete.
2981 (linux_nat_async, linux_nat_close): Remove references to
2982 linux_nat_async_mask_value.
2983 * record.c (record_async_mask_value): Delete.
2984 (record_async): Remove references to record_async_mask_value.
2985 (record_async_mask): Delete.
2986 (record_can_async_p, record_is_async_p): Remove references to
2987 record_async_mask_value.
2988 (init_record_ops, init_record_core_ops): Remove references to
2989 record_async_mask.
2990 * remote.c (remote_async_mask_value): Delete.
2991 (init_remote_ops): Remove reference to remote_async_mask.
2992 (remote_can_async_p, remote_is_async_p): Remove references to
2993 remote_async_mask_value.
2994 (remote_async): Remove references to remote_async_mask_value.
2995 (remote_async_mask): Delete.
2996
2997 * infrun.c (fetch_inferior_event): Don't claim registers changed
2998 if the current thread is already not executing.
2999
64b9b334
JB
30002011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
3001
3002 From Stephen Kitt <steve@sk2.org>
3003 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
3004 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
3005
325663dc
JB
30062011-06-03 Joel Brobecker <brobecker@adacore.com>
3007
3008 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
3009 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
3010
8cf64490
TT
30112011-06-03 Tom Tromey <tromey@redhat.com>
3012
3013 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
3014 code fields.
3015 * python/py-exitedevent.c (create_exited_event_object): Change
3016 type of 'exit_code'. Optionally add exit_code attribute.
3017 (emit_exited_event): Change type of 'exit_code'.
3018 * python/py-event.h (emit_exited_event): Update.
3019 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
3020 * infrun.c (handle_inferior_event): Set exit code fields on
3021 inferior.
3022 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
3023 fields.
3024 * inferior.c (exit_inferior_1): Initialize new fields.
3025
8ddd9a20
TT
30262011-06-03 Tom Tromey <tromey@redhat.com>
3027
3028 * dwarf2expr.c (get_signed_type): New function.
3029 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
3030
8dfd1e6d
KS
30312011-06-02 Keith Seitz <keiths@redhat.com>
3032
3033 * objc-lang.c (find_methods): Increment objfile_csym earlier.
3034
65fdb766
PA
30352011-06-02 Pedro Alves <pedro@codesourcery.com>
3036
3037 * top.h (simplified_command_loop): Delete declaration.
3038
f4b8c29b
MF
30392011-06-01 Mike Frysinger <vapier@gentoo.org>
3040
3041 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
3042 gdb_sysroot to the "len" variable. Append both to "arg_buf".
3043
1706c199
YQ
30442011-06-01 Yao Qi <yao@codesourcery.com>
3045
3046 * objfiles.h (obj_section_addr): Update reference to objfile from
3047 `abfd' to `obfd'.
3048 (obj_section_endaddr): Likewise.
3049
d19cd713 30502011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
3051
3052 * MAINTAINERS: Update my email address and affiliation. Also
3053 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
3054
e8eb7bc5
KS
30552010-05-31 Keith Seitz <keiths@redhat.com>
3056
3057 PR c++/12750
3058 * linespec.c (get_search_block): New function.
3059 (find_methods): Add FILE_SYMTATB parameter and use it and
3060 get_search_block to pass an appropriate block to
3061 lookup_symbol_in_namespace.
3062 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
3063 Check if *ARGPTR starts with a filename first.
3064 If it does, call locate_first_half again to locate the next
3065 "first half" of the linespec.
3066 Pass FILE_SYMTATB to decode_objc and decode_compound.
3067 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
3068 (locate_first_half): Stop on the first colon seen.
3069 (decode_compound): Add FILE_SYMTAB parameter.
3070 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
3071 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
3072 get_search_block with lookup_symbol.
3073 (find_method): Add FILE_SYMTAB parameter and pass it to
3074 find_methods.
3075 (decode_objc): Use get_search_block.
3076
2b1dbab0
KS
30772010-05-31 Keith Seitz <keiths@redhat.com>
3078
3079 PR symtab/12704
3080 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
3081 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
3082 and CP_ANONYMOUS_NAMESPACE_LEN.
3083 (cp_is_anonymous): Likewise.
3084 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
3085 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
3086 * dwarf2read.c (namespace_name): Likewise.
3087 (fixup_partial_die): Likewise.
3088 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
3089 seen in the input, keep it.
3090
6d549500
PA
30912011-05-30 Pedro Alves <pedro@codesourcery.com>
3092
3093 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
3094 * inf-loop.h (inferior_event_handler_wrapper): Delete.
3095 * inf-loop.c (inferior_event_handler_wrapper): Delete.
3096 (inferior_event_handler): Don't handle INF_QUIT_REQ.
3097 * remote.c (_initialize_remote): Register
3098 async_remote_interrupt_twice directly as
3099 sigint_remote_twice_token event.
3100
395bff70
PA
31012011-05-30 Pedro Alves <pedro@codesourcery.com>
3102
3103 * target.h (enum inferior_event_type): Delete INF_ERROR.
3104 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
3105
97224164
PA
31062011-05-30 Pedro Alves <pedro@codesourcery.com>
3107
3108 * interps.c (interp_set): Don't cancel continuations.
3109
07e78767
JK
31102011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3111
3112 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
3113
fa4cd53f
PA
31142011-05-30 Pedro Alves <pedro@codesourcery.com>
3115
3116 * continuations.h (continuation_ftype): Add `err' parameter.
3117 Document parameters.
3118 (do_all_continuations, do_all_continuations_thread)
3119 (do_all_intermediate_continuations)
3120 (do_all_intermediate_continuations_thread)
3121 (do_all_inferior_continuations): Add `err' parameter.
3122 * continuations.c (do_my_continuations_1, do_my_continuations)
3123 (do_all_inferior_continuations, do_all_continuations_ptid)
3124 (do_all_continuations_thread_callback)
3125 (do_all_continuations_thread, do_all_continuations)
3126 (do_all_intermediate_continuations_thread_callback)
3127 (do_all_intermediate_continuations_thread)
3128 (do_all_intermediate_continuations): Add `err' parameter, and pass
3129 it down all the way to the continuations proper.
3130 * inf-loop.c (inferior_event_handler): If fetching an inferior
3131 event throws an error, don't pop the target, and still call the
3132 continuations, but with `err' set. Adjust all other continuation
3133 calls.
3134 * breakpoint.c (until_break_command_continuation): Add `err'
3135 parameter.
3136 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
3137 issue another step if `err' is set.
3138 (struct until_next_continuation_args): New.
3139 (until_next_continuation): Add `err' parameter. Adjust.
3140 (until_next_command): Adjust.
3141 (struct finish_command_continuation_args): Add `thread' field.
3142 (finish_command_continuation): Add `err' parameter. Handle it.
3143 (finish_forward): Adjust.
3144 (attach_command_continuation): Add `err' parameter. Handle it.
3145 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
3146 cancel the continuations.
3147 * interps.c (interp_set): Adjust to cancel the continuations.
3148 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
3149 continuations rather than discarding.
3150 (free_thread): Don't clear thread inferior resources here.
3151 (delete_thread_1): Do it here instead. And do it before removing
3152 the thread from the threads list. Tag the thread as exited before
3153 clearing thread inferior resources.
3154
c2949be0
JB
31552011-05-30 Joel Brobecker <brobecker@adacore.com>
3156
3157 * infcall.c (call_function_by_hand): Rephrase error message.
3158
619cebe8
PA
31592011-05-27 Pedro Alves <pedro@codesourcery.com>
3160
3161 * defs.h (struct thread_info, struct inferior): Delete forward
3162 declarations.
3163 * breakpoint.h (struct thread_info): New forward declaration.
3164 * observer.sh (struct inferior): New forward declaration.
3165 * python/python-internal.h (struct inferior): New forward
3166 declaration.
3167
be34f849
PA
31682011-05-27 Pedro Alves <pedro@codesourcery.com>
3169
3170 * defs.h (struct continuation, continuation_ftype)
3171 (continuation_free_arg_ftype, add_continuation)
3172 (do_all_continuations, do_all_continuations_thread)
3173 (discard_all_continuations, discard_all_continuations_thread)
3174 (add_intermediate_continuation, do_all_intermediate_continuations)
3175 (do_all_intermediate_continuations_thread)
3176 (discard_all_intermediate_continuations)
3177 (discard_all_intermediate_continuations_thread)
3178 (add_inferior_continuation, do_all_inferior_continuations)
3179 (discard_all_inferior_continuations): Move to ...
3180 * continuations.h: ... this new file.
3181 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
3182 infcmd.c, inferior.c, infrun.c, interps.c: Include
3183 continuations.h.
3184
432b4d03
JK
31852011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3186 Doug Evans <dje@google.com>
3187
3188 Fix PR 10970, PR 12702.
3189 * linux-nat.c (linux_lwp_is_zombie): New function.
3190 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
3191 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
3192
b0f260d6
PA
31932011-05-27 Pedro Alves <pedro@codesourcery.com>
3194
3195 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
3196 typedefs.
3197 (add_continuation, add_intermediate_continuation)
3198 (add_inferior_continuation): Use them.
3199 * continuations.c (struct continuation): Use them.
3200 (make_continuation_ftype): Delete.
3201 (make_continuation, add_inferior_continuation, add_continuation)
3202 (add_intermediate_continuation): Use continuation_ftype and
3203 continuation_free_arg_ftype. Rename parameters to shorter names.
3204
af1e9a32
PA
32052011-05-27 Pedro Alves <pedro@codesourcery.com>
3206
3207 * continuations.c (make_continuation): Make it return void.
3208 (do_my_continuations): Rename to ...
3209 (do_my_continuations_1): ... this. Remove old_chain parameter and
3210 adjust.
3211 (do_my_continuations): New.
3212 (discard_my_continuations): Rename to ...
3213 (discard_my_continuations_1): ... this. Remove old_chain
3214 parameter and adjust.
3215 (discard_my_continuations): New.
3216 (add_inferior_continuation): Simplify.
3217 (do_all_inferior_continuations): Reimplement on top
3218 do_my_continuations.
3219 (discard_all_inferior_continuations): Simplify.
3220 (add_continuation): Simplify.
3221 (do_all_continuations_ptid): Simplify.
3222 (discard_all_continuations_thread_callback): Simplify.
3223 (add_intermediate_continuation): Simplify.
3224 (discard_all_intermediate_continuations_thread_callback):
3225 Simplify.
3226
50c0c017
PA
32272011-05-27 Pedro Alves <pedro@codesourcery.com>
3228
3229 * utils.c (struct continuation, add_continuation)
3230 (add_inferior_continuation)
3231 (do_all_inferior_continuations, discard_all_inferior_continuations)
3232 (restore_thread_cleanup, do_all_continuations_ptid)
3233 (do_all_continuations_thread_callback)
3234 (do_all_continuations_thread, do_all_continuations)
3235 (discard_all_continuations_thread_callback)
3236 (discard_all_continuations_thread, discard_all_continuations)
3237 (add_intermediate_continuation)
3238 (do_all_intermediate_continuations_thread_callback)
3239 (do_all_intermediate_continuations_thread)
3240 (do_all_intermediate_continuations)
3241 (discard_all_intermediate_continuations_thread_callback)
3242 (discard_all_intermediate_continuations_thread)
3243 (discard_all_intermediate_continuations): Move to ...
3244 * continuations.c: ... this new file, and adjust to no longer
3245 implement continuations on top of cleanups.
3246 * Makefile.in (SFILES): Add continuations.c.
3247 (COMMON_OBS): Add continuations.o.
3248
d8b34453
PA
32492011-05-26 Pedro Alves <pedro@codesourcery.com>
3250
3251 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
3252 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
3253 Internal error on invalid values.
3254 * reverse.c: Don't handle EXEC_ERROR.
3255 * mi/mi-main.c: Don't handle EXEC_ERROR.
3256
32231432
PA
32572011-05-26 Pedro Alves <pedro@codesourcery.com>
3258
3259 * record.c: Include event-loop.h, inf-loop.h.
3260 (record_beneath_to_async): New global.
3261 (tmp_to_async): New global.
3262 (record_async_inferior_event_token): New global.
3263 (record_open_1): Don't error out if async is enabled.
3264 (record_open): Handle to_async. Create an async event source in
3265 the event loop.
3266 (record_close): Delete the async event source.
3267 (record_resumed): New global.
3268 (record_execution_dir): New global.
3269 (record_resume, record_core_resume): Set them. Register the
3270 target on the event loop.
3271 (record_wait): Rename to ...
3272 (record_wait_1): ... this. Add more debug output. Handle
3273 TARGET_WNOHANG, and the target beneath returning
3274 TARGET_WAITKIND_IGNORE.
3275 (record_wait): Reimplement on top of record_wait_1.
3276 (record_async_mask_value): New global.
3277 (record_async, record_async_mask, record_can_async_p)
3278 (record_is_async_p, record_execution_direction): New functions.
3279 (init_record_ops, init_record_core_ops): Install new methods.
3280 * infrun.c (fetch_inferior_event): Temporarily switch the global
3281 execution direction to the direction the target was going.
3282 (execution_direction): Change type to int.
3283 * target.c (default_execution_direction): New function.
3284 (update_current_target): Inherit and de_fault
3285 to_execution_direction.
3286 * target.h (struct target_ops) <to_execution_direction>: New
3287 field.
3288 (target_execution_direction): New macro.
3289 * inferior.h (execution_direction): Change type to int.
3290
949dc678
PA
32912011-05-26 Pedro Alves <pedro@codesourcery.com>
3292
3293 * infcall.c (call_function_by_hand): Don't allow calling functions
3294 in reverse execution mode.
3295
c13bd2b5
PA
32962011-05-26 Pedro Alves <pedro@codesourcery.com>
3297
3298 * infcmd.c (finish_command): Allow async finish in reverse.
3299
6938fd34
YQ
33002011-05-26 Yao Qi <yao@codesourcery.com>
3301
3302 * gdb_thread_db.h: Delete. Move to ...
3303 * common/gdb_thread_db.h: ... here.
3304
9da8c2a0
PA
33052011-05-26 Pedro Alves <pedro@codesourcery.com>
3306
3307 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
3308 function's entry point instead of a manually managed momentary
3309 breakpoint, and only ever issue one proceed call.
3310 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
3311 doing a reverse-finish, switch to stepi mode, to do another step.
3312 (insert_step_resume_breakpoint_at_sal): Make public.
3313 (normal_stop): No need to save function value return registers if
3314 going reverse.
3315 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
3316
2c03e5be
PA
33172011-05-26 Pedro Alves <pedro@codesourcery.com>
3318
3319 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
3320 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
3321 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
3322 at the end.
3323 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
3324 step-resume breakpoints.
3325 (print_it_typical): Handle bp_hp_step_resume.
3326 (bpstat_what): Ditto.
3327 (bptype_string): Ditto.
3328 (print_one_breakpoint_location): Ditto.
3329 (allocate_bp_location): Ditto.
3330 (mention): Ditto.
3331 (breakpoint_re_set_one): Ditto.
3332 * infrun.c (handle_inferior_event): Adjust. Split
3333 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
3334 BPSTAT_WHAT_HP_STEP_RESUME.
3335 (insert_step_resume_breakpoint_at_sal): Rename to ...
3336 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
3337 parameter. Handle it.
3338 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
3339 insert_step_resume_breakpoint_at_sal_1.
3340 (insert_step_resume_breakpoint_at_frame): Rename to ...
3341 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
3342 set a high-priority step-resume breakpoint.
3343 (insert_step_resume_breakpoint_at_frame): Adjust comment.
3344 (insert_step_resume_breakpoint_at_caller): Ditto.
3345
51be5b68
PA
33462011-05-26 Pedro Alves <pedro@codesourcery.com>
3347
3348 * breakpoint.c (iterate_over_related_breakpoints): New.
3349 (do_map_delete_breakpoint): New.
3350 (delete_command): Pass do_map_delete_breakpoint to
3351 map_breakpoint_numbers.
3352 (do_disable_breakpoint): New.
3353 (do_map_disable_breakpoint): Iterate over the breakpoint's related
3354 breakpoints.
3355 (do_enable_breakpoint): Rename to ...
3356 (enable_breakpoint_disp): ... this.
3357 (enable_breakpoint): Adjust.
3358 (do_enable_breakpoint): New.
3359 (enable_once_breakpoint): Delete.
3360 (do_map_enable_breakpoint): New.
3361 (do_map_enable_once_breakpoint): New.
3362 (enable_once_command, enable_delete_command)
3363 (delete_trace_command): Iterate over the breakpoint's related
3364 breakpoints.
3365
4a1be8d2
PA
33662011-05-26 Pedro Alves <pedro@codesourcery.com>
3367
3368 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
3369 for ALPHA_ZERO_REGNUM.
3370 (alpha_supply_int_regs): Explicitly supply zero as the value for
3371 ALPHA_ZERO_REGNUM in the register cache.
3372 * alpha-nat.c (fetch_osf_core_registers): Ditto.
3373
59d70315
YQ
33742011-05-26 Yao Qi <yao@codesourcery.com>
3375
3376 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
3377
251d32d9
TG
33782011-05-26 Tristan Gingold <gingold@adacore.com>
3379
3380 * symfile.h (struct dwarf2_section_names): New type.
3381 (struct dwarf2_debug_sections): New type.
3382 (dwarf2_has_info): Add parameter.
3383 * dwarf2read.c (dwarf2_elf_names): New variable.
3384 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
3385 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
3386 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
3387 (dwarf2_has_info): Add names parameter. Pass names
3388 to dwarf2_locate_sections.
3389 (section_is_p): Rewrite using the names parameter.
3390 (dwarf2_locate_sections): Use section names from the names parameter.
3391 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
3392 * elfread.c (read_psyms): Ditto.
3393 * machoread.c (macho_symfile_read): Ditto.
3394
652c71b4
AS
33952011-05-25 Andreas Schwab <schwab@redhat.com>
3396
3397 PR gdb/8677
3398 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
3399
f17170e5
KS
34002011-05-24 Keith Seitz <keiths@redhat.com>
3401
3402 PR breakpoint/12803
3403 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
3404 (decode_compound): Unconditionally call keep_name_info.
3405
cdac0397
PA
34062011-05-24 Pedro Alves <pedro@codesourcery.com>
3407
3408 * breakpoint.c (watchpoint_check): If the watchpoint went out of
3409 scope, clear its command list.
3410 (map_breakpoint_numbers): Don't walk the related breakpoints list
3411 of each breakpoint.
3412
91d4fe3f
TT
34132011-05-24 Tom Tromey <tromey@redhat.com>
3414
3415 * MAINTAINERS: Move Jim Blandy to past maintainers.
3416
3017a003
TG
34172011-05-24 Tristan Gingold <gingold@adacore.com>
3418
3419 * symfile.h (enum dwarf2_section_enum): New type.
3420 (dwarf2_get_section_info): New prototype.
3421 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3422 section_name by sect. Use a switch to select the info.
3423 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3424 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3425
c91c8c16
PA
34262011-05-24 Pedro Alves <pedro@codesourcery.com>
3427
3428 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3429 shared library event breakpoint if there's no execution.
3430
77bc418a
TJB
34312011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
3432
3433 * breakpont.c (remove_hw_watchpoints): Remove unused function.
3434 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3435
c50491a7
TT
34362011-05-23 Tom Tromey <tromey@redhat.com>
3437
3438 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3439 NULL.
3440
6d64e6d4
DE
34412011-05-23 Doug Evans <dje@google.com>
3442
3443 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3444 entry for RuntimeError to doc string.
3445
2067c8d4
JG
34462011-05-23 Jerome Guitton <guitton@adacore.com>
3447
3448 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3449 sequence for probing loops.
3450
b136cd05
PA
34512011-05-23 Pedro Alves <pedro@codesourcery.com>
3452
3453 * infrun.c (user_visible_resume_ptid): Fix typos in describing
3454 comment.
3455
22e74ef9
MK
34562011-05-21 Mark Kettenis <kettenis@gnu.org>
3457
3458 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3459 zero as the value for %g0 in the register cache.
3460 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3461 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3462
842951eb
PA
34632011-05-20 Pedro Alves <pedro@codesourcery.com>
3464
3465 * infrun.c (proceed): Set previous_inferior_ptid here.
3466 (init_wait_for_inferior): Initialize previous_inferior_ptid from
3467 inferior_ptid, not null_ptid.
3468 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3469 (fetch_inferior_event): Nor here.
3470
46cf51e6
PA
34712011-05-20 Pedro Alves <pedro@codesourcery.com>
3472
3473 * inf-loop.c (inferior_event_handler): Only output a message if
3474 verbose.
3475
29ef4c46
LM
34762011-05-20 Luis Machado <lgustavo@codesourcery.com>
3477
3478 * MAINTAINERS: Update my e-mail address.
3479
f148b27e
PA
34802011-05-20 Pedro Alves <pedro@codesourcery.com>
3481
3482 * infrun.c (proceed): Switch the inferior event loop to
3483 INF_EXEC_COMPLETE if the target refused to resume from a
3484 vfork/fork.
3485
09cee04b
PA
34862011-05-20 Pedro Alves <pedro@codesourcery.com>
3487
3488 * infcmd.c: Include "inf-loop.h".
3489 (step_once): When stepping into an inline subroutine, pretend the
3490 target has run. If the target can async, switch the inferior
3491 event loop to INF_EXEC_COMPLETE.
3492 * inferior.h (user_visible_resume_ptid): Declare.
3493 * infrun.c (user_visible_resume_ptid): New function, factored out
3494 from `resume'.
3495 (resume): Use it.
3496 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3497 that the current thread is running. Merge async and sync
3498 branches.
3499
751b8ce1
PA
35002011-05-20 Pedro Alves <pedro@codesourcery.com>
3501
3502 * infcmd.c (step_1): Simplify synchronous case.
3503
e93a69ed
PA
35042011-05-20 Pedro Alves <pedro@codesourcery.com>
3505
3506 * tracepoint.c: Include exceptions.h.
3507 (TFILE_PID): Move higher in file.
3508 (tfile_open): Delay pushing the tfile target until we're assured
3509 the tfile header is present in the file. Wrap reading the initial
3510 newline-terminated lines in TRY_CATCH. Pop the target if the
3511 initial setup failed. Add the tfile's thread immediately
3512 aftwards, before any non-essential setup. Don't skip
3513 post_create_inferior if there are no traceframes present in the
3514 file.
3515 (tfile_close): Remove redundant check for null before xfree call.
3516 (tfile_thread_alive): New function.
3517 (init_tfile_ops): Register it as to_thread_alive callback.
3518
6823e2b1
PA
35192011-05-20 Pedro Alves <pedro@codesourcery.com>
3520
3521 * tracepoint.c (tfile_open): Delete #if 0'd code.
3522
b3c8eb43
JK
35232011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 Fix -readnow for -gdwarf-4 unused type units.
3526 * dwarf2read.c (struct signatured_type): Remove the field offset.
3527 (create_signatured_type_table_from_index): Remove its initialization.
3528 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
3529 instead. Add a complaint call.
3530 (process_psymtab_comp_unit): Change assignment to gdb_assert.
3531 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3532 (lookup_signatured_type_at_offset, read_signatured_type)
3533 (write_one_signatured_type): Update the field for per_cu.
3534
310afc76
TT
35352011-05-19 Tom Tromey <tromey@redhat.com>
3536
3537 * python/py-inferior.c (python_inferior_exit): Use
3538 target_gdbarch.
3539 (python_on_resume): Likewise.
3540
cf6c5ffb
TT
35412011-05-19 Matt Rice <ratmice@gmail.com>
3542
3543 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3544
fb80a3c5
HZ
35452011-05-19 Hui Zhu <teawater@gmail.com>
3546
3547 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3548
3672b1be
HZ
35492011-05-19 Hui Zhu <teawater@gmail.com>
3550
3551 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3552
ff355380
TT
35532011-05-18 Tom Tromey <tromey@redhat.com>
3554
3555 * dwarf2read.c (dwarf2_add_field): Constify.
3556 * value.c (value_static_field): Constify.
3557 * gdbtypes.h (struct main_type) <field.field_location.physname>:
3558 Now const.
3559 * ax-gdb.c (gen_static_field): Constify
3560
ed731959
JK
35612011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 * linux-nat.c (kill_callback): Use SIGKILL first.
3564
967cff16
JB
35652011-05-18 Joel Brobecker <brobecker@adacore.com>
3566
3567 * ada-lang.c (print_it_exception): Avoid use of sprintf.
3568
1d06ead6
TT
35692011-05-18 Tom Tromey <tromey@redhat.com>
3570
3571 * value.c (value_fn_field): Constify.
3572 * symtab.c (gdb_mangle_name): Constify.
3573 * stabsread.c (update_method_name_from_physname): Make 'physname'
3574 argument const.
3575 * p-typeprint.c (pascal_type_print_method_args): Make arguments
3576 const. Use explicit fputc_filtered loop.
3577 (pascal_type_print_base): Constify.
3578 * p-lang.h (pascal_type_print_method_args): Update.
3579 * linespec.c (add_matching_methods): Constify.
3580 (add_constructors): Likewise.
3581 * jv-typeprint.c (java_type_print_base): Constify.
3582 * gdbtypes.h (struct cplus_struct_type)
3583 <fn_fieldlist.fn_field.physname>: Now const.
3584 * dwarf2read.c (compute_delayed_physnames): Constify.
3585 (dwarf2_add_member_fn): Likewise.
3586 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
3587
0d9a9a5f
PA
35882011-05-18 Pedro Alves <pedro@codesourcery.com>
3589
3590 * infrun.c (resume): Mention which is the current thread, and its
3591 current PC in debug output.
3592 (prepare_to_proceed): Mention the thread switching in debug
3593 output.
3594
05386e9e
TT
35952011-05-18 Tom Tromey <tromey@redhat.com>
3596
3597 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3598 path check. Use xmalloc and cleanups.
3599 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3600
ee86786c
TT
36012011-05-17 Tom Tromey <tromey@redhat.com>
3602
3603 * cp-valprint.c (cp_print_value_fields): Catch errors from
3604 value_static_field.
3605
9ff3b74f
TT
36062011-05-17 Tom Tromey <tromey@redhat.com>
3607
3608 * dwarf2read.c (dwarf2_get_die_type): Call
3609 get_die_type_at_offset.
3610 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3611 get_base_type function.
3612
cd3da28e
PA
36132011-05-17 Tomas Martinec <fyzmat@gmail.com>
3614
3615 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3616 trap_expected.
3617
fd20d931
DE
36182011-05-16 Doug Evans <dje@google.com>
3619
3620 * python/py-auto-load.c (source_section_scripts): Mention objfile
3621 name in warning.
3622
75fc9810
DE
36232011-05-15 Doug Evans <dje@google.com>
3624
290351b8
DE
3625 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3626 (try_thread_db_load_from_pdir): Call it. If unable to find
3627 libthread_db in directory of libpthread, see if we're looking at
3628 the separate-debug-info copy.
3629
75fc9810
DE
3630 * python/py-autoload.c (print_script): Print "Missing" instead of
3631 "No" for missing scripts.
3632 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3633
9f7bc587
DE
36342011-05-13 Doug Evans <dje@google.com>
3635
3636 * ui-file.c (stdio_file_write_async_safe): Add comment.
3637
093cee7d
HZ
36382011-05-14 Hui Zhu <teawater@gmail.com>
3639
3640 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3641
dbaefcf7
DE
36422011-05-13 Doug Evans <dje@google.com>
3643
98a5dd13
DE
3644 Support $pdir and $sdir in libthread-db-search-path.
3645 * NEWS: Mention $sdir,$pdir.
3646 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3647 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3648 (try_thread_db_load_from_sdir): New function.
3649 (try_thread_db_load_from_dir): New function.
3650 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
3651 system directories if search of libthread-db-search-path fails,
3652 that is now done via $sdir.
3653 (has_libpthread): New function.
3654 (thread_db_load): Remove search for libthread_db in directory of
3655 libpthread, that is now done via $pdir.
3656
dbaefcf7
DE
3657 * NEWS: Mention "info auto-load-scripts".
3658 * python/py-auto-load.c (struct auto_load_pspace_info): New member
3659 script_not_found_warning_printed.
3660 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3661 all callers updated. Initialize script_not_found_warning_printed.
3662 (get_auto_load_pspace_data_for_loading): New function.
3663 (maybe_add_script): New function.
3664 (source_section_scripts): Simplify. Only print one warning regardless
3665 of the number of auto-load scripts not found.
3666 (clear_section_scripts): Clear script_not_found_warning_printed.
3667 (auto_load_objfile_script): Record script in hash table.
3668 (count_matching_scripts): New function.
3669 (maybe_print_script): Renamed from maybe_print_section_script, all
3670 callers updated. Rewrite to use ui_out_*.
3671 (info_auto_load_scripts): Renamed from
3672 maintenance_print_section_scripts, all callers updated.
3673 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3674 renamed as "info auto-load-scripts".
3675
9930639c
TT
36762011-05-13 Tom Tromey <tromey@redhat.com>
3677
3678 * dwarf2expr.c (read_uleb128): Cast intermediate result.
3679 (read_sleb128): Likewise.
3680
06826322
TT
36812011-05-13 Tom Tromey <tromey@redhat.com>
3682
3683 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3684 offset display.
3685
01124a23
DE
36862011-05-13 Doug Evans <dje@google.com>
3687
3688 * linux-nat.c (debug_linux_nat_async): Delete.
3689 Replace all references to use debug_linux_nat instead.
3690 (show_debug_linux_nat_async): Delete.
3691 (sigchld_handler): Call ui_file_write_async_safe instead of
3692 fprintf_unfiltered.
3693 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3694 * ui-file.c (struct ui_file): New member to_write_async_safe.
3695 (null_file_write_async_safe): New function.
3696 (ui_file_write_async_safe): New function.
3697 (set_ui_file_write_async_safe): New function.
3698 (ui_file_new): Initialize to_write_async_safe.
3699 (stdio_file_write_async_safe): New function.
3700 (struct stdio_file): New member fd.
3701 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
3702 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3703 fileno.
01124a23
DE
3704 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3705 (set_ui_file_write_async_safe): Declare.
3706 (ui_file_write_async_safe): Declare.
3707
72fc29ff
TT
37082011-05-13 Tom Tromey <tromey@redhat.com>
3709
3710 * utils.c (do_value_free): New function.
3711 (make_cleanup_value_free): Likewise.
3712 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3713 freeing correctly.
3714 (dwarf2_loc_desc_needs_frame): Call
3715 make_cleanup_value_free_to_mark.
3716 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3717 * dwarf2expr.c (free_dwarf_expr_context): Don't call
3718 value_free_to_mark.
3719 (new_dwarf_expr_context): Don't call value_mark.
3720 * dwarf2-frame.c (execute_stack_op): Call
3721 make_cleanup_value_free_to_mark.
3722 * defs.h (make_cleanup_value_free): Declare.
3723
028d0ed5
TJB
37242011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
3725
3726 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3727 prepare_execute_command.
3728 * top.c (prepare_execute_command): Return cleanup.
3729 (execute_command): Use cleanup from prepare_execute_command.
3730 * top.h (prepare_execute_command): Change prototype to return
3731 cleanup.
3732 * defs.h (struct value): Add opaque declaration.
3733 (make_cleanup_value_free_to_mark): Add prototype.
3734 * utils.c (do_value_free_to_mark): New function.
3735 (make_cleanup_value_free_to_mark): Likewise.
3736
b087e0ed
TT
37372011-05-12 Tom Tromey <tromey@redhat.com>
3738
3739 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3740 cast left-hand-side to unsigned.
3741
8a9b8146
TT
37422011-05-12 Tom Tromey <tromey@redhat.com>
3743
3744 PR gdb/12617:
3745 * value.h (value_from_contents): Declare.
3746 * value.c (value_from_contents): New function.
3747 * dwarf2read.c (dwarf_stack_op_name): Add new values.
3748 (dwarf2_get_die_type): New function.
3749 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3750 (allocate_piece_closure): Acquire reference to values.
3751 (read_pieced_value): Update for value-based expressions.
3752 (write_pieced_value): Likewise.
3753 (free_pieced_value_closure): Call value_free as needed.
3754 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3755 Update for value-based expressions.
3756 * dwarf2loc.h (dwarf2_get_die_type): Declare.
3757 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3758 <get_base_type>: New field.
3759 (struct dwarf_expr_piece) <v.value>: Change type.
3760 <v.regno>: New field.
3761 (struct dwarf_expr_context) <mark>: New field.
3762 (dwarf_expr_piece, dwarf_expr_fetch): Update.
3763 (dwarf_expr_pop, dwarf_expr_push): Remove.
3764 (dwarf_expr_push_address): Declare.
3765 * dwarf2expr.c (dwarf_arch_cookie): New global.
3766 (struct dwarf_gdbarch_types): New.
3767 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3768 functions.
3769 (dwarf_expr_push): Change type of 'value' argument. Update. Now
3770 static.
3771 (dwarf_expr_push_address): New function.
3772 (dwarf_expr_pop): Now static.
3773 (dwarf_expr_fetch): Change return type.
3774 (dwarf_require_integral): New function.
3775 (dwarf_expr_fetch): Simplify.
3776 (add_piece): Update.
3777 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3778 functions.
3779 (execute_stack_op) <sign_ext>: Remove.
3780 Use values for DWARF stack.
3781 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3782 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3783 New cases.
3784 (_initialize_dwarf2expr): New function.
3785 (add_piece): Update.
3786 (new_dwarf_expr_context): Set new field.
3787 (free_dwarf_expr_context): Call value_free_to_mark.
3788 * dwarf2-frame.c (no_base_type): New function.
3789 (execute_stack_op): Set get_base_type field. Update.
3790
e8d28ef4
TT
37912011-05-12 Tom Tromey <tromey@redhat.com>
3792
3793 * dwarf2read.c (read_common_block): Fix formatting.
3794
d248b706
KY
37952011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
3796
3797 * breakpoint.c (disable_breakpoint): Disable all locations
3798 associated with a tracepoint on target if a trace experiment is
3799 running.
3800 (disable_command): Disable a specific tracepoint location on target if
3801 a trace experiment is running.
3802 (do_enable_breakpoint): Enable all locations associated with a
3803 tracepoint on target if a trace experiment is running.
3804 (enable_command) Enable a specific tracepoint location on target if a
3805 trace experiment is running.
3806 * target.c (update_current_target): Add INHERIT and de_fault clauses for
3807 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3808 to_disable_tracepoint.
3809 * target.h: Add declaration of struct bp_location.
3810 (struct target_ops): Add new functions
3811 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3812 to_disable_tracepoint to target operations.
3813 (target_supports_enable_disable_tracepoint): New macro.
3814 (target_enable_tracepoint): New macro.
3815 (target_disable_tracepoint): New macro.
3816 * remote.c (struct remote_state): Add new field.
3817 (remote_enable_disable_tracepoint_feature): New.
3818 (remote_protocol_features): Add new entry.
3819 (remote_supports_enable_disable_tracepoint): New.
3820 (remote_enable_tracepoint): New.
3821 (remote_disable_tracepoint): New.
3822 (init_remote_ops): Add remote_enable_tracepoint,
3823 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3824 to remote operations.
3825 * tracepoint.c (start_tracing): Allow tracing to start without any
3826 tracepoints enabled with just a warning if they can be re-enabled
3827 later.
3828 * NEWS: Add news item for the new behaviour of the enable and disable
3829 GDB commands when applied to tracepoints.
3830 Add news items for the new remote packets QTEnable and QTDisable.
3831
cc88a640
JK
38322011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3833
3834 * config.in: Regenerate.
3835 * configure: Regenerate.
3836 * configure.ac <--with-system-readline> (for readline_echoing_p):
3837 Remove the test.
3838 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3839 (tui_old_rl_echoing_p): ... here.
3840 (tui_setup_io): Rename extern declaration readline_echoing_p to
3841 _rl_echoing_p. Adjust assignments for the both renames.
3842
1f84b619
TJB
38432011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3844
3845 * symtab.c (lookup_symtab): Run cleanup before returning.
3846
74ac6d43
TT
38472011-05-11 Tom Tromey <tromey@redhat.com>
3848
3849 * dwarf2read.c (handle_data_member_location): New function.
3850 (dwarf2_add_field): Use it.
3851 (read_common_block): Likewise.
3852
5488dafb
JK
38532011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 Make addrs->SECTINDEX always defined.
3856 * symfile.c (relative_addr_info_to_section_offsets): Check for
3857 SECTINDEX -1, not for zero ADDR.
3858 (addrs_section_compar): Remove checking for invalid SECTINDEX.
3859 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3860 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3861 on its validity.
3862
84e578fb
DE
38632011-05-10 Doug Evans <dje@google.com>
3864
2471d008
DE
3865 * linux-thread-db.c: Whitespace cleanup.
3866 (try_thread_db_load_1): Fix comment.
3867
84e578fb
DE
3868 * linux-thread-db.c (set_libthread_db_search_path): New function.
3869 (_initialize_thread_db): Add setter for libthread-db-search-path.
3870
673c2bbe
DE
38712011-05-09 Doug Evans <dje@google.com>
3872
478aac75
DE
3873 * NEWS: Mention --with-iconv-bin.
3874 * configure.ac: New option --with-iconv-bin.
3875 * configure: Regenerate.
3876 * config.in: Regenerate.
3877 * defs.h (relocate_gdb_directory): Declare.
3878 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3879 removed progname parameter, and exported. All callers updated.
3880 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3881
673c2bbe
DE
3882 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3883 adding missing call to restore_child_signals_mask.
3884
e4c8541f
PA
38852011-05-09 Pedro Alves <pedro@codesourcery.com>
3886
3887 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3888 parameter.
3889 * infrun.c (proceed, start_remote): Adjust.
3890 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3891 and adjust to not handle it.
3892 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3893 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3894 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3895 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3896 * windows-nat.c (do_initial_windows_stuff): Adjust.
3897 * infcmd.c (attach_command): Adjust.
3898 (notice_new_inferior): Adjust.
3899
a536c6d7
UW
39002011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3901
3902 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3903 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3904 * spu-tdep.c (op_selb): Use correct value.
3905
7845b013
UW
39062011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3907
3908 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3909 "parent" parameter to symbol_file_add_from_bfd call.
3910
9c06b0b4
TJB
39112011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3912 Thiago Jung Bauermann <bauerman@br.ibm.com>
3913
3914 Implement support for PowerPC BookE masked watchpoints.
3915 * NEWS: Mention masked watchpoint support. Create "Changed commands"
3916 section.
3917 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3918 method. Initialize to NULL in all existing breakpoint_ops instances.
3919 (struct breakpoint) <hw_wp_mask>: New field.
3920 * breakpoint.c (is_masked_watchpoint): Add prototype.
3921 (update_watchpoint): Don't set b->val for masked watchpoints. Call
3922 breakpoint's breakpoint_ops.works_in_software_mode if available.
3923 (watchpoints_triggered): Handle the case of a hardware masked
3924 watchpoint trigger.
3925 (watchpoint_check): Likewise.
3926 (works_in_software_mode_watchpoint): New function.
3927 (insert_masked_watchpoint, remove_masked_watchpoint)
3928 (resources_needed_masked_watchpoint)
3929 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3930 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3931 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3932 functions.
3933 (masked_watchpoint_breakpoint_ops): New structure.
3934 (watch_command_1): Check for the existence of the `mask' parameter.
3935 Set b->ops according to the type of hardware watchpoint being created.
3936 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3937 (ppc_linux_remove_mask_watchpoint)
3938 (ppc_linux_masked_watch_num_registers): New functions.
3939 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3940 to_remove_mask_watchpoint and to_masked_watch_num_registers.
3941 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3942 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3943 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3944 (target_masked_watch_num_registers): New functions.
3945 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3946 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3947 methods.
3948 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3949 (target_masked_watch_num_registers): Add prototypes.
3950
8be455d7
JK
39512011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3952
3953 PR 12573
3954 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3955 (producer_is_gcc_ge_4_0): New function.
3956 (process_full_comp_unit): Set also symtab->locations_valid. Move the
3957 symtab->language code.
3958 (var_decode_location): Set cu->has_loclist.
3959 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3960 skip. Intialize force_skip from locations_valid. Move the prologue
3961 skipping code into two passes.
3962 * symtab.h (struct symtab): Make the primary field a bitfield. New
3963 field locations_valid.
3964
d8228535
JK
39652011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3966
3967 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3968 (classify_inner_name): Call cp_lookup_nested_type with
3969 yylval.tsym.type.
3970 * cp-namespace.c (cp_lookup_nested_type): New variable
3971 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
3972 type_name_no_tag_or_error with saved_parent_type.
3973 * dwarf2read.c (load_partial_dies): Read in any children of
3974 DW_TAG_typedef with complaint in such case.
3975 * gdbtypes.c (type_name_no_tag_or_error): New function.
3976 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3977 * valops.c (destructor_name_p): New comment for parameter type. Remove
3978 type const. Make dname and cp const. Call type_name_no_tag_or_error.
3979 * value.h (destructor_name_p): Remove type const.
3980
1976171a
JK
39812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 * symtab.c (compare_symbol_name): New function.
3984 (completion_list_add_name, expand_partial_symbol_name): Call it,
3985 remove the variable ncmp.
3986 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3987 gdb_assert it.
3988
a9634178
TJB
39892011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3990
3991 Demote to sw watchpoint only in update_watchpoint.
3992 * breakpoint.c (update_watchpoint): Change between software and
3993 hardware watchpoint for all kinds of watchpoints, not just
3994 read/write ones. Determine b->exact value here instead of
3995 in watch_command_1. Error out if there are not enough resources
3996 for a read or access hardware watchpoint.
3997 (watch_command_1): Remove logic of checking whether there are
3998 enough resources available, since update_watchpoint will do that
3999 work now. Don't set b->exact here. Catch exceptions thrown by
4000 update_watchpoint and delete the watchpoint.
4001 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
4002 Use target_exact_watchpoints instead.
4003 (delete_breakpoint): Notify observers only if deleted watchpoint
4004 has a breakpoint number assigned to it.
4005
4c67c798
JJ
40062011-05-05 Janis Johnson <janisjo@codesourcery.com>
4007
4008 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4009
a3fcb948
JG
40102011-05-05 Jerome Guitton <guitton@adacore.com>
4011
4012 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
4013 New functions.
4014 (i386_stack_tramp_frame_unwind): New static global.
4015 (i386_match_pattern): New function, extracted from i386_match_insn.
4016 (i386_match_insn): Use i386_match_pattern.
4017 (i386_match_insn_block): New function.
4018 (i386_tramp_chain_in_reg_insns)
4019 (i386_tramp_chain_on_stack_insns): New static variables.
4020 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
4021 of unwinders.
4022
4d393d60
JM
40232011-05-04 Joseph Myers <joseph@codesourcery.com>
4024
4025 * configure.host (xscale*): Don't handle target.
4026 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
4027 handle targets.
4028
f70bd40b
YQ
40292011-05-04 Yao Qi <yao@codesourcery.com>
4030
4031 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
4032
dd3295ee
JB
40332011-05-03 Joel Brobecker <brobecker@adacore.com>
4034
4035 Revert:
4036 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
4037 | * elfread.c (elf_symtab_read): Stop memory leak.
4038
90375a0e
PM
40392011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4040
4041 * nto-tdep.c (nto_target): Replace deprecated call to
4042 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
4043
d07205c2
JK
40442011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4045
4046 Fix false GCC warning.
4047 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
4048
1e718ff1
TJB
40492011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4050
4051 * breakpoint.c (update_watchpoint): Move code to change
4052 the enable state of breakpoint from here ...
4053 (do_enable_breakpoint): ... to here.
4054
35bef4fd
TT
40552011-04-26 Andrew Gontarek <andrewg@cray.com>
4056
78290264
PP
4057 * valprint.c (val_print_array_elements): Fixed poor performance
4058 of printing very large arrays with repeat_count_threshold set
4059 to unlimited. New comment.
35bef4fd 4060
38a714bb
TT
40612011-04-29 Tom Tromey <tromey@redhat.com>
4062
4063 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
4064 (mi_parse): Likewise.
4065 * breakpoint.c (break_range_command): Use sizeof char*, not
4066 char**.
4067 (create_breakpoint): Likewise.
4068 (parse_breakpoint_sals): Likewise.
4069
eb73ad13
PA
40702011-04-29 Pedro Alves <pedro@codesourcery.com>
4071
4072 * linux-nat.c (linux_child_remove_fork_catchpoint)
4073 (linux_child_remove_vfork_catchpoint)
4074 (linux_child_remove_exec_catchpoint): New functions.
4075 (linux_target_install_ops): Install them.
4076
d65aec65
PM
40772011-04-29 Phil Muldoon <pmuldoon@redhat.com>
4078
4079 PR mi/12531
4080
4081 * varobj.c (install_default_visualizer): Do not install a
4082 visualizer if the varobj is CPLUS_FAKE_CHILD.
4083 (construct_visualizer): Likewise.
4084
165195f4
JK
40852011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
4088 case insensitive comparison.
4089
30852783
UW
40902011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
4091
4092 * infrun.c (proceed): Revert previous change.
4093 (resume): Instead, handle the case of signal delivery while stepping
4094 off a breakpoint location here, and only if software single-stepping
4095 is used. Handle nested signals.
4096
7ff120b4
YQ
40972011-04-28 Yao Qi <yao@codesourcery.com>
4098
4099 * arm-tdep.c (copy_unmodified): Rename to ...
4100 (arm_copy_unmodified): .. this. New.
4101 (copy_preload): Move common part to ...
4102 (install_preload): .. this. New.
4103 (arm_copy_preload): New.
4104 (copy_preload_reg): Move common part to ...
4105 (install_preload_reg): ... this. New.
4106 (arm_copy_preload_reg): New.
4107 (copy_b_bl_blx): Move common part to ...
4108 (install_b_bl_blx): .. this. New.
4109 (arm_copy_b_bl_blx): New.
4110 (copy_bx_blx_reg): Move common part to ...
4111 (install_bx_blx_reg): ... this. New.
4112 (arm_copy_bx_blx_reg): New.
4113 (copy_alu_reg): Move common part to ...
4114 (install_alu_reg): ... this. New.
4115 (arm_copy_alu_reg): New.
4116 (copy_alu_shifted_reg): Move common part to ...
4117 (install_alu_shifted_reg): ... this. New.
4118 (copy_ldr_str_ldrb_strb): Move common part to ...
4119 (install_ldr_str_ldrb_strb): ... this. New.
4120 (arm_copy_ldr_str_ldrb_strb): New.
4121 (copy_copro_load_store): Move some common part to ...
4122 (install_copy_copro_load_store): ... this. New.
4123 (arm_copy_copro_load_store): New.
4124 (copy_svc): Delete.
4125 (arm_copy_svc): Renamed from copy_svc.
4126 (copy_undef): Delete.
4127 (arm_copy_undef): Renamed from copy_undef.
4128 (decode_ext_reg_ld_st): Delete.
4129 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4130 (decode_svc_copro): Delete.
4131 (arm_decode_svc_copro): Renamed from decode_svc_copro.
4132 (copy_copro_load_store, copy_alu_imm): update callers.
4133 (copy_extra_ld_st, copy_block_xfer): Likewise.
4134 (decode_misc_memhint_neon, decode_unconditional): Likewise.
4135 (decode_miscellaneous, decode_dp_misc): Likewise.
4136 (decode_ld_st_word_ubyte, decode_media): Likewise.
4137 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
4138 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
4139 (decode_unconditional, decode_miscellaneous): Likewise.
4140 (decode_media, decode_b_bl_ldmstm): Likewise.
4141 (arm_process_displaced_insn): Likewise..
4142 (decode_misc_memhint_neon): Delete.
4143 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
4144 (decode_miscellaneous): Delete.
4145 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
4146 (decode_dp_misc): Delete.
4147 (arm_decode_dp_misc): Renamed from decode_dp_misc.
4148 (decode_ld_st_word_ubyte): Delete.
4149 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
4150 (decode_media): Delete.
4151 (arm_decode_media): Renamed from decode_media.
4152 (decode_b_bl_ldmstm): Delete.
4153 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
4154 (decode_ext_reg_ld_st): Delete.
4155 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
4156 (decode_unconditional): Delete.
4157 (arm_decode_unconditional): Renamed from decode_unconditional.
4158
559a7a62
JK
41592011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 Case insensitive lookups implementation.
4162 * dwarf2read.c: Include ctype.h.
4163 (struct mapped_index): New field version.
4164 (mapped_index_string_hash): New parameter index_version. New comment
4165 for it. Call tolower appropriately.
4166 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
4167 Choose the right index version for mapped_index_string_hash.
4168 (dwarf2_read_index): Support also the index version 5. Initialize the
4169 new struct mapped_index field version.
4170 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
4171 (find_slot): Explain the version needs. Pass INT_MAX for the new
4172 parameter.
4173 (write_psymtabs_to_index): Produce version 5.
4174 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
4175 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
4176 * psymtab.c (lookup_partial_symbol): Find the
4177 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
4178 entries.
4179 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
4180 NAME lowercasing.
4181 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
4182 (completion_list_add_name): New variable ncmp, initialize it, use it.
4183 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
4184 * utils.c (strcmp_iw): Support case_sensitive_off.
4185 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
4186 New function comment part. New variables saved_string1,
4187 saved_string2 and case_pass. Add a proper second pass.
4188
681bf369
JK
41892011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4190
4191 Replace re_comp/re_exec by regcomp/regexec.
4192 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
4193 (search_symbols_name_matches): Use them, use regexec.
4194 (search_symbols): New variable retval_chain, adjust the use of
4195 old_chain against it. Replace re_comp by regcomp. Use the new struct
4196 search_symbols_data fields, use regexec instead of re_exec.
4197
b11b1f88
JK
41982011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 Format the code for the next patch.
4201 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
4202 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
4203 New variables c1 and c2.
4204
2484c66b
UW
42052011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4206
4207 * infrun.c (proceed): Do not single-step into signal delivery
4208 when stepping off a breakpoint location.
4209 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
4210 (insert_step_resume_breakpoint_at_caller): Likewise.
4211 (insert_step_resume_breakpoint_at_sal): Likewise.
4212 (insert_longjmp_resume_breakpoint): Likewise.
4213
47423772
YQ
42142011-04-27 Yao Qi <yao@codesourcery.com>
4215
4216 * common/linux-ptrace.h: Remove include <sys/wait.h>.
4217
13bdd2e7
JB
42182011-04-27 Joel Brobecker <brobecker@adacore.com>
4219
4220 * procfs.c (procfs_pass_signals): Fix advance declaration.
4221
2455069d
UW
42222011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
4223
4224 * target.h (struct target_ops): Remove to_notice_signals;
4225 add to_pass_signals.
4226 (target_notice_signals): Remove.
4227 (target_pass_signals): Add prototype.
4228 * target.c (update_current_target): Remove to_notice_signals;
4229 mention to_pass_signals.
4230 (target_pass_signals): New function.
4231 (debug_to_notice_signals): Remove.
4232 (setup_target_debug): Do not install debug_to_notice_signals.
4233
4234 * infrun.c (signal_pass): New global.
4235 (resume): Call target_pass_signals.
4236 (handle_inferior_event): Report all signals while stepping over
4237 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
4238 are re-inserted when stepping over a signal handler.
4239 (signal_cache_update): New function.
4240 (signal_stop_update): Call it.
4241 (signal_print_update): Likewise.
4242 (signal_pass_update): Likewise.
4243 (handle_command): Call signal_cache_update and target_pass_signals
4244 instead of target_notice_signals.
4245 (_initialize_infrun): Initialize signal_pass.
4246
4247 * linux-nat.c (pass_mask): New global.
4248 (linux_nat_pass_signals): New function.
4249 (linux_nat_create_inferior): Report all signals initially.
4250 (linux_nat_attach): Likewise.
4251 (linux_nat_resume): Use pass_mask to decide whether to directly
4252 handle an inferior signal.
4253 (linux_nat_wait_1): Likewise.
4254 (linux_nat_add_target): Install to_pass_signals callback.
4255
4256 * nto-procfs.c (notice_signals): Remove.
4257 (procfs_resume): Do not call notice_signals.
4258 (procfs_notice_signals): Remove.
4259 (procfs_pass_signals): New function.
4260 (init_procfs_ops): Install to_pass_signals callback instead of
4261 to_notice_signals callback.
4262 (_initialize_procfs): Report all signals initially.
4263
4264 * procfs.c (procfs_notice_signals): Remove.
4265 (procfs_pass_signals): New function.
4266 (procfs_target): Install to_pass_signals callback instead of
4267 to_notice_signals callback.
4268 (register_gdb_signals): Remove.
4269 (procfs_debug_inferior): Report all signals initially.
4270 (procfs_init_inferior): Remove redundant register_gdb_signals call.
4271
4272 * remote.c (remote_pass_signals): Add numsigs and pass_signals
4273 parameters; use them instead of calling signal_..._state routines.
4274 (remote_notice_signals): Remove.
4275 (remote_start_remote): Report all signals initially.
4276 (remote_resume): Do not call remote_pass_signals.
4277 (_initialize_remote): Install to_pass_signals callback instead of
4278 to_notice_signals callback.
4279
46c6471b
PA
42802011-04-27 Pedro Alves <pedro@codesourcery.com>
4281
4282 * breakpoint.c (user_settable_breakpoint): Delete.
4283 (user_breakpoint_p): Remove check on user_settable_breakpoint.
4284 (delete_command): Check user_breakpoint_p instead of looking at
4285 the breakpoint's type.
4286 (disable_command): Ditto.
4287 (enable_command): Ditto.
4288 (delete_trace_command): Use user_breakpoint_p instead of looking
4289 at the breakpoint number directly. When checking if there are
4290 user visible tracepoints, in order to know whether to ask the user
4291 for confirmation, check whether the breakpoint is actually a
4292 tracepoint.
4293
f6d90398
VP
42942011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4295
4296 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
4297 compilation.
4298
8d3788bd
VP
42992011-04-27 Vladimir Prus <vladimir@codesourcery.com>
4300
4301 MI breakpoint notifications.
4302
f33edef8
PP
4303 * annotate.c (breakpoint_changed): Adjust parameter type.
4304 * breakpoint.c (set_breakpoint_condition): Adjust to change
4305 in breakpoint_modified type.
4306 (breakpoint_set_commands): Likewise.
4307 (do_map_commands_command): Likewise.
4308 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
4309 changed after bumping hit count.
4310 (bpstat_stop_status): Likewise.
4311 (print_one_breakpoint_location): Don't wrap in tuple here.
4312 (print_one_breakpoint): Always print individual locations.
4313 For locations, use unnamed tuple.
4314 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
4315 has changed.
4316 (create_catchpoint, create_syscall_event_catchpoint): Call
4317 breakpoint_created obsever.
4318 (mention): Don't call breakpoint_created observer.
4319 (create_breakpoint_sal): Call breakpoint_created observer.
4320 (create_breakpoint, watch_command_1): Likewise.
4321 (create_ada_exception_breakpoint): Likewise.
4322 (delete_breakpoint): Call breakpoint_deleted breakpoint.
4323 (locations_are_equal): New.
4324 (update_breakpoint_locations): If locations were changed, notify.
4325 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
4326 Call breakpoint_modified observer.
4327
4328 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4329 (mi_cmd_break_insert): Don't set observers for modify and delete.
4330 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
4331 (mi_breakpoint_created, mi_breakpoint_deleted)
4332 (mi_breakpoint_modified): New.
4333 (mi_interpreter_init): Hook the above.
4334 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
4335 while -break-* commands are executing.
4336 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
4337 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
4338 (mi_redirect): New.
4339 (mi_ui_out_impl): Hook in mi_redirect.
4340 (mi_field_skip): True to the name, skip the field, don't output
4341 a field with an empty value.
4342
4343 * python/py-breakpoint.c (gdbpy_breakpoint_created)
4344 (gdbpy_breakpoint_deleted): Adjust.
4345 * tui/tui-hooks.c (tui_event_create_breakpoint)
4346 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 4347
a8f42b45
UW
43482011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
4349
4350 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
4351 (procfs_remove_hw_watchpoint): Likewise.
4352
57e12211
TT
43532011-04-26 Michael Walle <michael@walle.cc>
4354
4355 * remote.c (remote_start_remote): Ack packet after sending the
4356 interrupt sequence.
4357
af96c192
YQ
43582011-04-26 Yao Qi <yao@codesourcery.com>
4359
f33edef8
PP
4360 * linux-nat.c: Move common macros to ...
4361 Include linux-ptrace.h.
4362 * common/linux-ptrace.h: ... here. New.
af96c192 4363
3e03848b
JK
43642011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
4367 !objfile_has_partial_symbols. New comment.
4368 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
4369 SYM_READ_PSYMBOLS is not present. Extend the comment.
4370 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
4371
1ae0d051
JK
43722011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4373
4374 * defs.h (ENUM_BITFIELD): Remove.
4375
03f2bd59
JK
43762011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4377 Eli Zaretskii <eliz@gnu.org>
4378
4379 * NEWS: Document the new gdbserver --once option.
4380
4161fbb0
JZ
43812011-04-21 Jie Zhang <jzhang918@gmail.com>
4382
4383 * MAINTAINERS: Update my email address.
4384
bcb28afc
PM
43852011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4386
4387 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
4388 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
4389 function call if __STDC_ISO_10646__ macro is defined.
4390 (intermediate_encoding): New prototype.
4391 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
4392 to generate compile time error for unsupported gdb_wchar_t size.
4393 (ENDIAN_SUFFIX): New macro.
4394 (intermediate_encoding): New function.
4395
7b08b9eb
JK
43962011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 * ada-lang.c (struct add_partial_datum): Update the comment for
4399 expand_partial_symbol_name.
4400 (ada_add_partial_symbol_completions): Rename to ...
4401 (ada_expand_partial_symbol_name): ... here, change return type, update
4402 function comment, call symbol_completion_match instead of
4403 symbol_completion_add.
4404 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
4405 and ada_expand_partial_symbol_name.
4406 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
4407 FILE_MATCHER.
4408 (dw2_map_symbol_names): Remove.
4409 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4410 * psymtab.c (map_symbol_names_psymtab): Remove.
4411 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4412 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
4413 order.
4414 (psym_functions): Unlist map_symbol_names_psymtab.
4415 (map_partial_symbol_names): Rename to ...
4416 (expand_partial_symbol_names): ... here, change the FUN type, call
4417 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4418 * psymtab.h (map_partial_symbol_names): Rename to ...
4419 (expand_partial_symbol_names): ... here, change the FUN type.
4420 * symfile.h (struct quick_symbol_functions): Update the description of
4421 expand_symtabs_matching. Remove map_symbol_names.
4422 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4423 (struct add_name_data): Update the comment for
4424 expand_partial_symbol_name.
4425 (add_partial_symbol_name): Rename to ...
4426 (expand_partial_symbol_name): ... here. Replace
4427 completion_list_add_name call by strncmp.
4428 (default_make_symbol_completion_list_break_on): Use now
4429 expand_partial_symbol_names and expand_partial_symbol_name.
4430 * symtab.h (enum search_domain): New element ALL_DOMAIN.
4431
90476074
TT
44322011-04-20 Tom Tromey <tromey@redhat.com>
4433
4434 * dwarf2read.c (save_gdb_index_command): Replace format
4435 documentation with a pointer to the manual.
4436
c21236dc
PA
44372011-04-20 Pedro Alves <pedro@codesourcery.com>
4438
4439 * regcache.c: Include remote.h.
4440 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4441 (regcache_dump): Handle regcache_dump_remote.
4442 (maintenance_print_remote_registers): New function.
4443 (_initialize_regcache): Install "maint print remote-registers"
4444 command.
4445 * remote.c (map_regcache_remote_table): New function, factored out
4446 from ...
4447 (init_remote_state): ... here.
4448 (remote_register_number_and_offset): New.
4449 * remote.h (remote_register_number_and_offset): Declare.
4450
b78974c3
PA
44512011-04-20 Pedro Alves <pedro@codesourcery.com>
4452
4453 * regcache.c (get_thread_arch_regcache): If creating a regcache for
4454 null_ptid, assume and allow a NULL address space, instead of
4455 asking the target for the ptid's address space.
4456 * infrun.c (ptid_is_pid): Remove assertion.
4457
7a9dd1b2
TT
44582011-04-19 Tom Tromey <tromey@redhat.com>
4459
4460 * windows-tdep.c (windows_xfer_shared_library):
4461 * windows-nat.c (get_module_name, windows_make_so):
4462 * v850-tdep.c (v850_handle_pushm):
4463 * utils.c (null_cleanup, gdb_realpath):
4464 * ui-out.c (get_next_header):
4465 * tracepoint.c (clear_traceframe_info):
4466 * symtab.c (lookup_symtab):
4467 * serial.h (struct serial_ops):
4468 * mipsread.c (read_alphacoff_dynamic_symtab):
4469 * infcmd.c (print_return_value):
4470 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4471 * f-exp.y (parse_number):
4472 * exceptions.c (catch_exceptions):
4473 * dummy-frame.c (dummy_frame_this_id):
4474 * defs.h (struct cleanup):
4475 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4476 * arm-tdep.c (arm_push_dummy_call):
4477 * amd64-tdep.h (amd64_collect_xsave):
4478 * amd64-tdep.c (amd64_collect_xsave):
4479 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4480 * README (typing): Remove duplicate words.
4481 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4482 * infrun.c (siginfo_value_read): Fix typo.
4483 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4484 * top.c (source_line_number): Add comma.
4485
9941e0c5
MK
44862011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
4487
4488 * thread.c (any_live_thread_of_process): Prioritize threads
4489 that are not executing.
4490 * gdbthread.h (any_live_thread_of_process): Update comment
4491 as per above change.
4492
ed4b0e6a
AS
44932011-04-19 Andreas Schwab <schwab@linux-m68k.org>
4494
4495 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4496 (scan_xcoff_symtab): Likewise.
4497
9b13a2db
PM
44982011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4499
4500 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4501 inside if clause.
4502
1c6e1b0d
PM
45032011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4504 Pedro Alves <pedro@codesourcery.com>
4505
4506 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4507 variables to simplify code and avoid == operator at end of
4508 line as this is against GNU coding standards.
4509
74de0234
PM
45102011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4511
4512 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4513 lm_name to name_lm to avoid conflict with lm_name function.
4514
b23518f0
PM
45152011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4516
4517 ARI fixes: Use only lowercase function name for static functions.
4518 * nto-tdep.c (LM_ADDR): Rename to...
4519 (lm_addr): New function name.
4520 (nto_relocate_section_addresses): Adapt to change above.
4521 * solib-sunos.c (LM_ADDR): Rename to...
4522 (lm_addr): New function name.
4523 (LM_NEXT): Rename to...
4524 (lm_next): New function name.
4525 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4526 function name changes above.
4527 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4528 (lm_addr_from_link_map): New function name.
4529 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4530 (has_lm_dynamic_from_link_map): New function name.
4531 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4532 (lm_dynamic_from_link_map): New function name.
4533 (LM_ADDR_CHECK): Rename to...
4534 (lm_addr_check): New function name.
4535 (LM_NEXT): Rename to...
4536 (lm_next): New function name.
4537 (LM_PREV): Rename to...
4538 (lm_prev): New function name.
4539 (LM_NAME): Rename to...
4540 (lm_name): New function name.
4541 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4542 (ignore_first_link_map_entry): New function name.
4543 (svr4_keep_data_in_core): Adapt to function name changes above.
4544 (svr4_current_sos): Likewise.
4545 (enable_break): Likewise.
4546 (svr4_relocate_section_addresses): Likewise.
4547
1448a0a2
PM
45482011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4549
4550 ARI cleanup.
4551 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4552 sprintf. Simplify code and avoid loosing memory.
4553 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4554 (call0_frame_cache): Remove && operator from end of line.
4555
02835898
JK
45562011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4557
4558 Fix libraries displacement if they change whether they were prelinked.
4559 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4560 does not match. Comment why.
4561
9a845ea2
JK
45622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4563
4564 * corelow.c: Include wrapper.h.
4565 (core_open): Call now gdb_target_find_new_threads.
4566 * wrapper.c: Include target.h.
4567 (gdb_target_find_new_threads): New.
4568 * wrapper.h (gdb_target_find_new_threads): New declaration.
4569
254f582e
JK
45702011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4571
4572 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4573 even if !TARGET_HAS_EXECUTION.
4574
63524580
JK
45752011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4576
4577 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4578 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4579 bfd_get_synthetic_symtab.
4580 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4581 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4582 parameter parent, remove the call to add_separate_debug_objfile.
4583 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4584 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4585 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4586 parent, new comment for it, call add_separate_debug_objfile for it.
4587 (symbol_file_add_separate): Pass objfile as the parameter parent,
4588 remove the call to add_separate_debug_objfile.
4589 (symbol_file_add_from_bfd): New parameter parent, pass it.
4590 (symbol_file_add): Pass NULL to the new parameter parent.
4591 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4592
90359a16
JK
45932011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4594
4595 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4596 BSF_SYNTHETIC.
4597
626e7282
JK
45982011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 Fix Python access to inlined frames.
4601 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4602 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4603
cf31e6f9
TT
46042011-04-15 Tom Tromey <tromey@redhat.com>
4605
4606 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4607
c8d895f1
GB
46082011-04-15 Gary Benson <gbenson@redhat.com>
4609
4610 * MAINTAINERS: Add myself to write-after-approval section.
4611
56a9aa1d
MF
46122011-04-14 Mike Frysinger <vapier@gentoo.org>
4613
4614 * remote-sim.c (sim_command_completer): New function.
4615 (_initialize_remote_sim): Set completer to sim_command_completer.
4616
ba770c9c
TJB
46172011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4618
4619 * breakpoint.c (print_exception_catchpoint): Rename to ...
4620 (print_it_exception_catchpoint): ... this.
4621 (gnu_v3_exception_catchpoint_ops): Update with new name
4622 for print_it_exception_catchpoint.
4623
51bf2553
EBM
46242011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
4625
4626 * MAINTAINERS: Add myself for write after approval privileges.
4627
d242658c
MP
46282011-04-13 Marek Polacek <mpolacek@redhat.com>
4629
4630 * MAINTAINERS: Add myself as a write-after-approval maintainer.
4631
4a4106ca
TJB
46322011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4633
4634 * breakpoint.c (watch_command_1): Remove colon from exp_string.
4635
26063d49
TJB
46362011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
4637
4638 * breakpoint.c (save_breakpoints): Verify whether
4639 breakpoint_ops.print_recreate is defined before calling it.
4640
7782b183
GB
46412011-04-11 Gary Benson <gbenson@redhat.com>
4642
4643 Fix failure with --enable-maintainer-mode.
4644 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4645
e8930875
JK
46462011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4647
4648 Code cleanup.
4649 * symtab.c (search_symbols): Reorder the KIND description in the
4650 function comment. Remove the unused 4th element of types, types2,
4651 types3 and types4. New gdb_assert on KIND.
4652 (symtab_symbol_info): Remove the unused 4th element of classnames.
4653 New gdb_assert on KIND.
4654 * symtab.h (enum search_domain): New warning in the enum comment.
4655 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4656 TYPES_DOMAIN.
4657
b4f2f049
JK
46582011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4659
4660 Fix crash of gdb save-index on a STABS file.
4661 * dwarf2read.c (write_psymtabs_to_index): Return also on no
4662 PSYMTABS_ADDRMAP.
4663
60d5a603
JK
46642011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4665
4666 Fix DW_AT_accessibility compatibility with gcc-4.6+.
4667 * dwarf2read.c: Include ctype.h.
4668 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4669 functions.
4670 (dwarf2_add_field): Fix new_field->accessibility by calling
4671 dwarf2_default_access_attribute. Restructure setting accessibility
4672 vs. virtuality.
4673 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
4674 is_private and is_protected by calling
4675 dwarf2_default_access_attribute.
4676
e0f68161
KB
46772011-04-08 Kevin Buettner <kevinb@redhat.com>
4678
4679 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4680 to the initialization.
4681
2e1aae43
SE
46822011-04-08 Steve Ellcey <sje@cup.hp.com>
4683
4684 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4685 initalization.
4686
c6ca3dab
PM
46872011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
4688
4689 Remove support for old Cygwin 1.5 versions.
4690 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4691 function on old Cygwin version.
4692 * windows-nat.c: Remove cygwin version check and always define
4693 __USEWIDE for Cygwin compilation.
4694
bd18283a
YQ
46952011-04-07 Yao Qi <yao@codesourcery.com>
4696
4697 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4698 and TO.
4699 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4700 (arm_copy_svc): Remove parameters INSN and TO.
4701 (decode_svc_copro): Update caller.
4702 * arm-tdep.h (struct displaced_step_closure): Remove parameters
4703 from function pointer `copy_svc_os'.
4704
8c8dba6d
YQ
47052011-04-07 Yao Qi <yao@codesourcery.com>
4706
4707 * arm-tdep.c (cleanup_branch): Set a correct return address in
4708 LR for ARM and Thumb.
4709
59d7bcaf
JK
47102011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4711
4712 Code cleanup.
4713 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4714 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4715 in the function comment, a new note on values compatibility.
4716 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4717 * symtab.h (SYMBOL_HASH_NEXT): New.
4718
e7db58ea
TJB
47192011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
4720
4721 * ppc-linux-nat.c (check_condition): Add len output parameter.
4722 Set it based on the memory region referenced in the condition
4723 expression. Update all callers.
4724
9f743ef6
JK
47252011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4726
4727 Fix crash regression on systems featuring .gdb_index.
4728 * objfiles.c (free_objfile): Move the
4729 forget_cached_source_info_for_objfile call earlier. Comment it.
4730 Extend the comment for objfile_free_data.
4731
9182c5bc
JK
47322011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4733
4734 Fix regression of displaying the debug format.
4735 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4736 subfile.
4737
04bd08de
TT
47382011-04-04 Tom Tromey <tromey@redhat.com>
4739
4740 * cli/cli-interp.c (struct captured_execute_command_args):
4741 Remove.
4742 (do_captured_execute_command): Remove.
4743 (safe_execute_command): Use TRY_CATCH.
4744 * cli/cli-script.c (struct wrapped_read_command_file_args):
4745 Remove.
4746 (wrapped_read_command_file): Remove.
4747 (script_from_file): Use TRY_CATCH.
4748 * exceptions.c (catch_exception): Remove.
4749 * exceptions.h (catch_exception): Remove.
4750 (deprecated_throw_reason): Update comment.
4751 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4752 argument to 'context'.
4753 (mi_execute_command): Use TRY_CATCH.
4754 * remote.c (struct start_remote_args): Remove.
4755 (remote_start_remote): Update; change arguments.
4756 (remote_open_1): Use TRY_CATCH.
4757
58438ac1
TT
47582011-04-04 Tom Tromey <tromey@redhat.com>
4759
4760 * tracepoint.c (scope_info): Update.
4761 * symtab.c (decode_line_spec): Update.
4762 * python/python.c (gdbpy_decode_line): Update.
4763 * linespec.h (decode_line_1): Update.
4764 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4765 (decode_compound, find_method, symtab_from_filename)
4766 (decode_variable): Likewise.
4767 * cli/cli-cmds.c (edit_command): Update.
4768 (list_command): Update.
4769 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4770 argument.
4771 (create_breakpoint): Update.
4772 (until_break_command): Update.
4773 (addr_string_to_sals): Update.
4774 (decode_line_spec_1): Update.
4775
b78a6381
TT
47762011-04-04 Tom Tromey <tromey@redhat.com>
4777
4778 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4779 (do_captured_parse_breakpoint): Remove.
4780 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
4781 Use TRY_CATCH directly.
4782
00174a86
TT
47832011-04-04 Tom Tromey <tromey@redhat.com>
4784
4785 * symtab.h (free_symtab): Remove.
4786 (forget_cached_source_info_for_objfile): Declare.
4787 * symmisc.c (free_symtab): Remove.
4788 * source.c (forget_cached_source_info_for_objfile): New function.
4789 (forget_cached_source_info): Use it.
4790 * objfiles.c (free_objfile): Simplify check before calling
4791 clear_current_source_symtab_and_line. Call
4792 forget_cached_source_info_for_objfile.
4793
30cc903e
TT
47942011-04-04 Tom Tromey <tromey@redhat.com>
4795
4796 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4797 (new_symtab): Don't set `free_code' on symtab.
4798 (new_linetable): Properly handle size==0.
4799 * symtab.h (struct symtab) <free_code, free_func>: Remove.
4800 * symmisc.c (free_symtab): Don't free the linetable. Don't call
4801 free_func.
4802 * jv-lang.c (struct jv_per_objfile_data): New.
4803 (jv_per_objfile_free): Free the data.
4804 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4805 (get_java_class_symtab): Set the `dict' field on the
4806 jv_per_objfile_data.
4807 (free_class_block): Remove.
4808 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4809 the symtab.
4810
0c2e6019
TT
48112011-04-04 Tom Tromey <tromey@redhat.com>
4812
4813 * symfile.c (reread_symbols): Update.
4814 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4815 field.
4816 * objfiles.c (allocate_objfile): Update.
4817 * cp-support.h (cp_check_possible_namespace_symbols): Don't
4818 declare.
4819 * cp-namespace.c (lookup_symbol_file): Don't call
4820 lookup_possible_namespace_symbol.
4821 (initialize_namespace_symtab, get_possible_namespace_block)
4822 (free_namespace_block, cp_check_possible_namespace_symbols)
4823 (check_possible_namespace_symbols_loop)
4824 (check_one_possible_namespace_symbol)
4825 (lookup_possible_namespace_symbol): Remove.
4826 (maintenance_cplus_namespace): Replace with notice.
4827 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4828
554d387d
TT
48292011-04-04 Tom Tromey <tromey@redhat.com>
4830
4831 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4832 * symtab.h (struct symtab) <producer, debugformat>: Now const.
4833 * symmisc.c (free_symtab): Don't free debugformat.
4834 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4835 (record_debugformat, record_producer): Document.
4836 * buildsym.c (end_symtab): Don't save debugformat and producer
4837 names on obstack.
4838 (end_symtab): Don't free debugformat and producer fields.
4839 (record_debugformat): Don't call xstrdup.
4840 (record_producer): Likewise.
4841
d4d4db8a
TT
48422011-04-04 Tom Tromey <tromey@redhat.com>
4843
4844 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4845 (source_line_charpos, source_charpos_line): Remove.
4846
8903c50d
TT
48472011-04-04 Tom Tromey <tromey@redhat.com>
4848
4849 * symtab.h (domain_enum): Split in two...
4850 (enum search_domain): New.
4851 (search_symbols): Update.
4852 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4853 redundant declarations.
4854 (search_symbols): Change 'kind' argument to search_domain.
4855 Update.
4856 (print_symbol_info): Likewise.
4857 (symtab_symbol_info): Likewise.
4858 * symfile.h (struct quick_symbol_functions)
4859 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4860 <expand_symtabs_matching>: Likewise.
4861 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4862 (expand_symtabs_matching_via_partial): Update.
4863 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4864 (dw2_expand_symtabs_for_function): Update.
4865 * block.h: Moved anonymous enum...
4866 * defs.h (enum block_enum): ... here. Now named.
4867
d9351f5f 48682011-04-03 Joel Brobecker <brobecker@adacore.com>
4869
4870 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4871 * version.in: Bump version to 7.3.50.20110403-cvs.
4872
d6e00af6
JB
48732011-04-03 Joel Brobecker <brobecker@adacore.com>
4874
4875 * NEWS: Create a new section for the next release branch.
4876 Rename the section of the current branch, now that it has
4877 been cut.
4878
2b9e5ea6
UW
48792011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4880
4881 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4882 for "fpscr" in target description.
4883
0cf03b49
JK
48842011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4887 initialize it. Delay HASH initialization. Strip the part after open
4888 parenthesis for languages with qualifiers. Call do_cleanups.
4889
5d901a73
TT
48902011-04-01 Tom Tromey <tromey@redhat.com>
4891
4892 * utils.c (report_command_stats): Don't print `-' for negative
4893 number.
4894
b0dd7688
JB
48952011-04-01 Eric Botcazou <ebotcazou@adacore.com>
4896
4897 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4898 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4899 typedefs.
4900
956a9fb9
JB
49012011-04-01 Joel Brobecker <brobecker@adacore.com>
4902
4903 * breakpoint.h (bpdisp_text): Add declaration.
4904 * breakpoint.c (bpdisp_text): Make non-static.
4905 * ada-lang.c: #include "mi/mi-common.h".
4906 (print_it_exception): Rewrite to improve GDB/MI output.
4907
3352110b
PA
49082011-04-01 Pedro Alves <pedro@codesourcery.com>
4909
4910 * arm-tdep.h (struct address_space): Add forward declaration.
4911
18819fa6
UW
49122011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
4913
4914 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4915 * arm-tdep.c (arm_override_mode): New global.
4916 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
4917 execution mode heuristics.
4918 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4919 second single-step breakpoint if needed, using
4920 arm_insert_single_step_breakpoint.
4921 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
4922 ARM execution mode, do not call thumb_get_next_pc_raw.
4923 (arm_get_next_pc): Encode execution mode in return value. Call
4924 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4925 (arm_insert_single_step_breakpoint): New function.
4926 (arm_software_single_step): Call it.
4927 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4928 argument to return execution mode of sigreturn target.
4929 (arm_linux_syscall_next_pc): Use it.
4930 (arm_linux_copy_svc): Update call.
4931 (arm_linux_software_single_step): Call
4932 arm_insert_single_step_breakpoint.
4933
a6e293d1
JK
49342011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4935
4936 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4937 the comment.
4938
a4c8e806
TT
49392011-03-31 Tom Tromey <tromey@redhat.com>
4940
4941 * varobj.c (update_dynamic_varobj_children): Properly handle
4942 errors from iterator.
4943
df5c6c50
JK
49442011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
4945
4946 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
4947 struct linkage name twice.
4948
1dae3efc
TT
49492011-03-31 Tom Tromey <tromey@redhat.com>
4950
4951 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4952 missing ">" to message.
4953
f4f7ab05
TT
49542011-03-31 Tom Tromey <tromey@redhat.com>
4955
4956 * varobj.c (instantiate_pretty_printer): Remove duplicate
4957 'return'.
4958
fcf250e2
UW
49592011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
4960
4961 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4962 if neither saved value nor register available (e.g. signal frame).
4963
ee6436e3
TJB
49642011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4965
4966 * macroexp.c (expand): Avoid uninitialized variable
4967 compiler warning.
4968
423f41a5
TJB
49692011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4970
4971 * breakpoint.c (break_range_command): Fix typo in comment.
4972
f1310107
TJB
49732011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4974 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4975
4976 Implement support for PowerPC BookE ranged breakpoints.
4977 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4978 * breakpoint.h (struct bp_target_info) <length>: New member
4979 variable.
4980 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4981 instead of struct breakpoint as argument, and also add ASPACE
4982 and BP_ADDR arguments. Update all callers.
4983 (struct breakpoint_ops) <print_one_detail>: New method.
4984 (struct breakpoint) <addr_string_range_end>: New member variable.
4985 * breakpoint.c (breakpoint_location_address_match): Add function
4986 prototype.
4987 (insert_bp_location): Set bl->target_info.length.
4988 (breakpoint_here_p): Call breakpoint_location_address_match.
4989 (moribund_breakpoint_here_p): Likewise.
4990 (regular_breakpoint_inserted_here_p): Likewise.
4991 (breakpoint_thread_match): Likewise.
4992 (bpstat_stop_status): Likewise.
4993 (bpstat_check_location): Move call to
4994 breakpoint_ops.breakpoint_hit to the top.
4995 (print_one_breakpoint_location): Call
4996 breakpoint_ops.print_one_detail if available.
4997 (breakpoint_address_match_range): New function.
4998 (breakpoint_location_address_match): Likewise.
4999 (breakpoint_locations_match): Compare the length field of the
5000 locations too.
5001 (hw_breakpoint_used_count): Count resources used by all locations
5002 in a breakpoint, and use breakpoint_ops.resources_needed if
5003 available.
5004 (breakpoint_hit_ranged_breakpoint): New function.
5005 (resources_needed_ranged_breakpoint): Likewise.
5006 (print_it_ranged_breakpoint): Likewise.
5007 (print_one_ranged_breakpoint): Likewise.
5008 (print_one_detail_ranged_breakpoint): Likewise.
5009 (print_mention_ranged_breakpoint): Likewise.
5010 (print_recreate_ranged_breakpoint): Likewise.
5011 (ranged_breakpoint_ops): New structure.
5012 (find_breakpoint_range_end): New function.
5013 (break_range_command): Likewise.
5014 (delete_breakpoint): Free addr_string_range_end.
5015 (update_breakpoint_locations): Add SALS_END argument. Update
5016 all callers. Calculate breakpoint length if a non-zero SALS_END
5017 is given. Call breakpoint_locations_match instead of
5018 breakpoint_address_match.
5019 (reset_breakpoint): Find SaL of the end of the range if B is a
5020 ranged breakpoint.
5021 (_initialize_breakpoint): Register break-range command.
5022 * defs.h (print_core_address): Add function prototype.
5023 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
5024 function.
5025 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
5026 (ppc_linux_remove_hw_breakpoint): Likewise.
5027 (_initialize_ppc_linux_nat): Initialize
5028 to_ranged_break_num_registers.
5029 * target.c (update_current_target): Add comment about
5030 to_ranged_break_num_registers.
5031 (target_ranged_break_num_registers): New function.
5032 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5033 New method.
5034 (target_ranged_break_num_registers): Add function prototype.
5035 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
5036 * utils.c (print_core_address): ... here.
5037
02d20e4a
UW
50382011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
5039
5040 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
5041 variable compiler warning.
5042
ef23e705
TJB
50432011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5044
5045 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
5046 code from here ...
5047 (re_set_breakpoint): ... to here ...
5048 (addr_string_to_sals): ... and here.
5049
311e6ab3
PM
50502011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5051
5052 * Makefile.in (SFILES): Add missing C sources.
5053 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
5054 Add missing headers.
5055
acd1d99c
MF
50562011-03-29 Mike Frysinger <vapier@gentoo.org>
5057
5058 * .gitignore: New file.
5059
66ee2731
MF
50602011-03-29 Mike Frysinger <vapier@gentoo.org>
5061
5062 * NEWS: Mention new cfi device simulation.
5063
53832f31
TT
50642011-03-29 Tom Tromey <tromey@redhat.com>
5065
5066 * dwarf2read.c (fixup_partial_die): Handle linkage name on
5067 otherwise anonymous types.
5068 (dwarf2_name): Likewise.
5069 * valops.c (value_struct_elt_for_reference): Refine artificial
5070 type logic. Call error if j==-1.
5071
09b58708
JK
50722011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
5073
5074 Fix false GCC warning.
5075 * infcall.c (find_function_addr): Initialize funaddr.
5076
6023c606
PM
50772011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
5078
5079 Fix mingw compilation with --enable-targets=all.
5080 * remote-mips.c (gdb_usleep.h): Include header.
5081 (mips_enter_debug): Use gdb_usleep instead of sleep.
5082
0e30163f
JK
50832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5084
5085 Support resolution of STT_GNU_IFUNC via breakpoints.
5086 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
5087 bp_gnu_ifunc_resolver_return.
5088 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
5089 the loop. Support bp_gnu_ifunc_resolver and
5090 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
5091 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
5092 breakpoints.
5093 (bptype_string, print_one_breakpoint_location): Support
5094 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
5095 (user_settable_breakpoint): Return true also for
5096 bp_gnu_ifunc_resolver.
5097 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
5098 bp_gnu_ifunc_resolver_return.
5099 (set_breakpoint_location_function): New parameter explicit_loc,
5100 describe it. Call find_pc_partial_function_gnu_ifunc with new
5101 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
5102 EXPLICIT_LOC is not set.
5103 (set_raw_breakpoint): Set EXPLICIT_LOC for
5104 set_breakpoint_location_function.
5105 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
5106 set_breakpoint_location_function.
5107 (mention): Support bp_gnu_ifunc_resolver and
5108 bp_gnu_ifunc_resolver_return.
5109 (add_location_to_breakpoint): Set EXPLICIT_LOC for
5110 set_breakpoint_location_function.
5111 (update_breakpoint_locations): Remove static.
5112 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
5113 bp_gnu_ifunc_resolver_return.
5114 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
5115 bp_gnu_ifunc_resolver_return.
5116 (update_breakpoint_locations): New declaration.
5117 * elfread.c: Include gdbthread.h and regcache.h.
5118 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
5119 functions.
5120 (elf_gnu_ifunc_fns): Install them.
5121 * minsyms.c (stub_gnu_ifunc_resolver_stop)
5122 (stub_gnu_ifunc_resolver_return_stop): New functions.
5123 (stub_gnu_ifunc_fns): Install them.
5124 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
5125 and gnu_ifunc_resolver_return_stop.
5126 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
5127
07be84bf
JK
51282011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5129
5130 STT_GNU_IFUNC reader implementation.
5131 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
5132 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
5133 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
5134 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
5135 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
5136 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
5137 (elf_gnu_ifunc_resolve_addr): New.
5138 (elf_symfile_read): Call elf_rel_plt_read.
5139 (elf_gnu_ifunc_fns): New.
5140 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
5141 Install elf_gnu_ifunc_fns.
5142 * infcall.c (find_function_return_type): New function.
5143 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
5144 * minsyms.c (stub_gnu_ifunc_resolve_addr)
5145 (stub_gnu_ifunc_resolve_name): New functions.
5146 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
5147 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
5148 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
5149
300f8e10
JK
51502011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5151
5152 Code cleanup for later STT_GNU_IFUNC support.
5153 * infcall.c (find_function_addr): Remove variable code, use explicit
5154 dereferences for it. Move VALUE_TYPE initialization later.
5155
11c81455
JK
51562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5157
5158 GDB find_pc_partial_function support for STT_GNU_IFUNC.
5159 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
5160 (clear_pc_function_cache): Clear it.
5161 (find_pc_partial_function): Rename to ...
5162 (find_pc_partial_function_gnu_ifunc): ... this function. New
5163 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
5164 (find_pc_partial_function): New wrapper for this function.
5165 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
5166
0875794a
JK
51672011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 GDB internal type support for STT_GNU_IFUNC.
5170 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
5171 (elf_symtab_read): Set mst_text_gnu_ifunc for
5172 BSF_GNU_INDIRECT_FUNCTION.
5173 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
5174 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
5175 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
5176 nodebug_got_plt_symbol.
5177 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
5178 (TYPE_GNU_IFUNC): New.
5179 (struct main_type): New field flag_gnu_ifunc.
5180 (struct builtin_type): New field builtin_func_func.
5181 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
5182 nodebug_got_plt_symbol.
5183 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
5184 (in_gnu_ifunc_stub): New.
5185 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
5186 mst_text_gnu_ifunc.
5187 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
5188 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
5189 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
5190 in_gnu_ifunc_stub.
5191 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
5192 * symtab.c (search_symbols): Likewise.
5193 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
5194 and mst_slot_got_plt.
5195 (in_gnu_ifunc_stub): New declaration.
5196
d0fb5eae
JK
51972011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5198
5199 Support a ring of related breakpoints.
5200 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
5201 other functions, add gdb_assert.
5202 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
5203 watchpoint_del_at_next_stop.
5204 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
5205 (bpstat_stop_status): Handle ring in related_breakpoint.
5206 (set_raw_breakpoint_without_location): Initialize ring in
5207 related_breakpoint.
5208 (delete_breakpoint): Handle ring in related_breakpoint, use
5209 watchpoint_del_at_next_stop.
5210 (map_breakpoint_numbers): Handle ring in related_breakpoint.
5211
9cded63f
TT
52122011-03-28 Tom Tromey <tromey@redhat.com>
5213
5214 PR symtab/12441:
5215 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
5216 with `language_minimal'.
5217
467d42c4
UW
52182011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
5219
5220 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
5221 instead of checking for STT_ARM_TFUNC symbol type.
5222
62853458
TT
52232011-03-25 Tom Tromey <tromey@redhat.com>
5224
5225 * linespec.c (symbol_found): Restore line-based result for
5226 non-LOC_LABEL symbols.
5227
a7417d46
KT
52282011-03-25 Kai Tietz <ktietz@redhat.com>
5229
5230 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
5231 instead of strcmp for comparison.
5232 (tui_source_is_displayed): Likewise.
5233 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
5234
55f1336d
TT
52352011-03-24 Mark Wielaard <mjw@redhat.com>
5236
f33edef8
PP
5237 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
5238 complaint.
5239 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5240 (find_partial_die_in_comp_unit): Likewise in comment.
5241 (read_attribute_value): Likewise.
5242 (lookup_die_type): Likewise.
5243 (dwarf_form_name): Likewise.
5244 (dump_die_shallow): Likewise.
5245 (follow_die_ref_or_sig): Likewise.
55f1336d 5246
9ef07c8c
TT
52472011-03-24 Tom Tromey <tromey@redhat.com>
5248
5249 PR breakpoints/11816:
5250 * linespec.c (decode_line_1): Parse `function:label' linespecs.
5251 (decode_compound): Update.
5252 (find_function_symbol): New function.
5253 (decode_dollar): Update.
5254 (decode_label): Add 'function_symbol' parameter. Handle
5255 function-relative labels.
5256 (decode_variable): Update.
5257 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
5258 not its line. Set `special_display' and canonical name for
5259 labels.
5260
56435ebe
TT
52612011-03-24 Tom Tromey <tromey@redhat.com>
5262
5263 * linespec.h (struct linespec_result) <special_display>: New
5264 field.
5265 * breakpoint.h (struct breakpoint) <display_canonical>: New
5266 field.
5267 * breakpoint.c (print_breakpoint_location): Respect
5268 display_canonical.
5269 (create_breakpoint_sal): Add 'display_canonical' parameter.
5270 (create_breakpoints_sal): Update.
5271 (create_breakpoint): Update.
5272
7efd8fc2
TT
52732011-03-24 Tom Tromey <tromey@redhat.com>
5274
5275 * symtab.c (decode_line_spec): Update.
5276 * linespec.c (build_canonical_line_spec): Change type of
5277 'canonical'.
5278 (decode_line_2, decode_line_1, decode_objc, decode_compound)
5279 (find_method, decode_all_digits, decode_dollar, decode_label)
5280 (symbol_found): Likewise.
5281 (init_linespec_result): New function.
5282 * breakpoint.c (struct captured_parse_breakpoint_args)
5283 <canonical_p>: New field, replaces addr_string_p.
5284 (create_breakpoints_sal): Add 'canonical' parameter, replacing
5285 'addr_string'.
5286 (parse_breakpoint_sals): Likewise.
5287 (do_captured_parse_breakpoint): Update.
5288 (create_breakpoint): Use struct linespec_result.
5289 (until_break_command): Update.
5290 (breakpoint_re_set_one): Update.
5291 (decode_line_spec_1): Update.
5292 * linespec.h (struct linespec_result): New.
5293 (init_linespec_result): Declare.
5294
788c8b10
PA
52952011-03-23 Pedro Alves <pedro@codesourcery.com>
5296
5297 * regcache.c (regcache_raw_read): If the target didn't supply a
5298 given raw register, mark it as unavailable.
5299
0ba1096a
KT
53002011-03-23 Kai Tietz <ktietz@redhat.com>
5301
5302 * breakpoint.c (clear_command): Use filename_cmp
5303 instead of strcmp for comparison.
5304 * buildsym.c (watch_main_source_file_lossage): Likewise.
5305 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
5306 checking just for slash.
5307 * dbxread.c (read_dbx_symtab): Use lbasename instead of
5308 strrchr and filename_cmp instead of strcmp for filenames.
5309 (add_old_header_file): Use filename_cmp
5310 instead of strcmp for comparison.
5311 * exec.c (exec_set_section_address): Likewise.
5312 * macrotab.c (macro_lookup_inclusion): Likewise.
5313 (macro_lookup_inclusion): Likewise.
5314 * elfread.c (_initialize_elfread): Likewise.
5315 (elfstab_offset_sections): Likewise.
5316 (elfstab_offset_sections): Use lbasename instead of
5317 strrchr.
5318 * mdebugread.c (parse_partial_symbols): Likewise.
5319 (arse_partial_symbols): Use filename_(n)cmp instead of
5320 str(n)cmp for comparison.
5321 * minsyms.c (lookup_minimal_symbol): Likewise.
5322 * psymtab.c (read_psymtabs_with_filename): Likewise.
5323 * solib.c (solib_read_symbols): Likewise.
5324 (reload_shared_libraries_1): Likewise.
5325 * symmisc.c (maintenance_print_symbols): Likewise.
5326 * symfile.c (separate_debug_file_exists): Likewise.
5327 (reread_symbols): Likewise.
5328 (find_separate_debug_file_by_debuglink): Likewise.
5329 * remote-fileio.c (remote_fileio_func_rename): Likewise.
5330 * source.c (add_path): Likewise.
5331 * symtab.c (filename_seen): Likewise.
5332 (file_matches): Likewise.
5333 (print_symbol_info): Likewise.
5334 (maybe_add_partial_symtab_filename): Likewise.
5335 (make_source_files_completion_list): Likewise.
5336 * xml-syscall.c (init_sysinfo): Likewise.
5337 * windows-nat.c (_initialize_check_for_gdb_ini): Use
5338 IS_DIR_SEPARATOR for checking for trailing path separator.
5339
dd90784c
JK
53402011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5341
5342 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
5343 label abort_expression.
5344 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
5345 DWARF_VALUE_OPTIMIZED_OUT.
5346
3167638f
JK
53472011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5348
5349 Code cleanup.
5350 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
5351 to linkage_name. Invert its value. Update the function comment.
5352 (c_type_print_varspec_suffix): Invert it at the caller.
5353 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
5354
ce406537
PA
53552011-03-22 Pedro Alves <pedro@codesourcery.com>
5356
5357 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
5358 errors when reading the `stop_pc'.
5359 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
5360 get_frame_pc.
5361
da5d4055
PM
53622011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5363
5364 * NEWS: Document gdb.Write stream keyword.
5365
29e0eb9c
JK
53662011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5367
5368 Revert:
5369 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5370 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5371 (dwarf2_add_field): Fix new_field->accessibility for
5372 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5373
05775840
PM
53742011-03-22 Phil Muldoon <pmuldoon@redhat.com>
5375
f33edef8 5376 PR python/12183
05775840
PM
5377
5378 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
5379 other error classes. Do not print stack trace.
5380
a0cb7835
JK
53812011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5382
5383 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
5384 (dwarf2_add_field): Fix new_field->accessibility for
5385 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
5386
d19f7eee
UW
53872011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
5388
5389 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
5390 encountering a load via a non-SP register.
5391
4a2fbb50
UW
53922011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
5393
5394 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
5395 field in returned unwinder.
5396
3489610d
JB
53972012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5398
5399 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
5400
8c1a34e7
JB
54012012-03-21 Joel Brobecker <brobecker@adacore.com>
5402
5403 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
5404 of xmalloc.
5405
8fbca658
PA
54062012-03-18 Pedro Alves <pedro@codesourcery.com>
5407
5408 * frame.c (frame_unwind_register): Throw an error if unwinding the
5409 register failed.
5410 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5411 an unwind stop reason.
5412 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5413 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5414 UNWIND_UNAVAILABLE>: New.
5415 * inline-frame.c (inline_frame_unwind): Install
5416 default_frame_unwind_stop_reason.
5417 * frame-unwind.c: Include "exceptions.h".
5418 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5419 (default_frame_unwind_stop_reason): New.
5420 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5421 (default_frame_unwind_stop_reason): Declare.
5422 (struct frame_unwind) <stop_reason>: New function pointer.
5423
5424 * dummy-frame.c: Install default_frame_unwind_stop_reason.
5425 * dwarf2-frame.c: Include exceptions.h.
5426 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5427 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5428 computing the CFA. If such an error was thrown, set
5429 unavailable_retaddr.
5430 (dwarf2_frame_unwind_stop_reason): New.
5431 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5432 unavailable.
5433 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5434 (dwarf2_signal_frame_unwind): Ditto.
5435
5436 * amd64-tdep.c: Include "exceptions.h".
5437 (struct amd64_frame_cache): New field "base_p".
5438 (amd64_init_frame_cache): Clear it.
5439 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5440 Avoid reading registers with functions that throw if the register
5441 is not necessary to compute the frame base.
5442 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5443 swallowing NOT_AVAILABLE_ERROR.
5444 (amd64_frame_unwind_stop_reason): New.
5445 (amd64_frame_this_id): Don't build a frame id if the frame base
5446 was unavailable.
5447 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5448 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5449 base_p if the frame base was computable.
5450 (amd64_sigtramp_frame_unwind_stop_reason): New.
5451 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5452 frame base was unavailable.
5453 (amd64_sigtramp_frame_unwind): Install
5454 amd64_sigtramp_frame_unwind_stop_reason.
5455 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5456 base_p if the frame base was computable.
5457 (amd64_epilogue_frame_unwind_stop_reason): New.
5458 (amd64_epilogue_frame_this_id): Don't build a frame id if the
5459 frame base was unavailable.
5460 (amd64_epilogue_frame_unwind): Install
5461 amd64_epilogue_frame_unwind_stop_reason.
5462 * i386-tdep.c: Include "exceptions.h".
5463 (struct i386_frame_cache): New field "base_p".
5464 (i386_init_frame_cache): Clear it.
5465 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5466 Avoid reading registers with functions that throw if the register
5467 is not necessary to compute the frame base.
5468 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5469 swallowing NOT_AVAILABLE_ERROR.
5470 (i386_frame_unwind_stop_reason): New.
5471 (i386_frame_this_id): Don't build a frame id if the frame base was
5472 unavailable.
5473 (i386_frame_prev_register): Handle unavailable SP.
5474 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5475 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5476 base_p if the frame base was computable.
5477 (i386_epilogue_frame_unwind_stop_reason): New.
5478 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5479 base was unavailable.
5480 (i386_epilogue_frame_unwind): Install
5481 i386_epilogue_frame_unwind_stop_reason.
5482 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5483 base_p if the frame base was computable.
5484 (i386_sigtramp_frame_unwind_stop_reason): New.
5485 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5486 base was unavailable.
5487 (i386_sigtramp_frame_unwind): Install
5488 i386_sigtramp_frame_unwind_stop_reason.
5489 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5490 type's size, not the register's.
5491 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5492
5493 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5494 default_frame_unwind_stop_reason.
5495 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5496 (alpha_heuristic_frame_unwind): Ditto.
5497 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5498 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5499 * avr-tdep.c (avr_frame_unwind): Ditto.
5500 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5501 Ditto.
5502 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5503 * frv-tdep.c (frv_frame_unwind): Ditto.
5504 * h8300-tdep.c (h8300_frame_unwind): Ditto.
5505 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5506 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5507 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5508 (hppa_stub_frame_unwind): Ditto.
5509 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5510 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5511 (ia64_libunwind_frame_unwind)
5512 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5513 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5514 * lm32-tdep.c (lm32_frame_unwind): Ditto.
5515 * m32c-tdep.c (m32c_unwind): Ditto.
5516 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5517 * m32r-tdep.c (m32r_frame_unwind): Ditto.
5518 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5519 * m68k-tdep.c (m68k_frame_unwind): Ditto.
5520 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5521 * m88k-tdep.c (m88k_frame_unwind): Ditto.
5522 * mep-tdep.c (mep_frame_unwind): Ditto.
5523 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5524 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5525 (mips_stub_frame_unwind): Ditto.
5526 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5527 * moxie-tdep.c (moxie_frame_unwind): Ditto.
5528 * mt-tdep.c (mt_frame_unwind): Ditto.
5529 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5530 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5531 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5532 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5533 (s390_sigtramp_frame_unwind): Ditto.
5534 * score-tdep.c (score_prologue_unwind): Ditto.
5535 * sh-tdep.c (sh_frame_unwind): Ditto.
5536 * sh64-tdep.c (sh64_frame_unwind): Ditto.
5537 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5538 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5539 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5540 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5541 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5542 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5543 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5544 (sparc64obsd_trapframe_unwind): Ditto.
5545 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5546 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5547 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5548 * v850-tdep.c (v850_frame_unwind): Ditto.
5549 * vax-tdep.c (vax_frame_unwind): Ditto.
5550 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5551 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5552 * xtensa-tdep.c (xtensa_unwind): Ditto.
5553
f23d1b92
PA
55542011-03-18 Pedro Alves <pedro@codesourcery.com>
5555
5556 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5557 there's always a frame. Use get_frame_pc_if_available instead of
5558 get_frame_pc, and if there's no PC available, don't look up a
5559 symtab.
5560
1d4f5741
PA
55612011-03-18 Pedro Alves <pedro@codesourcery.com>
5562
5563 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5564 unavailable PC.
5565
dba09041
PA
55662011-03-18 Pedro Alves <pedro@codesourcery.com>
5567
5568 * tracepoint.c (set_traceframe_context): Handle unavailable PC
5569 gracefully.
5570
9a26e44c
PA
55712011-03-18 Pedro Alves <pedro@codesourcery.com>
5572
5573 * frame.h (frame_unwind_caller_pc_if_available): Declare.
5574 * frame.c (frame_unwind_caller_pc_if_available): New.
5575 * stack.c (frame_info): Handle unavailable PC.
5576
55772011-03-18 Pedro Alves <pedro@codesourcery.com>
5578
5579 * frame.c (frame_unwind_pc): Rename to ...
5580 (frame_unwind_pc_if_available): ... this. New `pc' output
5581 parameter. Change return type to int. Gracefully handle
5582 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
5583 happened, or 1 otherwise.
5584 (frame_unwind_pc): Reimplement on top of
5585 frame_unwind_pc_if_available.
5586 (get_frame_func): Rename to ...
5587 (get_frame_func_if_available): New `pc' output parameter. Change
5588 return type to int. Gracefully handle the PC not being available.
5589 (get_frame_func): Reimplement on top of
5590 get_frame_func_if_available.
5591 (select_frame): Handle the PC being unavailable.
5592 (get_prev_frame): Handle the PC being unavailable.
5593 (get_frame_pc_if_available): New.
5594 (get_frame_address_in_block_if_available): New.
5595 (find_frame_sal): Handle the frame PC not being available.
5596 * frame.h (get_frame_pc_if_available): Declare.
5597 (get_frame_address_in_block_if_available): Declare.
5598 (get_frame_func_if_available): Declare.
5599 * stack.c (print_frame_info): Handle the PC being unavailable.
5600 (find_frame_funname): Ditto.
5601 (print_frame): Handle the PC being unavailable.
5602 (get_frame_language): Ditto.
5603 * blockframe.c (get_frame_block): Ditto.
5604 * macroscope.c (default_macro_scope): Ditto.
5605 * tui/tui-stack.c (tui_show_frame_info): Ditto.
5606
56072011-03-18 Pedro Alves <pedro@codesourcery.com>
5608
5609 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5610 NOT_AVAILABLE_ERROR when evaluating the location expression.
5611
56122011-03-18 Pedro Alves <pedro@codesourcery.com>
5613
5614 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5615 returning that the register piece is unavailable/optimized out.
5616 (write_pieced_value): Handle get_frame_register_bytes returning
5617 that the register piece is unavailable/optimized out when doing a
5618 read-modify write of a bitfield.
5619 * findvar.c (value_from_register): Handle get_frame_register_bytes
5620 returning that the register piece is unavailable/optimized out.
5621 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5622 and `unavailablep'. Throw error on bad debug info. Use
5623 frame_register instead of frame_register_read, to fill in the new
5624 arguments.
5625 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5626 and `unavailablep'.
5627 * valops.c: (value_assign): Adjust, and handle
5628 get_frame_register_bytes failing.
5629 * spu-tdep.c: Include exceptions.h.
5630 (spu_software_single_step): Adjust, and handle
5631 get_frame_register_bytes failing.
5632 (spu_get_longjmp_target): Ditto.
5633 * gdbarch.sh (register_to_value): Change to return int. New
5634 parameters `optimizedp' and `unavailablep'.
5635 * gdbarch.h, gdbarch.c: Regenerate.
5636 * i386-tdep.c (i386_register_to_value): Adjust to new
5637 gdbarch_register_to_value interface.
5638 * i387-tdep.c (i387_register_to_value): Ditto.
5639 * i387-tdep.h (i387_register_to_value): Ditto.
5640 * alpha-tdep.c (alpha_register_to_value): Ditto.
5641 * ia64-tdep.c (ia64_register_to_value): Ditto.
5642 * m68k-tdep.c (m68k_register_to_value): Ditto.
5643 * mips-tdep.c (mips_register_to_value): Ditto.
5644 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5645
0fdb4f18
PA
56462011-03-18 Pedro Alves <pedro@codesourcery.com>
5647
5648 * findvar.c (value_of_register): Mark the value as unavailable, if
5649 the register is unavailable.
5650 * frame.h (frame_register_unwind): New `unavailablep' parameter.
5651 (frame_register): New `unavailablep' parameter.
5652 (frame_register_read): Update comment.
5653 * frame.c (frame_register_unwind): New `unavailablep' parameter.
5654 Set it if the register is unavailable. If the register is
5655 unavailable, clear the output buffer.
5656 (frame_register): New `unavailablep' parameter. Pass it down.
5657 (frame_unwind_register): Adjust.
5658 (put_frame_register): Adjust.
5659 (frame_register_read): Adjust. Also return false if the register
5660 is not available.
5661 (frame_register_unwind_location): Adjust.
5662 * sentinel-frame.c (sentinel_frame_prev_register): If the register
5663 is unavailable, mark the value accordingly.
5664 * stack.c (frame_info): Handle unavailable registers.
5665
e69aa73e
PA
56662011-03-18 Pedro Alves <pedro@codesourcery.com>
5667
5668 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5669 simplify, using regcache_cooked_read.
5670
05d1431c
PA
56712011-03-18 Pedro Alves <pedro@codesourcery.com>
5672
5673 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5674 (regcache_raw_read_unsigned, regcache_raw_read_signed)
5675 (regcache_raw_read_unsigned, regcache_raw_read_part)
5676 (regcache_cooked_read, regcache_cooked_read_signed)
5677 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5678 (regcache_cooked_read_ftype): Change return to enum
5679 register_status.
5680 * regcache.c: Include exceptions.h
5681 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5682 (do_cooked_read): Change return to enum register_status. Always
5683 forward to regcache_cooked_read.
5684 (regcache_raw_read): Change return to enum register_status. If
5685 the register is not REG_VALID, memset the buffer. Return the
5686 register's status.
5687 (regcache_raw_read_signed): Handle non-REG_VALID registers and
5688 return the register's status.
5689 (regcache_raw_read_unsigned): Ditto.
5690 (regcache_cooked_read): Change return to enum register_status.
5691 Assert that with read-only regcaches, the register's status must
5692 be known. If the regcache is read-only, and the register is not
5693 REG_VALID, memset the buffer. Return the register's status.
5694 (regcache_cooked_read_signed): Change return to enum
5695 register_status. Handle non-REG_VALID registers and return the
5696 register's status.
5697 (regcache_cooked_read_unsigned): Change return to enum
5698 register_status. Handle non-REG_VALID registers and return the
5699 register's status.
5700 (regcache_xfer_part, regcache_raw_read_part)
5701 (regcache_cooked_read_part): Change return to enum
5702 register_status. Return the register's status.
5703 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5704 unavailable.
5705 (regcache_dump): Handle unavailable cooked registers.
5706 * frame.c (do_frame_register_read): Adjust interface to match
5707 regcache_cooked_read_ftype.
5708 * gdbarch.sh (pseudo_register_read): Change return to enum
5709 register_status.
5710 * gdbarch.h, gdbarch.c: Regenerate.
5711
5712 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5713 register_status.
5714 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5715 register_status. If reading a raw register indicates the raw
5716 register is not valid, return the raw register's status,
5717 otherwise, return REG_VALID.
5718 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5719 register_status. Handle non-REG_VALID raw registers and return
5720 the register's status.
5721 * arm-tdep.c (arm_neon_quad_read)
5722 (arm_pseudo_read): Change return to enum register_status. Handle
5723 non-REG_VALID raw registers and return the register's status.
5724 * avr-tdep.c (avr_pseudo_register_read): Ditto.
5725 * frv-tdep.c (frv_pseudo_register_read): Ditto.
5726 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5727 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5728 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5729 register_status.
5730 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5731 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5732 (m32c_part_write, m32c_cat_read, m32c_cat_write)
5733 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5734 (m32c_pseudo_register_read): Change return to enum
5735 register_status. Adjust.
5736 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5737 enum register_status. Return the register's status.
5738 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5739 register_status. Return the register's status.
5740 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5741 * mips-tdep.c (mips_pseudo_register_read): Ditto.
5742 * mt-tdep.c (mt_pseudo_register_read): Ditto.
5743 * rs6000-tdep.c (move_ev_register_func): New typedef.
5744 (e500_move_ev_register): Use it. Change return to enum
5745 register_status. Return the register's status.
5746 (do_regcache_raw_read): New function.
5747 (do_regcache_raw_write): New function.
5748 (e500_pseudo_register_read): Change return to enum
5749 register_status. Return the register's status. Use
5750 do_regcache_raw_read.
5751 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
5752 (dfp_pseudo_register_read): Change return to enum register_status.
5753 Return the register's status.
5754 (vsx_pseudo_register_read): Ditto.
5755 (efpr_pseudo_register_read): Ditto.
5756 (rs6000_pseudo_register_read): Ditto.
5757 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5758 register_status. Return the register's status.
5759 * sh64-tdep.c (pseudo_register_read_portions): New function.
5760 (sh64_pseudo_register_read): Change return to enum
5761 register_status. Use pseudo_register_read_portions. Return the
5762 register's status.
5763 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5764 register_status. Return the register's status.
5765 * sh-tdep.c (pseudo_register_read_portions): New function.
5766 (sh_pseudo_register_read): Change return to enum register_status.
5767 Use pseudo_register_read_portions. Return the register's status.
5768 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5769 enum register_status. Return the register's status.
5770 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5771 * spu-tdep.c (spu_pseudo_register_read_spu)
5772 (spu_pseudo_register_read): Ditto.
5773 * xtensa-tdep.c (xtensa_register_read_masked)
5774 (xtensa_pseudo_register_read): Ditto.
5775 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5776
e10abd8f
PM
57772011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5778
5779 * python/py-value.c (valpy_getitem): Fix formatting of error function
5780 call.
5781
7ea6d463
PM
57822011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5783
5784 ARI fixes: Add missing internationalization markups throughout
5785 C source files.
5786 * darwin-nat-info.c: Ditto.
5787 * record.c: Ditto.
5788 * remote.c: Ditto.
5789 * mi/mi-main.c: Ditto.
5790
001083c6
PM
57912011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5792
5793 ARI fixes: Add missing internationalization markups throughout
5794 yacc files.
5795 * c-exp.y: Ditto.
5796 * cp-name-parser.y: Ditto.
5797 * f-exp.y: Ditto.
5798 * m2-exp.y: Ditto.
5799 * objc-exp.y: Ditto.
5800 * p-exp.y: Ditto.
5801
4f1cdeec
PM
58022011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5803
5804 ARI fixes: Messages should have no trailing new lines.
5805 * darwin-nat.c (mach_check_error): Remove trailing new line from
5806 warning function call message.
5807 * record.c (bfdcore_read): Idem for error call.
5808
28e698f1
PM
58092011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
5810
5811 * common/signals.c (target_signal_from_host): Add _ markup to error
5812 function call message.
5813 (target_signal_to_host): Add _ markup and remove trailing new line
5814 from warning call message.
5815 (target_signal_from_command): Add _ markup to error function call
5816 message.
5817
99c3dc11
PM
58182011-03-18 Phil Muldoon <pmuldoon@redhat.com>
5819
f33edef8 5820 PR python/12149
99c3dc11
PM
5821
5822 * python/python.c (gdbpy_write): Accept a stream argument and
5823 operate to the appropriate stream.
5824 (gdbpy_flush): Likewise.
5825 (_initialize_python): Add stream constants.
5826 (finish_python_initialization): Add GdbOutputErrorFile class.
5827
c20800be
KY
58282011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5829
5830 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5831
f4a1794a
KY
58322011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
5833
5834 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
5835 to store_signed_integer. Add debug message when relocating CALL
5836 instructions. Fix formatting of debug message.
5837 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 5838
d4862372
JB
58392011-03-17 Joel Brobecker <brobecker@gnat.com>
5840
5841 * target.h (struct target_ops): Remove to_lookup_symbol field.
5842 (target_lookup_symbol): Delete macro.
5843 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5844 (update_current_target, setup_target_debug): Remove handling
5845 of to_lookup_symbol target_ops field.
5846 * ada-tasks.c (get_known_tasks_addr): Remove use of
5847 target_lookup_symbol.
5848 * coffread.c (coff_symtab_read): Likewise.
5849 * dbxread.c (read_dbx_symtab): Ditto.
5850
d645e32e
JB
58512011-03-17 Joel Brobecker <brobecker@gnat.com>
5852
5853 PR gdb/12116:
5854 * configure.ac: Add getthrds declaration check.
5855 * configure, config.in: Regenerate.
5856 * aix-thread.c (getthrds): Declare only if not already declared
5857 in procinfo.h. More declaration out of get_signaled_thread to
5858 global scope.
5859
29703da4
PM
58602011-03-17 Phil Muldoon <pmuldoon@redhat.com>
5861
5862 * python/py-symtab.c: Populate symtab_object_methods,
5863 sal_object_methods.
5864 (stpy_is_valid): New function.
5865 (salpy_is_valid): Ditto.
5866 * python/py-symbol.c: Declare symbol_object_methods. Populate.
5867 (sympy_is_valid): New function.
5868 * python/py-objfile.c: Declare objfile_object_methods. Populate.
5869 (objfpy_is_valid): New function.
5870 * python/py-inferior.c: Populate inferior_object_methods.
5871 (infpy_is_valid): New function.
5872 * python/py-infthread.c: Populate thread_object_methods.
5873 (thpy_is_valid): New function.
5874 * python/py-block.c: Declare block_object_methods. Populate. Declare
5875 block_iterator_object_methods. Populate.
5876 (blpy_is_valid): New function.
5877 (blpy_iter_is_valid): Ditto.
5878
c00f8484
KS
58792011-03-16 Keith Seitz <keiths@redhat.com>
5880
5881 * linespec.c (find_methods): Canonicalize NAME before looking
5882 up the symbol.
5883 (name_end): New function.
5884 (keep_name_info): New function.
5885 (decode_line_1): Use keep_name_info.
5886 (decode_compound): Likewise.
5887 * cli/cli-utils.h (remove_trailing_whitespace): New function.
5888 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5889
5890 PR c++/12273
5891 * linespec.c (locate_first_half): Keep overload information, too.
5892 (decode_compound): Use a string to represent break characters
5893 to escape the loop.
5894 If P points to a break character, do not increment it.
5895 For C++ and Java, keep overload information and relevant keywords.
5896 If we cannot find a symbol, search the minimal symbols.
5897
5898 PR c++/11734
5899 * linespec.c (decode_compound): Rename SAVED_ARG to
5900 THE_REAL_SAVED_ARG.
5901 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5902 single-quotes.
5903 Pass a valid block to lookup_symbol.
5904 (lookup_prefix_sym): Likewise.
5905 (find_method): Construct search name based on SYM_CLASS instead
5906 of SAVED_ARG.
5907 * psymtab.c (lookup_partial_symbol): Add language parameter.
5908 (lookup_symbol_aux_psymtabs): Likewise.
5909 Don't assume that the psymtab we found was the right one. Search
5910 for the desired symbol in the symtab to be certain.
5911 (psymtab_search_name): New function.
5912 (lookup_partial_symbol): Use psymtab_search_name.
5913 Add language parameter.
5914 (read_symtabs_for_function): Add language parameter and pass to
5915 lookup_partial_symbol.
5916 (find_symbol_file_from_partial): Likewise.
5917
c91513d8
PP
59182011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
5919
5920 PR gdb/12528
5921 * dwarf2read.c (noop_record_line): New function.
5922 (dwarf_decode_lines): Ignore line tables for GCd functions.
5923
b37520b6
PM
59242011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5925
5926 Fix ARI warnings about new lines at the end of messages, which
5927 are unneeded as there is a new line added at the end of the message
5928 automatically.
5929 * darwin-nat.c (darwin_stop_inferior): Ditto.
5930 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5931 * dfp.c (decimal_to_number): Ditto.
5932 * exec.c (print_section_info): Ditto.
5933 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5934 * osdata.c (get_osdata): Ditto.
5935 * record.c (bfdcore_write): Ditto.
5936 * remote-mips.c (mips_readchar): Ditto.
5937 * remote.c (read_ptid): Ditto.
5938 * ser-mingw.c (ser_windows_raw): Ditto.
5939 * tracepoint.c (add_local_symbols): Ditto.
5940 * windows-nat.c (fake_create_process): Ditto.
5941
b08ee6a2
TT
59422011-03-16 Tom Tromey <tromey@redhat.com>
5943
5944 * tracepoint.c (stop_tracing): Don't declare.
5945 * event-top.c (after_char_processing_hook): Add `(void)'.
5946
9a6f1302
PM
59472011-03-16 Phil Muldoon <pmuldoon@redhat.com>
5948
5949 * NEWS: Add Parameter sub-classing description.
5950
7ceb86b1
KT
59512011-03-16 Kai Tietz <ktietz@redhat.com>
5952
5953 * MAINTAINERS: Update my e-mail address.
5954
efeff6cf
AT
59552011-03-15 Andreas Tobler <andreast@fgznet.ch>
5956
5957 * MAINTAINERS: Add myself for write after approval privileges.
5958
681c238c
MS
59592011-03-15 Michael Snyder <msnyder@vmware.com>
5960
f3df5b08
MS
5961 * frame.c (find_frame_sal): Assert sym is not null.
5962
13f6513c
MS
5963 * dbxread.c (process_one_symbol): Assert 'name' is not null.
5964
50412521
MS
5965 * objc-lang.c (selectors_info): Check strchr for null result.
5966
681c238c
MS
5967 * stabsread.c (define_symbol): Guard against bad stabstring input.
5968
6ced1581
PM
59692011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5970
5971 Remove trailing spaces and tabulations from pascal language
5972 support sources.
5973 p-exp.y: Ditto.
5974 p-lang.c: Ditto.
5975 p-lang.h: Ditto.
5976 p-valprint.c: Ditto.
5977
9373cf26
JK
59782011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5979
5980 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5981 than LOW. Comment it.
5982 (read_partial_die): Call complaint for inappropriate zero LOWPC or
5983 HIGHPC not strictly higher than LOWPC.
5984
9a1edae6
PM
59852011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
5986
5987 Fix formatting of function declarations returning a pointer in
5988 previous commit.
5989 * varobj.c (varobj_add_child): Ditto.
5990 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5991 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5992
24e9cda0
UW
59932011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
5994
5995 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5996 for the "generic" vector ABI used with GCC 4.3 and later.
5997 (ppc64_sysv_abi_return_value): Likewise.
5998
59992011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
6000
6001 * infcall.c (call_function_by_hand): Function return value is
6002 always a non_lval, even when using struct_return.
6003
c9174737
PA
60042011-03-15 Pedro Alves <pedro@codesourcery.com>
6005
6006 * printcmd.c (ALL_DISPLAYS_SAFE): New.
6007 (map_display_numbers): New.
6008 (do_delete_display): New.
6009 (undisplay_command): Use map_display_numbers.
6010 (do_enable_disable_display): New.
6011 (enable_disable_display_command): New function.
6012 (enable_display): Delete.
6013 (enable_display_command): New.
6014 (disable_display_command): Reimplement.
6015 (_initialize_printcmd): Adjust "enable display" command to use
6016 `enable_display_command' as callback.
6017
350c6c65
PM
60182011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6019
6020 * NEWS: Add Python breakpoint 'stop' operation.
6021
824446ad
PM
60222011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6023
6024 * NEWS: Delete duplicate entry. Fix typo.
6025
2021ad3a
PM
60262011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6027
6028 Fix ARI warning about function names in first column.
6029 Put prototype declaration on same line as return type.
6030 * objc-exp.y: Ditto.
6031 * p-exp.y: Ditto.
6032 * python/py-stopevent.h: Ditto.
6033 For long function names, split parameters to
6034 allow function name on same line as return type.
6035 * solib-pa64.c: Ditto.
6036 * varobj.c: Ditto.
6037 * varobj.h: Ditto.
6038 For long function declaration, use single line.
6039 * hppa-tdep.h: Ditto.
6040 * inferior.h: Ditto.
6041
7371cf6d
PM
60422011-03-14 Phil Muldoon <pmuldoon@redhat.com>
6043
6044 * python/python.h: Declare gdbpy_should_stop and
6045 gdbpy_breakpoint_has_py_cond.
6046 * python/python.c: Add python.h to includes. Remove python.h from
6047 HAVE_PYTHON definition
6048 (gdbpy_should_stop): New dummy function.
6049 (gdbpy_breakpoint_has_py_cond): New dummy function.
6050 * python/py-breakpoint.c (bppy_init): Rewrite to allow
6051 sub-classing capabilities.
6052 (gdbpy_should_stop): New function.
6053 (gdbpy_breakpoint_has_py_cond): New function.
6054 (local_setattro): New function.
6055 * breakpoint.c (condition_command): Add check for Python 'stop'
6056 operation.
6057 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
6058 operation function as part of stop/continue tests.
6059
37b50a69
TT
60602011-03-14 Tom Tromey <tromey@redhat.com>
6061
6062 PR gdb/12576:
6063 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
6064 (needs_frame_dwarf_call): Likewise.
6065
eeae04df
PM
60662011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
6067
6068 Fix ARI warning about functions without parameters that do not
6069 use (void).
6070 * breakpoint.c (all_tracepoints): Replace () by (void).
6071 * f-exp.y (match_string_literal): Ditto.
6072 (yylex): Ditto.
6073 * m2-exp.y (yylex): Ditto.
6074 * mep-tdep.c (current_me_module): Ditto.
6075 (current_options): Ditto.
6076 (current_cop_data_bus_width): Ditto.
6077 (current_cr_names): Ditto.
6078 (current_cr_is_float): Ditto.
6079 (current_ccr_names): Ditto.
6080 * objc-exp.y (yylex): Ditto.
6081 * p-exp.y (yylex): Ditto.
6082 * remote.c (send_interrupt_sequence): Ditto.
6083 * tracepoint.c (current_trace_status): Ditto.
6084 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
6085 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
6086
6dc3565d
MS
60872011-03-11 Michael Snyder <msnyder@vmware.com>
6088
1427fe5e
MS
6089 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
6090 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
6091 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
6092 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
6093 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
6094
60bc018f
MS
6095 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
6096 (delete_async_event_handler): Ditto.
6097
f3be5b64
MS
6098 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
6099
4c2d5724
MS
6100 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
6101
6dc3565d
MS
6102 * top.c (set_verbose): Assert showcmd was found.
6103
4e6ca6d5
MG
61042011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
6105
6106 * xtensa-tdep.c (warning_once): Correct style issues.
6107
815a83e4
YQ
61082011-03-11 Yao Qi <yao@codesourcery.com>
6109
6110 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
6111
f2eb0bc8
AS
61122011-03-11 Andreas Schwab <schwab@redhat.com>
6113
6114 * common/aclocal.m4: Remove.
6115
b801de47
MG
61162011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6117
6118 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
6119 (xtensa_write_register, xtensa_read_register): Likewise.
6120 (xtensa_hextochar): Removed.
6121 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
6122
dbab50de
MG
61232011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
6124
6125 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 6126 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
6127 (xtensa_alloc_frame_cache): Add initialization for new fields.
6128 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
6129 (warning_once): New function.
6130 (xtensa_insn_kind): New item c0opc_and.
6131 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
6132 (call0_track_op): Change arguments. New local variable litbase.
6133 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
6134 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
6135 in the prologue.
dbab50de 6136 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 6137 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
6138 Add the variety of updates to handle extended prologues, which now can
6139 conduct dynamic stack adjustments.
6140 (call0_frame_cache): Likewise.
6141 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
6142 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
6143
b2c04452
MS
61442011-03-10 Michael Snyder <msnyder@vmware.com>
6145
f8f67713
MS
6146 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
6147 (cmd_qtframe): Ditto.
6148 (cmd_qtbuffer): Ditto.
6149 (cmd_bigqtbuffer): Ditto.
6150
197f0a60
TT
61512011-03-10 Tom Tromey <tromey@redhat.com>
6152
6153 * tracepoint.c (trace_actions_command): Update.
6154 * thread.c (thread_apply_command): Update.
6155 * reverse.c (delete_bookmark_command): Update.
6156 (bookmarks_info): Update.
6157 * printcmd.c (undisplay_command): Update.
6158 * memattr.c (mem_enable_command): Update.
6159 (mem_disable_command): Update.
6160 (mem_delete_command): Update.
6161 * inferior.c (detach_inferior_command): Update.
6162 (kill_inferior_command): Update.
6163 (remove_inferior_command): Update.
6164 * cli/cli-utils.h (struct get_number_or_range_state): New.
6165 (init_number_or_range): Declare.
6166 (get_number_or_range): Update.
6167 * cli/cli-utils.c (init_number_or_range): New function.
6168 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
6169 static variables.
6170 (number_is_in_list): Update.
6171 * breakpoint.h (get_tracepoint_by_number): Update.
6172 * breakpoint.c (map_breakpoint_numbers): Update for change to
6173 get_number_or_range.
6174 (find_location_by_number): Use get_number, not
6175 get_number_or_range.
6176 (trace_pass_set_count): New function.
6177 (trace_pass_command): Update for change to get_number_or_range.
6178 Rework loop logic.
6179 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
6180 'state' parameter.
6181
ecec24e6
PM
61822011-03-10 Phil Muldoon <pmuldoon@redhat.com>
6183
6184 * python/py-param.c (add_setshow_generic): Add set/show callback
6185 parameters. Register Python object context.
6186 (get_show_value): New function.
6187 (get_set_value): New function.
6188 (call_doc_function): New function.
6189 (get_doc_string): Move behind get_show_value/get_set_value.
6190
6d6c6b1f
JK
61912011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
6192
6193 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
6194
68d6df83
MG
61952011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
6196
dbab50de 6197 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
6198 (xtensa_write_register): Likewise.
6199 (xtensa_hextochar): Add comment and update to match coding conventions.
6200 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
6201 (execute_l32e, execute_s32e, execute_code): Update comments.
6202 (xtensa_exception_handler_t): Update to match coding conventions.
6203 (xtensa_insn_kind): Likewise.
6204
85c9d6a6
MS
62052011-03-09 Michael Snyder <msnyder@vmware.com>
6206
6207 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
6208
91495617
PA
62092011-03-09 Pedro Alves <pedro@codesourcery.com>
6210
6211 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
6212
eb8c0621
TT
62132011-03-09 Tom Tromey <tromey@redhat.com>
6214
6215 * thread.c (restore_selected_frame): Handle frame_level == -1.
6216 (make_cleanup_restore_current_thread): Use
6217 get_selected_frame_if_set.
6218 * frame.h (get_selected_frame_if_set): Declare.
6219 * frame.c (get_selected_frame_if_set): New function.
6220
9f37bbcc
PA
62212011-03-09 Pedro Alves <pedro@codesourcery.com>
6222
6223 * cli/cli-cmds.c (shell_escape): Use lbasename.
6224 * coffread.c (coff_start_symtab): Constify parameter.
6225 (complete_symtab): Constify `name' parameter.
6226 (coff_symtab_read): Constify `filestring' local.
6227 (coff_getfilename): Constify return and `result' local.
6228 Use lbasename.
6229 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
6230 * linux-fork.c (info_checkpoints_command): Use lbasename.
6231 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
6232 * minsyms.c (lookup_minimal_symbol): Use lbasename.
6233 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
6234 * procfs.c (procfs_make_note_section): Use lbasename.
6235 * tui/tui-io.c (printable_part): Constity return and parameter.
6236 Use lbasename.
6237 (print_filename): Constify parameters, and local `s'.
6238 (tui_rl_display_match_list): Constify local `temp'.
6239
f8de3c55
JK
62402011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6241
6242 Revert:
6243 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6244 Fix DWARF-3+ DW_AT_accessibility default assumption.
6245 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6246 cu->header.version >= 3.
6247
d9837b00
YQ
62482011-03-09 Yao Qi <yao@codesourcery.com>
6249
6250 * common/Makefile.in: Remove.
6251 * common/configure: Remove.
6252 * common/configure.ac: Remove.
6253
e637a4f5
YQ
62542011-03-09 Yao Qi <yao@codesourcery.com>
6255
6256 Revert:
6257 2011-02-11 Yao Qi <yao@codesourcery.com>
6258
6259 * common/Makefile.in: Add copyright header.
6260
6261 2011-02-11 Yao Qi <yao@codesourcery.com>
6262
6263 * Makefile.in: Remove signals.o from COMMON_OBS. Link
6264 libcommon.a.
6265 * configure.ac: Add common to sub dir.
6266 * configure: Regenerate.
6267
f976a05d
MG
62682011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6269
6270 * xtensa-tdep.c (call0_ret): New function.
6271 (xtensa_skip_prologue): Speed up analysis.
6272
57041825
MG
62732011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6274
6275 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
6276 while executing MI command -data-list-changed-registers.
6277
08b9c608
MG
62782011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6279
6280 * xtensa-tdep.c (xtensa_read_register): New function.
6281 (xtensa_write_register): New function.
6282 (xtensa_find_register_by_name): New function.
6283 (xtensa_windowed_frame_cache): Update comments in type description.
6284 (xtensa_frame_cache): Likewise.
6285 (xtensa_window_interrupt_insn): New function.
6286 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
6287 (xtensa_insn_kind): Add new instructions.
6288 (rwx_special_register): New function.
6289 (call0_classify_opcode): Add new instructions to the analysis.
6290 (a0_saved, a7_saved, a11_saved): New variables.
6291 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
6292 (execute_l32e): New function.
6293 (execute_s32e): New function.
6294 (xtensa_exception_handler_t): New type.
6295 (execute_code): New function.
6296 (xtensa_window_interrupt_frame_cache): New function to conduct frame
6297 analysis for Xtensa Window Exception handlers.
6298
4d1acb11
MG
62992011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6300
98689b25
MG
6301 * xtensa-tdep.c (TX_PS): New.
6302 (windowing_enabled): Update to count for Call0 ABI.
6303 (xtensa_hextochar): New.
6304 (xtensa_init_reggroups): Make algorithm generic.
6305 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
6306
63072011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
6308
6309 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 6310
d3f323f3
MS
63112011-03-08 Michael Snyder <msnyder@vmware.com>
6312
3dcabaa8
MS
6313 * i386-tdep.c (i386_follow_jump): Check return value of
6314 target_read_memory.
6315 (i386_analyze_struct_return): Ditto.
6316 (i386_skip_probe): Ditto.
6317 (i386_match_insn): Ditto.
6318 (i386_skip_noop): Ditto.
6319 (i386_analyze_frame_setup): Ditto.
6320 (i386_analyze_register_saves): Ditto.
6321 (i386_skip_prologue): Ditto.
6322 (i386_skip_main_prologue): Ditto.
6323
13b3fd9b
MS
6324 * target.c (read_whatever_is_readable): Fix memory leak.
6325
d3f323f3
MS
6326 * i386-tdep.c (i386_process_record): Document fall through.
6327
421d5c74
JK
63282011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6329
6330 Fix DWARF-3+ DW_AT_accessibility default assumption.
6331 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
6332 cu->header.version >= 3.
6333
63154eca
PA
63342011-03-08 Pedro Alves <pedro@codesourcery.com>
6335
6336 * remote.c (remote_check_symbols): Skip if the target has no
6337 execution.
6338
f1a507a1
JB
63392011-03-08 Joel Brobecker <brobecker@adacore.com>
6340
6341 * target.c (read_whatever_is_readable): Reformat comment,
6342 with a minor typo fix. Minor reformatting of the code.
6343
36073a92
YQ
63442011-03-08 Yao Qi <yao@codesourcery.com>
6345
6346 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
6347 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
6348 Use cached result instead of calling displaced_in_arm_mode again.
6349 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
6350 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
6351 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
6352 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
6353 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
6354 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
6355 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
6356 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
6357 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6358 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
6359 (arm_catch_kernel_helper_return): Likewise.
6360 * gdb/arm-tdep.h : Update function declarations.
6361
d3f323f3 63622011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 6363
e0e40094
MS
6364 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
6365
0b2381f5
MS
6366 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
6367
0350914a
MS
6368 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
6369
69feea6f
MS
6370 * elfread.c (elf_symtab_read): Stop memory leak.
6371
e6040cbd
MS
6372 * main.c (captured_main): Fix memory leak.
6373
052874e8
AS
63742011-03-07 Andreas Schwab <schwab@linux-m68k.org>
6375
6376 * ada-lang.c (compare_names): Call is_name_suffix with string1
6377 instead of string2.
6378
b11896a5
TT
63792011-03-07 Tom Tromey <tromey@redhat.com>
6380
6381 * xcoffread.c (xcoff_sym_fns): Update.
6382 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
6383 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
6384 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
6385 (symbol_file_add_with_addrs_or_offsets): Likewise.
6386 (reread_symbols): Handle OBJF_PSYMTABS_READ.
6387 * somread.c (som_sym_fns): Update.
6388 * psymtab.h (require_partial_symbols): Declare.
6389 * psymtab.c (require_partial_symbols): New function.
6390 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
6391 (ALL_OBJFILE_PSYMTABS): Undef.
6392 (ALL_PSYMTABS): Move from psympriv.h.
6393 (lookup_partial_symtab, find_pc_sect_psymtab)
6394 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
6395 (find_last_source_symtab_from_partial)
6396 (forget_cached_source_info_partial)
6397 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
6398 (expand_partial_symbol_tables, read_psymtabs_with_filename)
6399 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
6400 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
6401 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
6402 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
6403 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
6404 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
6405 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
6406 psymtabs.
6407 * mipsread.c (ecoff_sym_fns): Update.
6408 * machoread.c (macho_sym_fns): Update.
6409 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6410 (read_psyms): New function.
6411 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6412 (elf_sym_fns_lazy_psyms): New global.
6413 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6414 dwarf2_build_psymtabs.
6415 * dbxread.c (aout_sym_fns): Update.
6416 * coffread.c (coff_sym_fns): Update.
6417
fda326dd
TT
64182011-03-07 Tom Tromey <tromey@redhat.com>
6419
6420 * infrun.c (print_exited_reason): Include inferior id and pid in
6421 message.
6422
aeaec162
TT
64232011-03-07 Tom Tromey <tromey@redhat.com>
6424
6425 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6426 parameter.
6427 (target_has_execution_1): Update.
6428 (target_has_execution_current): Declare.
6429 (target_has_execution): Call target_has_execution_current.
6430 (default_child_has_execution): Update.
6431 * target.c (default_child_has_execution): Add 'the_ptid'
6432 parameter.
6433 (target_has_execution_1): Likewise.
6434 (target_has_execution_current): New function.
6435 (add_target): Update.
6436 (init_dummy_target): Update.
6437 * remote-m32r-sdi.c (m32r_has_execution): New function.
6438 (init_m32r_ops): Use it.
6439 * record.c (record_core_has_execution): Now static. Add
6440 'the_ptid' parameter.
6441 * inferior.c (have_live_inferiors): Don't save current thread.
6442 Use target_has_execution_1.
6443
08e14083
YQ
64442011-03-07 Yao Qi <yao@codesourcery.com>
6445
6446 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6447
c05d19c5
JB
64482011-03-07 Joel Brobecker <brobecker@adacore.com>
6449
6450 * elfread.c (elf_symtab_read): Minor reformatting.
6451
3e6ef9e4
JB
64522011-03-07 Joel Brobecker <brobecker@adacore.com>
6453
6454 * objc-lang.c (selectors_info): Minor reformatting.
6455
dbb8534f
JB
64562011-03-07 Joel Brobecker <brobecker@adacore.com>
6457
6458 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6459
dd70cc93
JB
64602011-03-07 Joel Brobecker <brobecker@adacore.com>
6461 Michael Snyder <msnyder@vmware.com>
6462
6463 * ada-valprint.c (ada_val_print_array): Move the declaration of
6464 "byte_order" and "elttype" inside the block where these variables
6465 are actually used. Remove some special handling for the case
6466 where "elttype" and "eltlen" are null. Replace by a comment
6467 and a couple of assertion checks.
6468
b27cf2b3
MS
64692011-03-05 Michael Snyder <msnyder@vmware.com>
6470
6471 * source.c (add_path): Replace semicolon at end of block.
6472 * dwarf2expr.c (execute_stack_op): Ditto.
6473
5387a0c6
MF
64742011-03-05 Mike Frysinger <vapier@gentoo.org>
6475
6476 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6477 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6478 (bfin-*-*): Likewise.
6479
e3aa49af
MS
64802011-03-05 Michael Snyder <msnyder@vmware.com>
6481
82ae4854
MS
6482 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6483 * mdebugread.c (parse_symbol): Ditto.
6484 * parse.c (parse_exp_in_context): Ditto.
6485 * source.c (add_path): Ditto.
6486 * utils.c (gnu_debuglink_crc32): Ditto.
6487 * varobj.c (variable_language): Ditto.
6488
e3aa49af
MS
6489 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6490
154f592e
MS
64912011-03-04 Michael Snyder <msnyder@vmware.com>
6492
da3ecdc6
MS
6493 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6494
9cc89665
MS
6495 * symfile.c (simple_overlay_update): Check for null return value
6496 from lookup_minimal_symbol.
6497
154f592e
MS
6498 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6499
63ffa6ee
TJB
65002011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6501
6502 * eval.c (parse_and_eval_address_1): Remove function.
6503 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6504 instead of parse_and_eval_address_1.
6505 * value.h (parse_and_eval_address_1): Remove prototype.
6506
a17d146e
MS
65072011-03-04 Michael Snyder <msnyder@vmware.com>
6508
6509 * remote.c (putpkt_binary): Document that case stmt falls through.
6510
1a6a67de
TJB
65112011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
6512
6513 * breakpointc (print_it_typical): Move NULL check from here...
6514 (print_bp_stop_message): ... to here.
6515
488919c4
MS
65162011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
6517
6518 * breakpoint.c (enable_command): Use break instead of continue,
6519 and fill in a missing break.
6520 (disable_command): Ditto.
6521
1e182ce8
UW
65222011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
6523
6524 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6525 (terminal_save_ours): Remove misleading comment.
6526 (inflow_inferior_data_cleanup): Free ttystate.
6527 (inflow_inferior_exit): Likewise.
6528 (copy_terminal_info): Copy ttystate.
6529
6530 * serial.c (serial_copy_tty_state): New function.
6531 * serial.h (serial_copy_tty_state): Add prototype.
6532 (struct serial_ops): Add copy_tty_state callback.
6533 * ser-base.c (ser_base_copy_tty_state): New function.
6534 * ser-base.h (ser_base_copy_tty_state): Add prototype.
6535 * ser-go32.c (dos_copy_tty_state): New function.
6536 (dos_ops): Install copy_tty_state callback.
6537 * ser-mingw.c (_initialize_ser_windows): Likewise.
6538 * ser-pipe.c (_initialize_ser_pipe): Likewise.
6539 * ser-unix.c (hardwire_copy_tty_state): New function.
6540 (_initialize_ser_hardwire): Install it.
6541
b2c5f112
MS
65422011-03-04 Michael Snyder <msnyder@vmware.com>
6543
2abae994
MS
6544 * breakpoint.c (create_breakpoint): Add missing break statement.
6545
7f5936f9
MS
6546 Reverting this patch:
6547 * infcall.c (call_function_by_hand): Add break statements for lint.
6548
b2c5f112
MS
6549 Reverting this patch:
6550 * cli/cli-script.c (script_from_file): Add break for lint.
6551
42b1321c
MS
65522011-03-04 Michael Snyder <msnyder@vmware.com>
6553
6554 * solib.c (reload_shared_libraries_1): Close memory leak.
6555
3e2a0cee
TT
65562011-03-03 Tom Tromey <tromey@redhat.com>
6557
6558 PR gdb/12538:
6559 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6560 DW_STRING is NULL.
6561
58397cb7
MS
65622011-03-03 Michael Snyder <msnyder@vmware.com>
6563
2e3fd767
MS
6564 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6565 fields of struct 'st' to zero.
6566
58397cb7
MS
6567 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6568 sal.pspace before calling set_current_source_symtab_and_line.
6569
ced54c8f
YQ
65702011-03-03 Yao Qi <yao@codesourcery.com>
6571
6572 * Makefile.in (configure-common): Remove. Let Makefile
6573 in dir common to rebuild itself.
6574 (common/Makefile): Likewise.
6575
3351ea09
JB
65762011-03-03 Joel Brobecker <brobecker@adacore.com>
6577
6578 * utils.c (parse_escape): Add i18n markup in error message.
6579
bf9f652a
YQ
65802011-03-03 Yao Qi <yao@codesourcery.com>
6581
6582 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6583 ARM_PC_REGNUM.
6584 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6585 (displaced_write_reg, displaced_read_reg): Likewise.
6586 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6587 (cleanup_block_load_pc, copy_block_xfer): Likewise.
6588 (cleanup_branch): Replace magic number 14 and 15 with
6589 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6590
d42de051
MS
65912011-03-02 Michael Snyder <msnyder@vmware.com>
6592
240f9570
MS
6593 * maint.c (maintenance_do_deprecate): No need to check for NULL.
6594
10dd8b54
MS
6595 * cli/cli-script.c (script_from_file): Add break for lint.
6596
b98bd911
MS
6597 * mdebugread.c (parse_partial_symbols): Fix indent.
6598
3494b66d
MS
6599 * target-descriptions.c (tdesc_gdb_type): No need to call
6600 xstrdup, callee saves a copy.
6601
daac021a
MS
6602 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6603
c38d16a7
MS
6604 * infcall.c (call_function_by_hand): Add break statements for lint.
6605
905b671b
MS
6606 * utils.c (parse_escape): Escape the escape char.
6607
f2eb0bc8 6608 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
6609 PyList_Append fails.
6610 (gdbpy_inferiors): Error out if build_inferior_list fails.
6611
8c6a60d1
MS
6612 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6613 a function call.
6614
d42de051
MS
6615 * record.c (record_restore): Move printf to before error return.
6616
4db71c0b
YQ
66172011-03-02 Yao Qi <yao@codesourcery.com>
6618
6619 * arm-tdep.h (struct displaced_step_closure): Add two new fields
6620 is_thumb and insn_size.
6621 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6622 on both ARM and Thumb mode.
6623 (arm_process_displaced_insn): Set is_thumb and insn_size.
6624 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6625 (arm_displaced_step_fixup): Likewise.
6626
a9dc8dcc
MS
66272011-03-01 Michael Snyder <msnyder@vmware.com>
6628
53624a93
MS
6629 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6630
77766669
MS
6631 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6632
62d5b8da
MS
6633 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6634
5e9e105f
MS
6635 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6636
dc19db01
MS
6637 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6638 with xmalloc.
6639
5ce64950
MS
6640 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6641 which shadows function parameter.
6642
a0aa2878
MS
6643 * tracepoint.c (create_tsv_from_upload): Superfluous call
6644 to xstrdup. Callee already calls xstrdup.
6645
e325fb69
MS
6646 * linespec.c (decode_line_1): Remove unnecessary null check.
6647
21cbba77
MS
6648 * tracepoint.c (scope_info): Fix mem leak, remove underused
6649 variable.
6650
63360adc
MS
6651 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6652 superfluous null check.
6653
18ea20ac 6654 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 6655 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 6656
d014929c
MS
6657 * event-top.c (display_gdb_prompt): Remove superfluous null check.
6658
6e9130cf
MS
6659 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6660 be null.
6661
5f01dbc0
MS
6662 * linespec.c (decode_line_1): Check for null before dereference.
6663
d684ab85
MS
6664 * reverse.c (record_restore): Move null-check to before pointer
6665 dereference.
6666
bfffb7e3
MS
6667 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6668
a9dc8dcc
MS
6669 * objc-lang.c (selectors_info): Add explanitory comment.
6670 (classes_info): Ditto.
6671
478fd957
UW
66722011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6673
6674 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6675 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6676 versions of the trampoline. Handle Thumb vs. ARM addresses.
6677 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6678 (arm_linux_init_abi): Install it.
6679 * arm-tdep.c (arm_psr_thumb_bit): Make global.
6680 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6681
0480cefa
MS
66822011-02-28 Michael Snyder <msnyder@vmware.com>
6683
ac50ab3b
MS
6684 * ui-out.c (ui_out_field_core_addr): Make local char buffer
6685 a little bigger, to avoid possibility of an overflow.
6686
f63fbe86
MS
6687 * breakpoint.c (breakpoint_adjustment_warning): Make local char
6688 buffers a little bigger, to avoid possibility of an overflow.
6689
9e91a352
MS
6690 * coffread.c (coff_getfilename): Add check to avoid overflow.
6691
f2eb0bc8 6692 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
6693 avoid overflow.
6694 (classes_info): Error out on too long REGEXP.
6695
098ab512
MS
6696 * infrun.c (handle_inferior_event): Remove unused function call.
6697
bcbd1de9
MS
6698 * fork-child.c (fork_inferior): Remove ifdef'd code and
6699 unused variable.
6700
2e456570
MS
6701 * linux-thread-db.c (attach_thread): Discard unused value.
6702
14571dad
MS
6703 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6704
a9cbf802
MS
6705 * remote.c (remote_get_noisy_reply): Discard unused value.
6706 (remote_vcont_resume): Ditto.
6707 (remote_stop_ns): Ditto.
6708
5715d26e
MS
6709 * linespec.c (decode_objc): Delete unused variable.
6710
4a9bca80
MS
6711 * tui/tui-regs.c (tui_register_format): Delete unused variable.
6712
f47fb265
MS
6713 * dwarf2read.c (add_partial_symbol): Discard unused values.
6714 (read_base_type): Delete unused variable.
6715
e81cff30
MS
6716 * dbxread.c (read_dbx_symtab): Discard unused value.
6717
262acaeb
MS
6718 * eval.c (evaluate_subexp_standard): Delete unused variable,
6719 and discard unused values.
6720
df983543
MS
6721 * infcmd.c (_initialize_infcmd): Discard unused values.
6722
89acf84d
MS
6723 * stabsread.c (rs6000_builtin_type): Missing break statement.
6724
ab8b8aca
MS
6725 * dbxread.c (process_one_symbol): Discard unused value.
6726
6b4511ab
MS
6727 * coffread.c (coff_end_symtab): Delete unused variable.
6728
e8e80198
MS
6729 * dwarf2read.c (dw2_get_file_names): Discard unused value.
6730 (dwarf2_add_typedef): Delete unused variable.
6731 (read_namespace): Ditto.
6732 (dwarf_decode_macros): Ditto.
6733
976aa66e
MS
6734 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6735
5b92b49f
MS
6736 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6737
91e8df85
MS
6738 * p-valprint.c (pascal_val_print): Discard unused value.
6739
899500d6
MS
6740 * utils.c (nquery): Call va_end before return;
6741 (yquery): Ditto.
6742 (query): Ditto.
6743
0480cefa
MS
6744 * proc-service.c (ps_plog): Call va_end before return.
6745
fb6a3ed3
TT
67462011-02-28 Tom Tromey <tromey@redhat.com>
6747
6748 * python/python.c (gdbpy_value_cst): New global.
6749 (_initialize_python): Initialize it.
6750 * python/python-internal.h (gdbpy_value_cst): Declare.
6751 * python/py-value.c (convert_value_from_python): Use
6752 gdbpy_value_cst.
6753
c05202a1
MS
67542011-02-28 Michael Snyder <msnyder@vmware.com>
6755
e463f587
MS
6756 * python/py-cmd.c (cmdpy_init): Fix memory leak.
6757
c38eea1a
MS
6758 * breakpoint.c (catch_syscall_completer): Free malloced list.
6759
3ef09ab5
MS
6760 * jv-lang.c (java_primitive_type_from_name): Add missing break.
6761
8f9a01ee
MS
6762 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6763 (lval_func_check_synthetic_pointer): Ditto.
6764 (lval_func_free_closure): Fix use-after-free.
c05202a1 6765
477d0d57
TT
67662011-02-28 Tom Tromey <tromey@redhat.com>
6767
6768 * psymtab.c (expand_partial_symbol_tables): Use
6769 ALL_OBJFILE_PSYMTABS.
6770
20937029
JK
67712011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6772
6773 * objc-lang.c (selectors_info): Error on too long REGEXP.
6774
907b7f4f
MS
67752011-02-28 Michael Snyder <msnyder@vmware.com>
6776
92e96192
MS
6777 * python/py-param.c (set_parameter_value): Add missing
6778 break statement.
6779
907b7f4f
MS
6780 * linux-record.c (record_linux_system_call): Add missing
6781 break statement.
6782
12c5a436
UW
67832011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6784
6785 * breakpoint.c (print_one_breakpoint_location): Remove unused
6786 argument PRINT_ADDRESS_BITS. Update callers.
6787 (print_one_breakpoint): Likewise.
6788
170b53b2
UW
67892011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
6790
6791 * breakpoint.c (wrap_indent_at_field): New function.
6792 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6793 Allocate ui_stream locally instead of using STB argument.
6794 (print_one_breakpoint_location): Update call.
6795 * ui-out.c (ui_out_query_field): New function.
6796 * ui-out.h (ui_out_query_field): Add prototype.
6797
8ab1f94d
JB
67982011-02-28 Joel Brobecker <brobecker@adacore.com>
6799
6800 From Michael Snyder <msnyder@vmware.com>
6801 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6802
7d488639
MS
68032011-02-27 Michael Snyder <msnyder@vmware.com>
6804
ae179fba
MS
6805 * objc-lang.c (selectors_info): Prevent string overrun.
6806
086dbf66
MS
6807 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6808 error in strncpy.
6809
f2eb0bc8 6810 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
6811 outer scope.
6812
7d488639
MS
6813 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6814 param with a local variable of the same name.
6815
3bd0f5ef
MS
68162011-02-27 Michael Snyder <msnyder@vmware.com>
6817
6818 * value.c (value_from_history_ref): New function.
6819 * value.h (value_from_history_ref): Export.
6820 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6821 to parse value history references.
6822 * cli/cli-utils.h (get_number_trailer): Update comment.
6823
68242011-02-27 Michael Snyder <msnyder@vmware.com>
6825
6826 * inferior.c (detach_inferior_command): Use get_number_or_range.
6827 (kill_inferior_command): Ditto.
6828 (remove_inferior_command): Ditto.
6829 (initialize_inferiors): Make command names plural.
6830 Update help strings.
6831
766062f6
MS
68322011-02-27 Michael Snyder <msnyder@vmware.com>
6833
6834 * darwin-nat-info.c: Fix comment typo.
6835 * dwarf2expr.h: Ditto.
6836 * fbsd-nat.c: Ditto.
6837 * fbsd-nat.h: Ditto.
6838 * frame-unwind.h: Ditto.
6839 * frame.h: Ditto.
6840 * hppa-hpux-tdep.c: Ditto.
6841 * i386-linux-nat.c: Ditto.
6842 * linux-nat.c: Ditto.
6843 * nbsd-nat.c: Ditto.
6844 * nbsd-nat.h: Ditto.
6845 * ppc-linux-tdep.c: Ditto.
6846 * serial.c: Ditto.
6847 * ui-file.h: Ditto.
6848 * tui/tui-winsource.c: Ditto.
6849
f2c4ead5
MS
68502011-02-26 Michael Snyder <msnyder@vmware.com>
6851
86b887df
MS
6852 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6853
66fd3b1e
MS
6854 * maint.c (maintenance_do_deprecate): Plug a memory leak.
6855
8c814cdd
MS
6856 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6857 with a local variable of the same name.
6858
6d5e094a 6859 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 6860 param with a local variable of the same name.
6d5e094a 6861 (i387_supply_xsave): Ditto.
e5b3d7d6 6862
5eee517d
MS
6863 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6864 that it does not shadow a function parameter.
6865
8fbf6b93
MS
6866 * i386-nat.c (i386_length_and_rw_bits): Document that case
6867 statement is meant to fall through.
6868
cb969d61
MS
6869 * expprint.c (dump_subexp_body_standard): Document that case
6870 statement is meant to fall through.
6871
f2c4ead5
MS
6872 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6873 dead if statement. Condition can't be false.
6874
b021a221
MS
68752011-02-25 Michael Snyder <msnyder@vmware.com>
6876
6877 * arm-tdep.c: Fix typos in comments.
6878 * bsd-uthread.c: Ditto.
6879 * completer.c: Ditto.
6880 * corelow.c: Ditto.
6881 * cp-namespace.c: Ditto.
6882 * cp-support.c: Ditto.
6883 * cris-tdep.c: Ditto.
6884 * dbxread.c: Ditto.
6885 * dwarf2read.c: Ditto.
6886 * frame.h: Ditto.
6887 * gdbtypes.h: Ditto.
6888 * inferior.h: Ditto.
6889 * mdebugread.c: Ditto.
6890 * mips-tdep.c: Ditto.
6891 * ppc-linux-nat.c: Ditto.
6892 * ppc-linux-tdep.c: Ditto.
6893 * printcmd.c: Ditto.
6894 * sol-thread.c: Ditto.
6895 * solib-frv.c: Ditto.
6896 * solist.h: Ditto.
6897 * sparc64-tdep.c: Ditto.
6898 * spu-tdep.c: Ditto.
6899 * stabsread.c: Ditto.
6900 * symfile.c: Ditto.
6901 * valops.c: Ditto.
6902 * varobj.c: Ditto.
6903 * vax-nat.c: Ditto.
6904 * python/py-block.c: Ditto.
6905 * python/py-symbol.c: Ditto.
6906 * python/py-symtab.c: Ditto.
6907 * python/py-value.c: Ditto.
6908 * tui/tui-win.c: Ditto.
6909
c82c0b55
MS
69102011-02-25 Michael Snyder <msnyder@vmware.com>
6911
6912 * inferior.c (print_inferior): Accept a string instead of an int
6913 for requested_inferiors, and use get_number_or_range to parse it.
6914 (info_inferiors_command): Pass args string to print_inferior.
6915 (initialize_inferiors): Change help string for info inferiors.
6916 * inferior.h (print_inferior): Export prototype change.
6917
ee00cd23
TT
69182011-02-25 Tom Tromey <tromey@redhat.com>
6919
6920 * common/ax.def (invalid2): Set to 0x31.
6921
0502ed8c
JK
69222011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6923
6924 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6925 L and plongest.
6926 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6927 use L and plongest.
6928 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6929
2c9de912
MS
69302011-02-24 Michael Snyder <msnyder@vmware.com>
6931
6932 * Makefile.in (clean): Make clean should remove generated files
6933 observer.h and observer.inc.
6934
a04b0428
JB
69352011-02-24 Joel Brobecker <brobecker@adacore.com>
6936
6937 Revert the following patch (not approved yet):
6938 2011-02-21 Hui Zhu <teawater@gmail.com>
6939 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6940 * ax-gdb.c (gen_printf_expr_callback): New function.
6941 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6942 * ax-general.c (ax_memcpy): New function.
6943 (ax_print): Handle "printf".
6944 (ax_reqs): Ditto.
6945 * ax.h (ax_memcpy): Forward declare.
6946 * common/ax.def (invalid2): Removed.
6947 (printf): New entry.
6948 * printcmd.c (printcmd.h): New include.
6949 (string_printf): New function.
6950 (ui_printf): Removed.
6951 (printf_command): Remove static. Call string_printf.
6952 (eval_command): Call string_printf.
6953 * printcmd.h: New file.
6954 * tracepoint.c (validate_actionline,
6955 encode_actions_1): handle printf_command.
6956
2b52013f
TT
69572011-02-23 Tom Tromey <tromey@redhat.com>
6958
6959 * ax-general.c (ax_pick): Add missing newline.
6960
e5a67952
MS
69612011-02-23 Michael Snyder <msnyder@vmware.com>
6962
6963 * breakpoint.c (breakpoint_1): Change first argument from an int
6964 to a char pointer, so that the function now accepts a list of
f2eb0bc8 6965 breakpoints rather than just one. Use new function
e5a67952
MS
6966 'number_is_in_list' to implement.
6967 (breakpoints_info): Pass char * instead of int to breakpoint_1.
6968 (watchpoints_info): Ditto.
6969 (tracepoints_info): Ditto.
6970 (maintenance_info_breakpoints): Ditto.
6971 (_initialize_breakpoint): Update help strings to reflect the fact
6972 that these functions can now take more than one argument.
6973 * cli/cli-utils.c (number_is_in_list): New function.
6974 * cli/cli-utils.h (number_is_in_list): Export.
6975
69762011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
6977
6978 * memattr.c (mem_enable_command): Use get_number_or_range.
6979 (mem_disable_command): Ditto.
6980 (mem_delete_command): Ditto.
6981 (_initialize_mem): Tweak usage message to reflect multiple
6982 arguments.
6983
6e6fbe60
DE
69842011-02-22 Doug Evans <dje@google.com>
6985
6986 Add gdb.lookup_global_symbol python function.
6987 * NEWS: Add entry.
6988 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6989 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6990 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6991
79b97fa8
TT
69922011-02-22 Tom Tromey <tromey@redhat.com>
6993
6994 * language.c (language_class_name_from_physname): Rename
6995 'curr_language' argument to 'lang'; use in body.
6996
298f437a
MS
69972011-02-22 Michael Snyder <msnyder@vmware.com>
6998
6999 * cli/cli-utils.c (number_is_in_list): Check for zero return.
7000
b7ea3126
PA
70012011-02-22 Pedro Alves <pedro@codesourcery.com>
7002
7003 * frame-unwind.h: Fix comment to mention the this frame, not the
7004 next.
7005
58ee6d60
TT
70062011-02-22 Tom Tromey <tromey@redhat.com>
7007
7008 * symfile.c (auto_solib_limit): Remove.
7009 * symfile.h (auto_solib_limit): Remove.
7010
36238dbc
JB
70112011-02-22 Joel Brobecker <brobecker@adacore.com>
7012
7013 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
7014
aea5b279
MS
70152011-02-21 Michael Snyder <msnyder@vmware.com>
7016
7017 * gdbthread.h (print_thread_info): Change prototype.
7018 * thread.c (print_thread_info): Accept char* instead of int for
7019 requested_threads argument. Use new function number_is_in_list
7020 to determine which threads to list.
7021 (info_threads_command): Pass char* to print_thread_info.
7022 * cli/cli-utils.c (number_is_in_list): New function.
7023 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 7024 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
7025 print_thread_info.
7026 (print_one_inferior): Ditto.
7027 (mi_cmd_list_thread_groups): Ditto.
7028
8caa75ee
JK
70292011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7030
7031 * common/Makefile.in (CFLAGS): New.
7032 (COMPILE): Add $(CFLAGS).
7033
ea666128
TT
70342011-02-21 Tom Tromey <tromey@redhat.com>
7035
7036 * breakpoint.c (catch_syscall_command_1): Fix typo.
7037
e9cafbcc
TT
70382011-02-21 Tom Tromey <tromey@redhat.com>
7039
7040 * reverse.c: Include cli-utils.h.
7041 * printcmd.c: Include cli-utils.h.
7042 (string_printf): Use skip_spaces.
7043 * cli/cli-utils.h: New file.
7044 * cli/cli-utils.c: New file.
7045 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
7046 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
7047 * breakpoint.h (get_number, get_number_or_range): Move to
7048 cli-utils.h.
7049 * breakpoint.c: Include cli-utils.h.
7050 (get_number_trailer, get_number, get_number_or_range)
7051 (ep_skip_leading_whitespace): Move to cli-utils.c.
7052 (create_breakpoint_sal, find_condition_and_thread)
7053 (decode_static_tracepoint_spec, watch_command_1)
7054 (watch_maybe_just_location, ep_parse_optional_if_clause)
7055 (catch_fork_command_1, catch_exec_command_1)
7056 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
7057 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
7058 (SUBDIR_CLI_SRCS): Add cli-utils.c.
7059 (HFILES_NO_SRCDIR): Add cli-utils.h.
7060 (cli-utils.o): New target.
7061
f67fd822
PM
70622011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7063
7064 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
7065 before calling discard_all_inferiors.
7066
c9def01d
UW
70672011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7068
7069 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
7070 (struct builtin_opencl_type): Remove.
7071 (builtin_opencl_type): Change return type to "struct type **".
7072 (lookup_opencl_vector_type): Update caller.
7073 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
7074 (build_opencl_types): Install plain array of "struct type *"
7075 instead of "struct builtin_opencl_type".
7076
e3039479
UW
70772011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7078 Ulrich Weigand <uweigand@de.ibm.com>
7079
7080 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
7081 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
7082 (struct arm_linux_hwbp_cap): New type.
7083 (arm_linux_get_hwbp_cap): New function.
7084 (arm_linux_get_hw_breakpoint_count): Likewise.
7085 (arm_linux_get_hw_watchpoint_count): Likewise.
7086 (arm_linux_can_use_hw_breakpoint): Likewise.
7087 (arm_hwbp_type): New type.
7088 (arm_hwbp_control_t): Likewise.
7089 (struct arm_linux_hw_breakpoint): Likewise.
7090 (struct arm_linux_thread_points): Likewise.
7091 (arm_threads): New global variable.
7092 (arm_linux_find_breakpoints_by_tid): New function.
7093 (arm_hwbp_control_initialize): Likewise.
7094 (arm_hwbp_control_is_enabled): Likewise.
7095 (arm_hwbp_control_disable): Likewise.
7096 (arm_linux_hw_breakpoint_initialize): Likewise.
7097 (arm_linux_get_hwbp_type): Likewise.
7098 (arm_linux_hw_watchpoint_initialize): Likewise.
7099 (arm_linux_hw_breakpoint_equal): Likewise.
7100 (arm_linux_insert_hw_breakpoint1): Likewise.
7101 (arm_linux_remove_hw_breakpoint1): Likewise.
7102 (arm_linux_insert_hw_breakpoint): Likewise.
7103 (arm_linux_remove_hw_breakpoint): Likewise.
7104 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
7105 (arm_linux_insert_watchpoint): Likewise.
7106 (arm_linux_remove_watchpoint): Likewise.
7107 (arm_linux_stopped_data_address): Likewise.
7108 (arm_linux_stopped_by_watchpoint): Likewise.
7109 (arm_linux_watchpoint_addr_within_range): Likewise.
7110 (arm_linux_new_thread): Likewise.
7111 (arm_linux_thread_exit): Likewise.
7112 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
7113 related target callbacks. Register arm_linux_new_thread and
7114 arm_linux_thread_exit.
7115 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
7116 * arm-tdep.c (arm_pc_is_thumb): Make global.
7117 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
7118
b5db5dfc
UW
71192011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
7120
7121 * breakpoint.c (update_watchpoint): Do not attempt to recreate
7122 per-frame locations while within a function epilogue.
7123
e25b2cfa
PM
71242011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7125
7126 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
7127 to GNU coding standards.
7128
4af53f97
PM
71292011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
7130
7131 Allow use of mingw native on Windows 95 OS.
e25b2cfa 7132 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
7133 (ser_windows_close): Only call CancelIo if function exists.
7134 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
7135 to check for existence of CancelIo function in kernel32 DLL.
7136
d0e92d82
HZ
71372011-02-21 Hui Zhu <teawater@gmail.com>
7138
7139 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
7140 * ax-gdb.c (gen_printf_expr_callback): New function.
7141 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
7142 * ax-general.c (ax_memcpy): New function.
7143 (ax_print): Handle "printf".
7144 (ax_reqs): Ditto.
7145 * ax.h (ax_memcpy): Forward declare.
7146 * common/ax.def (invalid2): Removed.
7147 (printf): New entry.
7148 * printcmd.c (printcmd.h): New include.
7149 (string_printf): New function.
7150 (ui_printf): Removed.
7151 (printf_command): Remove static. Call string_printf.
7152 (eval_command): Call string_printf.
7153 * printcmd.h: New file.
7154 * tracepoint.c (validate_actionline,
7155 encode_actions_1): handle printf_command.
7156
7d357efd
MS
71572011-02-19 Michael Snyder <msnyder@vmware.com>
7158
7159 * reverse.c (delete_one_bookmark): Argument is now bookmark
7160 id rather than pointer to bookmark struct.
7161 (delete_bookmark_command): Use get_number_or_range.
7162 (goto_bookmark_command): Parse with get_number instead of strtoul.
7163 (bookmark_1): New function. Print info for one bookmark.
7164 (bookmarks_info): Use get_number_or_range and bookmark_1.
7165
7a45ebd7
MS
71662011-02-18 Michael Snyder <msnyder@vmware.com>
7167
f2eb0bc8 7168 * thread.c (info_threads_command): Re-implement using
7a45ebd7 7169 get_number_or_range.
65ebfb52 7170 (thread_apply_command): Ditto.
7a45ebd7 7171
94d5e490
TT
71722011-02-18 Tom Tromey <tromey@redhat.com>
7173
7174 * common/ax.def: New file.
7175 * ax.h (enum agent_op): Use ax.def.
7176 * ax-general.c (aop_map): Use ax.def.
7177
c7f96d2b
TT
71782011-02-18 Tom Tromey <tromey@redhat.com>
7179
7180 * ax-general.c (aop_map): Add pick and rot.
7181 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
7182 <DW_OP_rot>: Implement.
7183 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
7184 (ax_pick): Declare.
7185 * ax-general.c (ax_pick): New function.
7186
66694b75
TT
71872011-02-18 Tom Tromey <tromey@redhat.com>
7188
7189 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
7190
eeaafae2
JK
71912011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7192 Tom Tromey <tromey@redhat.com>
7193
7194 * cp-support.c (make_symbol_overload_list_namespace): Do not call
7195 make_symbol_overload_list_block with NULL BLOCK.
7196 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
7197
3c3fe74c
PA
71982011-02-18 Pedro Alves <pedro@codesourcery.com>
7199
7200 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
7201 * breakpoint.h (get_number_or_range): Declare.
7202 * printcmd.c (ALL_DISPLAYS): Declare.
7203 (delete_display): Reimplement taking a display pointer.
7204 (undisplay_command): Accept a range of displays to delete, using
7205 get_number_or_range.
7206
13163d80
PM
72072011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7208
7209 * c-valprint.c (c_val_print): Add embedded_offset to address
7210 for arrays of unspecified length.
7211 * p-valprint.c (pascal_val_print): Likewise.
7212
b434a28f
YQ
72132011-02-18 Yao Qi <yao@codesourcery.com>
7214
7215 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
7216 (arm_process_displaced_insn): .. here. Remove parameter INSN.
7217 (thumb_process_displaced_insn): New.
7218 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
7219 call to arm_process_displaced_insn.
7220 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
7221
9f6f94ff
TT
72222011-02-17 Tom Tromey <tromey@redhat.com>
7223
7224 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
7225 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
7226 compile_dwarf_to_ax. No longer static. Call
7227 dwarf2_compile_cfa_to_ax.
7228 (locexpr_tracepoint_var_ref): Update.
7229 (loclist_tracepoint_var_ref): Update.
7230 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
7231 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
7232 argument; add 'gdbarch' and 'pc'.
7233 (dwarf2_compile_cfa_to_ax): New function.
7234 (dwarf2_frame_cache): Update.
7235
e67ad678
JB
72362011-02-17 Joel Brobecker <brobecker@adacore.com>
7237
7238 * ada-lang.c (ada_type_of_array): Fix the size of the array
7239 in the case of an unconstrained packed array.
7240
946ebb0d
YQ
72412011-02-17 Yao Qi <yao@codesourcery.com>
7242
7243 * common/Makefile.in: Add more targets for make.
7244
1ba1b353
TT
72452011-02-16 Tom Tromey <tromey@redhat.com>
7246
7247 * dwarf2loc.c (unimplemented): Fix typo.
7248
b1bfef65
TT
72492011-02-16 Tom Tromey <tromey@redhat.com>
7250
7251 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
7252 (compile_dwarf_to_ax) <default>: Use unimplemented.
7253 <DW_OP_deref>: Update.
7254 (disassemble_dwarf_expression): Update.
7255 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
7256 (decode_locdesc): Update.
7257 * dwarf2expr.h (dwarf_stack_op_name): Update.
7258
5f1e6f19
TT
72592011-02-16 Tom Tromey <tromey@redhat.com>
7260
7261 * ax.h (struct aop_map) <name>: Now const.
7262
a0c78a73
PA
72632011-02-16 Tom Tromey <tromey@redhat.com>
7264
7265 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
7266 than axs_rvalue.
7267
946ebb0d 72682011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
7269
7270 * infrun.c (get_displaced_step_closure_by_addr): New.
7271 * inferior.h: Declare it.
7272 * arm-tdep.c: (arm_pc_is_thumb): Call
7273 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
7274 returns non-NULL.
7275
08807d5a
PA
72762011-02-16 Pedro Alves <pedro@codesourcery.com>
7277 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 gdb/
7280 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
7281
29976f3f
PA
72822011-02-16 Pedro Alves <pedro@codesourcery.com>
7283 Jan Kratochvil <jan.kratochvil@redhat.com>
7284
7285 * value.c (value_contents_copy_raw): Extend describing comment.
7286 Assert that the destination contents we're overwriting are wholly
7287 available.
fb68ae73 7288 (value_contents_copy): Extend describing comment.
29976f3f 7289
cd24cfaa
PA
72902011-02-16 Pedro Alves <pedro@codesourcery.com>
7291 Jan Kratochvil <jan.kratochvil@redhat.com>
7292
7293 * value.c (value_available_contents_eq): Remove redundant local
7294 variables. Fix available contents comparision.
7295 * value.h (value_available_contents_eq): Extend describing
7296 comment.
7297
60bbf338
YQ
72982011-02-16 Yao Qi <yao@codesourcery.com>
7299
7300 * thread.c (info_threads_command): Add missing i18n markup and remove
7301 trailing newline.
7302
17450429
PP
73032011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7304
7305 * breakpoint.c (longjmp_names): New variable.
7306 (struct breakpoint_objfile_data): New type.
7307 (breakpoint_objfile_key): New variable.
7308 (msym_not_found): New variable.
7309 (msym_not_found_p): New predicate.
7310 (get_breakpoint_objfile_data): New function.
7311 (create_overlay_event_breakpoint): Check per-objfile cache for
7312 symbols first.
7313 (create_longjmp_master_breakpoint): Likewise.
7314 (create_std_terminate_master_breakpoint): Likewise.
7315 (create_exception_master_breakpoint): Likewise.
7316 (_initialize_breakpoint): Register per-objfile data key.
7317
af02033e
PP
73182011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
7319
7320 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
7321 parameter value.
7322 (create_longjmp_master_breakpoint): Loop over longjmp names.
7323 (create_std_terminate_master_breakpoint): Const-propagate parameter
7324 value.
7325 (update_breakpoints_after_exec): Adjust.
7326 (breakpoint_re_set): Adjust.
7327
60f98dde
MS
73282011-02-15 Michael Snyder <msnyder@vmware.com>
7329
cdf99611
MS
7330 * thread.c (info_threads_command): Process arg as thread id,
7331 or list of thread ids.
7332 (thread_find_command): New command.
7333 (_initialize_thread): Document argument for info threads.
7334 Document 'thread find' command.
7335 * NEWS: Document new command "thread find".
60f98dde 7336
0feedb2c
JK
73372011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7338
7339 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
7340 * aclocal.m4: Regenerated with aclocal-1.11.1.
7341 * common/configure: Regenerate with autoconf-2.64.
7342
648cd113
KW
73432011-02-15 Ken Werner <ken.werner@de.ibm.com>
7344
7345 * opencl-lang.c (build_opencl_types): Set the size of the built-in
7346 bool data type to a size of one byte.
7347
5657161f
PA
73482011-02-15 Pedro Alves <pedro@codesourcery.com>
7349 Jan Kratochvil <jan.kratochvil@redhat.com>
7350
7351 * target.c (memory_xfer_live_readonly_partial): Document where to
7352 look for interface description.
7353
494e194e
YQ
73542011-02-15 Yao Qi <yao@codesourcery.com>
7355
7356 PR tdep/12352
7357 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
7358 order to store PC value on stack instead of text section.
7359
d9492458
TJB
73602011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
7361
7362 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
7363 the EFP register set size.
7364 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
7365 data from the VMX register.
7366 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
7367 and write data from/to the VMX register.
7368
cdf99611
MS
73692011-02-14 Michael Snyder <msnyder@vmware.com>
7370
7371 * command.h (enum command_class): New class 'no_set_class', for
7372 "show" commands without a corresponding "set" command.
7373 * value.c (_initialize_values): Use 'no_set_class' for "show values".
7374 * copying.c (_initialize_copying): Ditto for "show copying" and
7375 "show warranty".
7376 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
7377 "show version".
7378 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
7379 which there is no corresponding "set" command (eg. "show copying").
7380
424447ee
PA
73812011-02-14 Pedro Alves <pedro@codesourcery.com>
7382 Jan Kratochvil <jan.kratochvil@redhat.com>
7383
7384 * exec.c (section_table_available_memory): Change `len' parameter
7385 type to ULONGEST.
7386 * exec.h (section_table_available_memory): Ditto.
7387 * value.h (read_value_memory): Rename the `offset' parameter to
7388 `embedded_offset'.
7389
c0f61f9c 73902011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 7391 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
7392
7393 * memrange.c (compare_mem_ranges): Mention sort order in
7394 describing comment.
7395 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
7396 * tracepoint.c (traceframe_available_memory): Extend comment to
7397 mention what happens to RESULT when the target does not support
7398 the query.
7399
6bfc80c7
PA
74002011-02-14 Pedro Alves <pedro@codesourcery.com>
7401 Jan Kratochvil <jan.kratochvil@redhat.com>
7402
7403 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
7404 range.
7405
e7303042
PA
74062011-02-14 Pedro Alves <pedro@codesourcery.com>
7407
7408 * value.c (value_bits_valid, value_bits_synthetic_pointer):
7409 No longer handle NULL values.
7410
8af8e3bc
PA
74112011-02-14 Pedro Alves <pedro@codesourcery.com>
7412
7413 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7414 * value.c: Include "exceptions.h".
7415 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7416 generic error.
7417 * cp-abi.c: Include gdb_assert.h.
7418 (baseclass_offset): Add `embedded_offset' and `val' parameters.
7419 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
7420 errors.
7421 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7422 parameters. No longer returns -1 on error.
7423 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7424 `val' parameters.
7425 * cp-valprint.c: Include exceptions.h.
7426 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7427 the baseclass_offset. Handle unavailable base classes. Use
7428 val_print_invalid_address.
7429 * p-valprint.c: Include exceptions.h.
7430 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7431 when fetching the baseclass_offset. No longer expect
7432 baseclass_offset returning -1. Handle unavailable base classes.
7433 Use val_print_invalid_address.
7434 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7435 `valaddr' parameter, and change its type to gdb_byte pointer. Add
7436 `embedded_offset' and `val' parameters. Adjust.
7437 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7438 parameter, and change its type to gdb_byte pointer. Add
7439 `embedded_offset' and `val' parameters. Adjust. No longer expect
7440 baseclass_offset returning -1.
7441 (value_dynamic_cast): Use value_contents_for_printing rather than
7442 value_contents. Adjust.
7443 (search_struct_field): No longer expect baseclass_offset returning
7444 -1.
7445 (search_struct_method): If reading memory from the target is
7446 necessary, wrap it in a new value to pass to baseclass_offset. No
7447 longer expect baseclass_offset returning -1.
7448 (find_method_list): No longer expect baseclass_offset returning
7449 -1. Use value_contents_for_printing rather than value_contents.
7450 * valprint.c (val_print_invalid_address): New function.
7451 * valprint.h (val_print_invalid_address): Declare.
7452 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7453 and `val' parameters. No longer expect baseclass_offset returning
7454 -1. Adjust.
7455 * gnu-v2-abi.c: Include "exceptions.h".
7456 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7457 parameters. Handle unavailable memory. Recurse through
7458 gnuv2_baseclass_offset directly, rather than through
7459 baseclass_offset. No longer returns -1 on not found, instead
7460 throw an error.
7461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7462 `val' parameters. Adjust.
7463
1b28d0b3
PA
74642011-02-14 Pedro Alves <pedro@codesourcery.com>
7465
7466 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7467 almost but not quite adjacent.
7468
ec0a52e1
PA
74692011-02-14 Pedro Alves <pedro@codesourcery.com>
7470
7471 * value.h (value_entirely_available): Declare.
7472 * value.c (value_entirely_available): New function.
7473 * c-valprint.c (c_value_print): Don't try fetching the pointer's
7474 real type if the pointer is unavailable.
7475
24e6bcee
PA
74762011-02-14 Pedro Alves <pedro@codesourcery.com>
7477
7478 * valops.c (value_repeat): Use read_value_memory instead of
7479 read_memory.
7480
39d37385
PA
74812011-02-14 Pedro Alves <pedro@codesourcery.com>
7482
7483 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7484 * value.c (value_contents_copy_raw, value_contents_copy): New
7485 functions.
7486 (value_primitive_field): Use value_contents_copy_raw instead of
7487 memcpy.
7488 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7489 memcpy.
7490 (value_array, value_slice): Ditto.
7491 * valarith.c (value_subscripted_rvalue): Use
7492 value_contents_copy_raw instead of memcpy.
7493
a3d34bf4
PA
74942011-02-14 Pedro Alves <pedro@codesourcery.com>
7495
7496 <unavailable> references.
7497
7498 * valops.c (get_value_at): Use value_from_contents_and_address,
7499 avoiding read_memory.
7500
9fc6d940
PA
75012011-02-14 Pedro Alves <pedro@codesourcery.com>
7502
7503 * c-valprint.c (c_val_print): Print a string with unavailable
7504 contents as an array.
7505
5467c6c8
PA
75062011-02-14 Pedro Alves <pedro@codesourcery.com>
7507
7508 * value.h (unpack_bits_as_long): Delete declaration.
7509 (unpack_value_bits_as_long): Declare.
7510 (unpack_value_field_as_long): Declare.
7511 (value_field_bitfield): Declare.
7512 * value.c (unpack_bits_as_long): Rename to...
7513 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
7514 value parameters. Return the extracted result in a new output
7515 parameter. If the value contents are unavailable, return false,
7516 otherwise return true.
7517 (unpack_value_bits_as_long): New.
7518 (unpack_field_as_long): Rename to...
7519 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
7520 Add embedded_offset and value parameters. Return the extracted
7521 result in a new output parameter. If the value contents are
7522 unavailable, return false, otherwise return true.
7523 (unpack_value_field_as_long): New.
7524 (unpack_field_as_long_1): New.
7525 (unpack_field_as_long): Reimplement as wrapper around
7526 unpack_value_field_as_long_1.
7527 (value_field_bitfield): New function.
7528 * valops.c (value_fetch_lazy): When fetching a bitfield, use
7529 unpack_value_bits_as_long. Mark the value as unavailable, if it
7530 is unavailable.
7531 * jv-valprint.c (java_print_value_fields): Use
7532 value_field_bitfield.
7533 * p-valprint.c (pascal_object_print_value_fields): Use
7534 value_field_bitfield.
7535 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7536
3158c6ed
PA
75372011-02-14 Pedro Alves <pedro@codesourcery.com>
7538
7539 * value.c (get_internalvar_integer): Also return the int value of
7540 TYPE_CODE_INT INTERNALVAR_VALUE values.
7541 (set_internalvar): Don't special case TYPE_CODE_INT.
7542
9fbdca0d
PA
75432011-02-14 Pedro Alves <pedro@codesourcery.com>
7544
7545 * value.c (struct internalvar) <enum internalvar_kind>: Remove
7546 INTERNALVAR_POINTER.
7547 <pointer>: Delete.
7548 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7549 (set_internalvar): Remove special TYPE_CODE_PTR handling.
7550 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7551
c8c1c22f
PA
75522011-02-14 Pedro Alves <pedro@codesourcery.com>
7553
7554 * value.h (value_available_contents_eq): Declare.
7555 * value.c (find_first_range_overlap): New function.
7556 (value_available_contents_eq): New function.
7557 * valprint.c (val_print_array_elements): Use
7558 value_available_contents_eq.
7559 * ada-valprint.c (val_print_packed_array_elements): Use
7560 value_available_contents_eq.
7561 * jv-valprint.c (java_value_print): Use
7562 value_available_contents_eq.
7563
e6e4e701
PA
75642011-02-14 Pedro Alves <pedro@codesourcery.com>
7565
7566 * target.c (target_read_live_memory): New function.
7567 (memory_xfer_live_readonly_partial): New.
7568 (memory_xfer_partial): If reading from a traceframe, fallback to
7569 reading unavailable read-only memory from read-only regions of
7570 live target memory.
7571 * tracepoint.c (disconnect_tracing): Adjust.
7572 (set_current_traceframe): New, factored out from
7573 set_traceframe_number.
7574 (set_traceframe_number): Reimplement to only change the traceframe
7575 number on the GDB side.
7576 (do_restore_current_traceframe_cleanup): Adjust.
7577 (make_cleanup_restore_traceframe_number): New.
7578 (cur_traceframe_number): New global.
7579 (tfile_open): Set cur_traceframe_number to no traceframe.
7580 (set_tfile_traceframe): New function.
7581 (tfile_trace_find): If looking up a traceframe using any method
7582 other than by number, make sure the current tfile traceframe
7583 matches gdb's current traceframe. Update the current tfile
7584 traceframe if the lookup succeeded.
7585 (tfile_fetch_registers, tfile_xfer_partial)
7586 (tfile_get_trace_state_variable_value): Make sure the remote
7587 traceframe matches gdb's current traceframe.
7588 * remote.c (remote_traceframe_number): New global.
7589 (remote_open_1): Set it to -1.
7590 (set_remote_traceframe): New function.
7591 (remote_fetch_registers, remote_store_registers)
7592 (remote_xfer_memory, remote_xfer_partial)
7593 (remote_get_trace_state_variable_value): Make sure the remote
7594 traceframe matches gdb's current traceframe.
7595 (remote_trace_find): If looking up a traceframe using any method
7596 other than by number, make sure the current remote traceframe
7597 matches gdb's current traceframe. Update the current remote
7598 traceframe if the lookup succeeded.
7599 * infrun.c (fetch_inferior_event): Adjust.
7600 * tracepoint.h (set_current_traceframe): Declare.
7601 (get_traceframe_number, set_traceframe_number): Add describing
7602 comments.
7603
e6ca34fc
PA
76042011-02-14 Pedro Alves <pedro@codesourcery.com>
7605
7606 Mark pieces of values as unavailable if the corresponding memory
7607 is unavailable.
7608
7609 * valops.c: Include tracepoint.h.
7610 (value_fetch_lazy): Use read_value_memory.
7611 (read_value_memory): New.
7612 * value.h (read_value_memory): Declare.
7613 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7614 * exec.c (section_table_available_memory): New function.
7615 * exec.h (section_table_available_memory): Declare.
7616
2a7498d8
PA
76172011-02-14 Pedro Alves <pedro@codesourcery.com>
7618
7619 * Makefile.in (SFILES): Add memrange.c.
7620 (HFILES_NO_SRCDIR): Add memrange.h.
7621 (COMMON_OBS): Add memrange.o.
7622 * memrange.c: New file.
7623 * memrange.h: New file.
7624 * tracepoint.c: Include memrange.h.
7625 (struct mem_range): Delete.
7626 (mem_range_s): Delete.
7627 (traceframe_available_memory): New function.
7628 * tracepoint.h (traceframe_available_memory): Declare.
7629
b3b9301e
PA
76302011-02-14 Pedro Alves <pedro@codesourcery.com>
7631
7632 * target.h (struct traceframe_info): Forward declare.
7633 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7634 (struct target_ops) <to_traceframe_info>: New field.
7635 (target_traceframe_info): New.
7636 * target.c (update_current_target): Inherit and default
7637 to_traceframe_info.
7638 * remote.c (PACKET_qXfer_traceframe_info): New.
7639 (remote_protocol_features): Register qXfer:traceframe-info:read.
7640 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7641 (remote_traceframe_info): New.
7642 (init_remote_ops): Install it.
7643 (_initialize_remote): Install "set/show remote traceframe-info"
7644 commands.
7645 * tracepoint.h (parse_traceframe_info): Declare.
7646 * tracepoint.c (struct mem_range): New.
7647 (mem_range_s): New typedef.
7648 (struct traceframe_info): New.
7649 (traceframe_info): New global.
7650 (free_traceframe_info): New function.
7651 (clear_traceframe_info): New function.
7652 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7653 info.
7654 (build_traceframe_info): New function.
7655 (tfile_traceframe_info): New function.
7656 (init_tfile_ops): Install tfile_traceframe_info.
7657 (traceframe_info_start_memory, free_result): New functions.
7658 (memory_attributes, traceframe_info_elements): New globals.
7659 (parse_traceframe_info, get_traceframe_info): New functions.
7660 * features/traceframe-info.dtd: New file.
7661 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7662
4e07d55f
PA
76632011-02-14 Pedro Alves <pedro@codesourcery.com>
7664
7665 Base support for <unavailable> value contents.
7666
4e07d55f
PA
7667 * value.h (value_bytes_available): Declare.
7668 (mark_value_bytes_unavailable): Declare.
7669 * value.c (struct range): New struct.
7670 (range_s): New typedef.
7671 (ranges_overlap): New function.
7672 (range_lessthan): New function.
7673 (ranges_contain_p): New function.
7674 (struct value) <unavailable>: New field.
7675 (value_bytes_available): New function.
7676 (mark_value_bytes_unavailable): New function.
7677 (require_not_optimized_out): Constify parameter.
7678 (require_available): New function.
7679 (value_contents_all, value_contents): Require all bytes be
7680 available.
7681 (value_free): Free `unavailable'.
7682 (value_copy): Copy `unavailable'.
7683 * valprint.h (val_print_unavailable): Declare.
7684 * valprint.c (valprint_check_validity): Rename `offset' parameter
7685 to `embedded_offset'. If printing a scalar, check whether the
7686 value chunk is available.
7687 (val_print_unavailable): New.
7688 (val_print_scalar_formatted): Check whether the value is
7689 available.
7690 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7691 pretty-printing unavailable values.
7692
bc9a5551
JK
76932011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7694
7695 Fix const/volatile qualifiers of C++ types, PR c++/12328.
7696 * c-typeprint.c (c_type_print_args): Update the function comment. New
7697 variable param_type, initialize it. Remove const/volatile qualifiers
7698 for language_cplus and !show_artificial. Use param_type.
7699
93b55aa1
JK
77002011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7703 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
7704 * symtab.h (struct symtab) <next>: Comment extension.
7705
181d9476
YQ
77062011-02-12 Yao Qi <yao@codesourcery.com>
7707
7708 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7709
b708a5c7
JK
77102011-02-11 Yao Qi <yao@codesourcery.com>
7711
7712 * common/Makefile.in: Add copyright header.
7713
c5187ac6
PA
77142011-02-11 Pedro Alves <pedro@codesourcery.com>
7715
7716 * infrun.c (proceed): Move switching out and in of tfind mode from
7717 here ...
7718 (fetch_inferior_event): ... to here.
7719
4f3e6fb7
YQ
77202011-02-11 Yao Qi <yao@codesourcery.com>
7721
7722 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7723 libcommon.a.
7724 * configure.ac: Add common to sub dir.
7725 * configure: Regenerate.
7726
b708a5c7
JK
77272011-02-11 Yao Qi <yao@codesourcery.com>
7728
7729 Build libcommon.a.
7730
7731 * common/Makefile.in: New.
7732 * common/configure.ac: New.
7733 * common/aclocal.m4: New.
7734 * common/configure: Generate.
7735
2287cc7e
PA
77362011-02-10 Pedro Alves <pedro@codesourcery.com>
7737
7738 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7739 side of the parenthesis.
7740
7741 Merge from GCC:
7742 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 7743 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 7744
fd62cb89
MS
77452011-02-08 Michael Snyder <msnyder@vmware.com>
7746
7747 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7748
56d2815c
JK
77492011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7752 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7753 psubd and paddd.
7754
4f7d61a8
JK
77552011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7756
7757 PR 12361.
7758 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7759 phsubsw.
7760 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7761 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7762
54fcddd0
UW
77632011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7764
7765 * dwarf2read.c (read_subroutine_type): Set special calling
7766 convention flag for functions compiled by IBM XL C for OpenCL.
7767 * ppc-sysv-tdep.c: Include "dwarf2.h"
7768 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7769 calling convention.
7770 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
7771 IBM OpenCL vector types calling convention.
7772 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7773 (ppc_sysv_abi_broken_return_value): Likewise.
7774 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7775 types calling convention.
7776 (ppc64_sysv_abi_return_value): Likewise.
7777 * spu-tdep.c: Include "dwarf2.h"
7778 (spu_return_value): Implement IBM OpenCL vector types calling
7779 convention.
7780
d6dafb7c
UW
77812011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7782
7783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7784 correct ABI for AltiVec vector arguments.
7785
32b72a42
PA
77862011-02-07 Pedro Alves <pedro@codesourcery.com>
7787
7788 * valprint.c (val_print): Extend comment.
7789 * ada-valprint.c (ada_valprint): Rewrite comment deferring
7790 interface explanation to val_print.
7791 (ada_val_print_array): Adjust comment to current interface.
7792 (print_field_values): Adjust comment to current interface.
7793 * c-valprint.c (c_val_print): Rewrite comment deferring interface
7794 explanation to val_print.
7795 * f-valprint.c (f_val_print): Ditto.
7796 * jv-valprint.c (java_val_print): Ditto.
7797 * m2-valprint.c (m2_val_print): Ditto.
7798 * p-valprint.c (pascal_val_print): Ditto.
7799
9998af43
TJB
78002011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
7801
7802 * breakpoint.c (parse_breakpoint_sals): Fix description.
7803
505500db 78042011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 7805 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
7806
7807 * python/py-inferior.c (python_on_normal_stop): New function.
7808 (python_on_resume): New function.
7809 (python_inferior_exit): New function.
7810 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7811 inferior_exit observers.
7812 * python/py-evtregistry.c: New file.
7813 * python/py-threadevent.c : New file.
7814 * python/py-event.c: New file.
7815 * python/py-evts.c: New file.
7816 * python/py-continueevent.c: New file.
7817 * python/py-bpevent.c: New file.
7818 * python/py-signalevent.c: New file.
7819 * python/py-exetiedevent.c: New file.
7820 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7821 Move struct breakpoint_object from here...
7822 * python/python-internal.h: ... to here.
7823 * python/py-event.h: New file.
7824 * python/py-events.h: New file.
7825 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7826 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7827 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7828 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7829 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7830 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7831 Add build rules for all the above.
7832
9e0ac564
TT
78332011-02-04 Tom Tromey <tromey@redhat.com>
7834
7835 * dwarf2read.c (dwarf2_section_empty_p): New function.
7836 (dwarf2_read_section): Use dwarf2_section_empty_p.
7837 (dwarf2_section_size): New function.
7838 (dwarf2_get_section_info): Unconditionally read section.
7839 (dwarf2_read_index): Use dwarf2_section_empty_p.
7840 (partial_read_comp_unit_head): Use dwarf2_section_size.
7841 (dwarf2_symbol_mark_computed): Likewise.
7842
eee5b35e
DD
78432011-02-04 David Daney <ddaney@caviumnetworks.com>
7844
7845 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7846
385203ed
DD
78472011-02-04 David Daney <ddaney@caviumnetworks.com>
7848
7849 * mips-linux-tdep.c: Include xml-syscall.h.
7850 (mips_linux_get_syscall_number): New function.
7851 (mips_linux_init_abi): Add calls to
7852 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7853 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7854 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7855 * syscalls/mips-n32-linux.xml: New file.
7856 * syscalls/mips-n64-linux.xml: New file.
7857 * syscalls/mips-o32-linux.xml: New file.
7858
9277c30c
UW
78592011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
7860
7861 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7862 Complain about inverted range entries.
7863 (dwarf2_record_block_ranges): Likewise.
7864
a3be7890
TJB
78652011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
7866
7867 Fix some typos.
7868 * breakpoint.c (update_watchpoint): Fix name of the
7869 update_global_location_list function.
7870 (print_one_breakpoint): Fix typo.
7871 (_initialize_breakpoint): Remove extra space in hbreak help
7872 string.
7873 * breakpoint.h (struct bp_location) <length>: Fix field
7874 description.
7875
041274d8
PA
78762011-02-04 Pedro Alves <pedro@codesourcery.com>
7877
7878 * regcache.c (registers_changed_ptid): Don't explictly always
7879 clear `current_regcache'. Only clear current_thread_ptid and
7880 current_thread_arch when PTID matches. Only reinit the frame
7881 cache if PTID matches the current inferior_ptid. Move alloca(0)
7882 call to ...
7883 (registers_changed): ... here.
7884
c1c2ab58
UW
78852011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
7886
7887 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7888 starts with __stack_chk_guard as stack guard symbol.
7889
9011945e
AB
78902011-02-03 Andrew Burgess <aburgess@broadcom.com>
7891
7892 * disasm.c (compare_lines): Handle the end of sequence markers
7893 within the line table to better support disassembling over
7894 compilation unit boundaries.
7895
e0634ccf
UW
78962011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7897
7898 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7899 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
7900 implementation even if no symbols are available.
7901 (thumb_analyze_prologue): Update call to skip_prologue_function.
7902 (arm_analyze_prologue): Likewise.
7903
0e9e9abd
UW
79042011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7905
7906 * arm-tdep.c: Include "observer.h".
7907 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7908 (arm_exidx_data_key): New static variable.
7909 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7910 (struct arm_exidx_data): Likewise.
7911 (arm_exidx_data_free): New function.
7912 (arm_compare_exidx_entries): Likewise.
7913 (arm_obj_section_from_vma): Likewise.
7914 (arm_exidx_new_objfile): Likewise.
7915 (arm_find_exidx_entry): Likewise.
7916 (arm_exidx_fill_cache): Likewise.
7917 (arm_exidx_unwind_sniffer): Likewise.
7918 (arm_exidx_unwind): New global variable.
7919 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7920 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7921 observer. Register arm_exidx_data_key as objfile data.
7922
2e9e421f
UW
79232011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7924
7925 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7926 due to accessing uninitialized variable. Fix indentation.
7927
580688f3
PA
79282011-02-02 Pedro Alves <pedro@codesourcery.com>
7929
7930 * c-valprint.c (c_value_print): When doing virtual base pointer
7931 adjustment, create a new value with adjusted contents rather than
7932 changing the contents of the value being printed (and getting it
7933 wrong).
7934
3d2c1d41
PA
79352011-02-02 Pedro Alves <pedro@codesourcery.com>
7936
7937 * xml-support.c (xml_find_attribute): New.
7938 (xinclude_start_include): Use it.
7939 * xml-support.h (xml_find_attribute): Declare.
7940 * memory-map.c (memory_map_start_memory)
7941 (memory_map_start_property): Use xml_find_attribute.
7942 * osdata.c (osdata_start_osdata, osdata_start_column): Use
7943 xml_find_attribute.
7944 * remote.c (start_thread): Use xml_find_attribute.
7945 * solib-target.c (library_list_start_segment)
7946 (library_list_start_section, library_list_start_library)
7947 (library_list_start_list): Use xml_find_attribute.
7948 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7949 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7950 (tdesc_start_field): Use xml_find_attribute.
7951
0af3e2db
UW
79522011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
7953
7954 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7955 (BUILD_OCL_VTYPES): Update.
7956
c1039e3c
JB
79572011-02-02 Joel Brobecker <brobecker@adacore.com>
7958
7959 * configure.ac: Work around non-GNU sed limitation when computing
7960 python version number.
7961 * configure: Regenerate.
7962
600ea1be
JK
79632011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 Fix debug printing of TYPE_INSTANCE.
7966 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7967 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7968
56c12414
JK
79692011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7970
7971 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7972 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7973 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7974 * ada-operator.inc: Rename the file to ...
7975 * ada-operator.def: ... here, wrap all the entries by macro OP.
7976 * expprint.c (op_name_standard): Remove all the entries. Include
7977 "std-operator.def" instead.
7978 * expression.h (enum exp_opcode): Include "std-operator.def" and
7979 "ada-operator.def". Move all the entries ...
7980 * std-operator.def: ... here, wrap all the entries by macro OP.
7981
c52b559d
PP
79822011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7983
7984 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7985 * breakpoint.c (remove_jit_event_breakpoints): New function.
7986 * jit.c (jit_descriptor_addr): Delete.
7987 (registering_code): Delete.
7988 (clear_int): Delete.
7989 (jit_inferior_data): New variable.
7990 (struct jit_inferior_data): New type.
7991 (get_jit_inferior_data): New function.
7992 (jit_inferior_data_cleanup): New function.
7993 (jit_read_descriptor): Adjust.
7994 (jit_register_code): Adjust.
7995 (jit_breakpoint_re_set_internal): New function; move code here ...
7996 (jit_inferior_init): ... from here.
7997 (jit_breakpoint_re_set): Adjust.
7998 (jit_reset_inferior_data_and_breakpoints): New function.
7999 (jit_inferior_created_observer): Adjust.
8000 (jit_inferior_exit_hook): Adjust.
8001 (jit_executable_changed_observer): New function.
8002 (jit_event_handler): Adjust.
8003 (_initialize_jit): Adjust.
8004
e839132d
MS
80052011-01-31 Michael Snyder <msnyder@vmware.com>
8006
8007 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
8008 line.
8009
47a80e90
TT
80102011-01-31 Tom Tromey <tromey@redhat.com>
8011
8012 PR python/12216:
8013 * python/python.c (execute_gdb_command): Call
8014 prevent_dont_repeat.
8015 * top.c (suppress_dont_repeat): New global.
8016 (dont_repeat): Use it.
8017 (prevent_dont_repeat): New function.
8018 * command.h (prevent_dont_repeat): Declare.
8019
45a43567
TT
80202011-01-31 Tom Tromey <tromey@redhat.com>
8021
8022 * infcmd.c (finish_backward): Use breakpoint_set_silent.
8023 * python/py-breakpoint.c (bppy_set_silent): Use
8024 breakpoint_set_silent.
8025 (bppy_set_thread): Use breakpoint_set_thread.
8026 (bppy_set_task): Use breakpoint_set_task.
8027 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
8028 (breakpoint_set_task): Declare.
8029 (make_breakpoint_silent): Remove.
8030 * breakpoint.c (breakpoint_set_silent): New function.
8031 (breakpoint_set_thread): Likewise.
8032 (breakpoint_set_task): Likewise.
8033 (make_breakpoint_silent): Remove.
8034
09d682a4
TT
80352011-01-31 Tom Tromey <tromey@redhat.com>
8036
8037 * breakpoint.h (user_breakpoint_p): Declare.
8038 * breakpoint.c (user_breakpoint_p): New function.
8039 (breakpoint_1): Use it.
8040 (save_breakpoints): Likewise.
8041
9c4ea6c5
JB
80422011-01-31 Joel Brobecker <brobecker@adacore.com>
8043
8044 * configure.ac: Add handling of Python distribution on Windows.
8045 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
8046 sysconfig variables are not defined, then do not use them.
8047 On Windows, if LIBPL is not defined, then use prefix + '/libs'
8048 instead. On Windows, return all paths using forward-slashes
8049 rather than backslashes.
8050
ac534cba
JB
80512011-01-31 Joel Brobecker <brobecker@adacore.com>
8052
8053 * configure.ac: Remove fallback behavior for building
8054 against Python. Remove tweaking of Python include path.
8055 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
8056 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
8057 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
8058 Always restore CPPFLAGS and LIBS after linking test.
8059 * configure: Regenerated.
8060 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
8061 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
8062 * python/python-internal.h: Adjust includes of Python .h files.
8063
c2f0d045
JB
80642011-01-31 Joel Brobecker <brobecker@adacore.com>
8065
8066 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
8067 in error message.
8068
6b0c4c1f
JB
80692011-01-31 Joel Brobecker <brobecker@adacore.com>
8070
8071 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
8072 value test.
8073
672c9795
YQ
80742011-01-31 Yao Qi <yao@codesourcery.com>
8075
8076 * arm-linux-nat.c: Update calls to regcache_register_status
8077 instead of regcache_valid_p.
8078 * aix-thread.c: Likewise.
8079 * i386gnu-nat.c: Likewise.
8080
80b23b6a
JK
80812011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8082
8083 Fix crash.
8084 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
8085 touching TYPE_FIELD_ARTIFICIAL.
8086
4cd712bd
RE
80872011-01-28 Richard Earnshaw <rearnsha@arm.com>
8088
8089 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
8090 Committers.
8091
ffd5ec24
PA
80922011-01-28 Pedro Alves <pedro@codesourcery.com>
8093
8094 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
8095 selected, don't try iterating over the traceframe's blocks.
8096 (tfile_has_stack): If there's no traceframe selected, then there's
8097 no stack.
8098 (tfile_has_registers): If there's no traceframe selected, then
8099 there's no registers.
8100
e8c9e0a1
PA
81012011-01-28 Pedro Alves <pedro@codesourcery.com>
8102
8103 * target.c (memory_xfer_partial): No need to restore shadows if we
8104 haven't read anything.
8105
de15c4ab
PA
81062011-01-28 Pedro Alves <pedro@codesourcery.com>
8107
8108 * mips-tdep.c (mips_print_register): Use get_frame_register_value
8109 and val_print_scalar_formatted.
8110
9f41c731
PA
81112011-01-27 Pedro Alves <pedro@codesourcery.com>
8112
8113 * tracepoint.c (tfile_read): New.
8114 (tfile_open): Use it.
8115 (tfile_get_traceframe_address): Use it.
8116 (tfile_trace_find): Use it.
8117 (walk_blocks_callback_func): New typedef.
8118 (match_blocktype): New function.
8119 (traceframe_walk_blocks): New function.
8120 (traceframe_find_block_type): New function.
8121 (tfile_fetch_registers, tfile_xfer_partial)
8122 (tfile_get_trace_state_variable_value): Use
8123 traceframe_find_block_type and tfile_read.
8124
cdefc55d
KB
81252011-01-26 Kevin Buettner <kevinb@redhat.com>
8126
8127 * remote-mips.c: Add internationalization mark ups. Remove
8128 trailing \n from already marked up strings.
8129
a81766d8
TT
81302011-01-26 Tom Tromey <tromey@redhat.com>
8131
8132 * python/py-prettyprint.c (print_string_repr): Clear
8133 'addressprint' option when calling val_print_string.
8134 (print_children): Handle Val_pretty_default. Clear 'addressprint'
8135 option when calling val_print_string.
8136
74aedc46
TT
81372011-01-26 Tom Tromey <tromey@redhat.com>
8138
8139 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
8140 GDB_PY_LL_ARG.
8141 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
8142 macros.
8143 (gdb_py_longest, gdb_py_ulongest): New typedefs.
8144 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
8145 (gdb_py_long_as_ulongest): New defines.
8146 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
8147 (gdb_py_int_as_long): Declare.
8148 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
8149 GDB_PY_LL_ARG, gdb_py_object_from_longest.
8150 (valpy_long): Add comment.
8151 * python/py-utils.c (get_addr_from_python): Use
8152 gdb_py_long_as_ulongest. Handle overflow properly.
8153 (gdb_py_object_from_longest): New function.
8154 (gdb_py_object_from_ulongest): Likewise.
8155 (gdb_py_int_as_long): Likewise.
8156 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
8157 * python/py-symtab.c (salpy_get_pc): Use
8158 gdb_py_long_from_ulongest.
8159 (salpy_get_line): Use PyInt_FromLong.
8160 * python/py-param.c (set_parameter_value): Use
8161 gdb_py_int_as_long.
8162 * python/py-lazy-string.c (stpy_get_address): Use
8163 gdb_py_long_from_ulongest.
8164 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
8165 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
8166 * python/py-breakpoint.c (bppy_set_thread): Use
8167 gdb_py_int_as_long.
8168 (bppy_set_task): Likewise.
8169 (bppy_set_ignore_count): Likewise.
8170 (bppy_set_hit_count): Likewise.
8171 * python/py-block.c (blpy_get_start): Use
8172 gdb_py_object_from_ulongest.
8173 (blpy_get_end): Likewise.
8174 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
8175
e4f6d2ec
TJB
81762011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
8177
8178 PR/symtab 11766:
8179 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
8180 * gdb/solib.c (solib_read_symbols): Check for addr_low in
8181 equality test for objfile, initialize addr_low if needed.
8182
b30aa278
PA
81832011-01-25 Pedro Alves <pedro@codesourcery.com>
8184
8185 * tui/tui-regs.c (tui_register_format): Remove dead code.
8186
ab2188aa
PA
81872011-01-25 Pedro Alves <pedro@codesourcery.com>
8188
8189 * printcmd.c (print_formatted): Use val_print_scalar_formatted
8190 instead of print_scalar_formatted.
8191 (print_scalar_formatted): Don't handle 's' format strings here,
8192 and add an assertion that we never see such format here.
8193 * valprint.h (val_print_scalar_formatted): Declare.
8194 * valprint.c (val_print_scalar_formatted): New.
8195 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
8196 instead of print_scalar_formatted.
8197 * jv-valprint.c (java_val_print): Ditto.
8198 * p-valprint.c (pascal_val_print): Ditto.
8199 * ada-valprint.c (ada_val_print_1): Ditto.
8200 * f-valprint.c (f_val_print): Ditto.
8201 * infcmd.c (registers_info): Ditto.
8202 * m2-valprint.c (m2_val_print): Ditto.
8203
66d61a4c
PA
82042011-01-25 Pedro Alves <pedro@codesourcery.com>
8205
8206 * m2-valprint.c (print_unbounded_array): Pass
8207 value_contents_for_printing rather than value_contents, to
8208 m2_print_array_contents. Also pass in the value.
8209
831adc1f
JK
82102011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8211
8212 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
8213 (save_gdb_index_command): Switch to .gdb_index version 4.
8214
20622269
PA
82152011-01-25 Pedro Alves <pedro@codesourcery.com>
8216
8217 * mi/mi-main.c (get_register): Use get_frame_register_value rather
8218 than frame_register, and always pass a valid value to val_print.
8219
585fdaa1
PA
82202011-01-25 Pedro Alves <pedro@codesourcery.com>
8221
8222 Centralize printing "<optimized out>".
8223
8224 * valprint.h (val_print_optimized_out): Declare.
8225 * cp-valprint.c (cp_print_value_fields): Use
8226 val_print_optimized_out.
8227 * jv-valprint.c (java_print_value_fields): Ditto.
8228 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8229 * printcmd.c (print_formatted): Ditto.
8230 * valprint.c (valprint_check_validity): Ditto.
8231 (value_check_printable): Ditto.
8232 (val_print_optimized_out): New.
8233
29ec5263
PA
82342011-01-25 Pedro Alves <pedro@codesourcery.com>
8235
8236 * infcmd.c (default_print_registers_info): Allocate values so to
8237 never pass a NULL value to val_print.
8238
de4127a3
PA
82392011-01-25 Pedro Alves <pedro@codesourcery.com>
8240
8241 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
8242 boolean. Make sure to always pass a value that matches the
8243 contents buffer to callees. Preserve `address' for following
8244 iterations.
8245 * value.c (value_contents_for_printing_const): New.
8246 (value_address): Constify value argument.
8247 * value.h (value_contents_for_printing_const): Declare.
8248 (value_address): Constify value argument.
8249
ee99023e
PA
82502011-01-25 Pedro Alves <pedro@codesourcery.com>
8251
8252 * regcache.c (struct regcache_descr): Rename
8253 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
8254 and sizeof_cooked_register_valid_p to
8255 sizeof_cooked_register_status.
8256 (init_regcache_descr): Adjust.
8257 (struct regcache): Rename register_valid_p field to
8258 register_status.
8259 (regcache_xmalloc_1, regcache_xfree, regcache_save)
8260 (do_cooked_read): Adjust.
8261 (regcache_valid_p): Rename to ...
8262 (regcache_register_status): ... this. Adjust.
8263 (regcache_invalidate): Adjust.
8264 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
8265 Adjust.
8266 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
8267 as unavailable, not valid.
8268 (regcache_dump): Adjust.
8269 * regcache.h (enum register_status): New.
8270 (regcache_register_status): Declare.
8271 (regcache_invalidate): Delete declaration.
8272 * corelow.c (get_core_registers): Adjust.
8273 * tracepoint.c (tfile_fetch_registers): Adjust.
8274 * trad-frame.c (REG_VALUE): Rename to ...
8275 (TF_REG_VALUE): ... this.
8276 (REG_UNKNOWN): Rename to ...
8277 (TF_REG_UNKNOWN): ... this.
8278 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
8279 * mi/mi-main.c (register_changed_p): Adjust.
8280
99e42fd8
PA
82812011-01-25 Pedro Alves <pedro@codesourcery.com>
8282
8283 * regcache.c (struct regcache_descr): Remove outdated comment.
8284 (init_regcache_descr): Remove sizeof_raw_register_valid_p
8285 overallocate hack.
8286 (regcache_xmalloc): Rename to ...
8287 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
8288 Allocate the regcache type accordingly.
8289 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
8290 (regcache_xfree): Asser the source is also readonly. Copy sizeof
8291 cooked registers, not raw.
8292 (regcache_dup_no_passthrough): Delete.
8293 (get_thread_arch_regcache): Use regcache_xmalloc_1.
8294 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
8295 mention obsolete write_register_bytes.
8296 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
8297
f7605bc2
PA
82982011-01-25 Pedro Alves <pedro@codesourcery.com>
8299
8300 Stop remote_read_bytes from handling partial reads itself.
8301
8302 * remote-fileio.c: Include target.h.
8303 (remote_fileio_write_bytes): Delete.
8304 (remote_fileio_func_open, remote_fileio_func_write)
8305 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
8306 target_read_memory.
8307 (remote_fileio_func_stat): Use target_read_memory and
8308 target_write_memory.
8309 (remote_fileio_func_gettimeofday): Use target_write_memory.
8310 (remote_fileio_func_system): Use target_read_memory.
8311 * remote.c (remote_write_bytes): Make it static.
8312 (remote_read_bytes): Don't handle partial reads here.
8313 * remote.h (remote_read_bytes): Delete declaration.
8314
efc0eabd
PA
83152011-01-25 Pedro Alves <pedro@codesourcery.com>
8316
8317 Simplify XML parsing a bit.
8318
8319 * xml-support.h (gdb_xml_parse_quick): Declare.
8320 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
8321 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
8322 parameter.
8323 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
8324 gdb_xml_create_parser_and_cleanup_1.
8325 (gdb_xml_parse_quick): New.
8326 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
8327 * osdata.c (osdata_parse): Ditto.
8328 * remote.c (remote_threads_info): Ditto.
8329 * solib-target.c (solib_target_parse_libraries): Ditto.
8330 * xml-syscall.c (syscall_parse_xml): Ditto.
8331 * xml-tdesc.c (tdesc_parse_xml): Ditto.
8332
314d366a
KB
83332011-01-24 Kevin Buettner <kevinb@redhat.com>
8334
8335 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
8336 with remote-mips.o added to gdb_target_obs.
8337 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
8338
a491d753
PA
83392011-01-24 Pedro Alves <pedro@codesourcery.com>
8340
8341 * ada-valprint.c (val_print_packed_array_elements): Pass the
8342 correct struct value to val_print.
8343 (ada_val_print_1): Ditto.
8344
490f124f
PA
83452011-01-24 Pedro Alves <pedro@codesourcery.com>
8346
8347 Don't lose embedded_offset in printing routines throughout.
8348
8349 * valprint.h (val_print_array_elements): Change prototype.
8350 * valprint.c (val_print_array_elements): Add `embedded_offset'
8351 parameter, and adjust to pass it down to val_print, while passing
8352 `valaddr' or `address' unmodified. Take embedded_offset into
8353 account when checking repetitions.
8354 * c-valprint.c (c_val_print): Pass embedded_offset to
8355 val_print_array_elements instead of adjusting `valaddr' and
8356 `address'.
8357 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
8358 embedded_offset to val_print_array_elements instead of adjusting
8359 `valaddr'.
8360 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
8361 * p-valprint.c (pascal_val_print): Pass embedded_offset to
8362 val_print_array_elements and pascal_object_print_value_fields
8363 instead of adjusting `valaddr'.
8364 (pascal_object_print_value_fields): Add `offset' parameter, and
8365 adjust to use it.
8366 (pascal_object_print_value): Add `offset' parameter, and adjust to
8367 use it.
8368 (pascal_object_print_static_field): Use
8369 value_contents_for_printing/value_embedded_offset, rather than
8370 value_contents.
8371 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
8372 parameter, and adjust to use it. Use
8373 value_contents_for_printing/value_embedded_offset, rather than
8374 value_contents.
8375 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
8376 (ada_val_print_array): Add `offset' parameter, and adjust to use
8377 it.
8378 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
8379 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
8380 Instead work with offsets. Use
8381 value_contents_for_printing/value_embedded_offset, rather than
8382 value_contents. Change `defer_val_int' local type to CORE_ADDR,
8383 and use value_from_pointer to extract a target pointer, rather
8384 than value_from_longest.
8385 (print_variant_part): Add `offset' parameter. Replace
8386 `outer_valaddr' parameter by a new `outer_offset' parameter.
8387 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8388 (ada_value_print): Use
8389 value_contents_for_printing/value_embedded_offset, rather than
8390 value_contents.
8391 (print_record): Add `offset' parameter, and adjust to pass it
8392 down.
8393 (print_field_values): Add `offset' parameter. Replace
8394 `outer_valaddr' parameter by a new `outer_offset' parameter.
8395 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8396 Use value_contents_for_printing/value_embedded_offset, rather than
8397 value_contents.
8398 * d-valprint.c (dynamic_array_type): Use
8399 value_contents_for_printing/value_embedded_offset, rather than
8400 value_contents.
8401 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
8402 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
8403 (java_print_value_fields): Take `offset' into account. Don't
8404 re-adjust `valaddr'. Instead pass down adjusted offsets.
8405 (java_val_print): Take `embedded_offset' into account. Pass it to
8406 java_print_value_fields.
8407 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
8408 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
8409 down adjusted offsets.
8410 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
8411 (f_val_print): Take `embedded_offset' into account.
8412
7bfc9434
JB
84132011-01-21 Joel Brobecker <brobecker@adacore.com>
8414
8415 * inflow.c: Include "gdbcmd.h".
8416 (interactive_mode): New static global, moved here from top.c.
8417 (show_interactive_mode): New function, moved here from top.c.
8418 use gdb_has_a_terminal instead of input_from_terminal_p to
8419 determine the current mode.
8420 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8421 setting.
8422 (_initialize_inflow): Add the "set/show interactive-mode"
8423 commands. Moved here from top.c, after having adjusted slightly
8424 the help text.
8425 * top.c (interactive_mode, show_interactive_mode): Delete, moved
8426 to inflow.c.
8427 (input_from_terminal_p): Remove handling of "interactive-mode"
8428 setting, moved to infow.c.
8429 (init_main): Remove creation of the "set/show interactive-mode"
8430 commands, moved to inflow.c.
8431
44603653
JB
84322011-01-19 Joel Brobecker <brobecker@adacore.com>
8433
8434 * NEWS: Add entry for native ia64-hpux support.
8435
4694da01
TT
84362011-01-19 Tom Tromey <tromey@redhat.com>
8437
8438 PR mi/8618:
8439 * thread.c (free_thread): Free 'name'.
8440 (print_thread_info): Emit thread name. Change CLI output.
8441 (thread_name_command): New function.
8442 (do_captured_thread_select): Emit newline.
8443 (_initialize_thread): Register 'thread name' command.
8444 * target.h (struct target_ops) <to_thread_name>: New field.
8445 (target_thread_name): New macro.
8446 * target.c (update_current_target): Handle to_thread_name.
8447 * python/py-infthread.c (thpy_get_name): New function.
8448 (thpy_set_name): Likewise.
8449 (thread_object_getset): Add "name".
8450 * linux-nat.c (linux_nat_thread_name): New function.
8451 (linux_nat_add_target): Set to_thread_name.
8452 * gdbthread.h (struct thread_info) <name>: New field.
8453
10d44370
JB
84542011-01-18 Joel Brobecker <brobecker@adacore.com>
8455
8456 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8457 (ada_val_print_1): Likewise.
8458
e3acb115
JB
84592011-01-18 Joel Brobecker <brobecker@adacore.com>
8460
8461 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8462 upper limit address is not greater than the function end address
8463 when the upper limit could not be computed using the debugging
8464 info.
8465
dc92e161
TT
84662011-01-17 Tom Tromey <tromey@redhat.com>
8467
8468 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
8469 get_regcomp_error.
8470 * utils.c: Include gdb_regex.h.
8471 (do_regfree_cleanup): New function.
8472 (make_regfree_cleanup): Likewise.
8473 (get_regcomp_error): Likewise.
8474 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8475
f55af66d
TT
84762011-01-17 Tom Tromey <tromey@redhat.com>
8477
8478 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
8479 re_compile_fastmap.
8480
a5a44b53
PM
84812011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
8482
8483 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8484 for internal variables.
8485 (last_was_structop): New static variable.
8486 (COMPLETE): New token.
8487 (field_exp): New rule to group all '.' suffix handling.
8488 Add mark_struct_expression calls when approriate to be able
8489 to correctly find fields for completion.
8490 (yylex): Adapt to handle field completion and set INTVAR when
8491 required.
8492
2c291032
YQ
84932011-01-14 Yao Qi <yao@codesourcery.com>
8494
8495 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8496 save_reggroup, restore_reggroup and all_reggroup.
8497
447b483c
JB
84982011-01-14 Joel Brobecker <brobecker@adacore.com>
8499
8500 * ada-valprint. (ada_printchar): Use the correct type length
8501 in call to ada_emit_char.
8502 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8503
7b64a93b
PM
85042011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * solib-som.h (hpux_major_release): Declare variable here.
8507 * solib-som.c: Remove <sys/utsname.h> header.
8508 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8509 (hpux_major_release): Make global, change default value to
8510 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 8511 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
8512 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8513 Add "solib-som.h" header.
8514 (set_hpux_major_release): New function.
8515 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8516
4e18c053
MF
85172011-01-14 Mike Frysinger <vapier@gentoo.org>
8518
8519 * configure.tgt (*-*-uclinux*): Match more Linux os targets
8520
a9df6b22
JB
85212011-01-14 Joel Brobecker <brobecker@adacore.com>
8522
8523 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8524 new-line at end of warning message.
8525 (ia64_hpux_store_register): Remove trailing new-line at end of
8526 error message.
8527 * ia64-hpux-tdep.c: Rephrase comment.
8528 * solib-ia64-hpux.c (struct dld_info): Change type of field
8529 dld_flags from "long long" to ULONGEST.
8530
ecb956dd
PA
85312011-01-14 Pedro Alves <pedro@codesourcery.com>
8532
8533 * target.h (deprecated_child_ops): Delete declaration.
8534 * target.c (deprecated_child_ops): Delete definition.
8535
76adfcae
PA
85362011-01-14 Pedro Alves <pedro@codesourcery.com>
8537
8538 * Makefile.in (hpux-thread.o): Delete rule.
8539 * configure.ac: Don't check for HPUX DCE threads support.
8540 * configure, config.in: Regenerate.
8541 * hppa-hpux-nat.c (child_suppress_run): Delete.
8542 (hppa_hpux_child_can_run): Delete.
8543 (_initialize_hppa_hpux_nat): Don't override to_can_run.
8544 * hpux-thread.c: Delete.
8545
042e866e
JB
85462011-01-13 Joel Brobecker <brobecker@adacore.com>
8547
8548 * hpux-thread.c (hpux_pid_to_str): Delete.
8549
4ffa5a33
JB
85502011-01-13 Joel Brobecker <brobecker@adacore.com>
8551
8552 * ada-valprint.c (ada_emit_char): Remove strange code.
8553 Check that c is <= UCHAR_MAX before passing it to isascii.
8554 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8555
de8fa76c
JB
85562011-01-13 Joel Brobecker <brobecker@adacore.com>
8557
8558 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8559 to the case where instream is stdin.
8560
c4de7027
JB
85612011-01-13 Joel Brobecker <brobecker@adacore.com>
8562
8563 * ia64-tdep.h (struct regcache): Forward declare.
8564 (struct ia64_infcall_ops): New struct type.
8565 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8566 and "infcall_ops".
8567 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8568 Renames ia64_find_global_pointer.
8569 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8570 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8571 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8572 methods.
8573 (ia64_infcall_ops): New static global constant.
8574 (ia64_gdbarch_init): Set tdep->infcall_ops.
8575 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8576 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8577 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8578 (ia64_hpux_dummy_code): New static global constant.
8579 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8580 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8581 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8582 New function.
8583 (ia64_hpux_infcall_ops): New static global constant.
8584 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8585 for inferior function calls to work properly on ia64-hpux.
8586
77ca787b
JB
85872011-01-13 Joel Brobecker <brobecker@adacore.com>
8588
8589 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8590 * ia64-tdep.h (struct frame_info): forward declaration.
8591 (struct gdbarch_tdep): Add field size_of_register_frame.
8592 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8593 to determine the size of the register frame.
8594 (ia64_size_of_register_frame): New function.
8595 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8596 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8597 (IA64_HPUX_UREG_REASON): New macro.
8598 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8599 New functions.
8600 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8601 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8602 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8603 objects.
8604
92c9a463
JB
86052011-01-13 Joel Brobecker <brobecker@adacore.com>
8606
8607 Add support for ia64-hpux.
8608 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8609 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8610
8611 * configure.host: Add handling for ia64-hpux hosts. Add associated
8612 floatformats.
8613 * configure.tgt: Add handling for ia64-hpux targets.
8614 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8615 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8616 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8617
f688d93f
JB
86182011-01-13 Joel Brobecker <brobecker@adacore.com>
8619
8620 [ttrace] Compute thread list immediately after attach.
8621 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8622 New subprogram.
8623 (inf_ttrace_attach): Use it.
8624
1b89e62f
JB
86252011-01-13 Joel Brobecker <brobecker@adacore.com>
8626
8627 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8628 if we could not determine the frame's function address. Instead,
8629 use the frame's PC, and then continue.
8630
3e5e6e2a
JB
86312011-01-13 Joel Brobecker <brobecker@adacore.com>
8632
8633 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8634 not already defined.
8635
825d6d8a
JB
86362011-01-13 Joel Brobecker <brobecker@adacore.com>
8637
8638 * ia64-tdep.c (ia64_struct_type_p): New function.
8639 (ia64_extract_return_value): Handle integral values that are
8640 less than 8 bytes long.
8641 (ia64_push_dummy_call): Likewise.
8642
7458e667
JB
86432011-01-13 Joel Brobecker <brobecker@adacore.com>
8644
8645 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8646 floatformat_ia64_ext.
8647 (floatformat_ia64_ext_big): New static const.
8648 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8649
1b05df00
TT
86502011-01-12 Tom Tromey <tromey@redhat.com>
8651
8652 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8653 messages.
8654 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8655 (mi_cmd_thread_list_ids): Likewise.
8656 (mi_cmd_data_list_changed_registers): Likewise.
8657 (mi_cmd_data_list_register_values): Likewise.
8658 (mi_cmd_data_write_register_values): Likewise.
8659 (mi_cmd_data_evaluate_expression): Likewise.
8660 (mi_cmd_data_read_memory): Likewise.
8661 (mi_cmd_data_read_memory_bytes): Likewise.
8662 (mi_cmd_data_write_memory): Likewise.
8663 (mi_cmd_enable_timings): Likewise.
8664 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8665 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8666 (mi_cmd_var_delete): Likewise.
8667 (mi_cmd_var_set_format): Likewise.
8668 (mi_cmd_var_show_format): Likewise.
8669 (mi_cmd_var_info_num_children): Likewise.
8670 (mi_cmd_var_list_children): Likewise.
8671 (mi_cmd_var_info_type): Likewise.
8672 (mi_cmd_var_info_expression): Likewise.
8673 (mi_cmd_var_show_attributes): Likewise.
8674 (mi_cmd_var_assign): Likewise.
8675 (mi_cmd_var_update): Likewise.
8676 (mi_cmd_enable_pretty_printing): Likewise.
8677 (mi_cmd_var_set_update_range): Likewise.
8678 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8679 messages.
8680 (mi_cmd_target_file_put): Likewise.
8681 (mi_cmd_target_file_delete): Likewise.
8682 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8683 messages.
8684 (mi_cmd_stack_info_depth): Likewise.
8685 (mi_cmd_stack_list_locals): Likewise.
8686 (mi_cmd_stack_list_args): Likewise.
8687 (mi_cmd_stack_select_frame): Likewise.
8688 (mi_cmd_stack_select_frame): Likewise.
8689 (mi_cmd_stack_info_frame): Likewise.
8690 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8691 messages.
8692 (mi_cmd_file_list_exec_source_files): Likewise.
8693 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8694 (mi_cmd_env_cd): Likewise.
8695 (mi_cmd_env_path): Likewise.
8696 (mi_cmd_env_dir): Likewise.
8697 (mi_cmd_inferior_tty_show): Likewise.
8698 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8699 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8700 (mi_cmd_break_watch): Likewise.
8701
ad422571
TJB
87022011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
8703
8704 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8705 (ppc_linux_insert_hw_breakpoint): Likewise.
8706 (ppc_linux_remove_hw_breakpoint): Likewise.
8707 (ppc_linux_insert_watchpoint): Likewise.
8708
c2ff108b
JK
87092011-01-12 Andrew Burgess <aburgess@broadcom.com>
8710 Jan Kratochvil <jan.kratochvil@redhat.com>
8711
8712 PR fortran/11104 and DWARF unbound arrays detection.
8713 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8714 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8715 unspecified upper bound.
8716 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8717 variables array_size_array, tmp_type and offset_item. New variable
8718 array. Remove call to f77_get_upperbound. New variables array_type
8719 and index. Call value_subscripted_rvalue for each dimenasion. Remove
8720 the final call to deprecated_set_value_type.
8721
41e8491f
JK
87222011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 Make value allocations more lazy.
8725 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8726 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 8727 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
8728 instead of allocate_value and set_value_lazy.
8729 * findvar.c (value_of_register_lazy): Likewise.
8730 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 8731 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
8732 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8733 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
8734 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
8735 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
8736 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
8737 the end, remove set_value_lazy there.
8738 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8739 instead of allocate_value and set_value_lazy when possible.
8740 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8741 * value.c (allocate_computed_value): Use allocate_value_lazy instead
8742 of allocate_value and set_value_lazy.
8743 (value_from_contents_and_address): Use allocate_value_lazy instead of
8744 allocate_value and set_value_lazy when possible.
8745
b716877b
AB
87462011-01-12 Andrew Burgess <aburgess@broadcom.com>
8747
8748 * disasm.c (dump_insns): Support dumping opcodes for MI.
8749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8750 dumping of instruction opcodes.
8751
d5ae309f
JB
87522011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
8753
8754 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8755 appropiately.
8756
98871305
TT
87572011-01-11 Tom Tromey <tromey@redhat.com>
8758
8759 * thread.c (do_captured_thread_select): Emit newline before
8760 printing frame.
8761
c378eb4e
MS
87622011-01-11 Michael Snyder <msnyder@vmware.com>
8763
8764 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8765 * score-tdep.c: Ditto.
8766 * score-tdep.h: Ditto.
8767 * ser-base.c: Ditto.
8768 * ser-go32.c: Ditto.
8769 * serial.c: Ditto.
8770 * serial.h: Ditto.
8771 * ser-mingw.c: Ditto.
8772 * ser-pipe.c: Ditto.
8773 * ser-tcp.c: Ditto.
8774 * ser-unix.c: Ditto.
8775 * sh64-tdep.c: Ditto.
8776 * shnbsd-nat.c: Ditto.
8777 * sh-tdep.c: Ditto.
8778 * sh-tdep.h: Ditto.
8779 * solib.c: Ditto.
8780 * solib-darwin.c: Ditto.
8781 * solib-frv.c: Ditto.
8782 * solib.h: Ditto.
8783 * solib-irix.c: Ditto.
8784 * solib-osf.c: Ditto.
8785 * solib-pa64.c: Ditto.
8786 * solib-som.c: Ditto.
8787 * solib-spu.c: Ditto.
8788 * solib-sunos.c: Ditto.
8789 * solib-svr4.c: Ditto.
8790 * solist.h: Ditto.
8791 * sol-thread.c: Ditto.
8792 * somread.c: Ditto.
8793 * source.c: Ditto.
8794 * source.h: Ditto.
8795 * sparc64-linux-tdep.c: Ditto.
8796 * sparc64-tdep.c: Ditto.
8797 * sparc-linux-nat.c: Ditto.
8798 * sparc-linux-tdep.c: Ditto.
8799 * sparc-sol2-nat.c: Ditto.
8800 * sparc-sol2-tdep.c: Ditto.
8801 * sparc-tdep.c: Ditto.
8802 * sparc-tdep.h: Ditto.
8803 * spu-tdep.c: Ditto.
8804 * stabsread.c: Ditto.
8805 * stabsread.h: Ditto.
8806 * stack.c: Ditto.
8807 * symfile.c: Ditto.
8808 * symfile.h: Ditto.
8809 * symmisc.c: Ditto.
8810 * symtab.c: Ditto.
8811 * symtab.h: Ditto.
8812 * target.c: Ditto.
8813 * target-descriptions.c: Ditto.
8814 * target-descriptions.h: Ditto.
8815 * target.h: Ditto.
8816 * target-memory.c: Ditto.
8817 * terminal.h: Ditto.
8818 * thread.c: Ditto.
8819 * top.c: Ditto.
8820 * tracepoint.c: Ditto.
8821 * tracepoint.h: Ditto.
8822 * trad-frame.h: Ditto.
8823 * typeprint.c: Ditto.
8824
581e13c1
MS
88252011-01-11 Michael Snyder <msnyder@vmware.com>
8826
8827 * ui-file.c: Comment cleanup, mostly periods and spaces.
8828 * ui-file.h: Ditto.
8829 * ui-out.c: Ditto.
8830 * ui-out.h: Ditto.
8831 * utils.c: Ditto.
8832 * v850-tdep.c: Ditto.
8833 * valarith.c: Ditto.
8834 * valops.c: Ditto.
8835 * valprint.c: Ditto.
8836 * valprint.h: Ditto.
8837 * value.c: Ditto.
8838 * value.h: Ditto.
8839 * varobj.c: Ditto.
8840 * varobj.h: Ditto.
8841 * vax-tdep.c: Ditto.
8842 * vec.c: Ditto.
8843 * vec.h: Ditto.
8844 * version.h: Ditto.
8845 * windows-nat.c: Ditto.
8846 * windows-tdep.c: Ditto.
8847 * xcoffread.c: Ditto.
8848 * xcoffsolib.c: Ditto.
8849 * xml-support.c: Ditto.
8850 * xstormy16-tdep.c: Ditto.
8851 * xtensa-tdep.c: Ditto.
8852 * xtensa-tdep.h: Ditto.
8853
90e4670f
TJB
88542011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8855
8856 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8857 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8858
e09342b5
TJB
88592011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8860 Thiago Jung Bauermann <bauerman@br.ibm.com>
8861
8862 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 8863 * breakpoint.h
e09342b5
TJB
8864 (struct breakpoint_ops) <resources_needed>: New method.
8865 Initialize to NULL in all existing breakpoint_ops instances.
8866 (struct breakpoint) <exact>: New field.
8867 (target_exact_watchpoints): Declare external global.
8868 * breakpoint.c (target_exact_watchpoints): New global flag.
8869 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8870 b->enable_state to bp_enabled before calling
8871 hw_watchpoint_used_count.
8872 (hw_watchpoint_used_count): Iterate over all bp_locations in a
8873 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
8874 if available.
8875 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8876 if the watchpoint is exact.
8877 (resources_needed_watchpoint): New function.
8878 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8879 (watch_command_1): Set b->exact if the user asked for an exact
8880 watchpoint and one can be set.
8881 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8882 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8883 the user asks for an exact watchpoint and one can be set. Return
8884 number of needed debug registers to watch the expression.
8885 * gdbtypes.c (is_scalar_type): New function, based on
8886 valprint.c:scalar_type_p.
8887 (is_scalar_type_recursive): New function.
8888 * gdbtypes.h (is_scalar_type_recursive): Declare.
8889 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8890 handle regions when ranged watchpoints are available.
8891 (create_watchpoint_request): New function.
8892 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8893 create_watchpoint_request.
8894 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8895 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8896 `set powerpc' and `show powerpc' commands.
8897 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8898 Mention documentation comment in the target macro.
8899 (target_region_ok_for_hw_watchpoint): Document return value.
8900
9fa40276
TJB
89012011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8902
8903 * breakpoint.c (update_watchpoint): Decide on using a software or
8904 hardware watchpoint after the bp_locations are created.
8905
77b06cd7
TJB
89062010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
8907
8908 Convert hardware watchpoints to use breakpoint_ops.
8909 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8910 <insert_location>: ... this. Return int instead of void.
8911 Accept pointer to struct bp_location instead of pointer to
8912 struct breakpoint. Adapt all implementations.
f2eb0bc8 8913 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
8914 <remove_location>: ... this. Accept pointer to struct bp_location
8915 instead of pointer to struct breakpoint. Adapt all implementations.
8916 * breakpoint.c (insert_catchpoint): Delete function.
8917 (insert_bp_location): Call the watchpoint or catchpoint's
8918 breakpoint_ops.insert method.
8919 (remove_breakpoint_1): Call the watchpoint or catchpoint's
8920 breakpoint_ops.remove method.
8921 (insert_watchpoint, remove_watchpoint): New functions.
8922 (watchpoint_breakpoint_ops): New structure.
8923 (watch_command_1): Initialize the OPS field.
8924 * inf-child.c (inf_child_insert_fork_catchpoint)
8925 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8926 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8927 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8928 Delete functions.
8929 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8930 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8931 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8932 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8933 * target.c (update_current_target): Change default implementation of
8934 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8935 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8936 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8937 to_set_syscall_catchpoint to return_one.
8938 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8939 (debug_to_insert_exec_catchpoint): Report return value.
8940 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8941 (to_insert_exec_catchpoint): Change declaration to return int instead
8942 of void.
8943
9b20d036
MS
89442011-01-11 Michael Snyder <msnyder@vmware.com>
8945
8946 * arm-tdep.c: Internationalization.
8947 * c-lang.c: Ditto.
8948 * charset.c: Ditto.
8949 * fork-child.c: Ditto.
8950 * nto-procfs.c: Ditto.
8951 * ppc-sysv-tdep.c: Ditto.
8952 * procfs.c: Ditto.
8953 * remote-mips.c: Ditto.
8954 * remote.c: Ditto.
8955 * rs6000-nat.c: Ditto.
8956 * rs6000-tdep.c: Ditto.
8957 * target.c: Ditto.
8958 * valops.c: Ditto.
8959 * value.c: Ditto.
8960 * xml-support.c: Ditto.
8961 * mi/mi-cmd-break.c: Ditto.
8962 * mi/mi-cmd-var.c: Ditto.
8963 * mi/mi-interp.c: Ditto.
8964 * mi/mi-main.c: Ditto.
8965
dae477fe
AB
89662011-01-11 Andrew Burgess <aburgess@broadcom.com>
8967
8968 * remote-sim.c (gdbsim_store_register): Update API to
8969 sim_store_register to check more error conditions.
8970
0df8b418
MS
89712011-01-10 Michael Snyder <msnyder@vmware.com>
8972
8973 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8974 * nto-tdep.c: Ditto.
8975 * nto-tdep.h: Ditto.
8976 * objc-exp.y: Ditto.
8977 * objc-lang.c: Ditto.
8978 * objfiles.c: Ditto.
8979 * objfiles.h: Ditto.
8980 * observer.c: Ditto.
8981 * opencl-lang.c: Ditto.
8982 * osabi.c: Ditto.
8983 * parse.c: Ditto.
8984 * parser-defs.h: Ditto.
8985 * p-exp.y: Ditto.
8986 * p-lang.c: Ditto.
8987 * posix-hdep.c: Ditto.
8988 * ppcbug-rom.c: Ditto.
8989 * ppc-linux-nat.c: Ditto.
8990 * ppc-linux-tdep.c: Ditto.
8991 * ppc-linux-tdep.h: Ditto.
8992 * ppcnbsd-tdep.c: Ditto.
8993 * ppcobsd-tdep.c: Ditto.
8994 * ppcobsd-tdep.h: Ditto.
8995 * ppc-sysv-tdep.c: Ditto.
8996 * ppc-tdep.h: Ditto.
8997 * printcmd.c: Ditto.
8998 * proc-abi.c: Ditto.
8999 * proc-flags.c: Ditto.
9000 * procfs.c: Ditto.
9001 * proc-utils.h: Ditto.
9002 * progspace.h: Ditto.
9003 * prologue-value.c: Ditto.
9004 * prologue-value.h: Ditto.
9005 * psympriv.h: Ditto.
9006 * psymtab.c: Ditto.
9007 * p-typeprint.c: Ditto.
9008 * p-valprint.c: Ditto.
9009 * ravenscar-sparc-thread.c: Ditto.
9010 * ravenscar-thread.c: Ditto.
9011 * ravenscar-thread.h: Ditto.
9012 * record.c: Ditto.
9013 * regcache.c: Ditto.
9014 * regcache.h: Ditto.
9015 * remote.c: Ditto.
9016 * remote-fileio.c: Ditto.
9017 * remote-fileio.h: Ditto.
9018 * remote.h: Ditto.
9019 * remote-m32r-sdi.c: Ditto.
9020 * remote-mips.c: Ditto.
9021 * remote-sim.c: Ditto.
9022 * rs6000-aix-tdep.c: Ditto.
9023 * rs6000-nat.c: Ditto.
9024 * rs6000-tdep.c: Ditto.
9025
0d7a18f7
MS
90262011-01-10 Michael Snyder <msnyder@vmware.com>
9027
9028 * charset.c (validate): Internationalization.
9029 * coffread.c (read_one_sym): Ditto.
9030 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
9031 * h8300-tdep.c (H8300_extract_return_value): Ditto.
9032 * inflow.c (new_tty): Ditto.
9033 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
9034 * m32c-tdep.c (m32c_return_value): Ditto.
9035 * mep-tdep.c (mep_store_return_value): Ditto.
9036 * score-tdep.c (score7_fetch_insn): Ditto.
9037 * ser-mingw.c (pipe_windows_open): Ditto.
9038 * sh64-tdep.c (sh64_extract_return_value): Ditto.
9039 * spu-tdep.c (spu_register_type): Ditto.
9040 * tracepoint.c (trace_find_command): Ditto.
9041 * valarith.c (value_pos): Ditto.
9042
9a153e0b
JB
90432011-01-10 Joel Brobecker <brobecker@adacore.com>
9044
9045 * ada-valprint.c (printstr): Minor comment reformatting.
9046
35ecd2d6
MS
90472011-01-08 Michael Snyder <msnyder@vmware.com>
9048
9049 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
9050 markup.
9051
1777feb0
MS
90522011-01-08 Michael Snyder <msnyder@vmware.com>
9053
9054 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
9055 * hppa-hpux-tdep.c: Ditto.
9056 * hppa-linux-nat.c: Ditto.
9057 * hppa-linux-tdep.c: Ditto.
9058 * hppanbsd-tdep.c: Ditto.
9059 * hppa-tdep.c: Ditto.
9060 * hppa-tdep.h: Ditto.
9061 * hpux-thread.c: Ditto.
9062 * i386-cygwin-tdep.c: Ditto.
9063 * i386-darwin-nat.c: Ditto.
9064 * i386gnu-nat.c: Ditto.
9065 * i386-linux-nat.c: Ditto.
9066 * i386-linux-tdep.c: Ditto.
9067 * i386-nat.c: Ditto.
9068 * i386-nat.h: Ditto.
9069 * i386nbsd-tdep.c: Ditto.
9070 * i386-sol2-nat.c: Ditto.
9071 * i386-stub.c: Ditto.
9072 * i386-tdep.c: Ditto.
9073 * i386-tdep.h: Ditto.
9074 * i387-tdep.c: Ditto.
9075 * ia64-linux-nat.c: Ditto.
9076 * ia64-linux-tdep.c: Ditto.
9077 * ia64-tdep.c: Ditto.
9078 * infcall.c: Ditto.
9079 * infcall.h: Ditto.
9080 * infcmd.c: Ditto.
9081 * inferior.c: Ditto.
9082 * inferior.h: Ditto.
9083 * infloop.c: Ditto.
9084 * inflow.c: Ditto.
9085 * infrun.c: Ditto.
9086 * interps.c: Ditto.
9087 * interps.h: Ditto.
9088 * iq2000-tdep.c: Ditto.
9089 * irix5-nat.c: Ditto.
9090 * jit.c: Ditto.
9091 * jit.h: Ditto.
9092 * jv-exp.y: Ditto.
9093 * jv-lang.c: Ditto.
9094 * jv-lang.h: Ditto.
9095 * jv-typeprint.c: Ditto.
9096 * jv-valprint.c: Ditto.
9097 * language.c: Ditto.
9098 * language.h: Ditto.
9099 * linespec.c: Ditto.
9100 * linux-fork.c: Ditto.
9101 * linux-nat.c: Ditto.
9102 * linux-thread-db.c: Ditto.
9103 * lm32-tdep.c: Ditto.
9104
025bb325
MS
91052011-01-08 Michael Snyder <msnyder@vmware.com>
9106
9107 * m2-exp.y: Comment cleanup, mostly periods and spaces.
9108 * m2-lang.c: Ditto.
9109 * m2-typeprint.c: Ditto.
9110 * m2-valprint.c: Ditto.
9111 * m32c-tdep.c: Ditto.
9112 * m32r-linux-nat.c: Ditto.
9113 * m32r-rom.c: Ditto.
9114 * m32r-tdep.c: Ditto.
9115 * m32r-tdep.h: Ditto.
9116 * m68hc11-tdep.c: Ditto.
9117 * m58klinux-nat.c: Ditto.
9118 * m68k-tdep.c: Ditto.
9119 * m88k-tdep.c: Ditto.
9120 * m88k-tdep.h: Ditto.
9121 * machoread.c: Ditto.
9122 * macrocmd.c: Ditto.
9123 * macroexp.c: Ditto.
9124 * macrotab.c: Ditto.
9125 * main.c: Ditto.
9126 * maint.c: Ditto.
9127 * mdebugread.c: Ditto.
9128 * mdebugread.h: Ditto.
9129 * memattr.c: Ditto.
9130 * memattr.h: Ditto.
9131 * memory-map.h: Ditto.
9132 * mep-tdep.c: Ditto.
9133 * microblaze-rom.c: Ditto.
9134 * microblaze-tdep.c: Ditto.
9135 * minsyms.c: Ditto.
9136 * mips-irix-tdep.c: Ditto.
9137 * mips-linux-nat.c: Ditto.
9138 * mips-linux-tdep.c: Ditto.
9139 * mips-linux-tdep.h: Ditto.
9140 * mipsnbsd-nat.c: Ditto.
9141 * mipsnbsd-tdep.c: Ditto.
9142 * mipsread.c: Ditto.
9143 * mips-tdep.c: Ditto.
9144 * mips-tdep.h: Ditto.
9145 * mn10300-linux-tdep.c: Ditto.
9146 * mn10300-tdep.c: Ditto.
9147 * mn10300-tdep.h: Ditto.
9148 * monitor.c: Ditto.
9149 * monitor.h: Ditto.
9150 * moxie-tdep.c: Ditto.
9151 * moxie-tdep.h: Ditto.
9152 * mt-tdep.c: Ditto.
9153
1642781b
MF
91542011-01-08 Mike Frysinger <vapier@gentoo.org>
9155
9156 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
9157
394b0adb
JB
91582011-01-08 Robert Millan <rmh@gnu.org>
9159
9160 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
9161
b670013c
MS
91622011-01-07 Michael Snyder <msnyder@vmware.com>
9163
9164 * charset.c (_initialize_charset): Fix typo in string.
9165
a743e542
MS
91662011-01-07 Michael Snyder <msnyder@vmware.com>
9167
9168 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
9169 for i18n.
f2eb0bc8 9170 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
9171 Split line so that operator goes to beginning of line.
9172 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
9173 assignment out of if statement.
9174
0963b4bd
MS
91752011-01-07 Michael Snyder <msnyder@vmware.com>
9176
9177 * ada-lang.c: Comment cleanup, mostly periods and spaces.
9178 * ada-lang.h: Ditto.
9179 * ada-tasks.c: Ditto.
9180 * ada-valprint.c: Ditto.
9181 * aix-threads.c: Ditto.
9182 * alpha-linux-nat.c: Ditto.
9183 * alpha-linux-tdep.c: Ditto.
9184 * alpha-mdebug-tdep.c: Ditto.
9185 * alpha-nat.c: Ditto.
9186 * alpha-osf1-tdep.c: Ditto.
9187 * alpha-tdep.c: Ditto.
9188 * alphabsd-nat.c: Ditto.
9189 * alphabsd-tdep.c: Ditto.
9190 * amd64-darwin-tdep.c: Ditto.
9191 * amd64-linux-nat.c: Ditto.
9192 * amd64-linux-tdep.c: Ditto.
9193 * amd64-sol2-tdep.c: Ditto.
9194 * amd64-tdep.c: Ditto.
9195 * amd64-fbsd-tdep.c: Ditto.
9196 * amd64-nbsd-tdep.c: Ditto.
9197 * amd64-obsd-tdep.c: Ditto.
9198 * amd64-linux-nat.c: Ditto.
9199 * amd64-linux-tdep.c: Ditto.
9200 * arm-tdep.c: Ditto.
9201 * arm-tdep.h: Ditto.
9202 * armnbsd-nat.c: Ditto.
9203 * avr-tdep.c: Ditto.
9204 * bfin-tdep.c: Ditto.
9205 * bsd-kvm.c: Ditto.
9206 * c-typeprintc: Ditto.
9207 * c-valprint.c: Ditto.
9208 * coff-pe-read.h: Ditto.
9209 * coffreead.c: Ditto.
9210 * cris-tdep.c: Ditto.
9211 * d-lang.c: Ditto.
9212 * darwin-nat-info.c: Ditto.
9213 * darwin-nat.c: Ditto.
9214 * dbug-rom.c: Ditto.
9215 * dbxread.c: Ditto.
9216 * dcache.c: Ditto.
9217 * dcache.h: Ditto.
9218 * dec-thread.c: Ditto.
9219 * defs.h: Ditto.
9220 * demangle.c: Ditto.
9221 * dicos-tdep.c: Ditto.
9222 * dictionary.c: Ditto.
9223 * dictionary.h: Ditto.
9224 * dink32-rom.c: Ditto.
9225 * disasm.c: Ditto.
9226 * doublest.c: Ditto.
9227 * dsrec.c: Ditto.
9228 * dummy-frame.c: Ditto.
9229 * dwarf2-frame.c: Ditto.
9230 * dwarf2expr.c: Ditto.
9231 * dwarf2loc.c: Ditto.
9232 * dwarf2read.c: Ditto.
9233 * elfread.c: Ditto.
9234 * environ.c: Ditto.
9235 * eval.c: Ditto.
9236 * event-top.h: Ditto.
9237 * exceptions.c: Ditto.
9238 * exceptions.h: Ditto.
9239 * exec.c: Ditto.
9240 * expprint.c: Ditto.
9241 * expression.h: Ditto.
9242 * f-exp.y: Ditto.
9243 * f-lang.c: Ditto.
9244 * f-lang.h: Ditto.
9245 * f-typeprint.c: Ditto.
9246 * f-valprint.c: Ditto.
9247 * fbsd-nat.c: Ditto.
9248 * findvar.c: Ditto.
9249 * fork-child.c: Ditto.
9250 * frame.c: Ditto.
9251 * frame.h: Ditto.
9252 * frv-linux-tdep.c: Ditto.
9253 * frv-tdep.c: Ditto.
9254 * gcore.c: Ditto.
9255 * gdb-stabs.h: Ditto.
9256 * gdb_assert.h: Ditto.
9257 * gdb_string.h: Ditto.
9258 * gdb_thread_db.h: Ditto.
9259 * gdb_wait.h: Ditto.
9260 * gdbarch.sh: Ditto.
9261 * gdbcore.h: Ditto.
9262 * gdbthread.h: Ditto.
9263 * gdbtypes.c: Ditto.
9264 * gdbtypes.h: Ditto.
9265 * gnu-nat.c: Ditto.
9266 * gnu-nat.h: Ditto.
9267 * gnu-v2-abi.c: Ditto.
9268 * gnu-v3-abi.c: Ditto.
9269 * go32-nat.c: Ditto.
9270 * gdbarch.c: Regenerate.
9271 * gdbarch.h: Regenerate.
9272
ac74f770
MS
92732011-01-07 Michael Snyder <msnyder@vmware.com>
9274
9275 * ax-gdb.c: Adjust some long output strings.
9276 * breakpoint.c: Ditto.
9277 * charset.c: Ditto.
9278 * cp-abi.c: Ditto.
9279 * infcall.c: Ditto.
9280 * infrun.c: Ditto.
9281 * linux-nat.c: Ditto.
9282 * solib-pa64.c: Ditto.
9283 * solib-som.c: Ditto.
9284
d8e22779
TT
92852011-01-06 Tom Tromey <tromey@redhat.com>
9286
9287 PR python/12367:
9288 * NEWS: Add item.
9289 * python/python.c (GdbMethods): Add "newest_frame" method.
9290 * python/python-internal.h (gdbpy_newest_frame): Declare.
9291 * python/py-frame.c (gdbpy_newest_frame): New function.
9292
a255712f
PP
92932010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
9294
9295 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
9296 * jit.c (jit_debug): New variable.
9297 (show_jit_debug): New function.
9298 (struct target_buffer): Use ULONGEST.
9299 (bfd_open_from_target_memory): Likewise.
9300 (jit_register_code, jit_inferior_init): Add debug output.
9301 (_initialize_jit): Register "debug jit" command.
9302
ccfc3d6e
TT
93032011-01-06 Tom Tromey <tromey@redhat.com>
9304
9305 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
9306 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
9307 and ARCH_FRAME.
9308
57126e4a
TT
93092011-01-06 Tom Tromey <tromey@redhat.com>
9310
9311 * python/py-frame.c (frapy_block): Use get_frame_block.
9312
16dfc9ce
JB
93132011-01-06 Joel Brobecker <brobecker@adacore.com>
9314
9315 Do not stop on SIGPRIO signals by default
9316 * infrun.c (_initialize_infrun): Unset signal_stop and
9317 signal_print for TARGET_SIGNAL_PRIO.
9318
b1ce2347
JB
93192011-01-06 Joel Brobecker <brobecker@adacore.com>
9320
9321 * ada-tasks.c: Fix style violation in comment.
9322
8f7e195f
JB
93232011-01-06 Joel Brobecker <brobecker@adacore.com>
9324
9325 * linespec.c (decode_compound, find_method): Remove trailing \n
9326 at end of error string.
9327 * solib-irix.c (irix_current_sos): Likewise.
9328 * varobj.c (uninstall_variable): Likewise.
9329
e9bdf92c
JB
93302011-01-06 Joel Brobecker <brobecker@adacore.com>
9331
9332 * copyright.py: New script.
9333 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
9334 Launch emacs without exec'ing. Call copyright.py afterwards.
9335
3e43a32a
MS
93362011-01-05 Michael Snyder <msnyder@vmware.com>
9337
9338 * addrmap.c: Shorten lines of >= 80 columns.
9339 * arch-utils.c: Ditto.
9340 * arch-utils.h: Ditto.
9341 * ax-gdb.c: Ditto.
9342 * ax-general.c: Ditto.
9343 * bcache.c: Ditto.
9344 * blockframe.c: Ditto.
9345 * breakpoint.c: Ditto.
9346 * buildsym.c: Ditto.
9347 * c-lang.c: Ditto.
9348 * c-typeprint.c: Ditto.
9349 * charset.c: Ditto.
9350 * coffread.c: Ditto.
9351 * command.h: Ditto.
9352 * corelow.c: Ditto.
9353 * cp-abi.c: Ditto.
9354 * cp-namespace.c: Ditto.
9355 * cp-support.c: Ditto.
9356 * dbug-rom.c: Ditto.
9357 * dbxread.c: Ditto.
9358 * defs.h: Ditto.
9359 * dfp.c: Ditto.
9360 * dfp.h: Ditto.
9361 * dictionary.c: Ditto.
9362 * disasm.c: Ditto.
9363 * doublest.c: Ditto.
9364 * dwarf2-frame.c: Ditto.
9365 * dwarf2expr.c: Ditto.
9366 * dwarf2loc.c: Ditto.
9367 * dwarf2read.c: Ditto.
9368 * elfread.c: Ditto.
9369 * eval.c: Ditto.
9370 * event-loop.c: Ditto.
9371 * event-loop.h: Ditto.
9372 * exceptions.h: Ditto.
9373 * exec.c: Ditto.
9374 * expprint.c: Ditto.
9375 * expression.h: Ditto.
9376 * f-lang.c: Ditto.
9377 * f-valprint.c: Ditto.
9378 * findcmd.c: Ditto.
9379 * frame-base.c: Ditto.
9380 * frame-unwind.c: Ditto.
9381 * frame-unwind.h: Ditto.
9382 * frame.c: Ditto.
9383 * frame.h: Ditto.
9384 * gcore.c: Ditto.
9385 * gdb-stabs.h: Ditto.
9386 * gdb_assert.h: Ditto.
9387 * gdb_dirent.h: Ditto.
9388 * gdb_obstack.h: Ditto.
9389 * gdbcore.h: Ditto.
9390 * gdbtypes.c: Ditto.
9391 * gdbtypes.h: Ditto.
9392 * inf-ttrace.c: Ditto.
9393 * infcall.c: Ditto.
9394 * infcmd.c: Ditto.
9395 * inflow.c: Ditto.
9396 * infrun.c: Ditto.
9397 * inline-frame.h: Ditto.
9398 * language.c: Ditto.
9399 * language.h: Ditto.
9400 * libunwind-frame.c: Ditto.
9401 * libunwind-frame.h: Ditto.
9402 * linespec.c: Ditto.
9403 * linux-nat.c: Ditto.
9404 * linux-nat.h: Ditto.
9405 * linux-thread-db.c: Ditto.
9406 * machoread.c: Ditto.
9407 * macroexp.c: Ditto.
9408 * macrotab.c: Ditto.
9409 * main.c: Ditto.
9410 * maint.c: Ditto.
9411 * mdebugread.c: Ditto.
9412 * memattr.c: Ditto.
9413 * minsyms.c: Ditto.
9414 * monitor.c: Ditto.
9415 * monitor.h: Ditto.
9416 * objfiles.c: Ditto.
9417 * objfiles.h: Ditto.
9418 * osabi.c: Ditto.
9419 * p-typeprint.c: Ditto.
9420 * p-valprint.c: Ditto.
9421 * parse.c: Ditto.
9422 * printcmd.c: Ditto.
9423 * proc-events.c: Ditto.
9424 * procfs.c: Ditto.
9425 * progspace.c: Ditto.
9426 * progspace.h: Ditto.
9427 * psympriv.h: Ditto.
9428 * psymtab.c: Ditto.
9429 * record.c: Ditto.
9430 * regcache.c: Ditto.
9431 * regcache.h: Ditto.
9432 * remote-fileio.c: Ditto.
9433 * remote.c: Ditto.
9434 * ser-mingw.c: Ditto.
9435 * ser-tcp.c: Ditto.
9436 * ser-unix.c: Ditto.
9437 * serial.c: Ditto.
9438 * serial.h: Ditto.
9439 * solib-frv.c: Ditto.
9440 * solib-irix.c: Ditto.
9441 * solib-osf.c: Ditto.
9442 * solib-pa64.c: Ditto.
9443 * solib-som.c: Ditto.
9444 * solib-sunos.c: Ditto.
9445 * solib-svr4.c: Ditto.
9446 * solib-target.c: Ditto.
9447 * solib.c: Ditto.
9448 * somread.c: Ditto.
9449 * source.c: Ditto.
9450 * stabsread.c: Ditto.
9451 * stabsread.c: Ditto.
9452 * stack.c: Ditto.
9453 * stack.h: Ditto.
9454 * symfile-mem.c: Ditto.
9455 * symfile.c: Ditto.
9456 * symfile.h: Ditto.
9457 * symmisc.c: Ditto.
9458 * symtab.c: Ditto.
9459 * symtab.h: Ditto.
9460 * target-descriptions.c: Ditto.
9461 * target-memory.c: Ditto.
9462 * target.c: Ditto.
9463 * target.h: Ditto.
9464 * terminal.h: Ditto.
9465 * thread.c: Ditto.
9466 * top.c: Ditto.
9467 * tracepoint.c: Ditto.
9468 * tracepoint.h: Ditto.
9469 * ui-file.c: Ditto.
9470 * ui-file.h: Ditto.
9471 * ui-out.h: Ditto.
9472 * user-regs.c: Ditto.
9473 * user-regs.h: Ditto.
9474 * utils.c: Ditto.
9475 * valarith.c: Ditto.
9476 * valops.c: Ditto.
9477 * valprint.c: Ditto.
9478 * valprint.h: Ditto.
9479 * value.c: Ditto.
9480 * varobj.c: Ditto.
9481 * varobj.h: Ditto.
9482 * vec.h: Ditto.
9483 * xcoffread.c: Ditto.
9484 * xcoffsolib.c: Ditto.
9485 * xcoffsolib.h: Ditto.
9486 * xml-syscall.c: Ditto.
9487 * xml-tdesc.c: Ditto.
9488
9a2b4c1b
MS
94892011-01-05 Michael Snyder <msnyder@vmware.com>
9490
9491 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9492 * cli/cli-decode.c: Ditto.
9493 * cli/cli-dump.c: Ditto.
9494 * cli/cli-logging.c: Ditto.
9495 * cli/cli-script.c: Ditto.
9496 * cli/cli-setshow.c: Ditto.
9497 * common/signals.c: Ditto.
9498 * mi/mi-cmd-break.c: Ditto.
9499 * mi/mi-cmd-disas.c: Ditto.
9500 * mi/mi-cmd-stack.c: Ditto.
9501 * mi/mi-cmd-var.c: Ditto.
9502 * mi/mi-cmds.c: Ditto.
9503 * mi/mi-common.h: Ditto.
9504 * mi/mi-console.c: Ditto.
9505 * mi/mi-interp.c: Ditto.
9506 * mi/mi-main.c: Ditto.
9507 * osf-share/cma_attr.c: Ditto.
9508 * osf-share/cma_deb_core.h: Ditto.
9509 * osf-share/cma_debug_client.h: Ditto.
9510 * osf-share/cma_handle.h: Ditto.
9511 * osf-share/cma_mutex.h: Ditto.
9512 * osf-share/cma_stack_int.h: Ditto.
9513 * osf-share/cma_tcb_defs.h: Ditto.
9514 * python/py-auto-load.c: Ditto.
9515 * python/py-breakpoint.c: Ditto.
9516 * python/py-cmd.c: Ditto.
9517 * python/py-frame.c: Ditto.
9518 * python/py-objfile.c: Ditto.
9519 * python/py-param.c: Ditto.
9520 * python/py-progspace.c: Ditto.
9521 * python/py-symbol.c: Ditto.
9522 * python/py-value.c: Ditto.
9523 * python/python-internal.h: Ditto.
9524 * python/python.c: Ditto.
9525 * tui/tui-data.c: Ditto.
9526 * tui/tui-disasm.c: Ditto.
9527 * tui/tui-hooks.c: Ditto.
9528 * tui/tui-io.c: Ditto.
9529 * tui/tui-layout.c: Ditto.
9530 * tui/tui-regs.c: Ditto.
9531 * tui/tui-source.c: Ditto.
9532 * tui/tui-stack.c: Ditto.
9533 * tui/tui-win.c: Ditto.
9534 * tui/tui-windata.c: Ditto.
9535 * tui/tui-winsource.c: Ditto.
9536
44944448
JB
95372011-01-05 Joel Brobecker <brobecker@adacore.com>
9538
9539 * configure.ac, gdb.1: Copyright year update.
9540
ebedcab5
JK
95412011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9542
9543 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9544 this_pc_in_block, morestack_msym and morestack_name. Check for
9545 "__morestack" minimal symbol there.
9546
e5cc9f32
JB
95472011-01-03 Joel Brobecker <brobecker@adacore.com>
9548
9549 * symfile.c (find_sym_fns): Add call to dont_repeat.
9550
7b6bb8da
JB
95512011-01-01 Joel Brobecker <brobecker@adacore.com>
9552
9553 Copyright year update in most files (performed by copyright.sh).
9554
71ce852c
JB
95552011-01-01 Joel Brobecker <brobecker@adacore.com>
9556
9557 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 9558
c3c1ebe8 9559For older changes see ChangeLog-2010.
c906108c
SS
9560\f
9561Local Variables:
9562mode: change-log
9563left-margin: 8
9564fill-column: 74
9565version-control: never
57da7796 9566coding: utf-8
c906108c 9567End:
This page took 1.835069 seconds and 4 git commands to generate.