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