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