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