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