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