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