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