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