2011-04-27 Pedro Alves <pedro@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-04-27 Pedro Alves <pedro@codesourcery.com>
2
3 * breakpoint.c (user_settable_breakpoint): Delete.
4 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5 (delete_command): Check user_breakpoint_p instead of looking at
6 the breakpoint's type.
7 (disable_command): Ditto.
8 (enable_command): Ditto.
9 (delete_trace_command): Use user_breakpoint_p instead of looking
10 at the breakpoint number directly. When checking if there are
11 user visible tracepoints, in order to know whether to ask the user
12 for confirmation, check whether the breakpoint is actually a
13 tracepoint.
14
15 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
16
17 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
18 compilation.
19
20 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
21
22 MI breakpoint notifications.
23
24 * annotate.c (breakpoint_changed): Adjust parameter type.
25 * breakpoint.c (set_breakpoint_condition): Adjust to change
26 in breakpoint_modified type.
27 (breakpoint_set_commands): Likewise.
28 (do_map_commands_command): Likewise.
29 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
30 changed after bumping hit count.
31 (bpstat_stop_status): Likewise.
32 (print_one_breakpoint_location): Don't wrap in tuple here.
33 (print_one_breakpoint): Always print individual locations.
34 For locations, use unnamed tuple.
35 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
36 has changed.
37 (create_catchpoint, create_syscall_event_catchpoint): Call
38 breakpoint_created obsever.
39 (mention): Don't call breakpoint_created observer.
40 (create_breakpoint_sal): Call breakpoint_created observer.
41 (create_breakpoint, watch_command_1): Likewise.
42 (create_ada_exception_breakpoint): Likewise.
43 (delete_breakpoint): Call breakpoint_deleted breakpoint.
44 (locations_are_equal): New.
45 (update_breakpoint_locations): If locations were changed, notify.
46 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
47 Call breakpoint_modified observer.
48
49 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
50 (mi_cmd_break_insert): Don't set observers for modify and delete.
51 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
52 (mi_breakpoint_created, mi_breakpoint_deleted)
53 (mi_breakpoint_modified): New.
54 (mi_interpreter_init): Hook the above.
55 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
56 while -break-* commands are executing.
57 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
58 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
59 (mi_redirect): New.
60 (mi_ui_out_impl): Hook in mi_redirect.
61 (mi_field_skip): True to the name, skip the field, don't output
62 a field with an empty value.
63
64 * python/py-breakpoint.c (gdbpy_breakpoint_created)
65 (gdbpy_breakpoint_deleted): Adjust.
66 * tui/tui-hooks.c (tui_event_create_breakpoint)
67 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
68
69 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
70
71 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
72 (procfs_remove_hw_watchpoint): Likewise.
73
74 2011-04-26 Michael Walle <michael@walle.cc>
75
76 * remote.c (remote_start_remote): Ack packet after sending the
77 interrupt sequence.
78
79 2011-04-26 Yao Qi <yao@codesourcery.com>
80
81 * linux-nat.c: Move common macros to ...
82 Include linux-ptrace.h.
83 * common/linux-ptrace.h: ... here. New.
84
85 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
86
87 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
88 !objfile_has_partial_symbols. New comment.
89 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
90 SYM_READ_PSYMBOLS is not present. Extend the comment.
91 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
92
93 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
94
95 * defs.h (ENUM_BITFIELD): Remove.
96
97 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
98 Eli Zaretskii <eliz@gnu.org>
99
100 * NEWS: Document the new gdbserver --once option.
101
102 2011-04-21 Jie Zhang <jzhang918@gmail.com>
103
104 * MAINTAINERS: Update my email address.
105
106 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
107
108 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
109 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
110 function call if __STDC_ISO_10646__ macro is defined.
111 (intermediate_encoding): New prototype.
112 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
113 to generate compile time error for unsupported gdb_wchar_t size.
114 (ENDIAN_SUFFIX): New macro.
115 (intermediate_encoding): New function.
116
117 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * ada-lang.c (struct add_partial_datum): Update the comment for
120 expand_partial_symbol_name.
121 (ada_add_partial_symbol_completions): Rename to ...
122 (ada_expand_partial_symbol_name): ... here, change return type, update
123 function comment, call symbol_completion_match instead of
124 symbol_completion_add.
125 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
126 and ada_expand_partial_symbol_name.
127 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
128 FILE_MATCHER.
129 (dw2_map_symbol_names): Remove.
130 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
131 * psymtab.c (map_symbol_names_psymtab): Remove.
132 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
133 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
134 order.
135 (psym_functions): Unlist map_symbol_names_psymtab.
136 (map_partial_symbol_names): Rename to ...
137 (expand_partial_symbol_names): ... here, change the FUN type, call
138 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
139 * psymtab.h (map_partial_symbol_names): Rename to ...
140 (expand_partial_symbol_names): ... here, change the FUN type.
141 * symfile.h (struct quick_symbol_functions): Update the description of
142 expand_symtabs_matching. Remove map_symbol_names.
143 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
144 (struct add_name_data): Update the comment for
145 expand_partial_symbol_name.
146 (add_partial_symbol_name): Rename to ...
147 (expand_partial_symbol_name): ... here. Replace
148 completion_list_add_name call by strncmp.
149 (default_make_symbol_completion_list_break_on): Use now
150 expand_partial_symbol_names and expand_partial_symbol_name.
151 * symtab.h (enum search_domain): New element ALL_DOMAIN.
152
153 2011-04-20 Tom Tromey <tromey@redhat.com>
154
155 * dwarf2read.c (save_gdb_index_command): Replace format
156 documentation with a pointer to the manual.
157
158 2011-04-20 Pedro Alves <pedro@codesourcery.com>
159
160 * regcache.c: Include remote.h.
161 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
162 (regcache_dump): Handle regcache_dump_remote.
163 (maintenance_print_remote_registers): New function.
164 (_initialize_regcache): Install "maint print remote-registers"
165 command.
166 * remote.c (map_regcache_remote_table): New function, factored out
167 from ...
168 (init_remote_state): ... here.
169 (remote_register_number_and_offset): New.
170 * remote.h (remote_register_number_and_offset): Declare.
171
172 2011-04-20 Pedro Alves <pedro@codesourcery.com>
173
174 * regcache.c (get_thread_arch_regcache): If creating a regcache for
175 null_ptid, assume and allow a NULL address space, instead of
176 asking the target for the ptid's address space.
177 * infrun.c (ptid_is_pid): Remove assertion.
178
179 2011-04-19 Tom Tromey <tromey@redhat.com>
180
181 * windows-tdep.c (windows_xfer_shared_library):
182 * windows-nat.c (get_module_name, windows_make_so):
183 * v850-tdep.c (v850_handle_pushm):
184 * utils.c (null_cleanup, gdb_realpath):
185 * ui-out.c (get_next_header):
186 * tracepoint.c (clear_traceframe_info):
187 * symtab.c (lookup_symtab):
188 * serial.h (struct serial_ops):
189 * mipsread.c (read_alphacoff_dynamic_symtab):
190 * infcmd.c (print_return_value):
191 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
192 * f-exp.y (parse_number):
193 * exceptions.c (catch_exceptions):
194 * dummy-frame.c (dummy_frame_this_id):
195 * defs.h (struct cleanup):
196 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
197 * arm-tdep.c (arm_push_dummy_call):
198 * amd64-tdep.h (amd64_collect_xsave):
199 * amd64-tdep.c (amd64_collect_xsave):
200 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
201 * README (typing): Remove duplicate words.
202 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
203 * infrun.c (siginfo_value_read): Fix typo.
204 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
205 * top.c (source_line_number): Add comma.
206
207 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
208
209 * thread.c (any_live_thread_of_process): Prioritize threads
210 that are not executing.
211 * gdbthread.h (any_live_thread_of_process): Update comment
212 as per above change.
213
214 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
215
216 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
217 (scan_xcoff_symtab): Likewise.
218
219 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
220
221 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
222 inside if clause.
223
224 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
225 Pedro Alves <pedro@codesourcery.com>
226
227 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
228 variables to simplify code and avoid == operator at end of
229 line as this is against GNU coding standards.
230
231 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
232
233 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
234 lm_name to name_lm to avoid conflict with lm_name function.
235
236 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
237
238 ARI fixes: Use only lowercase function name for static functions.
239 * nto-tdep.c (LM_ADDR): Rename to...
240 (lm_addr): New function name.
241 (nto_relocate_section_addresses): Adapt to change above.
242 * solib-sunos.c (LM_ADDR): Rename to...
243 (lm_addr): New function name.
244 (LM_NEXT): Rename to...
245 (lm_next): New function name.
246 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
247 function name changes above.
248 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
249 (lm_addr_from_link_map): New function name.
250 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
251 (has_lm_dynamic_from_link_map): New function name.
252 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
253 (lm_dynamic_from_link_map): New function name.
254 (LM_ADDR_CHECK): Rename to...
255 (lm_addr_check): New function name.
256 (LM_NEXT): Rename to...
257 (lm_next): New function name.
258 (LM_PREV): Rename to...
259 (lm_prev): New function name.
260 (LM_NAME): Rename to...
261 (lm_name): New function name.
262 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
263 (ignore_first_link_map_entry): New function name.
264 (svr4_keep_data_in_core): Adapt to function name changes above.
265 (svr4_current_sos): Likewise.
266 (enable_break): Likewise.
267 (svr4_relocate_section_addresses): Likewise.
268
269 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
270
271 ARI cleanup.
272 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
273 sprintf. Simplify code and avoid loosing memory.
274 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
275 (call0_frame_cache): Remove && operator from end of line.
276
277 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
278
279 Fix libraries displacement if they change whether they were prelinked.
280 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
281 does not match. Comment why.
282
283 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 * corelow.c: Include wrapper.h.
286 (core_open): Call now gdb_target_find_new_threads.
287 * wrapper.c: Include target.h.
288 (gdb_target_find_new_threads): New.
289 * wrapper.h (gdb_target_find_new_threads): New declaration.
290
291 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
292
293 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
294 even if !TARGET_HAS_EXECUTION.
295
296 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
297
298 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
299 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
300 bfd_get_synthetic_symtab.
301 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
302 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
303 parameter parent, remove the call to add_separate_debug_objfile.
304 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
305 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
306 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
307 parent, new comment for it, call add_separate_debug_objfile for it.
308 (symbol_file_add_separate): Pass objfile as the parameter parent,
309 remove the call to add_separate_debug_objfile.
310 (symbol_file_add_from_bfd): New parameter parent, pass it.
311 (symbol_file_add): Pass NULL to the new parameter parent.
312 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
313
314 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
315
316 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
317 BSF_SYNTHETIC.
318
319 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
320
321 Fix Python access to inlined frames.
322 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
323 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
324
325 2011-04-15 Tom Tromey <tromey@redhat.com>
326
327 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
328
329 2011-04-15 Gary Benson <gbenson@redhat.com>
330
331 * MAINTAINERS: Add myself to write-after-approval section.
332
333 2011-04-14 Mike Frysinger <vapier@gentoo.org>
334
335 * remote-sim.c (sim_command_completer): New function.
336 (_initialize_remote_sim): Set completer to sim_command_completer.
337
338 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
339
340 * breakpoint.c (print_exception_catchpoint): Rename to ...
341 (print_it_exception_catchpoint): ... this.
342 (gnu_v3_exception_catchpoint_ops): Update with new name
343 for print_it_exception_catchpoint.
344
345 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
346
347 * MAINTAINERS: Add myself for write after approval privileges.
348
349 2011-04-13 Marek Polacek <mpolacek@redhat.com>
350
351 * MAINTAINERS: Add myself as a write-after-approval maintainer.
352
353 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
354
355 * breakpoint.c (watch_command_1): Remove colon from exp_string.
356
357 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
358
359 * breakpoint.c (save_breakpoints): Verify whether
360 breakpoint_ops.print_recreate is defined before calling it.
361
362 2011-04-11 Gary Benson <gbenson@redhat.com>
363
364 Fix failure with --enable-maintainer-mode.
365 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
366
367 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
368
369 Code cleanup.
370 * symtab.c (search_symbols): Reorder the KIND description in the
371 function comment. Remove the unused 4th element of types, types2,
372 types3 and types4. New gdb_assert on KIND.
373 (symtab_symbol_info): Remove the unused 4th element of classnames.
374 New gdb_assert on KIND.
375 * symtab.h (enum search_domain): New warning in the enum comment.
376 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
377 TYPES_DOMAIN.
378
379 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 Fix crash of gdb save-index on a STABS file.
382 * dwarf2read.c (write_psymtabs_to_index): Return also on no
383 PSYMTABS_ADDRMAP.
384
385 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 Fix DW_AT_accessibility compatibility with gcc-4.6+.
388 * dwarf2read.c: Include ctype.h.
389 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
390 functions.
391 (dwarf2_add_field): Fix new_field->accessibility by calling
392 dwarf2_default_access_attribute. Restructure setting accessibility
393 vs. virtuality.
394 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
395 is_private and is_protected by calling
396 dwarf2_default_access_attribute.
397
398 2011-04-08 Kevin Buettner <kevinb@redhat.com>
399
400 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
401 to the initialization.
402
403 2011-04-08 Steve Ellcey <sje@cup.hp.com>
404
405 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
406 initalization.
407
408 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
409
410 Remove support for old Cygwin 1.5 versions.
411 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
412 function on old Cygwin version.
413 * windows-nat.c: Remove cygwin version check and always define
414 __USEWIDE for Cygwin compilation.
415
416 2011-04-07 Yao Qi <yao@codesourcery.com>
417
418 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
419 and TO.
420 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
421 (arm_copy_svc): Remove parameters INSN and TO.
422 (decode_svc_copro): Update caller.
423 * arm-tdep.h (struct displaced_step_closure): Remove parameters
424 from function pointer `copy_svc_os'.
425
426 2011-04-07 Yao Qi <yao@codesourcery.com>
427
428 * arm-tdep.c (cleanup_branch): Set a correct return address in
429 LR for ARM and Thumb.
430
431 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
432
433 Code cleanup.
434 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
435 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
436 in the function comment, a new note on values compatibility.
437 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
438 * symtab.h (SYMBOL_HASH_NEXT): New.
439
440 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
441
442 * ppc-linux-nat.c (check_condition): Add len output parameter.
443 Set it based on the memory region referenced in the condition
444 expression. Update all callers.
445
446 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 Fix crash regression on systems featuring .gdb_index.
449 * objfiles.c (free_objfile): Move the
450 forget_cached_source_info_for_objfile call earlier. Comment it.
451 Extend the comment for objfile_free_data.
452
453 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 Fix regression of displaying the debug format.
456 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
457 subfile.
458
459 2011-04-04 Tom Tromey <tromey@redhat.com>
460
461 * cli/cli-interp.c (struct captured_execute_command_args):
462 Remove.
463 (do_captured_execute_command): Remove.
464 (safe_execute_command): Use TRY_CATCH.
465 * cli/cli-script.c (struct wrapped_read_command_file_args):
466 Remove.
467 (wrapped_read_command_file): Remove.
468 (script_from_file): Use TRY_CATCH.
469 * exceptions.c (catch_exception): Remove.
470 * exceptions.h (catch_exception): Remove.
471 (deprecated_throw_reason): Update comment.
472 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
473 argument to 'context'.
474 (mi_execute_command): Use TRY_CATCH.
475 * remote.c (struct start_remote_args): Remove.
476 (remote_start_remote): Update; change arguments.
477 (remote_open_1): Use TRY_CATCH.
478
479 2011-04-04 Tom Tromey <tromey@redhat.com>
480
481 * tracepoint.c (scope_info): Update.
482 * symtab.c (decode_line_spec): Update.
483 * python/python.c (gdbpy_decode_line): Update.
484 * linespec.h (decode_line_1): Update.
485 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
486 (decode_compound, find_method, symtab_from_filename)
487 (decode_variable): Likewise.
488 * cli/cli-cmds.c (edit_command): Update.
489 (list_command): Update.
490 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
491 argument.
492 (create_breakpoint): Update.
493 (until_break_command): Update.
494 (addr_string_to_sals): Update.
495 (decode_line_spec_1): Update.
496
497 2011-04-04 Tom Tromey <tromey@redhat.com>
498
499 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
500 (do_captured_parse_breakpoint): Remove.
501 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
502 Use TRY_CATCH directly.
503
504 2011-04-04 Tom Tromey <tromey@redhat.com>
505
506 * symtab.h (free_symtab): Remove.
507 (forget_cached_source_info_for_objfile): Declare.
508 * symmisc.c (free_symtab): Remove.
509 * source.c (forget_cached_source_info_for_objfile): New function.
510 (forget_cached_source_info): Use it.
511 * objfiles.c (free_objfile): Simplify check before calling
512 clear_current_source_symtab_and_line. Call
513 forget_cached_source_info_for_objfile.
514
515 2011-04-04 Tom Tromey <tromey@redhat.com>
516
517 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
518 (new_symtab): Don't set `free_code' on symtab.
519 (new_linetable): Properly handle size==0.
520 * symtab.h (struct symtab) <free_code, free_func>: Remove.
521 * symmisc.c (free_symtab): Don't free the linetable. Don't call
522 free_func.
523 * jv-lang.c (struct jv_per_objfile_data): New.
524 (jv_per_objfile_free): Free the data.
525 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
526 (get_java_class_symtab): Set the `dict' field on the
527 jv_per_objfile_data.
528 (free_class_block): Remove.
529 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
530 the symtab.
531
532 2011-04-04 Tom Tromey <tromey@redhat.com>
533
534 * symfile.c (reread_symbols): Update.
535 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
536 field.
537 * objfiles.c (allocate_objfile): Update.
538 * cp-support.h (cp_check_possible_namespace_symbols): Don't
539 declare.
540 * cp-namespace.c (lookup_symbol_file): Don't call
541 lookup_possible_namespace_symbol.
542 (initialize_namespace_symtab, get_possible_namespace_block)
543 (free_namespace_block, cp_check_possible_namespace_symbols)
544 (check_possible_namespace_symbols_loop)
545 (check_one_possible_namespace_symbol)
546 (lookup_possible_namespace_symbol): Remove.
547 (maintenance_cplus_namespace): Replace with notice.
548 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
549
550 2011-04-04 Tom Tromey <tromey@redhat.com>
551
552 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
553 * symtab.h (struct symtab) <producer, debugformat>: Now const.
554 * symmisc.c (free_symtab): Don't free debugformat.
555 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
556 (record_debugformat, record_producer): Document.
557 * buildsym.c (end_symtab): Don't save debugformat and producer
558 names on obstack.
559 (end_symtab): Don't free debugformat and producer fields.
560 (record_debugformat): Don't call xstrdup.
561 (record_producer): Likewise.
562
563 2011-04-04 Tom Tromey <tromey@redhat.com>
564
565 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
566 (source_line_charpos, source_charpos_line): Remove.
567
568 2011-04-04 Tom Tromey <tromey@redhat.com>
569
570 * symtab.h (domain_enum): Split in two...
571 (enum search_domain): New.
572 (search_symbols): Update.
573 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
574 redundant declarations.
575 (search_symbols): Change 'kind' argument to search_domain.
576 Update.
577 (print_symbol_info): Likewise.
578 (symtab_symbol_info): Likewise.
579 * symfile.h (struct quick_symbol_functions)
580 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
581 <expand_symtabs_matching>: Likewise.
582 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
583 (expand_symtabs_matching_via_partial): Update.
584 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
585 (dw2_expand_symtabs_for_function): Update.
586 * block.h: Moved anonymous enum...
587 * defs.h (enum block_enum): ... here. Now named.
588
589 2011-04-03 Joel Brobecker <brobecker@adacore.com>
590
591 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
592 * version.in: Bump version to 7.3.50.20110403-cvs.
593
594 2011-04-03 Joel Brobecker <brobecker@adacore.com>
595
596 * NEWS: Create a new section for the next release branch.
597 Rename the section of the current branch, now that it has
598 been cut.
599
600 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
601
602 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
603 for "fpscr" in target description.
604
605 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
606
607 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
608 initialize it. Delay HASH initialization. Strip the part after open
609 parenthesis for languages with qualifiers. Call do_cleanups.
610
611 2011-04-01 Tom Tromey <tromey@redhat.com>
612
613 * utils.c (report_command_stats): Don't print `-' for negative
614 number.
615
616 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
617
618 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
619 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
620 typedefs.
621
622 2011-04-01 Joel Brobecker <brobecker@adacore.com>
623
624 * breakpoint.h (bpdisp_text): Add declaration.
625 * breakpoint.c (bpdisp_text): Make non-static.
626 * ada-lang.c: #include "mi/mi-common.h".
627 (print_it_exception): Rewrite to improve GDB/MI output.
628
629 2011-04-01 Pedro Alves <pedro@codesourcery.com>
630
631 * arm-tdep.h (struct address_space): Add forward declaration.
632
633 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
634
635 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
636 * arm-tdep.c (arm_override_mode): New global.
637 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
638 execution mode heuristics.
639 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
640 second single-step breakpoint if needed, using
641 arm_insert_single_step_breakpoint.
642 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
643 ARM execution mode, do not call thumb_get_next_pc_raw.
644 (arm_get_next_pc): Encode execution mode in return value. Call
645 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
646 (arm_insert_single_step_breakpoint): New function.
647 (arm_software_single_step): Call it.
648 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
649 argument to return execution mode of sigreturn target.
650 (arm_linux_syscall_next_pc): Use it.
651 (arm_linux_copy_svc): Update call.
652 (arm_linux_software_single_step): Call
653 arm_insert_single_step_breakpoint.
654
655 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
658 the comment.
659
660 2011-03-31 Tom Tromey <tromey@redhat.com>
661
662 * varobj.c (update_dynamic_varobj_children): Properly handle
663 errors from iterator.
664
665 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
668 struct linkage name twice.
669
670 2011-03-31 Tom Tromey <tromey@redhat.com>
671
672 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
673 missing ">" to message.
674
675 2011-03-31 Tom Tromey <tromey@redhat.com>
676
677 * varobj.c (instantiate_pretty_printer): Remove duplicate
678 'return'.
679
680 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
681
682 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
683 if neither saved value nor register available (e.g. signal frame).
684
685 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
686
687 * macroexp.c (expand): Avoid uninitialized variable
688 compiler warning.
689
690 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
691
692 * breakpoint.c (break_range_command): Fix typo in comment.
693
694 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
695 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
696
697 Implement support for PowerPC BookE ranged breakpoints.
698 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
699 * breakpoint.h (struct bp_target_info) <length>: New member
700 variable.
701 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
702 instead of struct breakpoint as argument, and also add ASPACE
703 and BP_ADDR arguments. Update all callers.
704 (struct breakpoint_ops) <print_one_detail>: New method.
705 (struct breakpoint) <addr_string_range_end>: New member variable.
706 * breakpoint.c (breakpoint_location_address_match): Add function
707 prototype.
708 (insert_bp_location): Set bl->target_info.length.
709 (breakpoint_here_p): Call breakpoint_location_address_match.
710 (moribund_breakpoint_here_p): Likewise.
711 (regular_breakpoint_inserted_here_p): Likewise.
712 (breakpoint_thread_match): Likewise.
713 (bpstat_stop_status): Likewise.
714 (bpstat_check_location): Move call to
715 breakpoint_ops.breakpoint_hit to the top.
716 (print_one_breakpoint_location): Call
717 breakpoint_ops.print_one_detail if available.
718 (breakpoint_address_match_range): New function.
719 (breakpoint_location_address_match): Likewise.
720 (breakpoint_locations_match): Compare the length field of the
721 locations too.
722 (hw_breakpoint_used_count): Count resources used by all locations
723 in a breakpoint, and use breakpoint_ops.resources_needed if
724 available.
725 (breakpoint_hit_ranged_breakpoint): New function.
726 (resources_needed_ranged_breakpoint): Likewise.
727 (print_it_ranged_breakpoint): Likewise.
728 (print_one_ranged_breakpoint): Likewise.
729 (print_one_detail_ranged_breakpoint): Likewise.
730 (print_mention_ranged_breakpoint): Likewise.
731 (print_recreate_ranged_breakpoint): Likewise.
732 (ranged_breakpoint_ops): New structure.
733 (find_breakpoint_range_end): New function.
734 (break_range_command): Likewise.
735 (delete_breakpoint): Free addr_string_range_end.
736 (update_breakpoint_locations): Add SALS_END argument. Update
737 all callers. Calculate breakpoint length if a non-zero SALS_END
738 is given. Call breakpoint_locations_match instead of
739 breakpoint_address_match.
740 (reset_breakpoint): Find SaL of the end of the range if B is a
741 ranged breakpoint.
742 (_initialize_breakpoint): Register break-range command.
743 * defs.h (print_core_address): Add function prototype.
744 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
745 function.
746 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
747 (ppc_linux_remove_hw_breakpoint): Likewise.
748 (_initialize_ppc_linux_nat): Initialize
749 to_ranged_break_num_registers.
750 * target.c (update_current_target): Add comment about
751 to_ranged_break_num_registers.
752 (target_ranged_break_num_registers): New function.
753 * target.h (struct target_ops) <to_ranged_break_num_registers>:
754 New method.
755 (target_ranged_break_num_registers): Add function prototype.
756 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
757 * utils.c (print_core_address): ... here.
758
759 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
760
761 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
762 variable compiler warning.
763
764 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
765
766 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
767 code from here ...
768 (re_set_breakpoint): ... to here ...
769 (addr_string_to_sals): ... and here.
770
771 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
772
773 * Makefile.in (SFILES): Add missing C sources.
774 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
775 Add missing headers.
776
777 2011-03-29 Mike Frysinger <vapier@gentoo.org>
778
779 * .gitignore: New file.
780
781 2011-03-29 Mike Frysinger <vapier@gentoo.org>
782
783 * NEWS: Mention new cfi device simulation.
784
785 2011-03-29 Tom Tromey <tromey@redhat.com>
786
787 * dwarf2read.c (fixup_partial_die): Handle linkage name on
788 otherwise anonymous types.
789 (dwarf2_name): Likewise.
790 * valops.c (value_struct_elt_for_reference): Refine artificial
791 type logic. Call error if j==-1.
792
793 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
794
795 Fix false GCC warning.
796 * infcall.c (find_function_addr): Initialize funaddr.
797
798 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
799
800 Fix mingw compilation with --enable-targets=all.
801 * remote-mips.c (gdb_usleep.h): Include header.
802 (mips_enter_debug): Use gdb_usleep instead of sleep.
803
804 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 Support resolution of STT_GNU_IFUNC via breakpoints.
807 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
808 bp_gnu_ifunc_resolver_return.
809 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
810 the loop. Support bp_gnu_ifunc_resolver and
811 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
812 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
813 breakpoints.
814 (bptype_string, print_one_breakpoint_location): Support
815 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
816 (user_settable_breakpoint): Return true also for
817 bp_gnu_ifunc_resolver.
818 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
819 bp_gnu_ifunc_resolver_return.
820 (set_breakpoint_location_function): New parameter explicit_loc,
821 describe it. Call find_pc_partial_function_gnu_ifunc with new
822 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
823 EXPLICIT_LOC is not set.
824 (set_raw_breakpoint): Set EXPLICIT_LOC for
825 set_breakpoint_location_function.
826 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
827 set_breakpoint_location_function.
828 (mention): Support bp_gnu_ifunc_resolver and
829 bp_gnu_ifunc_resolver_return.
830 (add_location_to_breakpoint): Set EXPLICIT_LOC for
831 set_breakpoint_location_function.
832 (update_breakpoint_locations): Remove static.
833 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
834 bp_gnu_ifunc_resolver_return.
835 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
836 bp_gnu_ifunc_resolver_return.
837 (update_breakpoint_locations): New declaration.
838 * elfread.c: Include gdbthread.h and regcache.h.
839 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
840 functions.
841 (elf_gnu_ifunc_fns): Install them.
842 * minsyms.c (stub_gnu_ifunc_resolver_stop)
843 (stub_gnu_ifunc_resolver_return_stop): New functions.
844 (stub_gnu_ifunc_fns): Install them.
845 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
846 and gnu_ifunc_resolver_return_stop.
847 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
848
849 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
850
851 STT_GNU_IFUNC reader implementation.
852 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
853 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
854 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
855 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
856 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
857 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
858 (elf_gnu_ifunc_resolve_addr): New.
859 (elf_symfile_read): Call elf_rel_plt_read.
860 (elf_gnu_ifunc_fns): New.
861 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
862 Install elf_gnu_ifunc_fns.
863 * infcall.c (find_function_return_type): New function.
864 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
865 * minsyms.c (stub_gnu_ifunc_resolve_addr)
866 (stub_gnu_ifunc_resolve_name): New functions.
867 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
868 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
869 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
870
871 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
872
873 Code cleanup for later STT_GNU_IFUNC support.
874 * infcall.c (find_function_addr): Remove variable code, use explicit
875 dereferences for it. Move VALUE_TYPE initialization later.
876
877 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
878
879 GDB find_pc_partial_function support for STT_GNU_IFUNC.
880 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
881 (clear_pc_function_cache): Clear it.
882 (find_pc_partial_function): Rename to ...
883 (find_pc_partial_function_gnu_ifunc): ... this function. New
884 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
885 (find_pc_partial_function): New wrapper for this function.
886 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
887
888 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
889
890 GDB internal type support for STT_GNU_IFUNC.
891 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
892 (elf_symtab_read): Set mst_text_gnu_ifunc for
893 BSF_GNU_INDIRECT_FUNCTION.
894 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
895 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
896 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
897 nodebug_got_plt_symbol.
898 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
899 (TYPE_GNU_IFUNC): New.
900 (struct main_type): New field flag_gnu_ifunc.
901 (struct builtin_type): New field builtin_func_func.
902 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
903 nodebug_got_plt_symbol.
904 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
905 (in_gnu_ifunc_stub): New.
906 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
907 mst_text_gnu_ifunc.
908 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
909 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
910 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
911 in_gnu_ifunc_stub.
912 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
913 * symtab.c (search_symbols): Likewise.
914 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
915 and mst_slot_got_plt.
916 (in_gnu_ifunc_stub): New declaration.
917
918 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
919
920 Support a ring of related breakpoints.
921 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
922 other functions, add gdb_assert.
923 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
924 watchpoint_del_at_next_stop.
925 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
926 (bpstat_stop_status): Handle ring in related_breakpoint.
927 (set_raw_breakpoint_without_location): Initialize ring in
928 related_breakpoint.
929 (delete_breakpoint): Handle ring in related_breakpoint, use
930 watchpoint_del_at_next_stop.
931 (map_breakpoint_numbers): Handle ring in related_breakpoint.
932
933 2011-03-28 Tom Tromey <tromey@redhat.com>
934
935 PR symtab/12441:
936 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
937 with `language_minimal'.
938
939 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
940
941 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
942 instead of checking for STT_ARM_TFUNC symbol type.
943
944 2011-03-25 Tom Tromey <tromey@redhat.com>
945
946 * linespec.c (symbol_found): Restore line-based result for
947 non-LOC_LABEL symbols.
948
949 2011-03-25 Kai Tietz <ktietz@redhat.com>
950
951 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
952 instead of strcmp for comparison.
953 (tui_source_is_displayed): Likewise.
954 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
955
956 2011-03-24 Mark Wielaard <mjw@redhat.com>
957
958 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
959 complaint.
960 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
961 (find_partial_die_in_comp_unit): Likewise in comment.
962 (read_attribute_value): Likewise.
963 (lookup_die_type): Likewise.
964 (dwarf_form_name): Likewise.
965 (dump_die_shallow): Likewise.
966 (follow_die_ref_or_sig): Likewise.
967
968 2011-03-24 Tom Tromey <tromey@redhat.com>
969
970 PR breakpoints/11816:
971 * linespec.c (decode_line_1): Parse `function:label' linespecs.
972 (decode_compound): Update.
973 (find_function_symbol): New function.
974 (decode_dollar): Update.
975 (decode_label): Add 'function_symbol' parameter. Handle
976 function-relative labels.
977 (decode_variable): Update.
978 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
979 not its line. Set `special_display' and canonical name for
980 labels.
981
982 2011-03-24 Tom Tromey <tromey@redhat.com>
983
984 * linespec.h (struct linespec_result) <special_display>: New
985 field.
986 * breakpoint.h (struct breakpoint) <display_canonical>: New
987 field.
988 * breakpoint.c (print_breakpoint_location): Respect
989 display_canonical.
990 (create_breakpoint_sal): Add 'display_canonical' parameter.
991 (create_breakpoints_sal): Update.
992 (create_breakpoint): Update.
993
994 2011-03-24 Tom Tromey <tromey@redhat.com>
995
996 * symtab.c (decode_line_spec): Update.
997 * linespec.c (build_canonical_line_spec): Change type of
998 'canonical'.
999 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1000 (find_method, decode_all_digits, decode_dollar, decode_label)
1001 (symbol_found): Likewise.
1002 (init_linespec_result): New function.
1003 * breakpoint.c (struct captured_parse_breakpoint_args)
1004 <canonical_p>: New field, replaces addr_string_p.
1005 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1006 'addr_string'.
1007 (parse_breakpoint_sals): Likewise.
1008 (do_captured_parse_breakpoint): Update.
1009 (create_breakpoint): Use struct linespec_result.
1010 (until_break_command): Update.
1011 (breakpoint_re_set_one): Update.
1012 (decode_line_spec_1): Update.
1013 * linespec.h (struct linespec_result): New.
1014 (init_linespec_result): Declare.
1015
1016 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1017
1018 * regcache.c (regcache_raw_read): If the target didn't supply a
1019 given raw register, mark it as unavailable.
1020
1021 2011-03-23 Kai Tietz <ktietz@redhat.com>
1022
1023 * breakpoint.c (clear_command): Use filename_cmp
1024 instead of strcmp for comparison.
1025 * buildsym.c (watch_main_source_file_lossage): Likewise.
1026 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1027 checking just for slash.
1028 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1029 strrchr and filename_cmp instead of strcmp for filenames.
1030 (add_old_header_file): Use filename_cmp
1031 instead of strcmp for comparison.
1032 * exec.c (exec_set_section_address): Likewise.
1033 * macrotab.c (macro_lookup_inclusion): Likewise.
1034 (macro_lookup_inclusion): Likewise.
1035 * elfread.c (_initialize_elfread): Likewise.
1036 (elfstab_offset_sections): Likewise.
1037 (elfstab_offset_sections): Use lbasename instead of
1038 strrchr.
1039 * mdebugread.c (parse_partial_symbols): Likewise.
1040 (arse_partial_symbols): Use filename_(n)cmp instead of
1041 str(n)cmp for comparison.
1042 * minsyms.c (lookup_minimal_symbol): Likewise.
1043 * psymtab.c (read_psymtabs_with_filename): Likewise.
1044 * solib.c (solib_read_symbols): Likewise.
1045 (reload_shared_libraries_1): Likewise.
1046 * symmisc.c (maintenance_print_symbols): Likewise.
1047 * symfile.c (separate_debug_file_exists): Likewise.
1048 (reread_symbols): Likewise.
1049 (find_separate_debug_file_by_debuglink): Likewise.
1050 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1051 * source.c (add_path): Likewise.
1052 * symtab.c (filename_seen): Likewise.
1053 (file_matches): Likewise.
1054 (print_symbol_info): Likewise.
1055 (maybe_add_partial_symtab_filename): Likewise.
1056 (make_source_files_completion_list): Likewise.
1057 * xml-syscall.c (init_sysinfo): Likewise.
1058 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1059 IS_DIR_SEPARATOR for checking for trailing path separator.
1060
1061 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1062
1063 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1064 label abort_expression.
1065 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1066 DWARF_VALUE_OPTIMIZED_OUT.
1067
1068 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1069
1070 Code cleanup.
1071 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1072 to linkage_name. Invert its value. Update the function comment.
1073 (c_type_print_varspec_suffix): Invert it at the caller.
1074 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1075
1076 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1077
1078 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1079 errors when reading the `stop_pc'.
1080 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1081 get_frame_pc.
1082
1083 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1084
1085 * NEWS: Document gdb.Write stream keyword.
1086
1087 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 Revert:
1090 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1091 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1092 (dwarf2_add_field): Fix new_field->accessibility for
1093 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1094
1095 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1096
1097 PR python/12183
1098
1099 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1100 other error classes. Do not print stack trace.
1101
1102 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1105 (dwarf2_add_field): Fix new_field->accessibility for
1106 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1107
1108 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1109
1110 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1111 encountering a load via a non-SP register.
1112
1113 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1114
1115 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1116 field in returned unwinder.
1117
1118 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1121
1122 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1123
1124 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1125 of xmalloc.
1126
1127 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1128
1129 * frame.c (frame_unwind_register): Throw an error if unwinding the
1130 register failed.
1131 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1132 an unwind stop reason.
1133 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1134 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1135 UNWIND_UNAVAILABLE>: New.
1136 * inline-frame.c (inline_frame_unwind): Install
1137 default_frame_unwind_stop_reason.
1138 * frame-unwind.c: Include "exceptions.h".
1139 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1140 (default_frame_unwind_stop_reason): New.
1141 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1142 (default_frame_unwind_stop_reason): Declare.
1143 (struct frame_unwind) <stop_reason>: New function pointer.
1144
1145 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1146 * dwarf2-frame.c: Include exceptions.h.
1147 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1148 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1149 computing the CFA. If such an error was thrown, set
1150 unavailable_retaddr.
1151 (dwarf2_frame_unwind_stop_reason): New.
1152 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1153 unavailable.
1154 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1155 (dwarf2_signal_frame_unwind): Ditto.
1156
1157 * amd64-tdep.c: Include "exceptions.h".
1158 (struct amd64_frame_cache): New field "base_p".
1159 (amd64_init_frame_cache): Clear it.
1160 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1161 Avoid reading registers with functions that throw if the register
1162 is not necessary to compute the frame base.
1163 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1164 swallowing NOT_AVAILABLE_ERROR.
1165 (amd64_frame_unwind_stop_reason): New.
1166 (amd64_frame_this_id): Don't build a frame id if the frame base
1167 was unavailable.
1168 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1169 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1170 base_p if the frame base was computable.
1171 (amd64_sigtramp_frame_unwind_stop_reason): New.
1172 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1173 frame base was unavailable.
1174 (amd64_sigtramp_frame_unwind): Install
1175 amd64_sigtramp_frame_unwind_stop_reason.
1176 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1177 base_p if the frame base was computable.
1178 (amd64_epilogue_frame_unwind_stop_reason): New.
1179 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1180 frame base was unavailable.
1181 (amd64_epilogue_frame_unwind): Install
1182 amd64_epilogue_frame_unwind_stop_reason.
1183 * i386-tdep.c: Include "exceptions.h".
1184 (struct i386_frame_cache): New field "base_p".
1185 (i386_init_frame_cache): Clear it.
1186 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1187 Avoid reading registers with functions that throw if the register
1188 is not necessary to compute the frame base.
1189 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1190 swallowing NOT_AVAILABLE_ERROR.
1191 (i386_frame_unwind_stop_reason): New.
1192 (i386_frame_this_id): Don't build a frame id if the frame base was
1193 unavailable.
1194 (i386_frame_prev_register): Handle unavailable SP.
1195 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1196 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1197 base_p if the frame base was computable.
1198 (i386_epilogue_frame_unwind_stop_reason): New.
1199 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1200 base was unavailable.
1201 (i386_epilogue_frame_unwind): Install
1202 i386_epilogue_frame_unwind_stop_reason.
1203 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1204 base_p if the frame base was computable.
1205 (i386_sigtramp_frame_unwind_stop_reason): New.
1206 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1207 base was unavailable.
1208 (i386_sigtramp_frame_unwind): Install
1209 i386_sigtramp_frame_unwind_stop_reason.
1210 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1211 type's size, not the register's.
1212 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1213
1214 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1215 default_frame_unwind_stop_reason.
1216 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1217 (alpha_heuristic_frame_unwind): Ditto.
1218 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1219 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1220 * avr-tdep.c (avr_frame_unwind): Ditto.
1221 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1222 Ditto.
1223 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1224 * frv-tdep.c (frv_frame_unwind): Ditto.
1225 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1226 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1227 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1228 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1229 (hppa_stub_frame_unwind): Ditto.
1230 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1231 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1232 (ia64_libunwind_frame_unwind)
1233 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1234 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1235 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1236 * m32c-tdep.c (m32c_unwind): Ditto.
1237 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1238 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1239 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1240 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1241 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1242 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1243 * mep-tdep.c (mep_frame_unwind): Ditto.
1244 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1245 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1246 (mips_stub_frame_unwind): Ditto.
1247 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1248 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1249 * mt-tdep.c (mt_frame_unwind): Ditto.
1250 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1251 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1252 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1253 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1254 (s390_sigtramp_frame_unwind): Ditto.
1255 * score-tdep.c (score_prologue_unwind): Ditto.
1256 * sh-tdep.c (sh_frame_unwind): Ditto.
1257 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1258 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1259 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1260 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1261 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1262 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1263 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1264 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1265 (sparc64obsd_trapframe_unwind): Ditto.
1266 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1267 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1268 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1269 * v850-tdep.c (v850_frame_unwind): Ditto.
1270 * vax-tdep.c (vax_frame_unwind): Ditto.
1271 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1272 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1273 * xtensa-tdep.c (xtensa_unwind): Ditto.
1274
1275 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1276
1277 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1278 there's always a frame. Use get_frame_pc_if_available instead of
1279 get_frame_pc, and if there's no PC available, don't look up a
1280 symtab.
1281
1282 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1283
1284 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1285 unavailable PC.
1286
1287 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1288
1289 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1290 gracefully.
1291
1292 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1293
1294 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1295 * frame.c (frame_unwind_caller_pc_if_available): New.
1296 * stack.c (frame_info): Handle unavailable PC.
1297
1298 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1299
1300 * frame.c (frame_unwind_pc): Rename to ...
1301 (frame_unwind_pc_if_available): ... this. New `pc' output
1302 parameter. Change return type to int. Gracefully handle
1303 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1304 happened, or 1 otherwise.
1305 (frame_unwind_pc): Reimplement on top of
1306 frame_unwind_pc_if_available.
1307 (get_frame_func): Rename to ...
1308 (get_frame_func_if_available): New `pc' output parameter. Change
1309 return type to int. Gracefully handle the PC not being available.
1310 (get_frame_func): Reimplement on top of
1311 get_frame_func_if_available.
1312 (select_frame): Handle the PC being unavailable.
1313 (get_prev_frame): Handle the PC being unavailable.
1314 (get_frame_pc_if_available): New.
1315 (get_frame_address_in_block_if_available): New.
1316 (find_frame_sal): Handle the frame PC not being available.
1317 * frame.h (get_frame_pc_if_available): Declare.
1318 (get_frame_address_in_block_if_available): Declare.
1319 (get_frame_func_if_available): Declare.
1320 * stack.c (print_frame_info): Handle the PC being unavailable.
1321 (find_frame_funname): Ditto.
1322 (print_frame): Handle the PC being unavailable.
1323 (get_frame_language): Ditto.
1324 * blockframe.c (get_frame_block): Ditto.
1325 * macroscope.c (default_macro_scope): Ditto.
1326 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1327
1328 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1329
1330 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1331 NOT_AVAILABLE_ERROR when evaluating the location expression.
1332
1333 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1334
1335 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1336 returning that the register piece is unavailable/optimized out.
1337 (write_pieced_value): Handle get_frame_register_bytes returning
1338 that the register piece is unavailable/optimized out when doing a
1339 read-modify write of a bitfield.
1340 * findvar.c (value_from_register): Handle get_frame_register_bytes
1341 returning that the register piece is unavailable/optimized out.
1342 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1343 and `unavailablep'. Throw error on bad debug info. Use
1344 frame_register instead of frame_register_read, to fill in the new
1345 arguments.
1346 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1347 and `unavailablep'.
1348 * valops.c: (value_assign): Adjust, and handle
1349 get_frame_register_bytes failing.
1350 * spu-tdep.c: Include exceptions.h.
1351 (spu_software_single_step): Adjust, and handle
1352 get_frame_register_bytes failing.
1353 (spu_get_longjmp_target): Ditto.
1354 * gdbarch.sh (register_to_value): Change to return int. New
1355 parameters `optimizedp' and `unavailablep'.
1356 * gdbarch.h, gdbarch.c: Regenerate.
1357 * i386-tdep.c (i386_register_to_value): Adjust to new
1358 gdbarch_register_to_value interface.
1359 * i387-tdep.c (i387_register_to_value): Ditto.
1360 * i387-tdep.h (i387_register_to_value): Ditto.
1361 * alpha-tdep.c (alpha_register_to_value): Ditto.
1362 * ia64-tdep.c (ia64_register_to_value): Ditto.
1363 * m68k-tdep.c (m68k_register_to_value): Ditto.
1364 * mips-tdep.c (mips_register_to_value): Ditto.
1365 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1366
1367 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1368
1369 * findvar.c (value_of_register): Mark the value as unavailable, if
1370 the register is unavailable.
1371 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1372 (frame_register): New `unavailablep' parameter.
1373 (frame_register_read): Update comment.
1374 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1375 Set it if the register is unavailable. If the register is
1376 unavailable, clear the output buffer.
1377 (frame_register): New `unavailablep' parameter. Pass it down.
1378 (frame_unwind_register): Adjust.
1379 (put_frame_register): Adjust.
1380 (frame_register_read): Adjust. Also return false if the register
1381 is not available.
1382 (frame_register_unwind_location): Adjust.
1383 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1384 is unavailable, mark the value accordingly.
1385 * stack.c (frame_info): Handle unavailable registers.
1386
1387 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1388
1389 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1390 simplify, using regcache_cooked_read.
1391
1392 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1393
1394 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1395 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1396 (regcache_raw_read_unsigned, regcache_raw_read_part)
1397 (regcache_cooked_read, regcache_cooked_read_signed)
1398 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1399 (regcache_cooked_read_ftype): Change return to enum
1400 register_status.
1401 * regcache.c: Include exceptions.h
1402 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1403 (do_cooked_read): Change return to enum register_status. Always
1404 forward to regcache_cooked_read.
1405 (regcache_raw_read): Change return to enum register_status. If
1406 the register is not REG_VALID, memset the buffer. Return the
1407 register's status.
1408 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1409 return the register's status.
1410 (regcache_raw_read_unsigned): Ditto.
1411 (regcache_cooked_read): Change return to enum register_status.
1412 Assert that with read-only regcaches, the register's status must
1413 be known. If the regcache is read-only, and the register is not
1414 REG_VALID, memset the buffer. Return the register's status.
1415 (regcache_cooked_read_signed): Change return to enum
1416 register_status. Handle non-REG_VALID registers and return the
1417 register's status.
1418 (regcache_cooked_read_unsigned): Change return to enum
1419 register_status. Handle non-REG_VALID registers and return the
1420 register's status.
1421 (regcache_xfer_part, regcache_raw_read_part)
1422 (regcache_cooked_read_part): Change return to enum
1423 register_status. Return the register's status.
1424 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1425 unavailable.
1426 (regcache_dump): Handle unavailable cooked registers.
1427 * frame.c (do_frame_register_read): Adjust interface to match
1428 regcache_cooked_read_ftype.
1429 * gdbarch.sh (pseudo_register_read): Change return to enum
1430 register_status.
1431 * gdbarch.h, gdbarch.c: Regenerate.
1432
1433 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1434 register_status.
1435 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1436 register_status. If reading a raw register indicates the raw
1437 register is not valid, return the raw register's status,
1438 otherwise, return REG_VALID.
1439 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1440 register_status. Handle non-REG_VALID raw registers and return
1441 the register's status.
1442 * arm-tdep.c (arm_neon_quad_read)
1443 (arm_pseudo_read): Change return to enum register_status. Handle
1444 non-REG_VALID raw registers and return the register's status.
1445 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1446 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1447 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1448 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1449 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1450 register_status.
1451 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1452 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1453 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1454 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1455 (m32c_pseudo_register_read): Change return to enum
1456 register_status. Adjust.
1457 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1458 enum register_status. Return the register's status.
1459 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1460 register_status. Return the register's status.
1461 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1462 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1463 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1464 * rs6000-tdep.c (move_ev_register_func): New typedef.
1465 (e500_move_ev_register): Use it. Change return to enum
1466 register_status. Return the register's status.
1467 (do_regcache_raw_read): New function.
1468 (do_regcache_raw_write): New function.
1469 (e500_pseudo_register_read): Change return to enum
1470 register_status. Return the register's status. Use
1471 do_regcache_raw_read.
1472 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1473 (dfp_pseudo_register_read): Change return to enum register_status.
1474 Return the register's status.
1475 (vsx_pseudo_register_read): Ditto.
1476 (efpr_pseudo_register_read): Ditto.
1477 (rs6000_pseudo_register_read): Ditto.
1478 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1479 register_status. Return the register's status.
1480 * sh64-tdep.c (pseudo_register_read_portions): New function.
1481 (sh64_pseudo_register_read): Change return to enum
1482 register_status. Use pseudo_register_read_portions. Return the
1483 register's status.
1484 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1485 register_status. Return the register's status.
1486 * sh-tdep.c (pseudo_register_read_portions): New function.
1487 (sh_pseudo_register_read): Change return to enum register_status.
1488 Use pseudo_register_read_portions. Return the register's status.
1489 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1490 enum register_status. Return the register's status.
1491 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1492 * spu-tdep.c (spu_pseudo_register_read_spu)
1493 (spu_pseudo_register_read): Ditto.
1494 * xtensa-tdep.c (xtensa_register_read_masked)
1495 (xtensa_pseudo_register_read): Ditto.
1496 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1497
1498 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1499
1500 * python/py-value.c (valpy_getitem): Fix formatting of error function
1501 call.
1502
1503 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1504
1505 ARI fixes: Add missing internationalization markups throughout
1506 C source files.
1507 * darwin-nat-info.c: Ditto.
1508 * record.c: Ditto.
1509 * remote.c: Ditto.
1510 * mi/mi-main.c: Ditto.
1511
1512 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1513
1514 ARI fixes: Add missing internationalization markups throughout
1515 yacc files.
1516 * c-exp.y: Ditto.
1517 * cp-name-parser.y: Ditto.
1518 * f-exp.y: Ditto.
1519 * m2-exp.y: Ditto.
1520 * objc-exp.y: Ditto.
1521 * p-exp.y: Ditto.
1522
1523 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1524
1525 ARI fixes: Messages should have no trailing new lines.
1526 * darwin-nat.c (mach_check_error): Remove trailing new line from
1527 warning function call message.
1528 * record.c (bfdcore_read): Idem for error call.
1529
1530 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1531
1532 * common/signals.c (target_signal_from_host): Add _ markup to error
1533 function call message.
1534 (target_signal_to_host): Add _ markup and remove trailing new line
1535 from warning call message.
1536 (target_signal_from_command): Add _ markup to error function call
1537 message.
1538
1539 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1540
1541 PR python/12149
1542
1543 * python/python.c (gdbpy_write): Accept a stream argument and
1544 operate to the appropriate stream.
1545 (gdbpy_flush): Likewise.
1546 (_initialize_python): Add stream constants.
1547 (finish_python_initialization): Add GdbOutputErrorFile class.
1548
1549 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1550
1551 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1552
1553 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1554
1555 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1556 to store_signed_integer. Add debug message when relocating CALL
1557 instructions. Fix formatting of debug message.
1558 * i386-tdep.c (i386_relocate_instruction): Ditto.
1559
1560 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1561
1562 * target.h (struct target_ops): Remove to_lookup_symbol field.
1563 (target_lookup_symbol): Delete macro.
1564 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1565 (update_current_target, setup_target_debug): Remove handling
1566 of to_lookup_symbol target_ops field.
1567 * ada-tasks.c (get_known_tasks_addr): Remove use of
1568 target_lookup_symbol.
1569 * coffread.c (coff_symtab_read): Likewise.
1570 * dbxread.c (read_dbx_symtab): Ditto.
1571
1572 2011-03-17 Joel Brobecker <brobecker@gnat.com>
1573
1574 PR gdb/12116:
1575 * configure.ac: Add getthrds declaration check.
1576 * configure, config.in: Regenerate.
1577 * aix-thread.c (getthrds): Declare only if not already declared
1578 in procinfo.h. More declaration out of get_signaled_thread to
1579 global scope.
1580
1581 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1582
1583 * python/py-symtab.c: Populate symtab_object_methods,
1584 sal_object_methods.
1585 (stpy_is_valid): New function.
1586 (salpy_is_valid): Ditto.
1587 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1588 (sympy_is_valid): New function.
1589 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1590 (objfpy_is_valid): New function.
1591 * python/py-inferior.c: Populate inferior_object_methods.
1592 (infpy_is_valid): New function.
1593 * python/py-infthread.c: Populate thread_object_methods.
1594 (thpy_is_valid): New function.
1595 * python/py-block.c: Declare block_object_methods. Populate. Declare
1596 block_iterator_object_methods. Populate.
1597 (blpy_is_valid): New function.
1598 (blpy_iter_is_valid): Ditto.
1599
1600 2011-03-16 Keith Seitz <keiths@redhat.com>
1601
1602 * linespec.c (find_methods): Canonicalize NAME before looking
1603 up the symbol.
1604 (name_end): New function.
1605 (keep_name_info): New function.
1606 (decode_line_1): Use keep_name_info.
1607 (decode_compound): Likewise.
1608 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1609 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1610
1611 PR c++/12273
1612 * linespec.c (locate_first_half): Keep overload information, too.
1613 (decode_compound): Use a string to represent break characters
1614 to escape the loop.
1615 If P points to a break character, do not increment it.
1616 For C++ and Java, keep overload information and relevant keywords.
1617 If we cannot find a symbol, search the minimal symbols.
1618
1619 PR c++/11734
1620 * linespec.c (decode_compound): Rename SAVED_ARG to
1621 THE_REAL_SAVED_ARG.
1622 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1623 single-quotes.
1624 Pass a valid block to lookup_symbol.
1625 (lookup_prefix_sym): Likewise.
1626 (find_method): Construct search name based on SYM_CLASS instead
1627 of SAVED_ARG.
1628 * psymtab.c (lookup_partial_symbol): Add language parameter.
1629 (lookup_symbol_aux_psymtabs): Likewise.
1630 Don't assume that the psymtab we found was the right one. Search
1631 for the desired symbol in the symtab to be certain.
1632 (psymtab_search_name): New function.
1633 (lookup_partial_symbol): Use psymtab_search_name.
1634 Add language parameter.
1635 (read_symtabs_for_function): Add language parameter and pass to
1636 lookup_partial_symbol.
1637 (find_symbol_file_from_partial): Likewise.
1638
1639 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1640
1641 PR gdb/12528
1642 * dwarf2read.c (noop_record_line): New function.
1643 (dwarf_decode_lines): Ignore line tables for GCd functions.
1644
1645 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1646
1647 Fix ARI warnings about new lines at the end of messages, which
1648 are unneeded as there is a new line added at the end of the message
1649 automatically.
1650 * darwin-nat.c (darwin_stop_inferior): Ditto.
1651 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1652 * dfp.c (decimal_to_number): Ditto.
1653 * exec.c (print_section_info): Ditto.
1654 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1655 * osdata.c (get_osdata): Ditto.
1656 * record.c (bfdcore_write): Ditto.
1657 * remote-mips.c (mips_readchar): Ditto.
1658 * remote.c (read_ptid): Ditto.
1659 * ser-mingw.c (ser_windows_raw): Ditto.
1660 * tracepoint.c (add_local_symbols): Ditto.
1661 * windows-nat.c (fake_create_process): Ditto.
1662
1663 2011-03-16 Tom Tromey <tromey@redhat.com>
1664
1665 * tracepoint.c (stop_tracing): Don't declare.
1666 * event-top.c (after_char_processing_hook): Add `(void)'.
1667
1668 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1669
1670 * NEWS: Add Parameter sub-classing description.
1671
1672 2011-03-16 Kai Tietz <ktietz@redhat.com>
1673
1674 * MAINTAINERS: Update my e-mail address.
1675
1676 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1677
1678 * MAINTAINERS: Add myself for write after approval privileges.
1679
1680 2011-03-15 Michael Snyder <msnyder@vmware.com>
1681
1682 * frame.c (find_frame_sal): Assert sym is not null.
1683
1684 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1685
1686 * objc-lang.c (selectors_info): Check strchr for null result.
1687
1688 * stabsread.c (define_symbol): Guard against bad stabstring input.
1689
1690 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1691
1692 Remove trailing spaces and tabulations from pascal language
1693 support sources.
1694 p-exp.y: Ditto.
1695 p-lang.c: Ditto.
1696 p-lang.h: Ditto.
1697 p-valprint.c: Ditto.
1698
1699 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1700
1701 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1702 than LOW. Comment it.
1703 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1704 HIGHPC not strictly higher than LOWPC.
1705
1706 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1707
1708 Fix formatting of function declarations returning a pointer in
1709 previous commit.
1710 * varobj.c (varobj_add_child): Ditto.
1711 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1712 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1713
1714 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1715
1716 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1717 for the "generic" vector ABI used with GCC 4.3 and later.
1718 (ppc64_sysv_abi_return_value): Likewise.
1719
1720 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1721
1722 * infcall.c (call_function_by_hand): Function return value is
1723 always a non_lval, even when using struct_return.
1724
1725 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1726
1727 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1728 (map_display_numbers): New.
1729 (do_delete_display): New.
1730 (undisplay_command): Use map_display_numbers.
1731 (do_enable_disable_display): New.
1732 (enable_disable_display_command): New function.
1733 (enable_display): Delete.
1734 (enable_display_command): New.
1735 (disable_display_command): Reimplement.
1736 (_initialize_printcmd): Adjust "enable display" command to use
1737 `enable_display_command' as callback.
1738
1739 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1740
1741 * NEWS: Add Python breakpoint 'stop' operation.
1742
1743 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1744
1745 * NEWS: Delete duplicate entry. Fix typo.
1746
1747 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1748
1749 Fix ARI warning about function names in first column.
1750 Put prototype declaration on same line as return type.
1751 * objc-exp.y: Ditto.
1752 * p-exp.y: Ditto.
1753 * python/py-stopevent.h: Ditto.
1754 For long function names, split parameters to
1755 allow function name on same line as return type.
1756 * solib-pa64.c: Ditto.
1757 * varobj.c: Ditto.
1758 * varobj.h: Ditto.
1759 For long function declaration, use single line.
1760 * hppa-tdep.h: Ditto.
1761 * inferior.h: Ditto.
1762
1763 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1764
1765 * python/python.h: Declare gdbpy_should_stop and
1766 gdbpy_breakpoint_has_py_cond.
1767 * python/python.c: Add python.h to includes. Remove python.h from
1768 HAVE_PYTHON definition
1769 (gdbpy_should_stop): New dummy function.
1770 (gdbpy_breakpoint_has_py_cond): New dummy function.
1771 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1772 sub-classing capabilities.
1773 (gdbpy_should_stop): New function.
1774 (gdbpy_breakpoint_has_py_cond): New function.
1775 (local_setattro): New function.
1776 * breakpoint.c (condition_command): Add check for Python 'stop'
1777 operation.
1778 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1779 operation function as part of stop/continue tests.
1780
1781 2011-03-14 Tom Tromey <tromey@redhat.com>
1782
1783 PR gdb/12576:
1784 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1785 (needs_frame_dwarf_call): Likewise.
1786
1787 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1788
1789 Fix ARI warning about functions without parameters that do not
1790 use (void).
1791 * breakpoint.c (all_tracepoints): Replace () by (void).
1792 * f-exp.y (match_string_literal): Ditto.
1793 (yylex): Ditto.
1794 * m2-exp.y (yylex): Ditto.
1795 * mep-tdep.c (current_me_module): Ditto.
1796 (current_options): Ditto.
1797 (current_cop_data_bus_width): Ditto.
1798 (current_cr_names): Ditto.
1799 (current_cr_is_float): Ditto.
1800 (current_ccr_names): Ditto.
1801 * objc-exp.y (yylex): Ditto.
1802 * p-exp.y (yylex): Ditto.
1803 * remote.c (send_interrupt_sequence): Ditto.
1804 * tracepoint.c (current_trace_status): Ditto.
1805 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1806 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1807
1808 2011-03-11 Michael Snyder <msnyder@vmware.com>
1809
1810 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1811 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1812 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1813 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1814 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1815
1816 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1817 (delete_async_event_handler): Ditto.
1818
1819 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1820
1821 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1822
1823 * top.c (set_verbose): Assert showcmd was found.
1824
1825 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1826
1827 * xtensa-tdep.c (warning_once): Correct style issues.
1828
1829 2011-03-11 Yao Qi <yao@codesourcery.com>
1830
1831 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1832
1833 2011-03-11 Andreas Schwab <schwab@redhat.com>
1834
1835 * common/aclocal.m4: Remove.
1836
1837 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1838
1839 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1840 (xtensa_write_register, xtensa_read_register): Likewise.
1841 (xtensa_hextochar): Removed.
1842 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1843
1844 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1845
1846 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1847 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1848 (xtensa_alloc_frame_cache): Add initialization for new fields.
1849 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1850 (warning_once): New function.
1851 (xtensa_insn_kind): New item c0opc_and.
1852 (call0_classify_opcode): Add the case for AND instruction.
1853 (call0_track_op): Change arguments. New local variable litbase.
1854 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1855 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1856 in the prologue.
1857 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1858 (call0_analyze_prologue): Update the comments. Change arguments.
1859 Add the variety of updates to handle extended prologues, which now can
1860 conduct dynamic stack adjustments.
1861 (call0_frame_cache): Likewise.
1862 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1863 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1864
1865 2011-03-10 Michael Snyder <msnyder@vmware.com>
1866
1867 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1868 (cmd_qtframe): Ditto.
1869 (cmd_qtbuffer): Ditto.
1870 (cmd_bigqtbuffer): Ditto.
1871
1872 2011-03-10 Tom Tromey <tromey@redhat.com>
1873
1874 * tracepoint.c (trace_actions_command): Update.
1875 * thread.c (thread_apply_command): Update.
1876 * reverse.c (delete_bookmark_command): Update.
1877 (bookmarks_info): Update.
1878 * printcmd.c (undisplay_command): Update.
1879 * memattr.c (mem_enable_command): Update.
1880 (mem_disable_command): Update.
1881 (mem_delete_command): Update.
1882 * inferior.c (detach_inferior_command): Update.
1883 (kill_inferior_command): Update.
1884 (remove_inferior_command): Update.
1885 * cli/cli-utils.h (struct get_number_or_range_state): New.
1886 (init_number_or_range): Declare.
1887 (get_number_or_range): Update.
1888 * cli/cli-utils.c (init_number_or_range): New function.
1889 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1890 static variables.
1891 (number_is_in_list): Update.
1892 * breakpoint.h (get_tracepoint_by_number): Update.
1893 * breakpoint.c (map_breakpoint_numbers): Update for change to
1894 get_number_or_range.
1895 (find_location_by_number): Use get_number, not
1896 get_number_or_range.
1897 (trace_pass_set_count): New function.
1898 (trace_pass_command): Update for change to get_number_or_range.
1899 Rework loop logic.
1900 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1901 'state' parameter.
1902
1903 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1904
1905 * python/py-param.c (add_setshow_generic): Add set/show callback
1906 parameters. Register Python object context.
1907 (get_show_value): New function.
1908 (get_set_value): New function.
1909 (call_doc_function): New function.
1910 (get_doc_string): Move behind get_show_value/get_set_value.
1911
1912 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1913
1914 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1915
1916 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1917
1918 * xtensa-tdep.c (xtensa_read_register): Add comment.
1919 (xtensa_write_register): Likewise.
1920 (xtensa_hextochar): Add comment and update to match coding conventions.
1921 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1922 (execute_l32e, execute_s32e, execute_code): Update comments.
1923 (xtensa_exception_handler_t): Update to match coding conventions.
1924 (xtensa_insn_kind): Likewise.
1925
1926 2011-03-09 Michael Snyder <msnyder@vmware.com>
1927
1928 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1929
1930 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1931
1932 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1933
1934 2011-03-09 Tom Tromey <tromey@redhat.com>
1935
1936 * thread.c (restore_selected_frame): Handle frame_level == -1.
1937 (make_cleanup_restore_current_thread): Use
1938 get_selected_frame_if_set.
1939 * frame.h (get_selected_frame_if_set): Declare.
1940 * frame.c (get_selected_frame_if_set): New function.
1941
1942 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1943
1944 * cli/cli-cmds.c (shell_escape): Use lbasename.
1945 * coffread.c (coff_start_symtab): Constify parameter.
1946 (complete_symtab): Constify `name' parameter.
1947 (coff_symtab_read): Constify `filestring' local.
1948 (coff_getfilename): Constify return and `result' local.
1949 Use lbasename.
1950 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1951 * linux-fork.c (info_checkpoints_command): Use lbasename.
1952 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1953 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1954 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1955 * procfs.c (procfs_make_note_section): Use lbasename.
1956 * tui/tui-io.c (printable_part): Constity return and parameter.
1957 Use lbasename.
1958 (print_filename): Constify parameters, and local `s'.
1959 (tui_rl_display_match_list): Constify local `temp'.
1960
1961 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1962
1963 Revert:
1964 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1965 Fix DWARF-3+ DW_AT_accessibility default assumption.
1966 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1967 cu->header.version >= 3.
1968
1969 2011-03-09 Yao Qi <yao@codesourcery.com>
1970
1971 * common/Makefile.in: Remove.
1972 * common/configure: Remove.
1973 * common/configure.ac: Remove.
1974
1975 2011-03-09 Yao Qi <yao@codesourcery.com>
1976
1977 Revert:
1978 2011-02-11 Yao Qi <yao@codesourcery.com>
1979
1980 * common/Makefile.in: Add copyright header.
1981
1982 2011-02-11 Yao Qi <yao@codesourcery.com>
1983
1984 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1985 libcommon.a.
1986 * configure.ac: Add common to sub dir.
1987 * configure: Regenerate.
1988
1989 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1990
1991 * xtensa-tdep.c (call0_ret): New function.
1992 (xtensa_skip_prologue): Speed up analysis.
1993
1994 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1995
1996 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1997 while executing MI command -data-list-changed-registers.
1998
1999 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2000
2001 * xtensa-tdep.c (xtensa_read_register): New function.
2002 (xtensa_write_register): New function.
2003 (xtensa_find_register_by_name): New function.
2004 (xtensa_windowed_frame_cache): Update comments in type description.
2005 (xtensa_frame_cache): Likewise.
2006 (xtensa_window_interrupt_insn): New function.
2007 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2008 (xtensa_insn_kind): Add new instructions.
2009 (rwx_special_register): New function.
2010 (call0_classify_opcode): Add new instructions to the analysis.
2011 (a0_saved, a7_saved, a11_saved): New variables.
2012 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2013 (execute_l32e): New function.
2014 (execute_s32e): New function.
2015 (xtensa_exception_handler_t): New type.
2016 (execute_code): New function.
2017 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2018 analysis for Xtensa Window Exception handlers.
2019
2020 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2021
2022 * xtensa-tdep.c (TX_PS): New.
2023 (windowing_enabled): Update to count for Call0 ABI.
2024 (xtensa_hextochar): New.
2025 (xtensa_init_reggroups): Make algorithm generic.
2026 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2027
2028 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2029
2030 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2031
2032 2011-03-08 Michael Snyder <msnyder@vmware.com>
2033
2034 * i386-tdep.c (i386_follow_jump): Check return value of
2035 target_read_memory.
2036 (i386_analyze_struct_return): Ditto.
2037 (i386_skip_probe): Ditto.
2038 (i386_match_insn): Ditto.
2039 (i386_skip_noop): Ditto.
2040 (i386_analyze_frame_setup): Ditto.
2041 (i386_analyze_register_saves): Ditto.
2042 (i386_skip_prologue): Ditto.
2043 (i386_skip_main_prologue): Ditto.
2044
2045 * target.c (read_whatever_is_readable): Fix memory leak.
2046
2047 * i386-tdep.c (i386_process_record): Document fall through.
2048
2049 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 Fix DWARF-3+ DW_AT_accessibility default assumption.
2052 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2053 cu->header.version >= 3.
2054
2055 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2056
2057 * remote.c (remote_check_symbols): Skip if the target has no
2058 execution.
2059
2060 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2061
2062 * target.c (read_whatever_is_readable): Reformat comment,
2063 with a minor typo fix. Minor reformatting of the code.
2064
2065 2011-03-08 Yao Qi <yao@codesourcery.com>
2066
2067 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2068 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2069 Use cached result instead of calling displaced_in_arm_mode again.
2070 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2071 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2072 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2073 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2074 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2075 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2076 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2077 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2078 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2079 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2080 (arm_catch_kernel_helper_return): Likewise.
2081 * gdb/arm-tdep.h : Update function declarations.
2082
2083 2011-03-07 Michael Snyder <msnyder@vmware.com>
2084
2085 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2086
2087 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2088
2089 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2090
2091 * elfread.c (elf_symtab_read): Stop memory leak.
2092
2093 * main.c (captured_main): Fix memory leak.
2094
2095 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2096
2097 * ada-lang.c (compare_names): Call is_name_suffix with string1
2098 instead of string2.
2099
2100 2011-03-07 Tom Tromey <tromey@redhat.com>
2101
2102 * xcoffread.c (xcoff_sym_fns): Update.
2103 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2104 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2105 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2106 (symbol_file_add_with_addrs_or_offsets): Likewise.
2107 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2108 * somread.c (som_sym_fns): Update.
2109 * psymtab.h (require_partial_symbols): Declare.
2110 * psymtab.c (require_partial_symbols): New function.
2111 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2112 (ALL_OBJFILE_PSYMTABS): Undef.
2113 (ALL_PSYMTABS): Move from psympriv.h.
2114 (lookup_partial_symtab, find_pc_sect_psymtab)
2115 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2116 (find_last_source_symtab_from_partial)
2117 (forget_cached_source_info_partial)
2118 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2119 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2120 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2121 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2122 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2123 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2124 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2125 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2126 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2127 psymtabs.
2128 * mipsread.c (ecoff_sym_fns): Update.
2129 * machoread.c (macho_sym_fns): Update.
2130 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2131 (read_psyms): New function.
2132 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2133 (elf_sym_fns_lazy_psyms): New global.
2134 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2135 dwarf2_build_psymtabs.
2136 * dbxread.c (aout_sym_fns): Update.
2137 * coffread.c (coff_sym_fns): Update.
2138
2139 2011-03-07 Tom Tromey <tromey@redhat.com>
2140
2141 * infrun.c (print_exited_reason): Include inferior id and pid in
2142 message.
2143
2144 2011-03-07 Tom Tromey <tromey@redhat.com>
2145
2146 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2147 parameter.
2148 (target_has_execution_1): Update.
2149 (target_has_execution_current): Declare.
2150 (target_has_execution): Call target_has_execution_current.
2151 (default_child_has_execution): Update.
2152 * target.c (default_child_has_execution): Add 'the_ptid'
2153 parameter.
2154 (target_has_execution_1): Likewise.
2155 (target_has_execution_current): New function.
2156 (add_target): Update.
2157 (init_dummy_target): Update.
2158 * remote-m32r-sdi.c (m32r_has_execution): New function.
2159 (init_m32r_ops): Use it.
2160 * record.c (record_core_has_execution): Now static. Add
2161 'the_ptid' parameter.
2162 * inferior.c (have_live_inferiors): Don't save current thread.
2163 Use target_has_execution_1.
2164
2165 2011-03-07 Yao Qi <yao@codesourcery.com>
2166
2167 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2168
2169 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2170
2171 * elfread.c (elf_symtab_read): Minor reformatting.
2172
2173 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2174
2175 * objc-lang.c (selectors_info): Minor reformatting.
2176
2177 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2178
2179 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2180
2181 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2182 Michael Snyder <msnyder@vmware.com>
2183
2184 * ada-valprint.c (ada_val_print_array): Move the declaration of
2185 "byte_order" and "elttype" inside the block where these variables
2186 are actually used. Remove some special handling for the case
2187 where "elttype" and "eltlen" are null. Replace by a comment
2188 and a couple of assertion checks.
2189
2190 2011-03-05 Michael Snyder <msnyder@vmware.com>
2191
2192 * source.c (add_path): Replace semicolon at end of block.
2193 * dwarf2expr.c (execute_stack_op): Ditto.
2194
2195 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2196
2197 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2198 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2199 (bfin-*-*): Likewise.
2200
2201 2011-03-05 Michael Snyder <msnyder@vmware.com>
2202
2203 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2204 * mdebugread.c (parse_symbol): Ditto.
2205 * parse.c (parse_exp_in_context): Ditto.
2206 * source.c (add_path): Ditto.
2207 * utils.c (gnu_debuglink_crc32): Ditto.
2208 * varobj.c (variable_language): Ditto.
2209
2210 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2211
2212 2011-03-04 Michael Snyder <msnyder@vmware.com>
2213
2214 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2215
2216 * symfile.c (simple_overlay_update): Check for null return value
2217 from lookup_minimal_symbol.
2218
2219 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2220
2221 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2222
2223 * eval.c (parse_and_eval_address_1): Remove function.
2224 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2225 instead of parse_and_eval_address_1.
2226 * value.h (parse_and_eval_address_1): Remove prototype.
2227
2228 2011-03-04 Michael Snyder <msnyder@vmware.com>
2229
2230 * remote.c (putpkt_binary): Document that case stmt falls through.
2231
2232 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2233
2234 * breakpointc (print_it_typical): Move NULL check from here...
2235 (print_bp_stop_message): ... to here.
2236
2237 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2238
2239 * breakpoint.c (enable_command): Use break instead of continue,
2240 and fill in a missing break.
2241 (disable_command): Ditto.
2242
2243 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2244
2245 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2246 (terminal_save_ours): Remove misleading comment.
2247 (inflow_inferior_data_cleanup): Free ttystate.
2248 (inflow_inferior_exit): Likewise.
2249 (copy_terminal_info): Copy ttystate.
2250
2251 * serial.c (serial_copy_tty_state): New function.
2252 * serial.h (serial_copy_tty_state): Add prototype.
2253 (struct serial_ops): Add copy_tty_state callback.
2254 * ser-base.c (ser_base_copy_tty_state): New function.
2255 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2256 * ser-go32.c (dos_copy_tty_state): New function.
2257 (dos_ops): Install copy_tty_state callback.
2258 * ser-mingw.c (_initialize_ser_windows): Likewise.
2259 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2260 * ser-unix.c (hardwire_copy_tty_state): New function.
2261 (_initialize_ser_hardwire): Install it.
2262
2263 2011-03-04 Michael Snyder <msnyder@vmware.com>
2264
2265 * breakpoint.c (create_breakpoint): Add missing break statement.
2266
2267 Reverting this patch:
2268 * infcall.c (call_function_by_hand): Add break statements for lint.
2269
2270 Reverting this patch:
2271 * cli/cli-script.c (script_from_file): Add break for lint.
2272
2273 2011-03-04 Michael Snyder <msnyder@vmware.com>
2274
2275 * solib.c (reload_shared_libraries_1): Close memory leak.
2276
2277 2011-03-03 Tom Tromey <tromey@redhat.com>
2278
2279 PR gdb/12538:
2280 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2281 DW_STRING is NULL.
2282
2283 2011-03-03 Michael Snyder <msnyder@vmware.com>
2284
2285 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2286 fields of struct 'st' to zero.
2287
2288 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2289 sal.pspace before calling set_current_source_symtab_and_line.
2290
2291 2011-03-03 Yao Qi <yao@codesourcery.com>
2292
2293 * Makefile.in (configure-common): Remove. Let Makefile
2294 in dir common to rebuild itself.
2295 (common/Makefile): Likewise.
2296
2297 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2298
2299 * utils.c (parse_escape): Add i18n markup in error message.
2300
2301 2011-03-03 Yao Qi <yao@codesourcery.com>
2302
2303 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2304 ARM_PC_REGNUM.
2305 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2306 (displaced_write_reg, displaced_read_reg): Likewise.
2307 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2308 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2309 (cleanup_branch): Replace magic number 14 and 15 with
2310 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2311
2312 2011-03-02 Michael Snyder <msnyder@vmware.com>
2313
2314 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2315
2316 * cli/cli-script.c (script_from_file): Add break for lint.
2317
2318 * mdebugread.c (parse_partial_symbols): Fix indent.
2319
2320 * target-descriptions.c (tdesc_gdb_type): No need to call
2321 xstrdup, callee saves a copy.
2322
2323 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2324
2325 * infcall.c (call_function_by_hand): Add break statements for lint.
2326
2327 * utils.c (parse_escape): Escape the escape char.
2328
2329 * python/py-inferior.c (build_inferior_list): Error out if
2330 PyList_Append fails.
2331 (gdbpy_inferiors): Error out if build_inferior_list fails.
2332
2333 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2334 a function call.
2335
2336 * record.c (record_restore): Move printf to before error return.
2337
2338 2011-03-02 Yao Qi <yao@codesourcery.com>
2339
2340 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2341 is_thumb and insn_size.
2342 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2343 on both ARM and Thumb mode.
2344 (arm_process_displaced_insn): Set is_thumb and insn_size.
2345 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2346 (arm_displaced_step_fixup): Likewise.
2347
2348 2011-03-01 Michael Snyder <msnyder@vmware.com>
2349
2350 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2351
2352 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2353
2354 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2355
2356 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2357
2358 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2359 with xmalloc.
2360
2361 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2362 which shadows function parameter.
2363
2364 * tracepoint.c (create_tsv_from_upload): Superfluous call
2365 to xstrdup. Callee already calls xstrdup.
2366
2367 * linespec.c (decode_line_1): Remove unnecessary null check.
2368
2369 * tracepoint.c (scope_info): Fix mem leak, remove underused
2370 variable.
2371
2372 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2373 superfluous null check.
2374
2375 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2376 (value_of_builtin_frame_fp_reg): Ditto.
2377
2378 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2379
2380 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2381 be null.
2382
2383 * linespec.c (decode_line_1): Check for null before dereference.
2384
2385 * reverse.c (record_restore): Move null-check to before pointer
2386 dereference.
2387
2388 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2389
2390 * objc-lang.c (selectors_info): Add explanitory comment.
2391 (classes_info): Ditto.
2392
2393 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2394
2395 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2396 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2397 versions of the trampoline. Handle Thumb vs. ARM addresses.
2398 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2399 (arm_linux_init_abi): Install it.
2400 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2401 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2402
2403 2011-02-28 Michael Snyder <msnyder@vmware.com>
2404
2405 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2406 a little bigger, to avoid possibility of an overflow.
2407
2408 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2409 buffers a little bigger, to avoid possibility of an overflow.
2410
2411 * coffread.c (coff_getfilename): Add check to avoid overflow.
2412
2413 * objc-lang.c (selectors_info): Add a small safety margin to
2414 avoid overflow.
2415 (classes_info): Error out on too long REGEXP.
2416
2417 * infrun.c (handle_inferior_event): Remove unused function call.
2418
2419 * fork-child.c (fork_inferior): Remove ifdef'd code and
2420 unused variable.
2421
2422 * linux-thread-db.c (attach_thread): Discard unused value.
2423
2424 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2425
2426 * remote.c (remote_get_noisy_reply): Discard unused value.
2427 (remote_vcont_resume): Ditto.
2428 (remote_stop_ns): Ditto.
2429
2430 * linespec.c (decode_objc): Delete unused variable.
2431
2432 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2433
2434 * dwarf2read.c (add_partial_symbol): Discard unused values.
2435 (read_base_type): Delete unused variable.
2436
2437 * dbxread.c (read_dbx_symtab): Discard unused value.
2438
2439 * eval.c (evaluate_subexp_standard): Delete unused variable,
2440 and discard unused values.
2441
2442 * infcmd.c (_initialize_infcmd): Discard unused values.
2443
2444 * stabsread.c (rs6000_builtin_type): Missing break statement.
2445
2446 * dbxread.c (process_one_symbol): Discard unused value.
2447
2448 * coffread.c (coff_end_symtab): Delete unused variable.
2449
2450 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2451 (dwarf2_add_typedef): Delete unused variable.
2452 (read_namespace): Ditto.
2453 (dwarf_decode_macros): Ditto.
2454
2455 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2456
2457 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2458
2459 * p-valprint.c (pascal_val_print): Discard unused value.
2460
2461 * utils.c (nquery): Call va_end before return;
2462 (yquery): Ditto.
2463 (query): Ditto.
2464
2465 * proc-service.c (ps_plog): Call va_end before return.
2466
2467 2011-02-28 Tom Tromey <tromey@redhat.com>
2468
2469 * python/python.c (gdbpy_value_cst): New global.
2470 (_initialize_python): Initialize it.
2471 * python/python-internal.h (gdbpy_value_cst): Declare.
2472 * python/py-value.c (convert_value_from_python): Use
2473 gdbpy_value_cst.
2474
2475 2011-02-28 Michael Snyder <msnyder@vmware.com>
2476
2477 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2478
2479 * breakpoint.c (catch_syscall_completer): Free malloced list.
2480
2481 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2482
2483 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2484 (lval_func_check_synthetic_pointer): Ditto.
2485 (lval_func_free_closure): Fix use-after-free.
2486
2487 2011-02-28 Tom Tromey <tromey@redhat.com>
2488
2489 * psymtab.c (expand_partial_symbol_tables): Use
2490 ALL_OBJFILE_PSYMTABS.
2491
2492 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2493
2494 * objc-lang.c (selectors_info): Error on too long REGEXP.
2495
2496 2011-02-28 Michael Snyder <msnyder@vmware.com>
2497
2498 * python/py-param.c (set_parameter_value): Add missing
2499 break statement.
2500
2501 * linux-record.c (record_linux_system_call): Add missing
2502 break statement.
2503
2504 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2505
2506 * breakpoint.c (print_one_breakpoint_location): Remove unused
2507 argument PRINT_ADDRESS_BITS. Update callers.
2508 (print_one_breakpoint): Likewise.
2509
2510 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2511
2512 * breakpoint.c (wrap_indent_at_field): New function.
2513 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2514 Allocate ui_stream locally instead of using STB argument.
2515 (print_one_breakpoint_location): Update call.
2516 * ui-out.c (ui_out_query_field): New function.
2517 * ui-out.h (ui_out_query_field): Add prototype.
2518
2519 2011-02-28 Joel Brobecker <brobecker@adacore.com>
2520
2521 From Michael Snyder <msnyder@vmware.com>
2522 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2523
2524 2011-02-27 Michael Snyder <msnyder@vmware.com>
2525
2526 * objc-lang.c (selectors_info): Prevent string overrun.
2527
2528 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2529 error in strncpy.
2530
2531 * symtab.c (rbreak_command): Move variable 'file_name' to
2532 outer scope.
2533
2534 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2535 param with a local variable of the same name.
2536
2537 2011-02-27 Michael Snyder <msnyder@vmware.com>
2538
2539 * value.c (value_from_history_ref): New function.
2540 * value.h (value_from_history_ref): Export.
2541 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2542 to parse value history references.
2543 * cli/cli-utils.h (get_number_trailer): Update comment.
2544
2545 2011-02-27 Michael Snyder <msnyder@vmware.com>
2546
2547 * inferior.c (detach_inferior_command): Use get_number_or_range.
2548 (kill_inferior_command): Ditto.
2549 (remove_inferior_command): Ditto.
2550 (initialize_inferiors): Make command names plural.
2551 Update help strings.
2552
2553 2011-02-27 Michael Snyder <msnyder@vmware.com>
2554
2555 * darwin-nat-info.c: Fix comment typo.
2556 * dwarf2expr.h: Ditto.
2557 * fbsd-nat.c: Ditto.
2558 * fbsd-nat.h: Ditto.
2559 * frame-unwind.h: Ditto.
2560 * frame.h: Ditto.
2561 * hppa-hpux-tdep.c: Ditto.
2562 * i386-linux-nat.c: Ditto.
2563 * linux-nat.c: Ditto.
2564 * nbsd-nat.c: Ditto.
2565 * nbsd-nat.h: Ditto.
2566 * ppc-linux-tdep.c: Ditto.
2567 * serial.c: Ditto.
2568 * ui-file.h: Ditto.
2569 * tui/tui-winsource.c: Ditto.
2570
2571 2011-02-26 Michael Snyder <msnyder@vmware.com>
2572
2573 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2574
2575 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2576
2577 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2578 with a local variable of the same name.
2579
2580 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2581 param with a local variable of the same name.
2582 (i387_supply_xsave): Ditto.
2583
2584 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2585 that it does not shadow a function parameter.
2586
2587 * i386-nat.c (i386_length_and_rw_bits): Document that case
2588 statement is meant to fall through.
2589
2590 * expprint.c (dump_subexp_body_standard): Document that case
2591 statement is meant to fall through.
2592
2593 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2594 dead if statement. Condition can't be false.
2595
2596 2011-02-25 Michael Snyder <msnyder@vmware.com>
2597
2598 * arm-tdep.c: Fix typos in comments.
2599 * bsd-uthread.c: Ditto.
2600 * completer.c: Ditto.
2601 * corelow.c: Ditto.
2602 * cp-namespace.c: Ditto.
2603 * cp-support.c: Ditto.
2604 * cris-tdep.c: Ditto.
2605 * dbxread.c: Ditto.
2606 * dwarf2read.c: Ditto.
2607 * frame.h: Ditto.
2608 * gdbtypes.h: Ditto.
2609 * inferior.h: Ditto.
2610 * mdebugread.c: Ditto.
2611 * mips-tdep.c: Ditto.
2612 * ppc-linux-nat.c: Ditto.
2613 * ppc-linux-tdep.c: Ditto.
2614 * printcmd.c: Ditto.
2615 * sol-thread.c: Ditto.
2616 * solib-frv.c: Ditto.
2617 * solist.h: Ditto.
2618 * sparc64-tdep.c: Ditto.
2619 * spu-tdep.c: Ditto.
2620 * stabsread.c: Ditto.
2621 * symfile.c: Ditto.
2622 * valops.c: Ditto.
2623 * varobj.c: Ditto.
2624 * vax-nat.c: Ditto.
2625 * python/py-block.c: Ditto.
2626 * python/py-symbol.c: Ditto.
2627 * python/py-symtab.c: Ditto.
2628 * python/py-value.c: Ditto.
2629 * tui/tui-win.c: Ditto.
2630
2631 2011-02-25 Michael Snyder <msnyder@vmware.com>
2632
2633 * inferior.c (print_inferior): Accept a string instead of an int
2634 for requested_inferiors, and use get_number_or_range to parse it.
2635 (info_inferiors_command): Pass args string to print_inferior.
2636 (initialize_inferiors): Change help string for info inferiors.
2637 * inferior.h (print_inferior): Export prototype change.
2638
2639 2011-02-25 Tom Tromey <tromey@redhat.com>
2640
2641 * common/ax.def (invalid2): Set to 0x31.
2642
2643 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2644
2645 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2646 L and plongest.
2647 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2648 use L and plongest.
2649 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2650
2651 2011-02-24 Michael Snyder <msnyder@vmware.com>
2652
2653 * Makefile.in (clean): Make clean should remove generated files
2654 observer.h and observer.inc.
2655
2656 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2657
2658 Revert the following patch (not approved yet):
2659 2011-02-21 Hui Zhu <teawater@gmail.com>
2660 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2661 * ax-gdb.c (gen_printf_expr_callback): New function.
2662 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2663 * ax-general.c (ax_memcpy): New function.
2664 (ax_print): Handle "printf".
2665 (ax_reqs): Ditto.
2666 * ax.h (ax_memcpy): Forward declare.
2667 * common/ax.def (invalid2): Removed.
2668 (printf): New entry.
2669 * printcmd.c (printcmd.h): New include.
2670 (string_printf): New function.
2671 (ui_printf): Removed.
2672 (printf_command): Remove static. Call string_printf.
2673 (eval_command): Call string_printf.
2674 * printcmd.h: New file.
2675 * tracepoint.c (validate_actionline,
2676 encode_actions_1): handle printf_command.
2677
2678 2011-02-23 Tom Tromey <tromey@redhat.com>
2679
2680 * ax-general.c (ax_pick): Add missing newline.
2681
2682 2011-02-23 Michael Snyder <msnyder@vmware.com>
2683
2684 * breakpoint.c (breakpoint_1): Change first argument from an int
2685 to a char pointer, so that the function now accepts a list of
2686 breakpoints rather than just one. Use new function
2687 'number_is_in_list' to implement.
2688 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2689 (watchpoints_info): Ditto.
2690 (tracepoints_info): Ditto.
2691 (maintenance_info_breakpoints): Ditto.
2692 (_initialize_breakpoint): Update help strings to reflect the fact
2693 that these functions can now take more than one argument.
2694 * cli/cli-utils.c (number_is_in_list): New function.
2695 * cli/cli-utils.h (number_is_in_list): Export.
2696
2697 2011-02-23 Michael Snyder <msnyder@vmware.com>
2698
2699 * memattr.c (mem_enable_command): Use get_number_or_range.
2700 (mem_disable_command): Ditto.
2701 (mem_delete_command): Ditto.
2702 (_initialize_mem): Tweak usage message to reflect multiple
2703 arguments.
2704
2705 2011-02-22 Doug Evans <dje@google.com>
2706
2707 Add gdb.lookup_global_symbol python function.
2708 * NEWS: Add entry.
2709 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2710 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2711 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2712
2713 2011-02-22 Tom Tromey <tromey@redhat.com>
2714
2715 * language.c (language_class_name_from_physname): Rename
2716 'curr_language' argument to 'lang'; use in body.
2717
2718 2011-02-22 Michael Snyder <msnyder@vmware.com>
2719
2720 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2721
2722 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2723
2724 * frame-unwind.h: Fix comment to mention the this frame, not the
2725 next.
2726
2727 2011-02-22 Tom Tromey <tromey@redhat.com>
2728
2729 * symfile.c (auto_solib_limit): Remove.
2730 * symfile.h (auto_solib_limit): Remove.
2731
2732 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2733
2734 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2735
2736 2011-02-21 Michael Snyder <msnyder@vmware.com>
2737
2738 * gdbthread.h (print_thread_info): Change prototype.
2739 * thread.c (print_thread_info): Accept char* instead of int for
2740 requested_threads argument. Use new function number_is_in_list
2741 to determine which threads to list.
2742 (info_threads_command): Pass char* to print_thread_info.
2743 * cli/cli-utils.c (number_is_in_list): New function.
2744 * cli/cli-utils.h (number_is_in_list): Export.
2745 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2746 print_thread_info.
2747 (print_one_inferior): Ditto.
2748 (mi_cmd_list_thread_groups): Ditto.
2749
2750 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2751
2752 * common/Makefile.in (CFLAGS): New.
2753 (COMPILE): Add $(CFLAGS).
2754
2755 2011-02-21 Tom Tromey <tromey@redhat.com>
2756
2757 * breakpoint.c (catch_syscall_command_1): Fix typo.
2758
2759 2011-02-21 Tom Tromey <tromey@redhat.com>
2760
2761 * reverse.c: Include cli-utils.h.
2762 * printcmd.c: Include cli-utils.h.
2763 (string_printf): Use skip_spaces.
2764 * cli/cli-utils.h: New file.
2765 * cli/cli-utils.c: New file.
2766 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2767 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2768 * breakpoint.h (get_number, get_number_or_range): Move to
2769 cli-utils.h.
2770 * breakpoint.c: Include cli-utils.h.
2771 (get_number_trailer, get_number, get_number_or_range)
2772 (ep_skip_leading_whitespace): Move to cli-utils.c.
2773 (create_breakpoint_sal, find_condition_and_thread)
2774 (decode_static_tracepoint_spec, watch_command_1)
2775 (watch_maybe_just_location, ep_parse_optional_if_clause)
2776 (catch_fork_command_1, catch_exec_command_1)
2777 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2778 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2779 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2780 (HFILES_NO_SRCDIR): Add cli-utils.h.
2781 (cli-utils.o): New target.
2782
2783 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2784
2785 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2786 before calling discard_all_inferiors.
2787
2788 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2789
2790 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2791 (struct builtin_opencl_type): Remove.
2792 (builtin_opencl_type): Change return type to "struct type **".
2793 (lookup_opencl_vector_type): Update caller.
2794 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2795 (build_opencl_types): Install plain array of "struct type *"
2796 instead of "struct builtin_opencl_type".
2797
2798 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2799 Ulrich Weigand <uweigand@de.ibm.com>
2800
2801 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2802 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2803 (struct arm_linux_hwbp_cap): New type.
2804 (arm_linux_get_hwbp_cap): New function.
2805 (arm_linux_get_hw_breakpoint_count): Likewise.
2806 (arm_linux_get_hw_watchpoint_count): Likewise.
2807 (arm_linux_can_use_hw_breakpoint): Likewise.
2808 (arm_hwbp_type): New type.
2809 (arm_hwbp_control_t): Likewise.
2810 (struct arm_linux_hw_breakpoint): Likewise.
2811 (struct arm_linux_thread_points): Likewise.
2812 (arm_threads): New global variable.
2813 (arm_linux_find_breakpoints_by_tid): New function.
2814 (arm_hwbp_control_initialize): Likewise.
2815 (arm_hwbp_control_is_enabled): Likewise.
2816 (arm_hwbp_control_disable): Likewise.
2817 (arm_linux_hw_breakpoint_initialize): Likewise.
2818 (arm_linux_get_hwbp_type): Likewise.
2819 (arm_linux_hw_watchpoint_initialize): Likewise.
2820 (arm_linux_hw_breakpoint_equal): Likewise.
2821 (arm_linux_insert_hw_breakpoint1): Likewise.
2822 (arm_linux_remove_hw_breakpoint1): Likewise.
2823 (arm_linux_insert_hw_breakpoint): Likewise.
2824 (arm_linux_remove_hw_breakpoint): Likewise.
2825 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2826 (arm_linux_insert_watchpoint): Likewise.
2827 (arm_linux_remove_watchpoint): Likewise.
2828 (arm_linux_stopped_data_address): Likewise.
2829 (arm_linux_stopped_by_watchpoint): Likewise.
2830 (arm_linux_watchpoint_addr_within_range): Likewise.
2831 (arm_linux_new_thread): Likewise.
2832 (arm_linux_thread_exit): Likewise.
2833 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2834 related target callbacks. Register arm_linux_new_thread and
2835 arm_linux_thread_exit.
2836 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2837 * arm-tdep.c (arm_pc_is_thumb): Make global.
2838 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2839
2840 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2841
2842 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2843 per-frame locations while within a function epilogue.
2844
2845 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2846
2847 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2848 to GNU coding standards.
2849
2850 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2851
2852 Allow use of mingw native on Windows 95 OS.
2853 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2854 (ser_windows_close): Only call CancelIo if function exists.
2855 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2856 to check for existence of CancelIo function in kernel32 DLL.
2857
2858 2011-02-21 Hui Zhu <teawater@gmail.com>
2859
2860 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2861 * ax-gdb.c (gen_printf_expr_callback): New function.
2862 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2863 * ax-general.c (ax_memcpy): New function.
2864 (ax_print): Handle "printf".
2865 (ax_reqs): Ditto.
2866 * ax.h (ax_memcpy): Forward declare.
2867 * common/ax.def (invalid2): Removed.
2868 (printf): New entry.
2869 * printcmd.c (printcmd.h): New include.
2870 (string_printf): New function.
2871 (ui_printf): Removed.
2872 (printf_command): Remove static. Call string_printf.
2873 (eval_command): Call string_printf.
2874 * printcmd.h: New file.
2875 * tracepoint.c (validate_actionline,
2876 encode_actions_1): handle printf_command.
2877
2878 2011-02-19 Michael Snyder <msnyder@vmware.com>
2879
2880 * reverse.c (delete_one_bookmark): Argument is now bookmark
2881 id rather than pointer to bookmark struct.
2882 (delete_bookmark_command): Use get_number_or_range.
2883 (goto_bookmark_command): Parse with get_number instead of strtoul.
2884 (bookmark_1): New function. Print info for one bookmark.
2885 (bookmarks_info): Use get_number_or_range and bookmark_1.
2886
2887 2011-02-18 Michael Snyder <msnyder@vmware.com>
2888
2889 * thread.c (info_threads_command): Re-implement using
2890 get_number_or_range.
2891 (thread_apply_command): Ditto.
2892
2893 2011-02-18 Tom Tromey <tromey@redhat.com>
2894
2895 * common/ax.def: New file.
2896 * ax.h (enum agent_op): Use ax.def.
2897 * ax-general.c (aop_map): Use ax.def.
2898
2899 2011-02-18 Tom Tromey <tromey@redhat.com>
2900
2901 * ax-general.c (aop_map): Add pick and rot.
2902 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2903 <DW_OP_rot>: Implement.
2904 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2905 (ax_pick): Declare.
2906 * ax-general.c (ax_pick): New function.
2907
2908 2011-02-18 Tom Tromey <tromey@redhat.com>
2909
2910 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2911
2912 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 Tom Tromey <tromey@redhat.com>
2914
2915 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2916 make_symbol_overload_list_block with NULL BLOCK.
2917 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2918
2919 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2920
2921 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2922 * breakpoint.h (get_number_or_range): Declare.
2923 * printcmd.c (ALL_DISPLAYS): Declare.
2924 (delete_display): Reimplement taking a display pointer.
2925 (undisplay_command): Accept a range of displays to delete, using
2926 get_number_or_range.
2927
2928 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2929
2930 * c-valprint.c (c_val_print): Add embedded_offset to address
2931 for arrays of unspecified length.
2932 * p-valprint.c (pascal_val_print): Likewise.
2933
2934 2011-02-18 Yao Qi <yao@codesourcery.com>
2935
2936 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2937 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2938 (thumb_process_displaced_insn): New.
2939 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2940 call to arm_process_displaced_insn.
2941 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2942
2943 2011-02-17 Tom Tromey <tromey@redhat.com>
2944
2945 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2946 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2947 compile_dwarf_to_ax. No longer static. Call
2948 dwarf2_compile_cfa_to_ax.
2949 (locexpr_tracepoint_var_ref): Update.
2950 (loclist_tracepoint_var_ref): Update.
2951 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2952 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2953 argument; add 'gdbarch' and 'pc'.
2954 (dwarf2_compile_cfa_to_ax): New function.
2955 (dwarf2_frame_cache): Update.
2956
2957 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2958
2959 * ada-lang.c (ada_type_of_array): Fix the size of the array
2960 in the case of an unconstrained packed array.
2961
2962 2011-02-17 Yao Qi <yao@codesourcery.com>
2963
2964 * common/Makefile.in: Add more targets for make.
2965
2966 2011-02-16 Tom Tromey <tromey@redhat.com>
2967
2968 * dwarf2loc.c (unimplemented): Fix typo.
2969
2970 2011-02-16 Tom Tromey <tromey@redhat.com>
2971
2972 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2973 (compile_dwarf_to_ax) <default>: Use unimplemented.
2974 <DW_OP_deref>: Update.
2975 (disassemble_dwarf_expression): Update.
2976 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2977 (decode_locdesc): Update.
2978 * dwarf2expr.h (dwarf_stack_op_name): Update.
2979
2980 2011-02-16 Tom Tromey <tromey@redhat.com>
2981
2982 * ax.h (struct aop_map) <name>: Now const.
2983
2984 2011-02-16 Tom Tromey <tromey@redhat.com>
2985
2986 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2987 than axs_rvalue.
2988
2989 2011-02-16 Yao Qi <yao@codesourcery.com>
2990
2991 * infrun.c (get_displaced_step_closure_by_addr): New.
2992 * inferior.h: Declare it.
2993 * arm-tdep.c: (arm_pc_is_thumb): Call
2994 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2995 returns non-NULL.
2996
2997 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2998 Jan Kratochvil <jan.kratochvil@redhat.com>
2999
3000 gdb/
3001 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3002
3003 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3004 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * value.c (value_contents_copy_raw): Extend describing comment.
3007 Assert that the destination contents we're overwriting are wholly
3008 available.
3009 (value_contents_copy): Extend describing comment.
3010
3011 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3012 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 * value.c (value_available_contents_eq): Remove redundant local
3015 variables. Fix available contents comparision.
3016 * value.h (value_available_contents_eq): Extend describing
3017 comment.
3018
3019 2011-02-16 Yao Qi <yao@codesourcery.com>
3020
3021 * thread.c (info_threads_command): Add missing i18n markup and remove
3022 trailing newline.
3023
3024 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3025
3026 * breakpoint.c (longjmp_names): New variable.
3027 (struct breakpoint_objfile_data): New type.
3028 (breakpoint_objfile_key): New variable.
3029 (msym_not_found): New variable.
3030 (msym_not_found_p): New predicate.
3031 (get_breakpoint_objfile_data): New function.
3032 (create_overlay_event_breakpoint): Check per-objfile cache for
3033 symbols first.
3034 (create_longjmp_master_breakpoint): Likewise.
3035 (create_std_terminate_master_breakpoint): Likewise.
3036 (create_exception_master_breakpoint): Likewise.
3037 (_initialize_breakpoint): Register per-objfile data key.
3038
3039 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3040
3041 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3042 parameter value.
3043 (create_longjmp_master_breakpoint): Loop over longjmp names.
3044 (create_std_terminate_master_breakpoint): Const-propagate parameter
3045 value.
3046 (update_breakpoints_after_exec): Adjust.
3047 (breakpoint_re_set): Adjust.
3048
3049 2011-02-15 Michael Snyder <msnyder@vmware.com>
3050
3051 * thread.c (info_threads_command): Process arg as thread id,
3052 or list of thread ids.
3053 (thread_find_command): New command.
3054 (_initialize_thread): Document argument for info threads.
3055 Document 'thread find' command.
3056 * NEWS: Document new command "thread find".
3057
3058 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3061 * aclocal.m4: Regenerated with aclocal-1.11.1.
3062 * common/configure: Regenerate with autoconf-2.64.
3063
3064 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3065
3066 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3067 bool data type to a size of one byte.
3068
3069 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3070 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 * target.c (memory_xfer_live_readonly_partial): Document where to
3073 look for interface description.
3074
3075 2011-02-15 Yao Qi <yao@codesourcery.com>
3076
3077 PR tdep/12352
3078 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3079 order to store PC value on stack instead of text section.
3080
3081 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3082
3083 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3084 the EFP register set size.
3085 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3086 data from the VMX register.
3087 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3088 and write data from/to the VMX register.
3089
3090 2011-02-14 Michael Snyder <msnyder@vmware.com>
3091
3092 * command.h (enum command_class): New class 'no_set_class', for
3093 "show" commands without a corresponding "set" command.
3094 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3095 * copying.c (_initialize_copying): Ditto for "show copying" and
3096 "show warranty".
3097 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3098 "show version".
3099 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3100 which there is no corresponding "set" command (eg. "show copying").
3101
3102 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3103 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 * exec.c (section_table_available_memory): Change `len' parameter
3106 type to ULONGEST.
3107 * exec.h (section_table_available_memory): Ditto.
3108 * value.h (read_value_memory): Rename the `offset' parameter to
3109 `embedded_offset'.
3110
3111 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3112 Jan Kratochvil <jan.kratochvil@redhat.com>
3113
3114 * memrange.c (compare_mem_ranges): Mention sort order in
3115 describing comment.
3116 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3117 * tracepoint.c (traceframe_available_memory): Extend comment to
3118 mention what happens to RESULT when the target does not support
3119 the query.
3120
3121 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3122 Jan Kratochvil <jan.kratochvil@redhat.com>
3123
3124 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3125 range.
3126
3127 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3128
3129 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3130 No longer handle NULL values.
3131
3132 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3133
3134 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3135 * value.c: Include "exceptions.h".
3136 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3137 generic error.
3138 * cp-abi.c: Include gdb_assert.h.
3139 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3140 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3141 errors.
3142 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3143 parameters. No longer returns -1 on error.
3144 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3145 `val' parameters.
3146 * cp-valprint.c: Include exceptions.h.
3147 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3148 the baseclass_offset. Handle unavailable base classes. Use
3149 val_print_invalid_address.
3150 * p-valprint.c: Include exceptions.h.
3151 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3152 when fetching the baseclass_offset. No longer expect
3153 baseclass_offset returning -1. Handle unavailable base classes.
3154 Use val_print_invalid_address.
3155 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3156 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3157 `embedded_offset' and `val' parameters. Adjust.
3158 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3159 parameter, and change its type to gdb_byte pointer. Add
3160 `embedded_offset' and `val' parameters. Adjust. No longer expect
3161 baseclass_offset returning -1.
3162 (value_dynamic_cast): Use value_contents_for_printing rather than
3163 value_contents. Adjust.
3164 (search_struct_field): No longer expect baseclass_offset returning
3165 -1.
3166 (search_struct_method): If reading memory from the target is
3167 necessary, wrap it in a new value to pass to baseclass_offset. No
3168 longer expect baseclass_offset returning -1.
3169 (find_method_list): No longer expect baseclass_offset returning
3170 -1. Use value_contents_for_printing rather than value_contents.
3171 * valprint.c (val_print_invalid_address): New function.
3172 * valprint.h (val_print_invalid_address): Declare.
3173 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3174 and `val' parameters. No longer expect baseclass_offset returning
3175 -1. Adjust.
3176 * gnu-v2-abi.c: Include "exceptions.h".
3177 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3178 parameters. Handle unavailable memory. Recurse through
3179 gnuv2_baseclass_offset directly, rather than through
3180 baseclass_offset. No longer returns -1 on not found, instead
3181 throw an error.
3182 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3183 `val' parameters. Adjust.
3184
3185 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3186
3187 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3188 almost but not quite adjacent.
3189
3190 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3191
3192 * value.h (value_entirely_available): Declare.
3193 * value.c (value_entirely_available): New function.
3194 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3195 real type if the pointer is unavailable.
3196
3197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3198
3199 * valops.c (value_repeat): Use read_value_memory instead of
3200 read_memory.
3201
3202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3203
3204 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3205 * value.c (value_contents_copy_raw, value_contents_copy): New
3206 functions.
3207 (value_primitive_field): Use value_contents_copy_raw instead of
3208 memcpy.
3209 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3210 memcpy.
3211 (value_array, value_slice): Ditto.
3212 * valarith.c (value_subscripted_rvalue): Use
3213 value_contents_copy_raw instead of memcpy.
3214
3215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3216
3217 <unavailable> references.
3218
3219 * valops.c (get_value_at): Use value_from_contents_and_address,
3220 avoiding read_memory.
3221
3222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3223
3224 * c-valprint.c (c_val_print): Print a string with unavailable
3225 contents as an array.
3226
3227 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3228
3229 * value.h (unpack_bits_as_long): Delete declaration.
3230 (unpack_value_bits_as_long): Declare.
3231 (unpack_value_field_as_long): Declare.
3232 (value_field_bitfield): Declare.
3233 * value.c (unpack_bits_as_long): Rename to...
3234 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3235 value parameters. Return the extracted result in a new output
3236 parameter. If the value contents are unavailable, return false,
3237 otherwise return true.
3238 (unpack_value_bits_as_long): New.
3239 (unpack_field_as_long): Rename to...
3240 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3241 Add embedded_offset and value parameters. Return the extracted
3242 result in a new output parameter. If the value contents are
3243 unavailable, return false, otherwise return true.
3244 (unpack_value_field_as_long): New.
3245 (unpack_field_as_long_1): New.
3246 (unpack_field_as_long): Reimplement as wrapper around
3247 unpack_value_field_as_long_1.
3248 (value_field_bitfield): New function.
3249 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3250 unpack_value_bits_as_long. Mark the value as unavailable, if it
3251 is unavailable.
3252 * jv-valprint.c (java_print_value_fields): Use
3253 value_field_bitfield.
3254 * p-valprint.c (pascal_object_print_value_fields): Use
3255 value_field_bitfield.
3256 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3257
3258 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3259
3260 * value.c (get_internalvar_integer): Also return the int value of
3261 TYPE_CODE_INT INTERNALVAR_VALUE values.
3262 (set_internalvar): Don't special case TYPE_CODE_INT.
3263
3264 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3265
3266 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3267 INTERNALVAR_POINTER.
3268 <pointer>: Delete.
3269 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3270 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3271 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3272
3273 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3274
3275 * value.h (value_available_contents_eq): Declare.
3276 * value.c (find_first_range_overlap): New function.
3277 (value_available_contents_eq): New function.
3278 * valprint.c (val_print_array_elements): Use
3279 value_available_contents_eq.
3280 * ada-valprint.c (val_print_packed_array_elements): Use
3281 value_available_contents_eq.
3282 * jv-valprint.c (java_value_print): Use
3283 value_available_contents_eq.
3284
3285 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3286
3287 * target.c (target_read_live_memory): New function.
3288 (memory_xfer_live_readonly_partial): New.
3289 (memory_xfer_partial): If reading from a traceframe, fallback to
3290 reading unavailable read-only memory from read-only regions of
3291 live target memory.
3292 * tracepoint.c (disconnect_tracing): Adjust.
3293 (set_current_traceframe): New, factored out from
3294 set_traceframe_number.
3295 (set_traceframe_number): Reimplement to only change the traceframe
3296 number on the GDB side.
3297 (do_restore_current_traceframe_cleanup): Adjust.
3298 (make_cleanup_restore_traceframe_number): New.
3299 (cur_traceframe_number): New global.
3300 (tfile_open): Set cur_traceframe_number to no traceframe.
3301 (set_tfile_traceframe): New function.
3302 (tfile_trace_find): If looking up a traceframe using any method
3303 other than by number, make sure the current tfile traceframe
3304 matches gdb's current traceframe. Update the current tfile
3305 traceframe if the lookup succeeded.
3306 (tfile_fetch_registers, tfile_xfer_partial)
3307 (tfile_get_trace_state_variable_value): Make sure the remote
3308 traceframe matches gdb's current traceframe.
3309 * remote.c (remote_traceframe_number): New global.
3310 (remote_open_1): Set it to -1.
3311 (set_remote_traceframe): New function.
3312 (remote_fetch_registers, remote_store_registers)
3313 (remote_xfer_memory, remote_xfer_partial)
3314 (remote_get_trace_state_variable_value): Make sure the remote
3315 traceframe matches gdb's current traceframe.
3316 (remote_trace_find): If looking up a traceframe using any method
3317 other than by number, make sure the current remote traceframe
3318 matches gdb's current traceframe. Update the current remote
3319 traceframe if the lookup succeeded.
3320 * infrun.c (fetch_inferior_event): Adjust.
3321 * tracepoint.h (set_current_traceframe): Declare.
3322 (get_traceframe_number, set_traceframe_number): Add describing
3323 comments.
3324
3325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3326
3327 Mark pieces of values as unavailable if the corresponding memory
3328 is unavailable.
3329
3330 * valops.c: Include tracepoint.h.
3331 (value_fetch_lazy): Use read_value_memory.
3332 (read_value_memory): New.
3333 * value.h (read_value_memory): Declare.
3334 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3335 * exec.c (section_table_available_memory): New function.
3336 * exec.h (section_table_available_memory): Declare.
3337
3338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3339
3340 * Makefile.in (SFILES): Add memrange.c.
3341 (HFILES_NO_SRCDIR): Add memrange.h.
3342 (COMMON_OBS): Add memrange.o.
3343 * memrange.c: New file.
3344 * memrange.h: New file.
3345 * tracepoint.c: Include memrange.h.
3346 (struct mem_range): Delete.
3347 (mem_range_s): Delete.
3348 (traceframe_available_memory): New function.
3349 * tracepoint.h (traceframe_available_memory): Declare.
3350
3351 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3352
3353 * target.h (struct traceframe_info): Forward declare.
3354 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3355 (struct target_ops) <to_traceframe_info>: New field.
3356 (target_traceframe_info): New.
3357 * target.c (update_current_target): Inherit and default
3358 to_traceframe_info.
3359 * remote.c (PACKET_qXfer_traceframe_info): New.
3360 (remote_protocol_features): Register qXfer:traceframe-info:read.
3361 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3362 (remote_traceframe_info): New.
3363 (init_remote_ops): Install it.
3364 (_initialize_remote): Install "set/show remote traceframe-info"
3365 commands.
3366 * tracepoint.h (parse_traceframe_info): Declare.
3367 * tracepoint.c (struct mem_range): New.
3368 (mem_range_s): New typedef.
3369 (struct traceframe_info): New.
3370 (traceframe_info): New global.
3371 (free_traceframe_info): New function.
3372 (clear_traceframe_info): New function.
3373 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3374 info.
3375 (build_traceframe_info): New function.
3376 (tfile_traceframe_info): New function.
3377 (init_tfile_ops): Install tfile_traceframe_info.
3378 (traceframe_info_start_memory, free_result): New functions.
3379 (memory_attributes, traceframe_info_elements): New globals.
3380 (parse_traceframe_info, get_traceframe_info): New functions.
3381 * features/traceframe-info.dtd: New file.
3382 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3383
3384 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3385
3386 Base support for <unavailable> value contents.
3387
3388 * value.h (value_bytes_available): Declare.
3389 (mark_value_bytes_unavailable): Declare.
3390 * value.c (struct range): New struct.
3391 (range_s): New typedef.
3392 (ranges_overlap): New function.
3393 (range_lessthan): New function.
3394 (ranges_contain_p): New function.
3395 (struct value) <unavailable>: New field.
3396 (value_bytes_available): New function.
3397 (mark_value_bytes_unavailable): New function.
3398 (require_not_optimized_out): Constify parameter.
3399 (require_available): New function.
3400 (value_contents_all, value_contents): Require all bytes be
3401 available.
3402 (value_free): Free `unavailable'.
3403 (value_copy): Copy `unavailable'.
3404 * valprint.h (val_print_unavailable): Declare.
3405 * valprint.c (valprint_check_validity): Rename `offset' parameter
3406 to `embedded_offset'. If printing a scalar, check whether the
3407 value chunk is available.
3408 (val_print_unavailable): New.
3409 (val_print_scalar_formatted): Check whether the value is
3410 available.
3411 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3412 pretty-printing unavailable values.
3413
3414 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3415
3416 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3417 * c-typeprint.c (c_type_print_args): Update the function comment. New
3418 variable param_type, initialize it. Remove const/volatile qualifiers
3419 for language_cplus and !show_artificial. Use param_type.
3420
3421 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3422
3423 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3424 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3425 * symtab.h (struct symtab) <next>: Comment extension.
3426
3427 2011-02-12 Yao Qi <yao@codesourcery.com>
3428
3429 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3430
3431 2011-02-11 Yao Qi <yao@codesourcery.com>
3432
3433 * common/Makefile.in: Add copyright header.
3434
3435 2011-02-11 Pedro Alves <pedro@codesourcery.com>
3436
3437 * infrun.c (proceed): Move switching out and in of tfind mode from
3438 here ...
3439 (fetch_inferior_event): ... to here.
3440
3441 2011-02-11 Yao Qi <yao@codesourcery.com>
3442
3443 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3444 libcommon.a.
3445 * configure.ac: Add common to sub dir.
3446 * configure: Regenerate.
3447
3448 2011-02-11 Yao Qi <yao@codesourcery.com>
3449
3450 Build libcommon.a.
3451
3452 * common/Makefile.in: New.
3453 * common/configure.ac: New.
3454 * common/aclocal.m4: New.
3455 * common/configure: Generate.
3456
3457 2011-02-10 Pedro Alves <pedro@codesourcery.com>
3458
3459 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3460 side of the parenthesis.
3461
3462 Merge from GCC:
3463 2010-07-13 Jakub Jelinek <jakub@redhat.com>
3464 * vec.h (VEC_block_remove): Fix comment.
3465
3466 2011-02-08 Michael Snyder <msnyder@vmware.com>
3467
3468 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3469
3470 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3471
3472 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3473 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3474 psubd and paddd.
3475
3476 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3477
3478 PR 12361.
3479 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3480 phsubsw.
3481 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3482 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3483
3484 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3485
3486 * dwarf2read.c (read_subroutine_type): Set special calling
3487 convention flag for functions compiled by IBM XL C for OpenCL.
3488 * ppc-sysv-tdep.c: Include "dwarf2.h"
3489 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3490 calling convention.
3491 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3492 IBM OpenCL vector types calling convention.
3493 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3494 (ppc_sysv_abi_broken_return_value): Likewise.
3495 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3496 types calling convention.
3497 (ppc64_sysv_abi_return_value): Likewise.
3498 * spu-tdep.c: Include "dwarf2.h"
3499 (spu_return_value): Implement IBM OpenCL vector types calling
3500 convention.
3501
3502 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3503
3504 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3505 correct ABI for AltiVec vector arguments.
3506
3507 2011-02-07 Pedro Alves <pedro@codesourcery.com>
3508
3509 * valprint.c (val_print): Extend comment.
3510 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3511 interface explanation to val_print.
3512 (ada_val_print_array): Adjust comment to current interface.
3513 (print_field_values): Adjust comment to current interface.
3514 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3515 explanation to val_print.
3516 * f-valprint.c (f_val_print): Ditto.
3517 * jv-valprint.c (java_val_print): Ditto.
3518 * m2-valprint.c (m2_val_print): Ditto.
3519 * p-valprint.c (pascal_val_print): Ditto.
3520
3521 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3522
3523 * breakpoint.c (parse_breakpoint_sals): Fix description.
3524
3525 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
3526 Oguz Kayral <oguzkayral@gmail.com>
3527
3528 * python/py-inferior.c (python_on_normal_stop): New function.
3529 (python_on_resume): New function.
3530 (python_inferior_exit): New function.
3531 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3532 inferior_exit observers.
3533 * python/py-evtregistry.c: New file.
3534 * python/py-threadevent.c : New file.
3535 * python/py-event.c: New file.
3536 * python/py-evts.c: New file.
3537 * python/py-continueevent.c: New file.
3538 * python/py-bpevent.c: New file.
3539 * python/py-signalevent.c: New file.
3540 * python/py-exetiedevent.c: New file.
3541 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3542 Move struct breakpoint_object from here...
3543 * python/python-internal.h: ... to here.
3544 * python/py-event.h: New file.
3545 * python/py-events.h: New file.
3546 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3547 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3548 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3549 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3550 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3551 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3552 Add build rules for all the above.
3553
3554 2011-02-04 Tom Tromey <tromey@redhat.com>
3555
3556 * dwarf2read.c (dwarf2_section_empty_p): New function.
3557 (dwarf2_read_section): Use dwarf2_section_empty_p.
3558 (dwarf2_section_size): New function.
3559 (dwarf2_get_section_info): Unconditionally read section.
3560 (dwarf2_read_index): Use dwarf2_section_empty_p.
3561 (partial_read_comp_unit_head): Use dwarf2_section_size.
3562 (dwarf2_symbol_mark_computed): Likewise.
3563
3564 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3565
3566 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3567
3568 2011-02-04 David Daney <ddaney@caviumnetworks.com>
3569
3570 * mips-linux-tdep.c: Include xml-syscall.h.
3571 (mips_linux_get_syscall_number): New function.
3572 (mips_linux_init_abi): Add calls to
3573 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3574 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3575 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3576 * syscalls/mips-n32-linux.xml: New file.
3577 * syscalls/mips-n64-linux.xml: New file.
3578 * syscalls/mips-o32-linux.xml: New file.
3579
3580 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3581
3582 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3583 Complain about inverted range entries.
3584 (dwarf2_record_block_ranges): Likewise.
3585
3586 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3587
3588 Fix some typos.
3589 * breakpoint.c (update_watchpoint): Fix name of the
3590 update_global_location_list function.
3591 (print_one_breakpoint): Fix typo.
3592 (_initialize_breakpoint): Remove extra space in hbreak help
3593 string.
3594 * breakpoint.h (struct bp_location) <length>: Fix field
3595 description.
3596
3597 2011-02-04 Pedro Alves <pedro@codesourcery.com>
3598
3599 * regcache.c (registers_changed_ptid): Don't explictly always
3600 clear `current_regcache'. Only clear current_thread_ptid and
3601 current_thread_arch when PTID matches. Only reinit the frame
3602 cache if PTID matches the current inferior_ptid. Move alloca(0)
3603 call to ...
3604 (registers_changed): ... here.
3605
3606 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3607
3608 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3609 starts with __stack_chk_guard as stack guard symbol.
3610
3611 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
3612
3613 * disasm.c (compare_lines): Handle the end of sequence markers
3614 within the line table to better support disassembling over
3615 compilation unit boundaries.
3616
3617 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3618
3619 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3620 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3621 implementation even if no symbols are available.
3622 (thumb_analyze_prologue): Update call to skip_prologue_function.
3623 (arm_analyze_prologue): Likewise.
3624
3625 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3626
3627 * arm-tdep.c: Include "observer.h".
3628 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3629 (arm_exidx_data_key): New static variable.
3630 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3631 (struct arm_exidx_data): Likewise.
3632 (arm_exidx_data_free): New function.
3633 (arm_compare_exidx_entries): Likewise.
3634 (arm_obj_section_from_vma): Likewise.
3635 (arm_exidx_new_objfile): Likewise.
3636 (arm_find_exidx_entry): Likewise.
3637 (arm_exidx_fill_cache): Likewise.
3638 (arm_exidx_unwind_sniffer): Likewise.
3639 (arm_exidx_unwind): New global variable.
3640 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3641 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3642 observer. Register arm_exidx_data_key as objfile data.
3643
3644 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3645
3646 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3647 due to accessing uninitialized variable. Fix indentation.
3648
3649 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3650
3651 * c-valprint.c (c_value_print): When doing virtual base pointer
3652 adjustment, create a new value with adjusted contents rather than
3653 changing the contents of the value being printed (and getting it
3654 wrong).
3655
3656 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3657
3658 * xml-support.c (xml_find_attribute): New.
3659 (xinclude_start_include): Use it.
3660 * xml-support.h (xml_find_attribute): Declare.
3661 * memory-map.c (memory_map_start_memory)
3662 (memory_map_start_property): Use xml_find_attribute.
3663 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3664 xml_find_attribute.
3665 * remote.c (start_thread): Use xml_find_attribute.
3666 * solib-target.c (library_list_start_segment)
3667 (library_list_start_section, library_list_start_library)
3668 (library_list_start_list): Use xml_find_attribute.
3669 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3670 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3671 (tdesc_start_field): Use xml_find_attribute.
3672
3673 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3674
3675 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3676 (BUILD_OCL_VTYPES): Update.
3677
3678 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3679
3680 * configure.ac: Work around non-GNU sed limitation when computing
3681 python version number.
3682 * configure: Regenerate.
3683
3684 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 Fix debug printing of TYPE_INSTANCE.
3687 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3688 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3689
3690 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3693 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3694 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3695 * ada-operator.inc: Rename the file to ...
3696 * ada-operator.def: ... here, wrap all the entries by macro OP.
3697 * expprint.c (op_name_standard): Remove all the entries. Include
3698 "std-operator.def" instead.
3699 * expression.h (enum exp_opcode): Include "std-operator.def" and
3700 "ada-operator.def". Move all the entries ...
3701 * std-operator.def: ... here, wrap all the entries by macro OP.
3702
3703 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3704
3705 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3706 * breakpoint.c (remove_jit_event_breakpoints): New function.
3707 * jit.c (jit_descriptor_addr): Delete.
3708 (registering_code): Delete.
3709 (clear_int): Delete.
3710 (jit_inferior_data): New variable.
3711 (struct jit_inferior_data): New type.
3712 (get_jit_inferior_data): New function.
3713 (jit_inferior_data_cleanup): New function.
3714 (jit_read_descriptor): Adjust.
3715 (jit_register_code): Adjust.
3716 (jit_breakpoint_re_set_internal): New function; move code here ...
3717 (jit_inferior_init): ... from here.
3718 (jit_breakpoint_re_set): Adjust.
3719 (jit_reset_inferior_data_and_breakpoints): New function.
3720 (jit_inferior_created_observer): Adjust.
3721 (jit_inferior_exit_hook): Adjust.
3722 (jit_executable_changed_observer): New function.
3723 (jit_event_handler): Adjust.
3724 (_initialize_jit): Adjust.
3725
3726 2011-01-31 Michael Snyder <msnyder@vmware.com>
3727
3728 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3729 line.
3730
3731 2011-01-31 Tom Tromey <tromey@redhat.com>
3732
3733 PR python/12216:
3734 * python/python.c (execute_gdb_command): Call
3735 prevent_dont_repeat.
3736 * top.c (suppress_dont_repeat): New global.
3737 (dont_repeat): Use it.
3738 (prevent_dont_repeat): New function.
3739 * command.h (prevent_dont_repeat): Declare.
3740
3741 2011-01-31 Tom Tromey <tromey@redhat.com>
3742
3743 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3744 * python/py-breakpoint.c (bppy_set_silent): Use
3745 breakpoint_set_silent.
3746 (bppy_set_thread): Use breakpoint_set_thread.
3747 (bppy_set_task): Use breakpoint_set_task.
3748 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3749 (breakpoint_set_task): Declare.
3750 (make_breakpoint_silent): Remove.
3751 * breakpoint.c (breakpoint_set_silent): New function.
3752 (breakpoint_set_thread): Likewise.
3753 (breakpoint_set_task): Likewise.
3754 (make_breakpoint_silent): Remove.
3755
3756 2011-01-31 Tom Tromey <tromey@redhat.com>
3757
3758 * breakpoint.h (user_breakpoint_p): Declare.
3759 * breakpoint.c (user_breakpoint_p): New function.
3760 (breakpoint_1): Use it.
3761 (save_breakpoints): Likewise.
3762
3763 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3764
3765 * configure.ac: Add handling of Python distribution on Windows.
3766 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3767 sysconfig variables are not defined, then do not use them.
3768 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3769 instead. On Windows, return all paths using forward-slashes
3770 rather than backslashes.
3771
3772 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3773
3774 * configure.ac: Remove fallback behavior for building
3775 against Python. Remove tweaking of Python include path.
3776 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3777 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3778 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3779 Always restore CPPFLAGS and LIBS after linking test.
3780 * configure: Regenerated.
3781 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3782 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3783 * python/python-internal.h: Adjust includes of Python .h files.
3784
3785 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3786
3787 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3788 in error message.
3789
3790 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3791
3792 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3793 value test.
3794
3795 2011-01-31 Yao Qi <yao@codesourcery.com>
3796
3797 * arm-linux-nat.c: Update calls to regcache_register_status
3798 instead of regcache_valid_p.
3799 * aix-thread.c: Likewise.
3800 * i386gnu-nat.c: Likewise.
3801
3802 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3803
3804 Fix crash.
3805 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3806 touching TYPE_FIELD_ARTIFICIAL.
3807
3808 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3809
3810 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3811 Committers.
3812
3813 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3814
3815 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3816 selected, don't try iterating over the traceframe's blocks.
3817 (tfile_has_stack): If there's no traceframe selected, then there's
3818 no stack.
3819 (tfile_has_registers): If there's no traceframe selected, then
3820 there's no registers.
3821
3822 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3823
3824 * target.c (memory_xfer_partial): No need to restore shadows if we
3825 haven't read anything.
3826
3827 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3828
3829 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3830 and val_print_scalar_formatted.
3831
3832 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3833
3834 * tracepoint.c (tfile_read): New.
3835 (tfile_open): Use it.
3836 (tfile_get_traceframe_address): Use it.
3837 (tfile_trace_find): Use it.
3838 (walk_blocks_callback_func): New typedef.
3839 (match_blocktype): New function.
3840 (traceframe_walk_blocks): New function.
3841 (traceframe_find_block_type): New function.
3842 (tfile_fetch_registers, tfile_xfer_partial)
3843 (tfile_get_trace_state_variable_value): Use
3844 traceframe_find_block_type and tfile_read.
3845
3846 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3847
3848 * remote-mips.c: Add internationalization mark ups. Remove
3849 trailing \n from already marked up strings.
3850
3851 2011-01-26 Tom Tromey <tromey@redhat.com>
3852
3853 * python/py-prettyprint.c (print_string_repr): Clear
3854 'addressprint' option when calling val_print_string.
3855 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3856 option when calling val_print_string.
3857
3858 2011-01-26 Tom Tromey <tromey@redhat.com>
3859
3860 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3861 GDB_PY_LL_ARG.
3862 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3863 macros.
3864 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3865 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3866 (gdb_py_long_as_ulongest): New defines.
3867 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3868 (gdb_py_int_as_long): Declare.
3869 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3870 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3871 (valpy_long): Add comment.
3872 * python/py-utils.c (get_addr_from_python): Use
3873 gdb_py_long_as_ulongest. Handle overflow properly.
3874 (gdb_py_object_from_longest): New function.
3875 (gdb_py_object_from_ulongest): Likewise.
3876 (gdb_py_int_as_long): Likewise.
3877 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3878 * python/py-symtab.c (salpy_get_pc): Use
3879 gdb_py_long_from_ulongest.
3880 (salpy_get_line): Use PyInt_FromLong.
3881 * python/py-param.c (set_parameter_value): Use
3882 gdb_py_int_as_long.
3883 * python/py-lazy-string.c (stpy_get_address): Use
3884 gdb_py_long_from_ulongest.
3885 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3886 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3887 * python/py-breakpoint.c (bppy_set_thread): Use
3888 gdb_py_int_as_long.
3889 (bppy_set_task): Likewise.
3890 (bppy_set_ignore_count): Likewise.
3891 (bppy_set_hit_count): Likewise.
3892 * python/py-block.c (blpy_get_start): Use
3893 gdb_py_object_from_ulongest.
3894 (blpy_get_end): Likewise.
3895 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3896
3897 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3898
3899 PR/symtab 11766:
3900 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3901 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3902 equality test for objfile, initialize addr_low if needed.
3903
3904 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3905
3906 * tui/tui-regs.c (tui_register_format): Remove dead code.
3907
3908 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3909
3910 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3911 instead of print_scalar_formatted.
3912 (print_scalar_formatted): Don't handle 's' format strings here,
3913 and add an assertion that we never see such format here.
3914 * valprint.h (val_print_scalar_formatted): Declare.
3915 * valprint.c (val_print_scalar_formatted): New.
3916 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3917 instead of print_scalar_formatted.
3918 * jv-valprint.c (java_val_print): Ditto.
3919 * p-valprint.c (pascal_val_print): Ditto.
3920 * ada-valprint.c (ada_val_print_1): Ditto.
3921 * f-valprint.c (f_val_print): Ditto.
3922 * infcmd.c (registers_info): Ditto.
3923 * m2-valprint.c (m2_val_print): Ditto.
3924
3925 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3926
3927 * m2-valprint.c (print_unbounded_array): Pass
3928 value_contents_for_printing rather than value_contents, to
3929 m2_print_array_contents. Also pass in the value.
3930
3931 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3932
3933 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3934 (save_gdb_index_command): Switch to .gdb_index version 4.
3935
3936 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3937
3938 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3939 than frame_register, and always pass a valid value to val_print.
3940
3941 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3942
3943 Centralize printing "<optimized out>".
3944
3945 * valprint.h (val_print_optimized_out): Declare.
3946 * cp-valprint.c (cp_print_value_fields): Use
3947 val_print_optimized_out.
3948 * jv-valprint.c (java_print_value_fields): Ditto.
3949 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3950 * printcmd.c (print_formatted): Ditto.
3951 * valprint.c (valprint_check_validity): Ditto.
3952 (value_check_printable): Ditto.
3953 (val_print_optimized_out): New.
3954
3955 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3956
3957 * infcmd.c (default_print_registers_info): Allocate values so to
3958 never pass a NULL value to val_print.
3959
3960 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3961
3962 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3963 boolean. Make sure to always pass a value that matches the
3964 contents buffer to callees. Preserve `address' for following
3965 iterations.
3966 * value.c (value_contents_for_printing_const): New.
3967 (value_address): Constify value argument.
3968 * value.h (value_contents_for_printing_const): Declare.
3969 (value_address): Constify value argument.
3970
3971 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3972
3973 * regcache.c (struct regcache_descr): Rename
3974 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3975 and sizeof_cooked_register_valid_p to
3976 sizeof_cooked_register_status.
3977 (init_regcache_descr): Adjust.
3978 (struct regcache): Rename register_valid_p field to
3979 register_status.
3980 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3981 (do_cooked_read): Adjust.
3982 (regcache_valid_p): Rename to ...
3983 (regcache_register_status): ... this. Adjust.
3984 (regcache_invalidate): Adjust.
3985 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3986 Adjust.
3987 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3988 as unavailable, not valid.
3989 (regcache_dump): Adjust.
3990 * regcache.h (enum register_status): New.
3991 (regcache_register_status): Declare.
3992 (regcache_invalidate): Delete declaration.
3993 * corelow.c (get_core_registers): Adjust.
3994 * tracepoint.c (tfile_fetch_registers): Adjust.
3995 * trad-frame.c (REG_VALUE): Rename to ...
3996 (TF_REG_VALUE): ... this.
3997 (REG_UNKNOWN): Rename to ...
3998 (TF_REG_UNKNOWN): ... this.
3999 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4000 * mi/mi-main.c (register_changed_p): Adjust.
4001
4002 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4003
4004 * regcache.c (struct regcache_descr): Remove outdated comment.
4005 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4006 overallocate hack.
4007 (regcache_xmalloc): Rename to ...
4008 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4009 Allocate the regcache type accordingly.
4010 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4011 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4012 cooked registers, not raw.
4013 (regcache_dup_no_passthrough): Delete.
4014 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4015 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4016 mention obsolete write_register_bytes.
4017 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4018
4019 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4020
4021 Stop remote_read_bytes from handling partial reads itself.
4022
4023 * remote-fileio.c: Include target.h.
4024 (remote_fileio_write_bytes): Delete.
4025 (remote_fileio_func_open, remote_fileio_func_write)
4026 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4027 target_read_memory.
4028 (remote_fileio_func_stat): Use target_read_memory and
4029 target_write_memory.
4030 (remote_fileio_func_gettimeofday): Use target_write_memory.
4031 (remote_fileio_func_system): Use target_read_memory.
4032 * remote.c (remote_write_bytes): Make it static.
4033 (remote_read_bytes): Don't handle partial reads here.
4034 * remote.h (remote_read_bytes): Delete declaration.
4035
4036 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4037
4038 Simplify XML parsing a bit.
4039
4040 * xml-support.h (gdb_xml_parse_quick): Declare.
4041 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4042 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4043 parameter.
4044 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4045 gdb_xml_create_parser_and_cleanup_1.
4046 (gdb_xml_parse_quick): New.
4047 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4048 * osdata.c (osdata_parse): Ditto.
4049 * remote.c (remote_threads_info): Ditto.
4050 * solib-target.c (solib_target_parse_libraries): Ditto.
4051 * xml-syscall.c (syscall_parse_xml): Ditto.
4052 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4053
4054 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4055
4056 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4057 with remote-mips.o added to gdb_target_obs.
4058 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4059
4060 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4061
4062 * ada-valprint.c (val_print_packed_array_elements): Pass the
4063 correct struct value to val_print.
4064 (ada_val_print_1): Ditto.
4065
4066 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4067
4068 Don't lose embedded_offset in printing routines throughout.
4069
4070 * valprint.h (val_print_array_elements): Change prototype.
4071 * valprint.c (val_print_array_elements): Add `embedded_offset'
4072 parameter, and adjust to pass it down to val_print, while passing
4073 `valaddr' or `address' unmodified. Take embedded_offset into
4074 account when checking repetitions.
4075 * c-valprint.c (c_val_print): Pass embedded_offset to
4076 val_print_array_elements instead of adjusting `valaddr' and
4077 `address'.
4078 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4079 embedded_offset to val_print_array_elements instead of adjusting
4080 `valaddr'.
4081 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4082 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4083 val_print_array_elements and pascal_object_print_value_fields
4084 instead of adjusting `valaddr'.
4085 (pascal_object_print_value_fields): Add `offset' parameter, and
4086 adjust to use it.
4087 (pascal_object_print_value): Add `offset' parameter, and adjust to
4088 use it.
4089 (pascal_object_print_static_field): Use
4090 value_contents_for_printing/value_embedded_offset, rather than
4091 value_contents.
4092 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4093 parameter, and adjust to use it. Use
4094 value_contents_for_printing/value_embedded_offset, rather than
4095 value_contents.
4096 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4097 (ada_val_print_array): Add `offset' parameter, and adjust to use
4098 it.
4099 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4100 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4101 Instead work with offsets. Use
4102 value_contents_for_printing/value_embedded_offset, rather than
4103 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4104 and use value_from_pointer to extract a target pointer, rather
4105 than value_from_longest.
4106 (print_variant_part): Add `offset' parameter. Replace
4107 `outer_valaddr' parameter by a new `outer_offset' parameter.
4108 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4109 (ada_value_print): Use
4110 value_contents_for_printing/value_embedded_offset, rather than
4111 value_contents.
4112 (print_record): Add `offset' parameter, and adjust to pass it
4113 down.
4114 (print_field_values): Add `offset' parameter. Replace
4115 `outer_valaddr' parameter by a new `outer_offset' parameter.
4116 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4117 Use value_contents_for_printing/value_embedded_offset, rather than
4118 value_contents.
4119 * d-valprint.c (dynamic_array_type): Use
4120 value_contents_for_printing/value_embedded_offset, rather than
4121 value_contents.
4122 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4123 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4124 (java_print_value_fields): Take `offset' into account. Don't
4125 re-adjust `valaddr'. Instead pass down adjusted offsets.
4126 (java_val_print): Take `embedded_offset' into account. Pass it to
4127 java_print_value_fields.
4128 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4129 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4130 down adjusted offsets.
4131 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4132 (f_val_print): Take `embedded_offset' into account.
4133
4134 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4135
4136 * inflow.c: Include "gdbcmd.h".
4137 (interactive_mode): New static global, moved here from top.c.
4138 (show_interactive_mode): New function, moved here from top.c.
4139 use gdb_has_a_terminal instead of input_from_terminal_p to
4140 determine the current mode.
4141 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4142 setting.
4143 (_initialize_inflow): Add the "set/show interactive-mode"
4144 commands. Moved here from top.c, after having adjusted slightly
4145 the help text.
4146 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4147 to inflow.c.
4148 (input_from_terminal_p): Remove handling of "interactive-mode"
4149 setting, moved to infow.c.
4150 (init_main): Remove creation of the "set/show interactive-mode"
4151 commands, moved to inflow.c.
4152
4153 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4154
4155 * NEWS: Add entry for native ia64-hpux support.
4156
4157 2011-01-19 Tom Tromey <tromey@redhat.com>
4158
4159 PR mi/8618:
4160 * thread.c (free_thread): Free 'name'.
4161 (print_thread_info): Emit thread name. Change CLI output.
4162 (thread_name_command): New function.
4163 (do_captured_thread_select): Emit newline.
4164 (_initialize_thread): Register 'thread name' command.
4165 * target.h (struct target_ops) <to_thread_name>: New field.
4166 (target_thread_name): New macro.
4167 * target.c (update_current_target): Handle to_thread_name.
4168 * python/py-infthread.c (thpy_get_name): New function.
4169 (thpy_set_name): Likewise.
4170 (thread_object_getset): Add "name".
4171 * linux-nat.c (linux_nat_thread_name): New function.
4172 (linux_nat_add_target): Set to_thread_name.
4173 * gdbthread.h (struct thread_info) <name>: New field.
4174
4175 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4176
4177 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4178 (ada_val_print_1): Likewise.
4179
4180 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4181
4182 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4183 upper limit address is not greater than the function end address
4184 when the upper limit could not be computed using the debugging
4185 info.
4186
4187 2011-01-17 Tom Tromey <tromey@redhat.com>
4188
4189 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4190 get_regcomp_error.
4191 * utils.c: Include gdb_regex.h.
4192 (do_regfree_cleanup): New function.
4193 (make_regfree_cleanup): Likewise.
4194 (get_regcomp_error): Likewise.
4195 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4196
4197 2011-01-17 Tom Tromey <tromey@redhat.com>
4198
4199 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4200 re_compile_fastmap.
4201
4202 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4203
4204 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4205 for internal variables.
4206 (last_was_structop): New static variable.
4207 (COMPLETE): New token.
4208 (field_exp): New rule to group all '.' suffix handling.
4209 Add mark_struct_expression calls when approriate to be able
4210 to correctly find fields for completion.
4211 (yylex): Adapt to handle field completion and set INTVAR when
4212 required.
4213
4214 2011-01-14 Yao Qi <yao@codesourcery.com>
4215
4216 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4217 save_reggroup, restore_reggroup and all_reggroup.
4218
4219 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4220
4221 * ada-valprint. (ada_printchar): Use the correct type length
4222 in call to ada_emit_char.
4223 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4224
4225 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4226
4227 * solib-som.h (hpux_major_release): Declare variable here.
4228 * solib-som.c: Remove <sys/utsname.h> header.
4229 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4230 (hpux_major_release): Make global, change default value to
4231 DEFAULT_HPUX_MAJOR_RELEASE.
4232 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4233 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4234 Add "solib-som.h" header.
4235 (set_hpux_major_release): New function.
4236 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4237
4238 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4239
4240 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4241
4242 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4243
4244 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4245 new-line at end of warning message.
4246 (ia64_hpux_store_register): Remove trailing new-line at end of
4247 error message.
4248 * ia64-hpux-tdep.c: Rephrase comment.
4249 * solib-ia64-hpux.c (struct dld_info): Change type of field
4250 dld_flags from "long long" to ULONGEST.
4251
4252 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4253
4254 * target.h (deprecated_child_ops): Delete declaration.
4255 * target.c (deprecated_child_ops): Delete definition.
4256
4257 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4258
4259 * Makefile.in (hpux-thread.o): Delete rule.
4260 * configure.ac: Don't check for HPUX DCE threads support.
4261 * configure, config.in: Regenerate.
4262 * hppa-hpux-nat.c (child_suppress_run): Delete.
4263 (hppa_hpux_child_can_run): Delete.
4264 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4265 * hpux-thread.c: Delete.
4266
4267 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4268
4269 * hpux-thread.c (hpux_pid_to_str): Delete.
4270
4271 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4272
4273 * ada-valprint.c (ada_emit_char): Remove strange code.
4274 Check that c is <= UCHAR_MAX before passing it to isascii.
4275 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4276
4277 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4278
4279 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4280 to the case where instream is stdin.
4281
4282 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4283
4284 * ia64-tdep.h (struct regcache): Forward declare.
4285 (struct ia64_infcall_ops): New struct type.
4286 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4287 and "infcall_ops".
4288 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4289 Renames ia64_find_global_pointer.
4290 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4291 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4292 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4293 methods.
4294 (ia64_infcall_ops): New static global constant.
4295 (ia64_gdbarch_init): Set tdep->infcall_ops.
4296 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4297 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4298 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4299 (ia64_hpux_dummy_code): New static global constant.
4300 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4301 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4302 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4303 New function.
4304 (ia64_hpux_infcall_ops): New static global constant.
4305 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4306 for inferior function calls to work properly on ia64-hpux.
4307
4308 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4309
4310 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4311 * ia64-tdep.h (struct frame_info): forward declaration.
4312 (struct gdbarch_tdep): Add field size_of_register_frame.
4313 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4314 to determine the size of the register frame.
4315 (ia64_size_of_register_frame): New function.
4316 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4317 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4318 (IA64_HPUX_UREG_REASON): New macro.
4319 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4320 New functions.
4321 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4322 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4323 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4324 objects.
4325
4326 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4327
4328 Add support for ia64-hpux.
4329 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4330 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4331
4332 * configure.host: Add handling for ia64-hpux hosts. Add associated
4333 floatformats.
4334 * configure.tgt: Add handling for ia64-hpux targets.
4335 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4336 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4337 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4338
4339 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4340
4341 [ttrace] Compute thread list immediately after attach.
4342 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4343 New subprogram.
4344 (inf_ttrace_attach): Use it.
4345
4346 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4347
4348 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4349 if we could not determine the frame's function address. Instead,
4350 use the frame's PC, and then continue.
4351
4352 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4353
4354 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4355 not already defined.
4356
4357 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4358
4359 * ia64-tdep.c (ia64_struct_type_p): New function.
4360 (ia64_extract_return_value): Handle integral values that are
4361 less than 8 bytes long.
4362 (ia64_push_dummy_call): Likewise.
4363
4364 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4365
4366 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4367 floatformat_ia64_ext.
4368 (floatformat_ia64_ext_big): New static const.
4369 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4370
4371 2011-01-12 Tom Tromey <tromey@redhat.com>
4372
4373 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4374 messages.
4375 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4376 (mi_cmd_thread_list_ids): Likewise.
4377 (mi_cmd_data_list_changed_registers): Likewise.
4378 (mi_cmd_data_list_register_values): Likewise.
4379 (mi_cmd_data_write_register_values): Likewise.
4380 (mi_cmd_data_evaluate_expression): Likewise.
4381 (mi_cmd_data_read_memory): Likewise.
4382 (mi_cmd_data_read_memory_bytes): Likewise.
4383 (mi_cmd_data_write_memory): Likewise.
4384 (mi_cmd_enable_timings): Likewise.
4385 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4386 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4387 (mi_cmd_var_delete): Likewise.
4388 (mi_cmd_var_set_format): Likewise.
4389 (mi_cmd_var_show_format): Likewise.
4390 (mi_cmd_var_info_num_children): Likewise.
4391 (mi_cmd_var_list_children): Likewise.
4392 (mi_cmd_var_info_type): Likewise.
4393 (mi_cmd_var_info_expression): Likewise.
4394 (mi_cmd_var_show_attributes): Likewise.
4395 (mi_cmd_var_assign): Likewise.
4396 (mi_cmd_var_update): Likewise.
4397 (mi_cmd_enable_pretty_printing): Likewise.
4398 (mi_cmd_var_set_update_range): Likewise.
4399 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4400 messages.
4401 (mi_cmd_target_file_put): Likewise.
4402 (mi_cmd_target_file_delete): Likewise.
4403 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4404 messages.
4405 (mi_cmd_stack_info_depth): Likewise.
4406 (mi_cmd_stack_list_locals): Likewise.
4407 (mi_cmd_stack_list_args): Likewise.
4408 (mi_cmd_stack_select_frame): Likewise.
4409 (mi_cmd_stack_select_frame): Likewise.
4410 (mi_cmd_stack_info_frame): Likewise.
4411 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4412 messages.
4413 (mi_cmd_file_list_exec_source_files): Likewise.
4414 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4415 (mi_cmd_env_cd): Likewise.
4416 (mi_cmd_env_path): Likewise.
4417 (mi_cmd_env_dir): Likewise.
4418 (mi_cmd_inferior_tty_show): Likewise.
4419 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4420 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4421 (mi_cmd_break_watch): Likewise.
4422
4423 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4424
4425 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4426 (ppc_linux_insert_hw_breakpoint): Likewise.
4427 (ppc_linux_remove_hw_breakpoint): Likewise.
4428 (ppc_linux_insert_watchpoint): Likewise.
4429
4430 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4431 Jan Kratochvil <jan.kratochvil@redhat.com>
4432
4433 PR fortran/11104 and DWARF unbound arrays detection.
4434 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4435 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4436 unspecified upper bound.
4437 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4438 variables array_size_array, tmp_type and offset_item. New variable
4439 array. Remove call to f77_get_upperbound. New variables array_type
4440 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4441 the final call to deprecated_set_value_type.
4442
4443 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4444
4445 Make value allocations more lazy.
4446 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4447 instead of allocate_value and set_value_lazy when possible.
4448 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4449 instead of allocate_value and set_value_lazy.
4450 * findvar.c (value_of_register_lazy): Likewise.
4451 (read_var_value): Remove V preallocation, call just check_typedef in
4452 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4453 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4454 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4455 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4456 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4457 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4458 the end, remove set_value_lazy there.
4459 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4460 instead of allocate_value and set_value_lazy when possible.
4461 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4462 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4463 of allocate_value and set_value_lazy.
4464 (value_from_contents_and_address): Use allocate_value_lazy instead of
4465 allocate_value and set_value_lazy when possible.
4466
4467 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
4468
4469 * disasm.c (dump_insns): Support dumping opcodes for MI.
4470 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4471 dumping of instruction opcodes.
4472
4473 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4474
4475 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4476 appropiately.
4477
4478 2011-01-11 Tom Tromey <tromey@redhat.com>
4479
4480 * thread.c (do_captured_thread_select): Emit newline before
4481 printing frame.
4482
4483 2011-01-11 Michael Snyder <msnyder@vmware.com>
4484
4485 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4486 * score-tdep.c: Ditto.
4487 * score-tdep.h: Ditto.
4488 * ser-base.c: Ditto.
4489 * ser-go32.c: Ditto.
4490 * serial.c: Ditto.
4491 * serial.h: Ditto.
4492 * ser-mingw.c: Ditto.
4493 * ser-pipe.c: Ditto.
4494 * ser-tcp.c: Ditto.
4495 * ser-unix.c: Ditto.
4496 * sh64-tdep.c: Ditto.
4497 * shnbsd-nat.c: Ditto.
4498 * sh-tdep.c: Ditto.
4499 * sh-tdep.h: Ditto.
4500 * solib.c: Ditto.
4501 * solib-darwin.c: Ditto.
4502 * solib-frv.c: Ditto.
4503 * solib.h: Ditto.
4504 * solib-irix.c: Ditto.
4505 * solib-osf.c: Ditto.
4506 * solib-pa64.c: Ditto.
4507 * solib-som.c: Ditto.
4508 * solib-spu.c: Ditto.
4509 * solib-sunos.c: Ditto.
4510 * solib-svr4.c: Ditto.
4511 * solist.h: Ditto.
4512 * sol-thread.c: Ditto.
4513 * somread.c: Ditto.
4514 * source.c: Ditto.
4515 * source.h: Ditto.
4516 * sparc64-linux-tdep.c: Ditto.
4517 * sparc64-tdep.c: Ditto.
4518 * sparc-linux-nat.c: Ditto.
4519 * sparc-linux-tdep.c: Ditto.
4520 * sparc-sol2-nat.c: Ditto.
4521 * sparc-sol2-tdep.c: Ditto.
4522 * sparc-tdep.c: Ditto.
4523 * sparc-tdep.h: Ditto.
4524 * spu-tdep.c: Ditto.
4525 * stabsread.c: Ditto.
4526 * stabsread.h: Ditto.
4527 * stack.c: Ditto.
4528 * symfile.c: Ditto.
4529 * symfile.h: Ditto.
4530 * symmisc.c: Ditto.
4531 * symtab.c: Ditto.
4532 * symtab.h: Ditto.
4533 * target.c: Ditto.
4534 * target-descriptions.c: Ditto.
4535 * target-descriptions.h: Ditto.
4536 * target.h: Ditto.
4537 * target-memory.c: Ditto.
4538 * terminal.h: Ditto.
4539 * thread.c: Ditto.
4540 * top.c: Ditto.
4541 * tracepoint.c: Ditto.
4542 * tracepoint.h: Ditto.
4543 * trad-frame.h: Ditto.
4544 * typeprint.c: Ditto.
4545
4546 2011-01-11 Michael Snyder <msnyder@vmware.com>
4547
4548 * ui-file.c: Comment cleanup, mostly periods and spaces.
4549 * ui-file.h: Ditto.
4550 * ui-out.c: Ditto.
4551 * ui-out.h: Ditto.
4552 * utils.c: Ditto.
4553 * v850-tdep.c: Ditto.
4554 * valarith.c: Ditto.
4555 * valops.c: Ditto.
4556 * valprint.c: Ditto.
4557 * valprint.h: Ditto.
4558 * value.c: Ditto.
4559 * value.h: Ditto.
4560 * varobj.c: Ditto.
4561 * varobj.h: Ditto.
4562 * vax-tdep.c: Ditto.
4563 * vec.c: Ditto.
4564 * vec.h: Ditto.
4565 * version.h: Ditto.
4566 * windows-nat.c: Ditto.
4567 * windows-tdep.c: Ditto.
4568 * xcoffread.c: Ditto.
4569 * xcoffsolib.c: Ditto.
4570 * xml-support.c: Ditto.
4571 * xstormy16-tdep.c: Ditto.
4572 * xtensa-tdep.c: Ditto.
4573 * xtensa-tdep.h: Ditto.
4574
4575 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4576
4577 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4578 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4579
4580 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4581 Thiago Jung Bauermann <bauerman@br.ibm.com>
4582
4583 Implement support for PowerPC BookE ranged watchpoints.
4584 * breakpoint.h
4585 (struct breakpoint_ops) <resources_needed>: New method.
4586 Initialize to NULL in all existing breakpoint_ops instances.
4587 (struct breakpoint) <exact>: New field.
4588 (target_exact_watchpoints): Declare external global.
4589 * breakpoint.c (target_exact_watchpoints): New global flag.
4590 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4591 b->enable_state to bp_enabled before calling
4592 hw_watchpoint_used_count.
4593 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4594 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4595 if available.
4596 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4597 if the watchpoint is exact.
4598 (resources_needed_watchpoint): New function.
4599 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4600 (watch_command_1): Set b->exact if the user asked for an exact
4601 watchpoint and one can be set.
4602 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4603 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4604 the user asks for an exact watchpoint and one can be set. Return
4605 number of needed debug registers to watch the expression.
4606 * gdbtypes.c (is_scalar_type): New function, based on
4607 valprint.c:scalar_type_p.
4608 (is_scalar_type_recursive): New function.
4609 * gdbtypes.h (is_scalar_type_recursive): Declare.
4610 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4611 handle regions when ranged watchpoints are available.
4612 (create_watchpoint_request): New function.
4613 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4614 create_watchpoint_request.
4615 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4616 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4617 `set powerpc' and `show powerpc' commands.
4618 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4619 Mention documentation comment in the target macro.
4620 (target_region_ok_for_hw_watchpoint): Document return value.
4621
4622 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4623
4624 * breakpoint.c (update_watchpoint): Decide on using a software or
4625 hardware watchpoint after the bp_locations are created.
4626
4627 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4628
4629 Convert hardware watchpoints to use breakpoint_ops.
4630 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4631 <insert_location>: ... this. Return int instead of void.
4632 Accept pointer to struct bp_location instead of pointer to
4633 struct breakpoint. Adapt all implementations.
4634 (breakpoint_ops) <remove>: Rename to...
4635 <remove_location>: ... this. Accept pointer to struct bp_location
4636 instead of pointer to struct breakpoint. Adapt all implementations.
4637 * breakpoint.c (insert_catchpoint): Delete function.
4638 (insert_bp_location): Call the watchpoint or catchpoint's
4639 breakpoint_ops.insert method.
4640 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4641 breakpoint_ops.remove method.
4642 (insert_watchpoint, remove_watchpoint): New functions.
4643 (watchpoint_breakpoint_ops): New structure.
4644 (watch_command_1): Initialize the OPS field.
4645 * inf-child.c (inf_child_insert_fork_catchpoint)
4646 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4647 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4648 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4649 Delete functions.
4650 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4651 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4652 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4653 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4654 * target.c (update_current_target): Change default implementation of
4655 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4656 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4657 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4658 to_set_syscall_catchpoint to return_one.
4659 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4660 (debug_to_insert_exec_catchpoint): Report return value.
4661 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4662 (to_insert_exec_catchpoint): Change declaration to return int instead
4663 of void.
4664
4665 2011-01-11 Michael Snyder <msnyder@vmware.com>
4666
4667 * arm-tdep.c: Internationalization.
4668 * c-lang.c: Ditto.
4669 * charset.c: Ditto.
4670 * fork-child.c: Ditto.
4671 * nto-procfs.c: Ditto.
4672 * ppc-sysv-tdep.c: Ditto.
4673 * procfs.c: Ditto.
4674 * remote-mips.c: Ditto.
4675 * remote.c: Ditto.
4676 * rs6000-nat.c: Ditto.
4677 * rs6000-tdep.c: Ditto.
4678 * target.c: Ditto.
4679 * valops.c: Ditto.
4680 * value.c: Ditto.
4681 * xml-support.c: Ditto.
4682 * mi/mi-cmd-break.c: Ditto.
4683 * mi/mi-cmd-var.c: Ditto.
4684 * mi/mi-interp.c: Ditto.
4685 * mi/mi-main.c: Ditto.
4686
4687 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4688
4689 * remote-sim.c (gdbsim_store_register): Update API to
4690 sim_store_register to check more error conditions.
4691
4692 2011-01-10 Michael Snyder <msnyder@vmware.com>
4693
4694 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4695 * nto-tdep.c: Ditto.
4696 * nto-tdep.h: Ditto.
4697 * objc-exp.y: Ditto.
4698 * objc-lang.c: Ditto.
4699 * objfiles.c: Ditto.
4700 * objfiles.h: Ditto.
4701 * observer.c: Ditto.
4702 * opencl-lang.c: Ditto.
4703 * osabi.c: Ditto.
4704 * parse.c: Ditto.
4705 * parser-defs.h: Ditto.
4706 * p-exp.y: Ditto.
4707 * p-lang.c: Ditto.
4708 * posix-hdep.c: Ditto.
4709 * ppcbug-rom.c: Ditto.
4710 * ppc-linux-nat.c: Ditto.
4711 * ppc-linux-tdep.c: Ditto.
4712 * ppc-linux-tdep.h: Ditto.
4713 * ppcnbsd-tdep.c: Ditto.
4714 * ppcobsd-tdep.c: Ditto.
4715 * ppcobsd-tdep.h: Ditto.
4716 * ppc-sysv-tdep.c: Ditto.
4717 * ppc-tdep.h: Ditto.
4718 * printcmd.c: Ditto.
4719 * proc-abi.c: Ditto.
4720 * proc-flags.c: Ditto.
4721 * procfs.c: Ditto.
4722 * proc-utils.h: Ditto.
4723 * progspace.h: Ditto.
4724 * prologue-value.c: Ditto.
4725 * prologue-value.h: Ditto.
4726 * psympriv.h: Ditto.
4727 * psymtab.c: Ditto.
4728 * p-typeprint.c: Ditto.
4729 * p-valprint.c: Ditto.
4730 * ravenscar-sparc-thread.c: Ditto.
4731 * ravenscar-thread.c: Ditto.
4732 * ravenscar-thread.h: Ditto.
4733 * record.c: Ditto.
4734 * regcache.c: Ditto.
4735 * regcache.h: Ditto.
4736 * remote.c: Ditto.
4737 * remote-fileio.c: Ditto.
4738 * remote-fileio.h: Ditto.
4739 * remote.h: Ditto.
4740 * remote-m32r-sdi.c: Ditto.
4741 * remote-mips.c: Ditto.
4742 * remote-sim.c: Ditto.
4743 * rs6000-aix-tdep.c: Ditto.
4744 * rs6000-nat.c: Ditto.
4745 * rs6000-tdep.c: Ditto.
4746
4747 2011-01-10 Michael Snyder <msnyder@vmware.com>
4748
4749 * charset.c (validate): Internationalization.
4750 * coffread.c (read_one_sym): Ditto.
4751 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4752 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4753 * inflow.c (new_tty): Ditto.
4754 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4755 * m32c-tdep.c (m32c_return_value): Ditto.
4756 * mep-tdep.c (mep_store_return_value): Ditto.
4757 * score-tdep.c (score7_fetch_insn): Ditto.
4758 * ser-mingw.c (pipe_windows_open): Ditto.
4759 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4760 * spu-tdep.c (spu_register_type): Ditto.
4761 * tracepoint.c (trace_find_command): Ditto.
4762 * valarith.c (value_pos): Ditto.
4763
4764 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4765
4766 * ada-valprint.c (printstr): Minor comment reformatting.
4767
4768 2011-01-08 Michael Snyder <msnyder@vmware.com>
4769
4770 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4771 markup.
4772
4773 2011-01-08 Michael Snyder <msnyder@vmware.com>
4774
4775 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4776 * hppa-hpux-tdep.c: Ditto.
4777 * hppa-linux-nat.c: Ditto.
4778 * hppa-linux-tdep.c: Ditto.
4779 * hppanbsd-tdep.c: Ditto.
4780 * hppa-tdep.c: Ditto.
4781 * hppa-tdep.h: Ditto.
4782 * hpux-thread.c: Ditto.
4783 * i386-cygwin-tdep.c: Ditto.
4784 * i386-darwin-nat.c: Ditto.
4785 * i386gnu-nat.c: Ditto.
4786 * i386-linux-nat.c: Ditto.
4787 * i386-linux-tdep.c: Ditto.
4788 * i386-nat.c: Ditto.
4789 * i386-nat.h: Ditto.
4790 * i386nbsd-tdep.c: Ditto.
4791 * i386-sol2-nat.c: Ditto.
4792 * i386-stub.c: Ditto.
4793 * i386-tdep.c: Ditto.
4794 * i386-tdep.h: Ditto.
4795 * i387-tdep.c: Ditto.
4796 * ia64-linux-nat.c: Ditto.
4797 * ia64-linux-tdep.c: Ditto.
4798 * ia64-tdep.c: Ditto.
4799 * infcall.c: Ditto.
4800 * infcall.h: Ditto.
4801 * infcmd.c: Ditto.
4802 * inferior.c: Ditto.
4803 * inferior.h: Ditto.
4804 * infloop.c: Ditto.
4805 * inflow.c: Ditto.
4806 * infrun.c: Ditto.
4807 * interps.c: Ditto.
4808 * interps.h: Ditto.
4809 * iq2000-tdep.c: Ditto.
4810 * irix5-nat.c: Ditto.
4811 * jit.c: Ditto.
4812 * jit.h: Ditto.
4813 * jv-exp.y: Ditto.
4814 * jv-lang.c: Ditto.
4815 * jv-lang.h: Ditto.
4816 * jv-typeprint.c: Ditto.
4817 * jv-valprint.c: Ditto.
4818 * language.c: Ditto.
4819 * language.h: Ditto.
4820 * linespec.c: Ditto.
4821 * linux-fork.c: Ditto.
4822 * linux-nat.c: Ditto.
4823 * linux-thread-db.c: Ditto.
4824 * lm32-tdep.c: Ditto.
4825
4826 2011-01-08 Michael Snyder <msnyder@vmware.com>
4827
4828 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4829 * m2-lang.c: Ditto.
4830 * m2-typeprint.c: Ditto.
4831 * m2-valprint.c: Ditto.
4832 * m32c-tdep.c: Ditto.
4833 * m32r-linux-nat.c: Ditto.
4834 * m32r-rom.c: Ditto.
4835 * m32r-tdep.c: Ditto.
4836 * m32r-tdep.h: Ditto.
4837 * m68hc11-tdep.c: Ditto.
4838 * m58klinux-nat.c: Ditto.
4839 * m68k-tdep.c: Ditto.
4840 * m88k-tdep.c: Ditto.
4841 * m88k-tdep.h: Ditto.
4842 * machoread.c: Ditto.
4843 * macrocmd.c: Ditto.
4844 * macroexp.c: Ditto.
4845 * macrotab.c: Ditto.
4846 * main.c: Ditto.
4847 * maint.c: Ditto.
4848 * mdebugread.c: Ditto.
4849 * mdebugread.h: Ditto.
4850 * memattr.c: Ditto.
4851 * memattr.h: Ditto.
4852 * memory-map.h: Ditto.
4853 * mep-tdep.c: Ditto.
4854 * microblaze-rom.c: Ditto.
4855 * microblaze-tdep.c: Ditto.
4856 * minsyms.c: Ditto.
4857 * mips-irix-tdep.c: Ditto.
4858 * mips-linux-nat.c: Ditto.
4859 * mips-linux-tdep.c: Ditto.
4860 * mips-linux-tdep.h: Ditto.
4861 * mipsnbsd-nat.c: Ditto.
4862 * mipsnbsd-tdep.c: Ditto.
4863 * mipsread.c: Ditto.
4864 * mips-tdep.c: Ditto.
4865 * mips-tdep.h: Ditto.
4866 * mn10300-linux-tdep.c: Ditto.
4867 * mn10300-tdep.c: Ditto.
4868 * mn10300-tdep.h: Ditto.
4869 * monitor.c: Ditto.
4870 * monitor.h: Ditto.
4871 * moxie-tdep.c: Ditto.
4872 * moxie-tdep.h: Ditto.
4873 * mt-tdep.c: Ditto.
4874
4875 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4876
4877 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4878
4879 2011-01-08 Robert Millan <rmh@gnu.org>
4880
4881 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4882
4883 2011-01-07 Michael Snyder <msnyder@vmware.com>
4884
4885 * charset.c (_initialize_charset): Fix typo in string.
4886
4887 2011-01-07 Michael Snyder <msnyder@vmware.com>
4888
4889 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4890 for i18n.
4891 * tui/tui-layout.c (tui_set_layout_for_display_command):
4892 Split line so that operator goes to beginning of line.
4893 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4894 assignment out of if statement.
4895
4896 2011-01-07 Michael Snyder <msnyder@vmware.com>
4897
4898 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4899 * ada-lang.h: Ditto.
4900 * ada-tasks.c: Ditto.
4901 * ada-valprint.c: Ditto.
4902 * aix-threads.c: Ditto.
4903 * alpha-linux-nat.c: Ditto.
4904 * alpha-linux-tdep.c: Ditto.
4905 * alpha-mdebug-tdep.c: Ditto.
4906 * alpha-nat.c: Ditto.
4907 * alpha-osf1-tdep.c: Ditto.
4908 * alpha-tdep.c: Ditto.
4909 * alphabsd-nat.c: Ditto.
4910 * alphabsd-tdep.c: Ditto.
4911 * amd64-darwin-tdep.c: Ditto.
4912 * amd64-linux-nat.c: Ditto.
4913 * amd64-linux-tdep.c: Ditto.
4914 * amd64-sol2-tdep.c: Ditto.
4915 * amd64-tdep.c: Ditto.
4916 * amd64-fbsd-tdep.c: Ditto.
4917 * amd64-nbsd-tdep.c: Ditto.
4918 * amd64-obsd-tdep.c: Ditto.
4919 * amd64-linux-nat.c: Ditto.
4920 * amd64-linux-tdep.c: Ditto.
4921 * arm-tdep.c: Ditto.
4922 * arm-tdep.h: Ditto.
4923 * armnbsd-nat.c: Ditto.
4924 * avr-tdep.c: Ditto.
4925 * bfin-tdep.c: Ditto.
4926 * bsd-kvm.c: Ditto.
4927 * c-typeprintc: Ditto.
4928 * c-valprint.c: Ditto.
4929 * coff-pe-read.h: Ditto.
4930 * coffreead.c: Ditto.
4931 * cris-tdep.c: Ditto.
4932 * d-lang.c: Ditto.
4933 * darwin-nat-info.c: Ditto.
4934 * darwin-nat.c: Ditto.
4935 * dbug-rom.c: Ditto.
4936 * dbxread.c: Ditto.
4937 * dcache.c: Ditto.
4938 * dcache.h: Ditto.
4939 * dec-thread.c: Ditto.
4940 * defs.h: Ditto.
4941 * demangle.c: Ditto.
4942 * dicos-tdep.c: Ditto.
4943 * dictionary.c: Ditto.
4944 * dictionary.h: Ditto.
4945 * dink32-rom.c: Ditto.
4946 * disasm.c: Ditto.
4947 * doublest.c: Ditto.
4948 * dsrec.c: Ditto.
4949 * dummy-frame.c: Ditto.
4950 * dwarf2-frame.c: Ditto.
4951 * dwarf2expr.c: Ditto.
4952 * dwarf2loc.c: Ditto.
4953 * dwarf2read.c: Ditto.
4954 * elfread.c: Ditto.
4955 * environ.c: Ditto.
4956 * eval.c: Ditto.
4957 * event-top.h: Ditto.
4958 * exceptions.c: Ditto.
4959 * exceptions.h: Ditto.
4960 * exec.c: Ditto.
4961 * expprint.c: Ditto.
4962 * expression.h: Ditto.
4963 * f-exp.y: Ditto.
4964 * f-lang.c: Ditto.
4965 * f-lang.h: Ditto.
4966 * f-typeprint.c: Ditto.
4967 * f-valprint.c: Ditto.
4968 * fbsd-nat.c: Ditto.
4969 * findvar.c: Ditto.
4970 * fork-child.c: Ditto.
4971 * frame.c: Ditto.
4972 * frame.h: Ditto.
4973 * frv-linux-tdep.c: Ditto.
4974 * frv-tdep.c: Ditto.
4975 * gcore.c: Ditto.
4976 * gdb-stabs.h: Ditto.
4977 * gdb_assert.h: Ditto.
4978 * gdb_string.h: Ditto.
4979 * gdb_thread_db.h: Ditto.
4980 * gdb_wait.h: Ditto.
4981 * gdbarch.sh: Ditto.
4982 * gdbcore.h: Ditto.
4983 * gdbthread.h: Ditto.
4984 * gdbtypes.c: Ditto.
4985 * gdbtypes.h: Ditto.
4986 * gnu-nat.c: Ditto.
4987 * gnu-nat.h: Ditto.
4988 * gnu-v2-abi.c: Ditto.
4989 * gnu-v3-abi.c: Ditto.
4990 * go32-nat.c: Ditto.
4991 * gdbarch.c: Regenerate.
4992 * gdbarch.h: Regenerate.
4993
4994 2011-01-07 Michael Snyder <msnyder@vmware.com>
4995
4996 * ax-gdb.c: Adjust some long output strings.
4997 * breakpoint.c: Ditto.
4998 * charset.c: Ditto.
4999 * cp-abi.c: Ditto.
5000 * infcall.c: Ditto.
5001 * infrun.c: Ditto.
5002 * linux-nat.c: Ditto.
5003 * solib-pa64.c: Ditto.
5004 * solib-som.c: Ditto.
5005
5006 2011-01-06 Tom Tromey <tromey@redhat.com>
5007
5008 PR python/12367:
5009 * NEWS: Add item.
5010 * python/python.c (GdbMethods): Add "newest_frame" method.
5011 * python/python-internal.h (gdbpy_newest_frame): Declare.
5012 * python/py-frame.c (gdbpy_newest_frame): New function.
5013
5014 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5015
5016 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5017 * jit.c (jit_debug): New variable.
5018 (show_jit_debug): New function.
5019 (struct target_buffer): Use ULONGEST.
5020 (bfd_open_from_target_memory): Likewise.
5021 (jit_register_code, jit_inferior_init): Add debug output.
5022 (_initialize_jit): Register "debug jit" command.
5023
5024 2011-01-06 Tom Tromey <tromey@redhat.com>
5025
5026 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5027 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5028 and ARCH_FRAME.
5029
5030 2011-01-06 Tom Tromey <tromey@redhat.com>
5031
5032 * python/py-frame.c (frapy_block): Use get_frame_block.
5033
5034 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5035
5036 Do not stop on SIGPRIO signals by default
5037 * infrun.c (_initialize_infrun): Unset signal_stop and
5038 signal_print for TARGET_SIGNAL_PRIO.
5039
5040 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5041
5042 * ada-tasks.c: Fix style violation in comment.
5043
5044 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5045
5046 * linespec.c (decode_compound, find_method): Remove trailing \n
5047 at end of error string.
5048 * solib-irix.c (irix_current_sos): Likewise.
5049 * varobj.c (uninstall_variable): Likewise.
5050
5051 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5052
5053 * copyright.py: New script.
5054 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5055 Launch emacs without exec'ing. Call copyright.py afterwards.
5056
5057 2011-01-05 Michael Snyder <msnyder@vmware.com>
5058
5059 * addrmap.c: Shorten lines of >= 80 columns.
5060 * arch-utils.c: Ditto.
5061 * arch-utils.h: Ditto.
5062 * ax-gdb.c: Ditto.
5063 * ax-general.c: Ditto.
5064 * bcache.c: Ditto.
5065 * blockframe.c: Ditto.
5066 * breakpoint.c: Ditto.
5067 * buildsym.c: Ditto.
5068 * c-lang.c: Ditto.
5069 * c-typeprint.c: Ditto.
5070 * charset.c: Ditto.
5071 * coffread.c: Ditto.
5072 * command.h: Ditto.
5073 * corelow.c: Ditto.
5074 * cp-abi.c: Ditto.
5075 * cp-namespace.c: Ditto.
5076 * cp-support.c: Ditto.
5077 * dbug-rom.c: Ditto.
5078 * dbxread.c: Ditto.
5079 * defs.h: Ditto.
5080 * dfp.c: Ditto.
5081 * dfp.h: Ditto.
5082 * dictionary.c: Ditto.
5083 * disasm.c: Ditto.
5084 * doublest.c: Ditto.
5085 * dwarf2-frame.c: Ditto.
5086 * dwarf2expr.c: Ditto.
5087 * dwarf2loc.c: Ditto.
5088 * dwarf2read.c: Ditto.
5089 * elfread.c: Ditto.
5090 * eval.c: Ditto.
5091 * event-loop.c: Ditto.
5092 * event-loop.h: Ditto.
5093 * exceptions.h: Ditto.
5094 * exec.c: Ditto.
5095 * expprint.c: Ditto.
5096 * expression.h: Ditto.
5097 * f-lang.c: Ditto.
5098 * f-valprint.c: Ditto.
5099 * findcmd.c: Ditto.
5100 * frame-base.c: Ditto.
5101 * frame-unwind.c: Ditto.
5102 * frame-unwind.h: Ditto.
5103 * frame.c: Ditto.
5104 * frame.h: Ditto.
5105 * gcore.c: Ditto.
5106 * gdb-stabs.h: Ditto.
5107 * gdb_assert.h: Ditto.
5108 * gdb_dirent.h: Ditto.
5109 * gdb_obstack.h: Ditto.
5110 * gdbcore.h: Ditto.
5111 * gdbtypes.c: Ditto.
5112 * gdbtypes.h: Ditto.
5113 * inf-ttrace.c: Ditto.
5114 * infcall.c: Ditto.
5115 * infcmd.c: Ditto.
5116 * inflow.c: Ditto.
5117 * infrun.c: Ditto.
5118 * inline-frame.h: Ditto.
5119 * language.c: Ditto.
5120 * language.h: Ditto.
5121 * libunwind-frame.c: Ditto.
5122 * libunwind-frame.h: Ditto.
5123 * linespec.c: Ditto.
5124 * linux-nat.c: Ditto.
5125 * linux-nat.h: Ditto.
5126 * linux-thread-db.c: Ditto.
5127 * machoread.c: Ditto.
5128 * macroexp.c: Ditto.
5129 * macrotab.c: Ditto.
5130 * main.c: Ditto.
5131 * maint.c: Ditto.
5132 * mdebugread.c: Ditto.
5133 * memattr.c: Ditto.
5134 * minsyms.c: Ditto.
5135 * monitor.c: Ditto.
5136 * monitor.h: Ditto.
5137 * objfiles.c: Ditto.
5138 * objfiles.h: Ditto.
5139 * osabi.c: Ditto.
5140 * p-typeprint.c: Ditto.
5141 * p-valprint.c: Ditto.
5142 * parse.c: Ditto.
5143 * printcmd.c: Ditto.
5144 * proc-events.c: Ditto.
5145 * procfs.c: Ditto.
5146 * progspace.c: Ditto.
5147 * progspace.h: Ditto.
5148 * psympriv.h: Ditto.
5149 * psymtab.c: Ditto.
5150 * record.c: Ditto.
5151 * regcache.c: Ditto.
5152 * regcache.h: Ditto.
5153 * remote-fileio.c: Ditto.
5154 * remote.c: Ditto.
5155 * ser-mingw.c: Ditto.
5156 * ser-tcp.c: Ditto.
5157 * ser-unix.c: Ditto.
5158 * serial.c: Ditto.
5159 * serial.h: Ditto.
5160 * solib-frv.c: Ditto.
5161 * solib-irix.c: Ditto.
5162 * solib-osf.c: Ditto.
5163 * solib-pa64.c: Ditto.
5164 * solib-som.c: Ditto.
5165 * solib-sunos.c: Ditto.
5166 * solib-svr4.c: Ditto.
5167 * solib-target.c: Ditto.
5168 * solib.c: Ditto.
5169 * somread.c: Ditto.
5170 * source.c: Ditto.
5171 * stabsread.c: Ditto.
5172 * stabsread.c: Ditto.
5173 * stack.c: Ditto.
5174 * stack.h: Ditto.
5175 * symfile-mem.c: Ditto.
5176 * symfile.c: Ditto.
5177 * symfile.h: Ditto.
5178 * symmisc.c: Ditto.
5179 * symtab.c: Ditto.
5180 * symtab.h: Ditto.
5181 * target-descriptions.c: Ditto.
5182 * target-memory.c: Ditto.
5183 * target.c: Ditto.
5184 * target.h: Ditto.
5185 * terminal.h: Ditto.
5186 * thread.c: Ditto.
5187 * top.c: Ditto.
5188 * tracepoint.c: Ditto.
5189 * tracepoint.h: Ditto.
5190 * ui-file.c: Ditto.
5191 * ui-file.h: Ditto.
5192 * ui-out.h: Ditto.
5193 * user-regs.c: Ditto.
5194 * user-regs.h: Ditto.
5195 * utils.c: Ditto.
5196 * valarith.c: Ditto.
5197 * valops.c: Ditto.
5198 * valprint.c: Ditto.
5199 * valprint.h: Ditto.
5200 * value.c: Ditto.
5201 * varobj.c: Ditto.
5202 * varobj.h: Ditto.
5203 * vec.h: Ditto.
5204 * xcoffread.c: Ditto.
5205 * xcoffsolib.c: Ditto.
5206 * xcoffsolib.h: Ditto.
5207 * xml-syscall.c: Ditto.
5208 * xml-tdesc.c: Ditto.
5209
5210 2011-01-05 Michael Snyder <msnyder@vmware.com>
5211
5212 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5213 * cli/cli-decode.c: Ditto.
5214 * cli/cli-dump.c: Ditto.
5215 * cli/cli-logging.c: Ditto.
5216 * cli/cli-script.c: Ditto.
5217 * cli/cli-setshow.c: Ditto.
5218 * common/signals.c: Ditto.
5219 * mi/mi-cmd-break.c: Ditto.
5220 * mi/mi-cmd-disas.c: Ditto.
5221 * mi/mi-cmd-stack.c: Ditto.
5222 * mi/mi-cmd-var.c: Ditto.
5223 * mi/mi-cmds.c: Ditto.
5224 * mi/mi-common.h: Ditto.
5225 * mi/mi-console.c: Ditto.
5226 * mi/mi-interp.c: Ditto.
5227 * mi/mi-main.c: Ditto.
5228 * osf-share/cma_attr.c: Ditto.
5229 * osf-share/cma_deb_core.h: Ditto.
5230 * osf-share/cma_debug_client.h: Ditto.
5231 * osf-share/cma_handle.h: Ditto.
5232 * osf-share/cma_mutex.h: Ditto.
5233 * osf-share/cma_stack_int.h: Ditto.
5234 * osf-share/cma_tcb_defs.h: Ditto.
5235 * python/py-auto-load.c: Ditto.
5236 * python/py-breakpoint.c: Ditto.
5237 * python/py-cmd.c: Ditto.
5238 * python/py-frame.c: Ditto.
5239 * python/py-objfile.c: Ditto.
5240 * python/py-param.c: Ditto.
5241 * python/py-progspace.c: Ditto.
5242 * python/py-symbol.c: Ditto.
5243 * python/py-value.c: Ditto.
5244 * python/python-internal.h: Ditto.
5245 * python/python.c: Ditto.
5246 * tui/tui-data.c: Ditto.
5247 * tui/tui-disasm.c: Ditto.
5248 * tui/tui-hooks.c: Ditto.
5249 * tui/tui-io.c: Ditto.
5250 * tui/tui-layout.c: Ditto.
5251 * tui/tui-regs.c: Ditto.
5252 * tui/tui-source.c: Ditto.
5253 * tui/tui-stack.c: Ditto.
5254 * tui/tui-win.c: Ditto.
5255 * tui/tui-windata.c: Ditto.
5256 * tui/tui-winsource.c: Ditto.
5257
5258 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5259
5260 * configure.ac, gdb.1: Copyright year update.
5261
5262 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5263
5264 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5265 this_pc_in_block, morestack_msym and morestack_name. Check for
5266 "__morestack" minimal symbol there.
5267
5268 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5269
5270 * symfile.c (find_sym_fns): Add call to dont_repeat.
5271
5272 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5273
5274 Copyright year update in most files (performed by copyright.sh).
5275
5276 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5277
5278 * top.c (print_gdb_version): Update copyright year in version output.
5279
5280 For older changes see ChangeLog-2010.
5281 \f
5282 Local Variables:
5283 mode: change-log
5284 left-margin: 8
5285 fill-column: 74
5286 version-control: never
5287 coding: utf-8
5288 End:
This page took 0.156649 seconds and 4 git commands to generate.