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