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