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