]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR gdb/8677
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
652c71b4
AS
12011-05-25 Andreas Schwab <schwab@redhat.com>
2
3 PR gdb/8677
4 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5
f17170e5
KS
62011-05-24 Keith Seitz <keiths@redhat.com>
7
8 PR breakpoint/12803
9 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
10 (decode_compound): Unconditionally call keep_name_info.
11
cdac0397
PA
122011-05-24 Pedro Alves <pedro@codesourcery.com>
13
14 * breakpoint.c (watchpoint_check): If the watchpoint went out of
15 scope, clear its command list.
16 (map_breakpoint_numbers): Don't walk the related breakpoints list
17 of each breakpoint.
18
91d4fe3f
TT
192011-05-24 Tom Tromey <tromey@redhat.com>
20
21 * MAINTAINERS: Move Jim Blandy to past maintainers.
22
3017a003
TG
232011-05-24 Tristan Gingold <gingold@adacore.com>
24
25 * symfile.h (enum dwarf2_section_enum): New type.
26 (dwarf2_get_section_info): New prototype.
27 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
28 section_name by sect. Use a switch to select the info.
29 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
30 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
31
c91c8c16
PA
322011-05-24 Pedro Alves <pedro@codesourcery.com>
33
34 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
35 shared library event breakpoint if there's no execution.
36
77bc418a
TJB
372011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
38
39 * breakpont.c (remove_hw_watchpoints): Remove unused function.
40 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
41
c50491a7
TT
422011-05-23 Tom Tromey <tromey@redhat.com>
43
44 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
45 NULL.
46
6d64e6d4
DE
472011-05-23 Doug Evans <dje@google.com>
48
49 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
50 entry for RuntimeError to doc string.
51
2067c8d4
JG
522011-05-23 Jerome Guitton <guitton@adacore.com>
53
54 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
55 sequence for probing loops.
56
b136cd05
PA
572011-05-23 Pedro Alves <pedro@codesourcery.com>
58
59 * infrun.c (user_visible_resume_ptid): Fix typos in describing
60 comment.
61
22e74ef9
MK
622011-05-21 Mark Kettenis <kettenis@gnu.org>
63
64 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
65 zero as the value for %g0 in the register cache.
66 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
67 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
68
842951eb
PA
692011-05-20 Pedro Alves <pedro@codesourcery.com>
70
71 * infrun.c (proceed): Set previous_inferior_ptid here.
72 (init_wait_for_inferior): Initialize previous_inferior_ptid from
73 inferior_ptid, not null_ptid.
74 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
75 (fetch_inferior_event): Nor here.
76
46cf51e6
PA
772011-05-20 Pedro Alves <pedro@codesourcery.com>
78
79 * inf-loop.c (inferior_event_handler): Only output a message if
80 verbose.
81
29ef4c46
LM
822011-05-20 Luis Machado <lgustavo@codesourcery.com>
83
84 * MAINTAINERS: Update my e-mail address.
85
f148b27e
PA
862011-05-20 Pedro Alves <pedro@codesourcery.com>
87
88 * infrun.c (proceed): Switch the inferior event loop to
89 INF_EXEC_COMPLETE if the target refused to resume from a
90 vfork/fork.
91
09cee04b
PA
922011-05-20 Pedro Alves <pedro@codesourcery.com>
93
94 * infcmd.c: Include "inf-loop.h".
95 (step_once): When stepping into an inline subroutine, pretend the
96 target has run. If the target can async, switch the inferior
97 event loop to INF_EXEC_COMPLETE.
98 * inferior.h (user_visible_resume_ptid): Declare.
99 * infrun.c (user_visible_resume_ptid): New function, factored out
100 from `resume'.
101 (resume): Use it.
102 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
103 that the current thread is running. Merge async and sync
104 branches.
105
751b8ce1
PA
1062011-05-20 Pedro Alves <pedro@codesourcery.com>
107
108 * infcmd.c (step_1): Simplify synchronous case.
109
e93a69ed
PA
1102011-05-20 Pedro Alves <pedro@codesourcery.com>
111
112 * tracepoint.c: Include exceptions.h.
113 (TFILE_PID): Move higher in file.
114 (tfile_open): Delay pushing the tfile target until we're assured
115 the tfile header is present in the file. Wrap reading the initial
116 newline-terminated lines in TRY_CATCH. Pop the target if the
117 initial setup failed. Add the tfile's thread immediately
118 aftwards, before any non-essential setup. Don't skip
119 post_create_inferior if there are no traceframes present in the
120 file.
121 (tfile_close): Remove redundant check for null before xfree call.
122 (tfile_thread_alive): New function.
123 (init_tfile_ops): Register it as to_thread_alive callback.
124
6823e2b1
PA
1252011-05-20 Pedro Alves <pedro@codesourcery.com>
126
127 * tracepoint.c (tfile_open): Delete #if 0'd code.
128
b3c8eb43
JK
1292011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
130
131 Fix -readnow for -gdwarf-4 unused type units.
132 * dwarf2read.c (struct signatured_type): Remove the field offset.
133 (create_signatured_type_table_from_index): Remove its initialization.
134 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
135 instead. Add a complaint call.
136 (process_psymtab_comp_unit): Change assignment to gdb_assert.
137 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
138 (lookup_signatured_type_at_offset, read_signatured_type)
139 (write_one_signatured_type): Update the field for per_cu.
140
310afc76
TT
1412011-05-19 Tom Tromey <tromey@redhat.com>
142
143 * python/py-inferior.c (python_inferior_exit): Use
144 target_gdbarch.
145 (python_on_resume): Likewise.
146
cf6c5ffb
TT
1472011-05-19 Matt Rice <ratmice@gmail.com>
148
149 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
150
fb80a3c5
HZ
1512011-05-19 Hui Zhu <teawater@gmail.com>
152
153 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
154
3672b1be
HZ
1552011-05-19 Hui Zhu <teawater@gmail.com>
156
157 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
158
ff355380
TT
1592011-05-18 Tom Tromey <tromey@redhat.com>
160
161 * dwarf2read.c (dwarf2_add_field): Constify.
162 * value.c (value_static_field): Constify.
163 * gdbtypes.h (struct main_type) <field.field_location.physname>:
164 Now const.
165 * ax-gdb.c (gen_static_field): Constify
166
ed731959
JK
1672011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
168
169 * linux-nat.c (kill_callback): Use SIGKILL first.
170
967cff16
JB
1712011-05-18 Joel Brobecker <brobecker@adacore.com>
172
173 * ada-lang.c (print_it_exception): Avoid use of sprintf.
174
1d06ead6
TT
1752011-05-18 Tom Tromey <tromey@redhat.com>
176
177 * value.c (value_fn_field): Constify.
178 * symtab.c (gdb_mangle_name): Constify.
179 * stabsread.c (update_method_name_from_physname): Make 'physname'
180 argument const.
181 * p-typeprint.c (pascal_type_print_method_args): Make arguments
182 const. Use explicit fputc_filtered loop.
183 (pascal_type_print_base): Constify.
184 * p-lang.h (pascal_type_print_method_args): Update.
185 * linespec.c (add_matching_methods): Constify.
186 (add_constructors): Likewise.
187 * jv-typeprint.c (java_type_print_base): Constify.
188 * gdbtypes.h (struct cplus_struct_type)
189 <fn_fieldlist.fn_field.physname>: Now const.
190 * dwarf2read.c (compute_delayed_physnames): Constify.
191 (dwarf2_add_member_fn): Likewise.
192 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
193
0d9a9a5f
PA
1942011-05-18 Pedro Alves <pedro@codesourcery.com>
195
196 * infrun.c (resume): Mention which is the current thread, and its
197 current PC in debug output.
198 (prepare_to_proceed): Mention the thread switching in debug
199 output.
200
05386e9e
TT
2012011-05-18 Tom Tromey <tromey@redhat.com>
202
203 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
204 path check. Use xmalloc and cleanups.
205 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
206
ee86786c
TT
2072011-05-17 Tom Tromey <tromey@redhat.com>
208
209 * cp-valprint.c (cp_print_value_fields): Catch errors from
210 value_static_field.
211
9ff3b74f
TT
2122011-05-17 Tom Tromey <tromey@redhat.com>
213
214 * dwarf2read.c (dwarf2_get_die_type): Call
215 get_die_type_at_offset.
216 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
217 get_base_type function.
218
cd3da28e
PA
2192011-05-17 Tomas Martinec <fyzmat@gmail.com>
220
221 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
222 trap_expected.
223
fd20d931
DE
2242011-05-16 Doug Evans <dje@google.com>
225
226 * python/py-auto-load.c (source_section_scripts): Mention objfile
227 name in warning.
228
75fc9810
DE
2292011-05-15 Doug Evans <dje@google.com>
230
290351b8
DE
231 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
232 (try_thread_db_load_from_pdir): Call it. If unable to find
233 libthread_db in directory of libpthread, see if we're looking at
234 the separate-debug-info copy.
235
75fc9810
DE
236 * python/py-autoload.c (print_script): Print "Missing" instead of
237 "No" for missing scripts.
238 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
239
9f7bc587
DE
2402011-05-13 Doug Evans <dje@google.com>
241
242 * ui-file.c (stdio_file_write_async_safe): Add comment.
243
093cee7d
HZ
2442011-05-14 Hui Zhu <teawater@gmail.com>
245
246 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
247
dbaefcf7
DE
2482011-05-13 Doug Evans <dje@google.com>
249
98a5dd13
DE
250 Support $pdir and $sdir in libthread-db-search-path.
251 * NEWS: Mention $sdir,$pdir.
252 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
253 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
254 (try_thread_db_load_from_sdir): New function.
255 (try_thread_db_load_from_dir): New function.
256 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
257 system directories if search of libthread-db-search-path fails,
258 that is now done via $sdir.
259 (has_libpthread): New function.
260 (thread_db_load): Remove search for libthread_db in directory of
261 libpthread, that is now done via $pdir.
262
dbaefcf7
DE
263 * NEWS: Mention "info auto-load-scripts".
264 * python/py-auto-load.c (struct auto_load_pspace_info): New member
265 script_not_found_warning_printed.
266 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
267 all callers updated. Initialize script_not_found_warning_printed.
268 (get_auto_load_pspace_data_for_loading): New function.
269 (maybe_add_script): New function.
270 (source_section_scripts): Simplify. Only print one warning regardless
271 of the number of auto-load scripts not found.
272 (clear_section_scripts): Clear script_not_found_warning_printed.
273 (auto_load_objfile_script): Record script in hash table.
274 (count_matching_scripts): New function.
275 (maybe_print_script): Renamed from maybe_print_section_script, all
276 callers updated. Rewrite to use ui_out_*.
277 (info_auto_load_scripts): Renamed from
278 maintenance_print_section_scripts, all callers updated.
279 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
280 renamed as "info auto-load-scripts".
281
9930639c
TT
2822011-05-13 Tom Tromey <tromey@redhat.com>
283
284 * dwarf2expr.c (read_uleb128): Cast intermediate result.
285 (read_sleb128): Likewise.
286
06826322
TT
2872011-05-13 Tom Tromey <tromey@redhat.com>
288
289 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
290 offset display.
291
01124a23
DE
2922011-05-13 Doug Evans <dje@google.com>
293
294 * linux-nat.c (debug_linux_nat_async): Delete.
295 Replace all references to use debug_linux_nat instead.
296 (show_debug_linux_nat_async): Delete.
297 (sigchld_handler): Call ui_file_write_async_safe instead of
298 fprintf_unfiltered.
299 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
300 * ui-file.c (struct ui_file): New member to_write_async_safe.
301 (null_file_write_async_safe): New function.
302 (ui_file_write_async_safe): New function.
303 (set_ui_file_write_async_safe): New function.
304 (ui_file_new): Initialize to_write_async_safe.
305 (stdio_file_write_async_safe): New function.
306 (struct stdio_file): New member fd.
307 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
308 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
309 fileno.
01124a23
DE
310 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
311 (set_ui_file_write_async_safe): Declare.
312 (ui_file_write_async_safe): Declare.
313
72fc29ff
TT
3142011-05-13 Tom Tromey <tromey@redhat.com>
315
316 * utils.c (do_value_free): New function.
317 (make_cleanup_value_free): Likewise.
318 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
319 freeing correctly.
320 (dwarf2_loc_desc_needs_frame): Call
321 make_cleanup_value_free_to_mark.
322 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
323 * dwarf2expr.c (free_dwarf_expr_context): Don't call
324 value_free_to_mark.
325 (new_dwarf_expr_context): Don't call value_mark.
326 * dwarf2-frame.c (execute_stack_op): Call
327 make_cleanup_value_free_to_mark.
328 * defs.h (make_cleanup_value_free): Declare.
329
028d0ed5
TJB
3302011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
331
332 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
333 prepare_execute_command.
334 * top.c (prepare_execute_command): Return cleanup.
335 (execute_command): Use cleanup from prepare_execute_command.
336 * top.h (prepare_execute_command): Change prototype to return
337 cleanup.
338 * defs.h (struct value): Add opaque declaration.
339 (make_cleanup_value_free_to_mark): Add prototype.
340 * utils.c (do_value_free_to_mark): New function.
341 (make_cleanup_value_free_to_mark): Likewise.
342
b087e0ed
TT
3432011-05-12 Tom Tromey <tromey@redhat.com>
344
345 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
346 cast left-hand-side to unsigned.
347
8a9b8146
TT
3482011-05-12 Tom Tromey <tromey@redhat.com>
349
350 PR gdb/12617:
351 * value.h (value_from_contents): Declare.
352 * value.c (value_from_contents): New function.
353 * dwarf2read.c (dwarf_stack_op_name): Add new values.
354 (dwarf2_get_die_type): New function.
355 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
356 (allocate_piece_closure): Acquire reference to values.
357 (read_pieced_value): Update for value-based expressions.
358 (write_pieced_value): Likewise.
359 (free_pieced_value_closure): Call value_free as needed.
360 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
361 Update for value-based expressions.
362 * dwarf2loc.h (dwarf2_get_die_type): Declare.
363 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
364 <get_base_type>: New field.
365 (struct dwarf_expr_piece) <v.value>: Change type.
366 <v.regno>: New field.
367 (struct dwarf_expr_context) <mark>: New field.
368 (dwarf_expr_piece, dwarf_expr_fetch): Update.
369 (dwarf_expr_pop, dwarf_expr_push): Remove.
370 (dwarf_expr_push_address): Declare.
371 * dwarf2expr.c (dwarf_arch_cookie): New global.
372 (struct dwarf_gdbarch_types): New.
373 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
374 functions.
375 (dwarf_expr_push): Change type of 'value' argument. Update. Now
376 static.
377 (dwarf_expr_push_address): New function.
378 (dwarf_expr_pop): Now static.
379 (dwarf_expr_fetch): Change return type.
380 (dwarf_require_integral): New function.
381 (dwarf_expr_fetch): Simplify.
382 (add_piece): Update.
383 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
384 functions.
385 (execute_stack_op) <sign_ext>: Remove.
386 Use values for DWARF stack.
387 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
388 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
389 New cases.
390 (_initialize_dwarf2expr): New function.
391 (add_piece): Update.
392 (new_dwarf_expr_context): Set new field.
393 (free_dwarf_expr_context): Call value_free_to_mark.
394 * dwarf2-frame.c (no_base_type): New function.
395 (execute_stack_op): Set get_base_type field. Update.
396
e8d28ef4
TT
3972011-05-12 Tom Tromey <tromey@redhat.com>
398
399 * dwarf2read.c (read_common_block): Fix formatting.
400
d248b706
KY
4012011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
402
403 * breakpoint.c (disable_breakpoint): Disable all locations
404 associated with a tracepoint on target if a trace experiment is
405 running.
406 (disable_command): Disable a specific tracepoint location on target if
407 a trace experiment is running.
408 (do_enable_breakpoint): Enable all locations associated with a
409 tracepoint on target if a trace experiment is running.
410 (enable_command) Enable a specific tracepoint location on target if a
411 trace experiment is running.
412 * target.c (update_current_target): Add INHERIT and de_fault clauses for
413 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
414 to_disable_tracepoint.
415 * target.h: Add declaration of struct bp_location.
416 (struct target_ops): Add new functions
417 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
418 to_disable_tracepoint to target operations.
419 (target_supports_enable_disable_tracepoint): New macro.
420 (target_enable_tracepoint): New macro.
421 (target_disable_tracepoint): New macro.
422 * remote.c (struct remote_state): Add new field.
423 (remote_enable_disable_tracepoint_feature): New.
424 (remote_protocol_features): Add new entry.
425 (remote_supports_enable_disable_tracepoint): New.
426 (remote_enable_tracepoint): New.
427 (remote_disable_tracepoint): New.
428 (init_remote_ops): Add remote_enable_tracepoint,
429 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
430 to remote operations.
431 * tracepoint.c (start_tracing): Allow tracing to start without any
432 tracepoints enabled with just a warning if they can be re-enabled
433 later.
434 * NEWS: Add news item for the new behaviour of the enable and disable
435 GDB commands when applied to tracepoints.
436 Add news items for the new remote packets QTEnable and QTDisable.
437
cc88a640
JK
4382011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * config.in: Regenerate.
441 * configure: Regenerate.
442 * configure.ac <--with-system-readline> (for readline_echoing_p):
443 Remove the test.
444 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
445 (tui_old_rl_echoing_p): ... here.
446 (tui_setup_io): Rename extern declaration readline_echoing_p to
447 _rl_echoing_p. Adjust assignments for the both renames.
448
1f84b619
TJB
4492011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
450
451 * symtab.c (lookup_symtab): Run cleanup before returning.
452
74ac6d43
TT
4532011-05-11 Tom Tromey <tromey@redhat.com>
454
455 * dwarf2read.c (handle_data_member_location): New function.
456 (dwarf2_add_field): Use it.
457 (read_common_block): Likewise.
458
5488dafb
JK
4592011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 Make addrs->SECTINDEX always defined.
462 * symfile.c (relative_addr_info_to_section_offsets): Check for
463 SECTINDEX -1, not for zero ADDR.
464 (addrs_section_compar): Remove checking for invalid SECTINDEX.
465 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
466 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
467 on its validity.
468
84e578fb
DE
4692011-05-10 Doug Evans <dje@google.com>
470
2471d008
DE
471 * linux-thread-db.c: Whitespace cleanup.
472 (try_thread_db_load_1): Fix comment.
473
84e578fb
DE
474 * linux-thread-db.c (set_libthread_db_search_path): New function.
475 (_initialize_thread_db): Add setter for libthread-db-search-path.
476
673c2bbe
DE
4772011-05-09 Doug Evans <dje@google.com>
478
478aac75
DE
479 * NEWS: Mention --with-iconv-bin.
480 * configure.ac: New option --with-iconv-bin.
481 * configure: Regenerate.
482 * config.in: Regenerate.
483 * defs.h (relocate_gdb_directory): Declare.
484 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
485 removed progname parameter, and exported. All callers updated.
486 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
487
673c2bbe
DE
488 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
489 adding missing call to restore_child_signals_mask.
490
e4c8541f
PA
4912011-05-09 Pedro Alves <pedro@codesourcery.com>
492
493 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
494 parameter.
495 * infrun.c (proceed, start_remote): Adjust.
496 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
497 and adjust to not handle it.
498 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
499 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
500 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
501 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
502 * windows-nat.c (do_initial_windows_stuff): Adjust.
503 * infcmd.c (attach_command): Adjust.
504 (notice_new_inferior): Adjust.
505
a536c6d7
UW
5062011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
507
508 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
509 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
510 * spu-tdep.c (op_selb): Use correct value.
511
7845b013
UW
5122011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
513
514 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
515 "parent" parameter to symbol_file_add_from_bfd call.
516
9c06b0b4
TJB
5172011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
518 Thiago Jung Bauermann <bauerman@br.ibm.com>
519
520 Implement support for PowerPC BookE masked watchpoints.
521 * NEWS: Mention masked watchpoint support. Create "Changed commands"
522 section.
523 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
524 method. Initialize to NULL in all existing breakpoint_ops instances.
525 (struct breakpoint) <hw_wp_mask>: New field.
526 * breakpoint.c (is_masked_watchpoint): Add prototype.
527 (update_watchpoint): Don't set b->val for masked watchpoints. Call
528 breakpoint's breakpoint_ops.works_in_software_mode if available.
529 (watchpoints_triggered): Handle the case of a hardware masked
530 watchpoint trigger.
531 (watchpoint_check): Likewise.
532 (works_in_software_mode_watchpoint): New function.
533 (insert_masked_watchpoint, remove_masked_watchpoint)
534 (resources_needed_masked_watchpoint)
535 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
536 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
537 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
538 functions.
539 (masked_watchpoint_breakpoint_ops): New structure.
540 (watch_command_1): Check for the existence of the `mask' parameter.
541 Set b->ops according to the type of hardware watchpoint being created.
542 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
543 (ppc_linux_remove_mask_watchpoint)
544 (ppc_linux_masked_watch_num_registers): New functions.
545 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
546 to_remove_mask_watchpoint and to_masked_watch_num_registers.
547 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
548 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
549 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
550 (target_masked_watch_num_registers): New functions.
551 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
552 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
553 methods.
554 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
555 (target_masked_watch_num_registers): Add prototypes.
556
8be455d7
JK
5572011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
558
559 PR 12573
560 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
561 (producer_is_gcc_ge_4_0): New function.
562 (process_full_comp_unit): Set also symtab->locations_valid. Move the
563 symtab->language code.
564 (var_decode_location): Set cu->has_loclist.
565 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
566 skip. Intialize force_skip from locations_valid. Move the prologue
567 skipping code into two passes.
568 * symtab.h (struct symtab): Make the primary field a bitfield. New
569 field locations_valid.
570
d8228535
JK
5712011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
572
573 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
574 (classify_inner_name): Call cp_lookup_nested_type with
575 yylval.tsym.type.
576 * cp-namespace.c (cp_lookup_nested_type): New variable
577 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
578 type_name_no_tag_or_error with saved_parent_type.
579 * dwarf2read.c (load_partial_dies): Read in any children of
580 DW_TAG_typedef with complaint in such case.
581 * gdbtypes.c (type_name_no_tag_or_error): New function.
582 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
583 * valops.c (destructor_name_p): New comment for parameter type. Remove
584 type const. Make dname and cp const. Call type_name_no_tag_or_error.
585 * value.h (destructor_name_p): Remove type const.
586
1976171a
JK
5872011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * symtab.c (compare_symbol_name): New function.
590 (completion_list_add_name, expand_partial_symbol_name): Call it,
591 remove the variable ncmp.
592 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
593 gdb_assert it.
594
a9634178
TJB
5952011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
596
597 Demote to sw watchpoint only in update_watchpoint.
598 * breakpoint.c (update_watchpoint): Change between software and
599 hardware watchpoint for all kinds of watchpoints, not just
600 read/write ones. Determine b->exact value here instead of
601 in watch_command_1. Error out if there are not enough resources
602 for a read or access hardware watchpoint.
603 (watch_command_1): Remove logic of checking whether there are
604 enough resources available, since update_watchpoint will do that
605 work now. Don't set b->exact here. Catch exceptions thrown by
606 update_watchpoint and delete the watchpoint.
607 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
608 Use target_exact_watchpoints instead.
609 (delete_breakpoint): Notify observers only if deleted watchpoint
610 has a breakpoint number assigned to it.
611
4c67c798
JJ
6122011-05-05 Janis Johnson <janisjo@codesourcery.com>
613
614 * MAINTAINERS: Add myself as a write-after-approval maintainer.
615
a3fcb948
JG
6162011-05-05 Jerome Guitton <guitton@adacore.com>
617
618 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
619 New functions.
620 (i386_stack_tramp_frame_unwind): New static global.
621 (i386_match_pattern): New function, extracted from i386_match_insn.
622 (i386_match_insn): Use i386_match_pattern.
623 (i386_match_insn_block): New function.
624 (i386_tramp_chain_in_reg_insns)
625 (i386_tramp_chain_on_stack_insns): New static variables.
626 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
627 of unwinders.
628
4d393d60
JM
6292011-05-04 Joseph Myers <joseph@codesourcery.com>
630
631 * configure.host (xscale*): Don't handle target.
632 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
633 handle targets.
634
f70bd40b
YQ
6352011-05-04 Yao Qi <yao@codesourcery.com>
636
637 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
638
dd3295ee
JB
6392011-05-03 Joel Brobecker <brobecker@adacore.com>
640
641 Revert:
642 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
643 | * elfread.c (elf_symtab_read): Stop memory leak.
644
90375a0e
PM
6452011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
646
647 * nto-tdep.c (nto_target): Replace deprecated call to
648 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
649
d07205c2
JK
6502011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
651
652 Fix false GCC warning.
653 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
654
1e718ff1
TJB
6552011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
656
657 * breakpoint.c (update_watchpoint): Move code to change
658 the enable state of breakpoint from here ...
659 (do_enable_breakpoint): ... to here.
660
35bef4fd
TT
6612011-04-26 Andrew Gontarek <andrewg@cray.com>
662
78290264
PP
663 * valprint.c (val_print_array_elements): Fixed poor performance
664 of printing very large arrays with repeat_count_threshold set
665 to unlimited. New comment.
35bef4fd 666
38a714bb
TT
6672011-04-29 Tom Tromey <tromey@redhat.com>
668
669 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
670 (mi_parse): Likewise.
671 * breakpoint.c (break_range_command): Use sizeof char*, not
672 char**.
673 (create_breakpoint): Likewise.
674 (parse_breakpoint_sals): Likewise.
675
eb73ad13
PA
6762011-04-29 Pedro Alves <pedro@codesourcery.com>
677
678 * linux-nat.c (linux_child_remove_fork_catchpoint)
679 (linux_child_remove_vfork_catchpoint)
680 (linux_child_remove_exec_catchpoint): New functions.
681 (linux_target_install_ops): Install them.
682
d65aec65
PM
6832011-04-29 Phil Muldoon <pmuldoon@redhat.com>
684
685 PR mi/12531
686
687 * varobj.c (install_default_visualizer): Do not install a
688 visualizer if the varobj is CPLUS_FAKE_CHILD.
689 (construct_visualizer): Likewise.
690
165195f4
JK
6912011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
692
693 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
694 case insensitive comparison.
695
30852783
UW
6962011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
697
698 * infrun.c (proceed): Revert previous change.
699 (resume): Instead, handle the case of signal delivery while stepping
700 off a breakpoint location here, and only if software single-stepping
701 is used. Handle nested signals.
702
7ff120b4
YQ
7032011-04-28 Yao Qi <yao@codesourcery.com>
704
705 * arm-tdep.c (copy_unmodified): Rename to ...
706 (arm_copy_unmodified): .. this. New.
707 (copy_preload): Move common part to ...
708 (install_preload): .. this. New.
709 (arm_copy_preload): New.
710 (copy_preload_reg): Move common part to ...
711 (install_preload_reg): ... this. New.
712 (arm_copy_preload_reg): New.
713 (copy_b_bl_blx): Move common part to ...
714 (install_b_bl_blx): .. this. New.
715 (arm_copy_b_bl_blx): New.
716 (copy_bx_blx_reg): Move common part to ...
717 (install_bx_blx_reg): ... this. New.
718 (arm_copy_bx_blx_reg): New.
719 (copy_alu_reg): Move common part to ...
720 (install_alu_reg): ... this. New.
721 (arm_copy_alu_reg): New.
722 (copy_alu_shifted_reg): Move common part to ...
723 (install_alu_shifted_reg): ... this. New.
724 (copy_ldr_str_ldrb_strb): Move common part to ...
725 (install_ldr_str_ldrb_strb): ... this. New.
726 (arm_copy_ldr_str_ldrb_strb): New.
727 (copy_copro_load_store): Move some common part to ...
728 (install_copy_copro_load_store): ... this. New.
729 (arm_copy_copro_load_store): New.
730 (copy_svc): Delete.
731 (arm_copy_svc): Renamed from copy_svc.
732 (copy_undef): Delete.
733 (arm_copy_undef): Renamed from copy_undef.
734 (decode_ext_reg_ld_st): Delete.
735 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
736 (decode_svc_copro): Delete.
737 (arm_decode_svc_copro): Renamed from decode_svc_copro.
738 (copy_copro_load_store, copy_alu_imm): update callers.
739 (copy_extra_ld_st, copy_block_xfer): Likewise.
740 (decode_misc_memhint_neon, decode_unconditional): Likewise.
741 (decode_miscellaneous, decode_dp_misc): Likewise.
742 (decode_ld_st_word_ubyte, decode_media): Likewise.
743 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
744 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
745 (decode_unconditional, decode_miscellaneous): Likewise.
746 (decode_media, decode_b_bl_ldmstm): Likewise.
747 (arm_process_displaced_insn): Likewise..
748 (decode_misc_memhint_neon): Delete.
749 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
750 (decode_miscellaneous): Delete.
751 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
752 (decode_dp_misc): Delete.
753 (arm_decode_dp_misc): Renamed from decode_dp_misc.
754 (decode_ld_st_word_ubyte): Delete.
755 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
756 (decode_media): Delete.
757 (arm_decode_media): Renamed from decode_media.
758 (decode_b_bl_ldmstm): Delete.
759 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
760 (decode_ext_reg_ld_st): Delete.
761 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
762 (decode_unconditional): Delete.
763 (arm_decode_unconditional): Renamed from decode_unconditional.
764
559a7a62
JK
7652011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
766
767 Case insensitive lookups implementation.
768 * dwarf2read.c: Include ctype.h.
769 (struct mapped_index): New field version.
770 (mapped_index_string_hash): New parameter index_version. New comment
771 for it. Call tolower appropriately.
772 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
773 Choose the right index version for mapped_index_string_hash.
774 (dwarf2_read_index): Support also the index version 5. Initialize the
775 new struct mapped_index field version.
776 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
777 (find_slot): Explain the version needs. Pass INT_MAX for the new
778 parameter.
779 (write_psymtabs_to_index): Produce version 5.
780 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
781 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
782 * psymtab.c (lookup_partial_symbol): Find the
783 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
784 entries.
785 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
786 NAME lowercasing.
787 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
788 (completion_list_add_name): New variable ncmp, initialize it, use it.
789 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
790 * utils.c (strcmp_iw): Support case_sensitive_off.
791 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
792 New function comment part. New variables saved_string1,
793 saved_string2 and case_pass. Add a proper second pass.
794
681bf369
JK
7952011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
796
797 Replace re_comp/re_exec by regcomp/regexec.
798 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
799 (search_symbols_name_matches): Use them, use regexec.
800 (search_symbols): New variable retval_chain, adjust the use of
801 old_chain against it. Replace re_comp by regcomp. Use the new struct
802 search_symbols_data fields, use regexec instead of re_exec.
803
b11b1f88
JK
8042011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 Format the code for the next patch.
807 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
808 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
809 New variables c1 and c2.
810
2484c66b
UW
8112011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
812
813 * infrun.c (proceed): Do not single-step into signal delivery
814 when stepping off a breakpoint location.
815 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
816 (insert_step_resume_breakpoint_at_caller): Likewise.
817 (insert_step_resume_breakpoint_at_sal): Likewise.
818 (insert_longjmp_resume_breakpoint): Likewise.
819
47423772
YQ
8202011-04-27 Yao Qi <yao@codesourcery.com>
821
822 * common/linux-ptrace.h: Remove include <sys/wait.h>.
823
13bdd2e7
JB
8242011-04-27 Joel Brobecker <brobecker@adacore.com>
825
826 * procfs.c (procfs_pass_signals): Fix advance declaration.
827
2455069d
UW
8282011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
829
830 * target.h (struct target_ops): Remove to_notice_signals;
831 add to_pass_signals.
832 (target_notice_signals): Remove.
833 (target_pass_signals): Add prototype.
834 * target.c (update_current_target): Remove to_notice_signals;
835 mention to_pass_signals.
836 (target_pass_signals): New function.
837 (debug_to_notice_signals): Remove.
838 (setup_target_debug): Do not install debug_to_notice_signals.
839
840 * infrun.c (signal_pass): New global.
841 (resume): Call target_pass_signals.
842 (handle_inferior_event): Report all signals while stepping over
843 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
844 are re-inserted when stepping over a signal handler.
845 (signal_cache_update): New function.
846 (signal_stop_update): Call it.
847 (signal_print_update): Likewise.
848 (signal_pass_update): Likewise.
849 (handle_command): Call signal_cache_update and target_pass_signals
850 instead of target_notice_signals.
851 (_initialize_infrun): Initialize signal_pass.
852
853 * linux-nat.c (pass_mask): New global.
854 (linux_nat_pass_signals): New function.
855 (linux_nat_create_inferior): Report all signals initially.
856 (linux_nat_attach): Likewise.
857 (linux_nat_resume): Use pass_mask to decide whether to directly
858 handle an inferior signal.
859 (linux_nat_wait_1): Likewise.
860 (linux_nat_add_target): Install to_pass_signals callback.
861
862 * nto-procfs.c (notice_signals): Remove.
863 (procfs_resume): Do not call notice_signals.
864 (procfs_notice_signals): Remove.
865 (procfs_pass_signals): New function.
866 (init_procfs_ops): Install to_pass_signals callback instead of
867 to_notice_signals callback.
868 (_initialize_procfs): Report all signals initially.
869
870 * procfs.c (procfs_notice_signals): Remove.
871 (procfs_pass_signals): New function.
872 (procfs_target): Install to_pass_signals callback instead of
873 to_notice_signals callback.
874 (register_gdb_signals): Remove.
875 (procfs_debug_inferior): Report all signals initially.
876 (procfs_init_inferior): Remove redundant register_gdb_signals call.
877
878 * remote.c (remote_pass_signals): Add numsigs and pass_signals
879 parameters; use them instead of calling signal_..._state routines.
880 (remote_notice_signals): Remove.
881 (remote_start_remote): Report all signals initially.
882 (remote_resume): Do not call remote_pass_signals.
883 (_initialize_remote): Install to_pass_signals callback instead of
884 to_notice_signals callback.
885
46c6471b
PA
8862011-04-27 Pedro Alves <pedro@codesourcery.com>
887
888 * breakpoint.c (user_settable_breakpoint): Delete.
889 (user_breakpoint_p): Remove check on user_settable_breakpoint.
890 (delete_command): Check user_breakpoint_p instead of looking at
891 the breakpoint's type.
892 (disable_command): Ditto.
893 (enable_command): Ditto.
894 (delete_trace_command): Use user_breakpoint_p instead of looking
895 at the breakpoint number directly. When checking if there are
896 user visible tracepoints, in order to know whether to ask the user
897 for confirmation, check whether the breakpoint is actually a
898 tracepoint.
899
f6d90398
VP
9002011-04-27 Vladimir Prus <vladimir@codesourcery.com>
901
902 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
903 compilation.
904
8d3788bd
VP
9052011-04-27 Vladimir Prus <vladimir@codesourcery.com>
906
907 MI breakpoint notifications.
908
f33edef8
PP
909 * annotate.c (breakpoint_changed): Adjust parameter type.
910 * breakpoint.c (set_breakpoint_condition): Adjust to change
911 in breakpoint_modified type.
912 (breakpoint_set_commands): Likewise.
913 (do_map_commands_command): Likewise.
914 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
915 changed after bumping hit count.
916 (bpstat_stop_status): Likewise.
917 (print_one_breakpoint_location): Don't wrap in tuple here.
918 (print_one_breakpoint): Always print individual locations.
919 For locations, use unnamed tuple.
920 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
921 has changed.
922 (create_catchpoint, create_syscall_event_catchpoint): Call
923 breakpoint_created obsever.
924 (mention): Don't call breakpoint_created observer.
925 (create_breakpoint_sal): Call breakpoint_created observer.
926 (create_breakpoint, watch_command_1): Likewise.
927 (create_ada_exception_breakpoint): Likewise.
928 (delete_breakpoint): Call breakpoint_deleted breakpoint.
929 (locations_are_equal): New.
930 (update_breakpoint_locations): If locations were changed, notify.
931 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
932 Call breakpoint_modified observer.
933
934 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
935 (mi_cmd_break_insert): Don't set observers for modify and delete.
936 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
937 (mi_breakpoint_created, mi_breakpoint_deleted)
938 (mi_breakpoint_modified): New.
939 (mi_interpreter_init): Hook the above.
940 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
941 while -break-* commands are executing.
942 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
943 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
944 (mi_redirect): New.
945 (mi_ui_out_impl): Hook in mi_redirect.
946 (mi_field_skip): True to the name, skip the field, don't output
947 a field with an empty value.
948
949 * python/py-breakpoint.c (gdbpy_breakpoint_created)
950 (gdbpy_breakpoint_deleted): Adjust.
951 * tui/tui-hooks.c (tui_event_create_breakpoint)
952 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 953
a8f42b45
UW
9542011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
955
956 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
957 (procfs_remove_hw_watchpoint): Likewise.
958
57e12211
TT
9592011-04-26 Michael Walle <michael@walle.cc>
960
961 * remote.c (remote_start_remote): Ack packet after sending the
962 interrupt sequence.
963
af96c192
YQ
9642011-04-26 Yao Qi <yao@codesourcery.com>
965
f33edef8
PP
966 * linux-nat.c: Move common macros to ...
967 Include linux-ptrace.h.
968 * common/linux-ptrace.h: ... here. New.
af96c192 969
3e03848b
JK
9702011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
971
972 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
973 !objfile_has_partial_symbols. New comment.
974 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
975 SYM_READ_PSYMBOLS is not present. Extend the comment.
976 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
977
1ae0d051
JK
9782011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
979
980 * defs.h (ENUM_BITFIELD): Remove.
981
03f2bd59
JK
9822011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
983 Eli Zaretskii <eliz@gnu.org>
984
985 * NEWS: Document the new gdbserver --once option.
986
4161fbb0
JZ
9872011-04-21 Jie Zhang <jzhang918@gmail.com>
988
989 * MAINTAINERS: Update my email address.
990
bcb28afc
PM
9912011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
992
993 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
994 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
995 function call if __STDC_ISO_10646__ macro is defined.
996 (intermediate_encoding): New prototype.
997 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
998 to generate compile time error for unsupported gdb_wchar_t size.
999 (ENDIAN_SUFFIX): New macro.
1000 (intermediate_encoding): New function.
1001
7b08b9eb
JK
10022011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1003
1004 * ada-lang.c (struct add_partial_datum): Update the comment for
1005 expand_partial_symbol_name.
1006 (ada_add_partial_symbol_completions): Rename to ...
1007 (ada_expand_partial_symbol_name): ... here, change return type, update
1008 function comment, call symbol_completion_match instead of
1009 symbol_completion_add.
1010 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1011 and ada_expand_partial_symbol_name.
1012 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1013 FILE_MATCHER.
1014 (dw2_map_symbol_names): Remove.
1015 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1016 * psymtab.c (map_symbol_names_psymtab): Remove.
1017 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1018 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1019 order.
1020 (psym_functions): Unlist map_symbol_names_psymtab.
1021 (map_partial_symbol_names): Rename to ...
1022 (expand_partial_symbol_names): ... here, change the FUN type, call
1023 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1024 * psymtab.h (map_partial_symbol_names): Rename to ...
1025 (expand_partial_symbol_names): ... here, change the FUN type.
1026 * symfile.h (struct quick_symbol_functions): Update the description of
1027 expand_symtabs_matching. Remove map_symbol_names.
1028 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1029 (struct add_name_data): Update the comment for
1030 expand_partial_symbol_name.
1031 (add_partial_symbol_name): Rename to ...
1032 (expand_partial_symbol_name): ... here. Replace
1033 completion_list_add_name call by strncmp.
1034 (default_make_symbol_completion_list_break_on): Use now
1035 expand_partial_symbol_names and expand_partial_symbol_name.
1036 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1037
90476074
TT
10382011-04-20 Tom Tromey <tromey@redhat.com>
1039
1040 * dwarf2read.c (save_gdb_index_command): Replace format
1041 documentation with a pointer to the manual.
1042
c21236dc
PA
10432011-04-20 Pedro Alves <pedro@codesourcery.com>
1044
1045 * regcache.c: Include remote.h.
1046 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1047 (regcache_dump): Handle regcache_dump_remote.
1048 (maintenance_print_remote_registers): New function.
1049 (_initialize_regcache): Install "maint print remote-registers"
1050 command.
1051 * remote.c (map_regcache_remote_table): New function, factored out
1052 from ...
1053 (init_remote_state): ... here.
1054 (remote_register_number_and_offset): New.
1055 * remote.h (remote_register_number_and_offset): Declare.
1056
b78974c3
PA
10572011-04-20 Pedro Alves <pedro@codesourcery.com>
1058
1059 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1060 null_ptid, assume and allow a NULL address space, instead of
1061 asking the target for the ptid's address space.
1062 * infrun.c (ptid_is_pid): Remove assertion.
1063
7a9dd1b2
TT
10642011-04-19 Tom Tromey <tromey@redhat.com>
1065
1066 * windows-tdep.c (windows_xfer_shared_library):
1067 * windows-nat.c (get_module_name, windows_make_so):
1068 * v850-tdep.c (v850_handle_pushm):
1069 * utils.c (null_cleanup, gdb_realpath):
1070 * ui-out.c (get_next_header):
1071 * tracepoint.c (clear_traceframe_info):
1072 * symtab.c (lookup_symtab):
1073 * serial.h (struct serial_ops):
1074 * mipsread.c (read_alphacoff_dynamic_symtab):
1075 * infcmd.c (print_return_value):
1076 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1077 * f-exp.y (parse_number):
1078 * exceptions.c (catch_exceptions):
1079 * dummy-frame.c (dummy_frame_this_id):
1080 * defs.h (struct cleanup):
1081 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1082 * arm-tdep.c (arm_push_dummy_call):
1083 * amd64-tdep.h (amd64_collect_xsave):
1084 * amd64-tdep.c (amd64_collect_xsave):
1085 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1086 * README (typing): Remove duplicate words.
1087 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1088 * infrun.c (siginfo_value_read): Fix typo.
1089 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1090 * top.c (source_line_number): Add comma.
1091
9941e0c5
MK
10922011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1093
1094 * thread.c (any_live_thread_of_process): Prioritize threads
1095 that are not executing.
1096 * gdbthread.h (any_live_thread_of_process): Update comment
1097 as per above change.
1098
ed4b0e6a
AS
10992011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1100
1101 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1102 (scan_xcoff_symtab): Likewise.
1103
9b13a2db
PM
11042011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1105
1106 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1107 inside if clause.
1108
1c6e1b0d
PM
11092011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1110 Pedro Alves <pedro@codesourcery.com>
1111
1112 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1113 variables to simplify code and avoid == operator at end of
1114 line as this is against GNU coding standards.
1115
74de0234
PM
11162011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1117
1118 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1119 lm_name to name_lm to avoid conflict with lm_name function.
1120
b23518f0
PM
11212011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1122
1123 ARI fixes: Use only lowercase function name for static functions.
1124 * nto-tdep.c (LM_ADDR): Rename to...
1125 (lm_addr): New function name.
1126 (nto_relocate_section_addresses): Adapt to change above.
1127 * solib-sunos.c (LM_ADDR): Rename to...
1128 (lm_addr): New function name.
1129 (LM_NEXT): Rename to...
1130 (lm_next): New function name.
1131 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1132 function name changes above.
1133 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1134 (lm_addr_from_link_map): New function name.
1135 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1136 (has_lm_dynamic_from_link_map): New function name.
1137 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1138 (lm_dynamic_from_link_map): New function name.
1139 (LM_ADDR_CHECK): Rename to...
1140 (lm_addr_check): New function name.
1141 (LM_NEXT): Rename to...
1142 (lm_next): New function name.
1143 (LM_PREV): Rename to...
1144 (lm_prev): New function name.
1145 (LM_NAME): Rename to...
1146 (lm_name): New function name.
1147 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1148 (ignore_first_link_map_entry): New function name.
1149 (svr4_keep_data_in_core): Adapt to function name changes above.
1150 (svr4_current_sos): Likewise.
1151 (enable_break): Likewise.
1152 (svr4_relocate_section_addresses): Likewise.
1153
1448a0a2
PM
11542011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1155
1156 ARI cleanup.
1157 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1158 sprintf. Simplify code and avoid loosing memory.
1159 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1160 (call0_frame_cache): Remove && operator from end of line.
1161
02835898
JK
11622011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Fix libraries displacement if they change whether they were prelinked.
1165 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1166 does not match. Comment why.
1167
9a845ea2
JK
11682011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1169
1170 * corelow.c: Include wrapper.h.
1171 (core_open): Call now gdb_target_find_new_threads.
1172 * wrapper.c: Include target.h.
1173 (gdb_target_find_new_threads): New.
1174 * wrapper.h (gdb_target_find_new_threads): New declaration.
1175
254f582e
JK
11762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1179 even if !TARGET_HAS_EXECUTION.
1180
63524580
JK
11812011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1184 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1185 bfd_get_synthetic_symtab.
1186 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1187 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1188 parameter parent, remove the call to add_separate_debug_objfile.
1189 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1190 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1191 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1192 parent, new comment for it, call add_separate_debug_objfile for it.
1193 (symbol_file_add_separate): Pass objfile as the parameter parent,
1194 remove the call to add_separate_debug_objfile.
1195 (symbol_file_add_from_bfd): New parameter parent, pass it.
1196 (symbol_file_add): Pass NULL to the new parameter parent.
1197 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1198
90359a16
JK
11992011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1202 BSF_SYNTHETIC.
1203
626e7282
JK
12042011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1205
1206 Fix Python access to inlined frames.
1207 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1208 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1209
cf31e6f9
TT
12102011-04-15 Tom Tromey <tromey@redhat.com>
1211
1212 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1213
c8d895f1
GB
12142011-04-15 Gary Benson <gbenson@redhat.com>
1215
1216 * MAINTAINERS: Add myself to write-after-approval section.
1217
56a9aa1d
MF
12182011-04-14 Mike Frysinger <vapier@gentoo.org>
1219
1220 * remote-sim.c (sim_command_completer): New function.
1221 (_initialize_remote_sim): Set completer to sim_command_completer.
1222
ba770c9c
TJB
12232011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1224
1225 * breakpoint.c (print_exception_catchpoint): Rename to ...
1226 (print_it_exception_catchpoint): ... this.
1227 (gnu_v3_exception_catchpoint_ops): Update with new name
1228 for print_it_exception_catchpoint.
1229
51bf2553
EBM
12302011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1231
1232 * MAINTAINERS: Add myself for write after approval privileges.
1233
d242658c
MP
12342011-04-13 Marek Polacek <mpolacek@redhat.com>
1235
1236 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1237
4a4106ca
TJB
12382011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1239
1240 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1241
26063d49
TJB
12422011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1243
1244 * breakpoint.c (save_breakpoints): Verify whether
1245 breakpoint_ops.print_recreate is defined before calling it.
1246
7782b183
GB
12472011-04-11 Gary Benson <gbenson@redhat.com>
1248
1249 Fix failure with --enable-maintainer-mode.
1250 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1251
e8930875
JK
12522011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 Code cleanup.
1255 * symtab.c (search_symbols): Reorder the KIND description in the
1256 function comment. Remove the unused 4th element of types, types2,
1257 types3 and types4. New gdb_assert on KIND.
1258 (symtab_symbol_info): Remove the unused 4th element of classnames.
1259 New gdb_assert on KIND.
1260 * symtab.h (enum search_domain): New warning in the enum comment.
1261 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1262 TYPES_DOMAIN.
1263
b4f2f049
JK
12642011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1265
1266 Fix crash of gdb save-index on a STABS file.
1267 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1268 PSYMTABS_ADDRMAP.
1269
60d5a603
JK
12702011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1271
1272 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1273 * dwarf2read.c: Include ctype.h.
1274 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1275 functions.
1276 (dwarf2_add_field): Fix new_field->accessibility by calling
1277 dwarf2_default_access_attribute. Restructure setting accessibility
1278 vs. virtuality.
1279 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1280 is_private and is_protected by calling
1281 dwarf2_default_access_attribute.
1282
e0f68161
KB
12832011-04-08 Kevin Buettner <kevinb@redhat.com>
1284
1285 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1286 to the initialization.
1287
2e1aae43
SE
12882011-04-08 Steve Ellcey <sje@cup.hp.com>
1289
1290 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1291 initalization.
1292
c6ca3dab
PM
12932011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1294
1295 Remove support for old Cygwin 1.5 versions.
1296 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1297 function on old Cygwin version.
1298 * windows-nat.c: Remove cygwin version check and always define
1299 __USEWIDE for Cygwin compilation.
1300
bd18283a
YQ
13012011-04-07 Yao Qi <yao@codesourcery.com>
1302
1303 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1304 and TO.
1305 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1306 (arm_copy_svc): Remove parameters INSN and TO.
1307 (decode_svc_copro): Update caller.
1308 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1309 from function pointer `copy_svc_os'.
1310
8c8dba6d
YQ
13112011-04-07 Yao Qi <yao@codesourcery.com>
1312
1313 * arm-tdep.c (cleanup_branch): Set a correct return address in
1314 LR for ARM and Thumb.
1315
59d7bcaf
JK
13162011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1317
1318 Code cleanup.
1319 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1320 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1321 in the function comment, a new note on values compatibility.
1322 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1323 * symtab.h (SYMBOL_HASH_NEXT): New.
1324
e7db58ea
TJB
13252011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1326
1327 * ppc-linux-nat.c (check_condition): Add len output parameter.
1328 Set it based on the memory region referenced in the condition
1329 expression. Update all callers.
1330
9f743ef6
JK
13312011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1332
1333 Fix crash regression on systems featuring .gdb_index.
1334 * objfiles.c (free_objfile): Move the
1335 forget_cached_source_info_for_objfile call earlier. Comment it.
1336 Extend the comment for objfile_free_data.
1337
9182c5bc
JK
13382011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1339
1340 Fix regression of displaying the debug format.
1341 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1342 subfile.
1343
04bd08de
TT
13442011-04-04 Tom Tromey <tromey@redhat.com>
1345
1346 * cli/cli-interp.c (struct captured_execute_command_args):
1347 Remove.
1348 (do_captured_execute_command): Remove.
1349 (safe_execute_command): Use TRY_CATCH.
1350 * cli/cli-script.c (struct wrapped_read_command_file_args):
1351 Remove.
1352 (wrapped_read_command_file): Remove.
1353 (script_from_file): Use TRY_CATCH.
1354 * exceptions.c (catch_exception): Remove.
1355 * exceptions.h (catch_exception): Remove.
1356 (deprecated_throw_reason): Update comment.
1357 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1358 argument to 'context'.
1359 (mi_execute_command): Use TRY_CATCH.
1360 * remote.c (struct start_remote_args): Remove.
1361 (remote_start_remote): Update; change arguments.
1362 (remote_open_1): Use TRY_CATCH.
1363
58438ac1
TT
13642011-04-04 Tom Tromey <tromey@redhat.com>
1365
1366 * tracepoint.c (scope_info): Update.
1367 * symtab.c (decode_line_spec): Update.
1368 * python/python.c (gdbpy_decode_line): Update.
1369 * linespec.h (decode_line_1): Update.
1370 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1371 (decode_compound, find_method, symtab_from_filename)
1372 (decode_variable): Likewise.
1373 * cli/cli-cmds.c (edit_command): Update.
1374 (list_command): Update.
1375 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1376 argument.
1377 (create_breakpoint): Update.
1378 (until_break_command): Update.
1379 (addr_string_to_sals): Update.
1380 (decode_line_spec_1): Update.
1381
b78a6381
TT
13822011-04-04 Tom Tromey <tromey@redhat.com>
1383
1384 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1385 (do_captured_parse_breakpoint): Remove.
1386 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1387 Use TRY_CATCH directly.
1388
00174a86
TT
13892011-04-04 Tom Tromey <tromey@redhat.com>
1390
1391 * symtab.h (free_symtab): Remove.
1392 (forget_cached_source_info_for_objfile): Declare.
1393 * symmisc.c (free_symtab): Remove.
1394 * source.c (forget_cached_source_info_for_objfile): New function.
1395 (forget_cached_source_info): Use it.
1396 * objfiles.c (free_objfile): Simplify check before calling
1397 clear_current_source_symtab_and_line. Call
1398 forget_cached_source_info_for_objfile.
1399
30cc903e
TT
14002011-04-04 Tom Tromey <tromey@redhat.com>
1401
1402 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1403 (new_symtab): Don't set `free_code' on symtab.
1404 (new_linetable): Properly handle size==0.
1405 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1406 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1407 free_func.
1408 * jv-lang.c (struct jv_per_objfile_data): New.
1409 (jv_per_objfile_free): Free the data.
1410 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1411 (get_java_class_symtab): Set the `dict' field on the
1412 jv_per_objfile_data.
1413 (free_class_block): Remove.
1414 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1415 the symtab.
1416
0c2e6019
TT
14172011-04-04 Tom Tromey <tromey@redhat.com>
1418
1419 * symfile.c (reread_symbols): Update.
1420 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1421 field.
1422 * objfiles.c (allocate_objfile): Update.
1423 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1424 declare.
1425 * cp-namespace.c (lookup_symbol_file): Don't call
1426 lookup_possible_namespace_symbol.
1427 (initialize_namespace_symtab, get_possible_namespace_block)
1428 (free_namespace_block, cp_check_possible_namespace_symbols)
1429 (check_possible_namespace_symbols_loop)
1430 (check_one_possible_namespace_symbol)
1431 (lookup_possible_namespace_symbol): Remove.
1432 (maintenance_cplus_namespace): Replace with notice.
1433 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1434
554d387d
TT
14352011-04-04 Tom Tromey <tromey@redhat.com>
1436
1437 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1438 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1439 * symmisc.c (free_symtab): Don't free debugformat.
1440 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1441 (record_debugformat, record_producer): Document.
1442 * buildsym.c (end_symtab): Don't save debugformat and producer
1443 names on obstack.
1444 (end_symtab): Don't free debugformat and producer fields.
1445 (record_debugformat): Don't call xstrdup.
1446 (record_producer): Likewise.
1447
d4d4db8a
TT
14482011-04-04 Tom Tromey <tromey@redhat.com>
1449
1450 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1451 (source_line_charpos, source_charpos_line): Remove.
1452
8903c50d
TT
14532011-04-04 Tom Tromey <tromey@redhat.com>
1454
1455 * symtab.h (domain_enum): Split in two...
1456 (enum search_domain): New.
1457 (search_symbols): Update.
1458 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1459 redundant declarations.
1460 (search_symbols): Change 'kind' argument to search_domain.
1461 Update.
1462 (print_symbol_info): Likewise.
1463 (symtab_symbol_info): Likewise.
1464 * symfile.h (struct quick_symbol_functions)
1465 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1466 <expand_symtabs_matching>: Likewise.
1467 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1468 (expand_symtabs_matching_via_partial): Update.
1469 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1470 (dw2_expand_symtabs_for_function): Update.
1471 * block.h: Moved anonymous enum...
1472 * defs.h (enum block_enum): ... here. Now named.
1473
d9351f5f 14742011-04-03 Joel Brobecker <brobecker@adacore.com>
1475
1476 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1477 * version.in: Bump version to 7.3.50.20110403-cvs.
1478
d6e00af6
JB
14792011-04-03 Joel Brobecker <brobecker@adacore.com>
1480
1481 * NEWS: Create a new section for the next release branch.
1482 Rename the section of the current branch, now that it has
1483 been cut.
1484
2b9e5ea6
UW
14852011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1486
1487 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1488 for "fpscr" in target description.
1489
0cf03b49
JK
14902011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1491
1492 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1493 initialize it. Delay HASH initialization. Strip the part after open
1494 parenthesis for languages with qualifiers. Call do_cleanups.
1495
5d901a73
TT
14962011-04-01 Tom Tromey <tromey@redhat.com>
1497
1498 * utils.c (report_command_stats): Don't print `-' for negative
1499 number.
1500
b0dd7688
JB
15012011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1502
1503 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1504 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1505 typedefs.
1506
956a9fb9
JB
15072011-04-01 Joel Brobecker <brobecker@adacore.com>
1508
1509 * breakpoint.h (bpdisp_text): Add declaration.
1510 * breakpoint.c (bpdisp_text): Make non-static.
1511 * ada-lang.c: #include "mi/mi-common.h".
1512 (print_it_exception): Rewrite to improve GDB/MI output.
1513
3352110b
PA
15142011-04-01 Pedro Alves <pedro@codesourcery.com>
1515
1516 * arm-tdep.h (struct address_space): Add forward declaration.
1517
18819fa6
UW
15182011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1519
1520 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1521 * arm-tdep.c (arm_override_mode): New global.
1522 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1523 execution mode heuristics.
1524 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1525 second single-step breakpoint if needed, using
1526 arm_insert_single_step_breakpoint.
1527 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1528 ARM execution mode, do not call thumb_get_next_pc_raw.
1529 (arm_get_next_pc): Encode execution mode in return value. Call
1530 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1531 (arm_insert_single_step_breakpoint): New function.
1532 (arm_software_single_step): Call it.
1533 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1534 argument to return execution mode of sigreturn target.
1535 (arm_linux_syscall_next_pc): Use it.
1536 (arm_linux_copy_svc): Update call.
1537 (arm_linux_software_single_step): Call
1538 arm_insert_single_step_breakpoint.
1539
a6e293d1
JK
15402011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1541
1542 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1543 the comment.
1544
a4c8e806
TT
15452011-03-31 Tom Tromey <tromey@redhat.com>
1546
1547 * varobj.c (update_dynamic_varobj_children): Properly handle
1548 errors from iterator.
1549
df5c6c50
JK
15502011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1551
1552 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1553 struct linkage name twice.
1554
1dae3efc
TT
15552011-03-31 Tom Tromey <tromey@redhat.com>
1556
1557 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1558 missing ">" to message.
1559
f4f7ab05
TT
15602011-03-31 Tom Tromey <tromey@redhat.com>
1561
1562 * varobj.c (instantiate_pretty_printer): Remove duplicate
1563 'return'.
1564
fcf250e2
UW
15652011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1566
1567 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1568 if neither saved value nor register available (e.g. signal frame).
1569
ee6436e3
TJB
15702011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1571
1572 * macroexp.c (expand): Avoid uninitialized variable
1573 compiler warning.
1574
423f41a5
TJB
15752011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1576
1577 * breakpoint.c (break_range_command): Fix typo in comment.
1578
f1310107
TJB
15792011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1580 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1581
1582 Implement support for PowerPC BookE ranged breakpoints.
1583 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1584 * breakpoint.h (struct bp_target_info) <length>: New member
1585 variable.
1586 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1587 instead of struct breakpoint as argument, and also add ASPACE
1588 and BP_ADDR arguments. Update all callers.
1589 (struct breakpoint_ops) <print_one_detail>: New method.
1590 (struct breakpoint) <addr_string_range_end>: New member variable.
1591 * breakpoint.c (breakpoint_location_address_match): Add function
1592 prototype.
1593 (insert_bp_location): Set bl->target_info.length.
1594 (breakpoint_here_p): Call breakpoint_location_address_match.
1595 (moribund_breakpoint_here_p): Likewise.
1596 (regular_breakpoint_inserted_here_p): Likewise.
1597 (breakpoint_thread_match): Likewise.
1598 (bpstat_stop_status): Likewise.
1599 (bpstat_check_location): Move call to
1600 breakpoint_ops.breakpoint_hit to the top.
1601 (print_one_breakpoint_location): Call
1602 breakpoint_ops.print_one_detail if available.
1603 (breakpoint_address_match_range): New function.
1604 (breakpoint_location_address_match): Likewise.
1605 (breakpoint_locations_match): Compare the length field of the
1606 locations too.
1607 (hw_breakpoint_used_count): Count resources used by all locations
1608 in a breakpoint, and use breakpoint_ops.resources_needed if
1609 available.
1610 (breakpoint_hit_ranged_breakpoint): New function.
1611 (resources_needed_ranged_breakpoint): Likewise.
1612 (print_it_ranged_breakpoint): Likewise.
1613 (print_one_ranged_breakpoint): Likewise.
1614 (print_one_detail_ranged_breakpoint): Likewise.
1615 (print_mention_ranged_breakpoint): Likewise.
1616 (print_recreate_ranged_breakpoint): Likewise.
1617 (ranged_breakpoint_ops): New structure.
1618 (find_breakpoint_range_end): New function.
1619 (break_range_command): Likewise.
1620 (delete_breakpoint): Free addr_string_range_end.
1621 (update_breakpoint_locations): Add SALS_END argument. Update
1622 all callers. Calculate breakpoint length if a non-zero SALS_END
1623 is given. Call breakpoint_locations_match instead of
1624 breakpoint_address_match.
1625 (reset_breakpoint): Find SaL of the end of the range if B is a
1626 ranged breakpoint.
1627 (_initialize_breakpoint): Register break-range command.
1628 * defs.h (print_core_address): Add function prototype.
1629 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1630 function.
1631 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1632 (ppc_linux_remove_hw_breakpoint): Likewise.
1633 (_initialize_ppc_linux_nat): Initialize
1634 to_ranged_break_num_registers.
1635 * target.c (update_current_target): Add comment about
1636 to_ranged_break_num_registers.
1637 (target_ranged_break_num_registers): New function.
1638 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1639 New method.
1640 (target_ranged_break_num_registers): Add function prototype.
1641 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1642 * utils.c (print_core_address): ... here.
1643
02d20e4a
UW
16442011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1645
1646 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1647 variable compiler warning.
1648
ef23e705
TJB
16492011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1650
1651 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1652 code from here ...
1653 (re_set_breakpoint): ... to here ...
1654 (addr_string_to_sals): ... and here.
1655
311e6ab3
PM
16562011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1657
1658 * Makefile.in (SFILES): Add missing C sources.
1659 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1660 Add missing headers.
1661
acd1d99c
MF
16622011-03-29 Mike Frysinger <vapier@gentoo.org>
1663
1664 * .gitignore: New file.
1665
66ee2731
MF
16662011-03-29 Mike Frysinger <vapier@gentoo.org>
1667
1668 * NEWS: Mention new cfi device simulation.
1669
53832f31
TT
16702011-03-29 Tom Tromey <tromey@redhat.com>
1671
1672 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1673 otherwise anonymous types.
1674 (dwarf2_name): Likewise.
1675 * valops.c (value_struct_elt_for_reference): Refine artificial
1676 type logic. Call error if j==-1.
1677
09b58708
JK
16782011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1679
1680 Fix false GCC warning.
1681 * infcall.c (find_function_addr): Initialize funaddr.
1682
6023c606
PM
16832011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1684
1685 Fix mingw compilation with --enable-targets=all.
1686 * remote-mips.c (gdb_usleep.h): Include header.
1687 (mips_enter_debug): Use gdb_usleep instead of sleep.
1688
0e30163f
JK
16892011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1690
1691 Support resolution of STT_GNU_IFUNC via breakpoints.
1692 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1693 bp_gnu_ifunc_resolver_return.
1694 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1695 the loop. Support bp_gnu_ifunc_resolver and
1696 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1697 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1698 breakpoints.
1699 (bptype_string, print_one_breakpoint_location): Support
1700 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1701 (user_settable_breakpoint): Return true also for
1702 bp_gnu_ifunc_resolver.
1703 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1704 bp_gnu_ifunc_resolver_return.
1705 (set_breakpoint_location_function): New parameter explicit_loc,
1706 describe it. Call find_pc_partial_function_gnu_ifunc with new
1707 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1708 EXPLICIT_LOC is not set.
1709 (set_raw_breakpoint): Set EXPLICIT_LOC for
1710 set_breakpoint_location_function.
1711 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1712 set_breakpoint_location_function.
1713 (mention): Support bp_gnu_ifunc_resolver and
1714 bp_gnu_ifunc_resolver_return.
1715 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1716 set_breakpoint_location_function.
1717 (update_breakpoint_locations): Remove static.
1718 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1719 bp_gnu_ifunc_resolver_return.
1720 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1721 bp_gnu_ifunc_resolver_return.
1722 (update_breakpoint_locations): New declaration.
1723 * elfread.c: Include gdbthread.h and regcache.h.
1724 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1725 functions.
1726 (elf_gnu_ifunc_fns): Install them.
1727 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1728 (stub_gnu_ifunc_resolver_return_stop): New functions.
1729 (stub_gnu_ifunc_fns): Install them.
1730 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1731 and gnu_ifunc_resolver_return_stop.
1732 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1733
07be84bf
JK
17342011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1735
1736 STT_GNU_IFUNC reader implementation.
1737 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1738 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1739 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1740 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1741 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1742 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1743 (elf_gnu_ifunc_resolve_addr): New.
1744 (elf_symfile_read): Call elf_rel_plt_read.
1745 (elf_gnu_ifunc_fns): New.
1746 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1747 Install elf_gnu_ifunc_fns.
1748 * infcall.c (find_function_return_type): New function.
1749 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1750 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1751 (stub_gnu_ifunc_resolve_name): New functions.
1752 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1753 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1754 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1755
300f8e10
JK
17562011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 Code cleanup for later STT_GNU_IFUNC support.
1759 * infcall.c (find_function_addr): Remove variable code, use explicit
1760 dereferences for it. Move VALUE_TYPE initialization later.
1761
11c81455
JK
17622011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1763
1764 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1765 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1766 (clear_pc_function_cache): Clear it.
1767 (find_pc_partial_function): Rename to ...
1768 (find_pc_partial_function_gnu_ifunc): ... this function. New
1769 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1770 (find_pc_partial_function): New wrapper for this function.
1771 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1772
0875794a
JK
17732011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 GDB internal type support for STT_GNU_IFUNC.
1776 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1777 (elf_symtab_read): Set mst_text_gnu_ifunc for
1778 BSF_GNU_INDIRECT_FUNCTION.
1779 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1780 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1781 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1782 nodebug_got_plt_symbol.
1783 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1784 (TYPE_GNU_IFUNC): New.
1785 (struct main_type): New field flag_gnu_ifunc.
1786 (struct builtin_type): New field builtin_func_func.
1787 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1788 nodebug_got_plt_symbol.
1789 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1790 (in_gnu_ifunc_stub): New.
1791 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1792 mst_text_gnu_ifunc.
1793 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1794 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1795 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1796 in_gnu_ifunc_stub.
1797 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1798 * symtab.c (search_symbols): Likewise.
1799 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1800 and mst_slot_got_plt.
1801 (in_gnu_ifunc_stub): New declaration.
1802
d0fb5eae
JK
18032011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1804
1805 Support a ring of related breakpoints.
1806 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1807 other functions, add gdb_assert.
1808 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1809 watchpoint_del_at_next_stop.
1810 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1811 (bpstat_stop_status): Handle ring in related_breakpoint.
1812 (set_raw_breakpoint_without_location): Initialize ring in
1813 related_breakpoint.
1814 (delete_breakpoint): Handle ring in related_breakpoint, use
1815 watchpoint_del_at_next_stop.
1816 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1817
9cded63f
TT
18182011-03-28 Tom Tromey <tromey@redhat.com>
1819
1820 PR symtab/12441:
1821 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1822 with `language_minimal'.
1823
467d42c4
UW
18242011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1825
1826 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1827 instead of checking for STT_ARM_TFUNC symbol type.
1828
62853458
TT
18292011-03-25 Tom Tromey <tromey@redhat.com>
1830
1831 * linespec.c (symbol_found): Restore line-based result for
1832 non-LOC_LABEL symbols.
1833
a7417d46
KT
18342011-03-25 Kai Tietz <ktietz@redhat.com>
1835
1836 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1837 instead of strcmp for comparison.
1838 (tui_source_is_displayed): Likewise.
1839 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1840
55f1336d
TT
18412011-03-24 Mark Wielaard <mjw@redhat.com>
1842
f33edef8
PP
1843 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1844 complaint.
1845 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1846 (find_partial_die_in_comp_unit): Likewise in comment.
1847 (read_attribute_value): Likewise.
1848 (lookup_die_type): Likewise.
1849 (dwarf_form_name): Likewise.
1850 (dump_die_shallow): Likewise.
1851 (follow_die_ref_or_sig): Likewise.
55f1336d 1852
9ef07c8c
TT
18532011-03-24 Tom Tromey <tromey@redhat.com>
1854
1855 PR breakpoints/11816:
1856 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1857 (decode_compound): Update.
1858 (find_function_symbol): New function.
1859 (decode_dollar): Update.
1860 (decode_label): Add 'function_symbol' parameter. Handle
1861 function-relative labels.
1862 (decode_variable): Update.
1863 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1864 not its line. Set `special_display' and canonical name for
1865 labels.
1866
56435ebe
TT
18672011-03-24 Tom Tromey <tromey@redhat.com>
1868
1869 * linespec.h (struct linespec_result) <special_display>: New
1870 field.
1871 * breakpoint.h (struct breakpoint) <display_canonical>: New
1872 field.
1873 * breakpoint.c (print_breakpoint_location): Respect
1874 display_canonical.
1875 (create_breakpoint_sal): Add 'display_canonical' parameter.
1876 (create_breakpoints_sal): Update.
1877 (create_breakpoint): Update.
1878
7efd8fc2
TT
18792011-03-24 Tom Tromey <tromey@redhat.com>
1880
1881 * symtab.c (decode_line_spec): Update.
1882 * linespec.c (build_canonical_line_spec): Change type of
1883 'canonical'.
1884 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1885 (find_method, decode_all_digits, decode_dollar, decode_label)
1886 (symbol_found): Likewise.
1887 (init_linespec_result): New function.
1888 * breakpoint.c (struct captured_parse_breakpoint_args)
1889 <canonical_p>: New field, replaces addr_string_p.
1890 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1891 'addr_string'.
1892 (parse_breakpoint_sals): Likewise.
1893 (do_captured_parse_breakpoint): Update.
1894 (create_breakpoint): Use struct linespec_result.
1895 (until_break_command): Update.
1896 (breakpoint_re_set_one): Update.
1897 (decode_line_spec_1): Update.
1898 * linespec.h (struct linespec_result): New.
1899 (init_linespec_result): Declare.
1900
788c8b10
PA
19012011-03-23 Pedro Alves <pedro@codesourcery.com>
1902
1903 * regcache.c (regcache_raw_read): If the target didn't supply a
1904 given raw register, mark it as unavailable.
1905
0ba1096a
KT
19062011-03-23 Kai Tietz <ktietz@redhat.com>
1907
1908 * breakpoint.c (clear_command): Use filename_cmp
1909 instead of strcmp for comparison.
1910 * buildsym.c (watch_main_source_file_lossage): Likewise.
1911 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1912 checking just for slash.
1913 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1914 strrchr and filename_cmp instead of strcmp for filenames.
1915 (add_old_header_file): Use filename_cmp
1916 instead of strcmp for comparison.
1917 * exec.c (exec_set_section_address): Likewise.
1918 * macrotab.c (macro_lookup_inclusion): Likewise.
1919 (macro_lookup_inclusion): Likewise.
1920 * elfread.c (_initialize_elfread): Likewise.
1921 (elfstab_offset_sections): Likewise.
1922 (elfstab_offset_sections): Use lbasename instead of
1923 strrchr.
1924 * mdebugread.c (parse_partial_symbols): Likewise.
1925 (arse_partial_symbols): Use filename_(n)cmp instead of
1926 str(n)cmp for comparison.
1927 * minsyms.c (lookup_minimal_symbol): Likewise.
1928 * psymtab.c (read_psymtabs_with_filename): Likewise.
1929 * solib.c (solib_read_symbols): Likewise.
1930 (reload_shared_libraries_1): Likewise.
1931 * symmisc.c (maintenance_print_symbols): Likewise.
1932 * symfile.c (separate_debug_file_exists): Likewise.
1933 (reread_symbols): Likewise.
1934 (find_separate_debug_file_by_debuglink): Likewise.
1935 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1936 * source.c (add_path): Likewise.
1937 * symtab.c (filename_seen): Likewise.
1938 (file_matches): Likewise.
1939 (print_symbol_info): Likewise.
1940 (maybe_add_partial_symtab_filename): Likewise.
1941 (make_source_files_completion_list): Likewise.
1942 * xml-syscall.c (init_sysinfo): Likewise.
1943 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1944 IS_DIR_SEPARATOR for checking for trailing path separator.
1945
dd90784c
JK
19462011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1947
1948 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1949 label abort_expression.
1950 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1951 DWARF_VALUE_OPTIMIZED_OUT.
1952
3167638f
JK
19532011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 Code cleanup.
1956 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1957 to linkage_name. Invert its value. Update the function comment.
1958 (c_type_print_varspec_suffix): Invert it at the caller.
1959 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1960
ce406537
PA
19612011-03-22 Pedro Alves <pedro@codesourcery.com>
1962
1963 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1964 errors when reading the `stop_pc'.
1965 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1966 get_frame_pc.
1967
da5d4055
PM
19682011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1969
1970 * NEWS: Document gdb.Write stream keyword.
1971
29e0eb9c
JK
19722011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1973
1974 Revert:
1975 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1976 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1977 (dwarf2_add_field): Fix new_field->accessibility for
1978 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1979
05775840
PM
19802011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1981
f33edef8 1982 PR python/12183
05775840
PM
1983
1984 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1985 other error classes. Do not print stack trace.
1986
a0cb7835
JK
19872011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1988
1989 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1990 (dwarf2_add_field): Fix new_field->accessibility for
1991 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1992
d19f7eee
UW
19932011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1994
1995 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1996 encountering a load via a non-SP register.
1997
4a2fbb50
UW
19982011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1999
2000 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2001 field in returned unwinder.
2002
3489610d
JB
20032012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2006
8c1a34e7
JB
20072012-03-21 Joel Brobecker <brobecker@adacore.com>
2008
2009 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2010 of xmalloc.
2011
8fbca658
PA
20122012-03-18 Pedro Alves <pedro@codesourcery.com>
2013
2014 * frame.c (frame_unwind_register): Throw an error if unwinding the
2015 register failed.
2016 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2017 an unwind stop reason.
2018 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2019 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2020 UNWIND_UNAVAILABLE>: New.
2021 * inline-frame.c (inline_frame_unwind): Install
2022 default_frame_unwind_stop_reason.
2023 * frame-unwind.c: Include "exceptions.h".
2024 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2025 (default_frame_unwind_stop_reason): New.
2026 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2027 (default_frame_unwind_stop_reason): Declare.
2028 (struct frame_unwind) <stop_reason>: New function pointer.
2029
2030 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2031 * dwarf2-frame.c: Include exceptions.h.
2032 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2033 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2034 computing the CFA. If such an error was thrown, set
2035 unavailable_retaddr.
2036 (dwarf2_frame_unwind_stop_reason): New.
2037 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2038 unavailable.
2039 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2040 (dwarf2_signal_frame_unwind): Ditto.
2041
2042 * amd64-tdep.c: Include "exceptions.h".
2043 (struct amd64_frame_cache): New field "base_p".
2044 (amd64_init_frame_cache): Clear it.
2045 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2046 Avoid reading registers with functions that throw if the register
2047 is not necessary to compute the frame base.
2048 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2049 swallowing NOT_AVAILABLE_ERROR.
2050 (amd64_frame_unwind_stop_reason): New.
2051 (amd64_frame_this_id): Don't build a frame id if the frame base
2052 was unavailable.
2053 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2054 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2055 base_p if the frame base was computable.
2056 (amd64_sigtramp_frame_unwind_stop_reason): New.
2057 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2058 frame base was unavailable.
2059 (amd64_sigtramp_frame_unwind): Install
2060 amd64_sigtramp_frame_unwind_stop_reason.
2061 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2062 base_p if the frame base was computable.
2063 (amd64_epilogue_frame_unwind_stop_reason): New.
2064 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2065 frame base was unavailable.
2066 (amd64_epilogue_frame_unwind): Install
2067 amd64_epilogue_frame_unwind_stop_reason.
2068 * i386-tdep.c: Include "exceptions.h".
2069 (struct i386_frame_cache): New field "base_p".
2070 (i386_init_frame_cache): Clear it.
2071 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2072 Avoid reading registers with functions that throw if the register
2073 is not necessary to compute the frame base.
2074 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2075 swallowing NOT_AVAILABLE_ERROR.
2076 (i386_frame_unwind_stop_reason): New.
2077 (i386_frame_this_id): Don't build a frame id if the frame base was
2078 unavailable.
2079 (i386_frame_prev_register): Handle unavailable SP.
2080 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2081 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2082 base_p if the frame base was computable.
2083 (i386_epilogue_frame_unwind_stop_reason): New.
2084 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2085 base was unavailable.
2086 (i386_epilogue_frame_unwind): Install
2087 i386_epilogue_frame_unwind_stop_reason.
2088 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2089 base_p if the frame base was computable.
2090 (i386_sigtramp_frame_unwind_stop_reason): New.
2091 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2092 base was unavailable.
2093 (i386_sigtramp_frame_unwind): Install
2094 i386_sigtramp_frame_unwind_stop_reason.
2095 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2096 type's size, not the register's.
2097 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2098
2099 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2100 default_frame_unwind_stop_reason.
2101 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2102 (alpha_heuristic_frame_unwind): Ditto.
2103 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2104 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2105 * avr-tdep.c (avr_frame_unwind): Ditto.
2106 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2107 Ditto.
2108 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2109 * frv-tdep.c (frv_frame_unwind): Ditto.
2110 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2111 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2112 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2113 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2114 (hppa_stub_frame_unwind): Ditto.
2115 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2116 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2117 (ia64_libunwind_frame_unwind)
2118 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2119 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2120 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2121 * m32c-tdep.c (m32c_unwind): Ditto.
2122 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2123 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2124 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2125 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2126 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2127 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2128 * mep-tdep.c (mep_frame_unwind): Ditto.
2129 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2130 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2131 (mips_stub_frame_unwind): Ditto.
2132 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2133 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2134 * mt-tdep.c (mt_frame_unwind): Ditto.
2135 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2136 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2137 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2138 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2139 (s390_sigtramp_frame_unwind): Ditto.
2140 * score-tdep.c (score_prologue_unwind): Ditto.
2141 * sh-tdep.c (sh_frame_unwind): Ditto.
2142 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2143 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2144 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2145 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2146 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2147 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2148 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2149 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2150 (sparc64obsd_trapframe_unwind): Ditto.
2151 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2152 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2153 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2154 * v850-tdep.c (v850_frame_unwind): Ditto.
2155 * vax-tdep.c (vax_frame_unwind): Ditto.
2156 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2157 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2158 * xtensa-tdep.c (xtensa_unwind): Ditto.
2159
f23d1b92
PA
21602011-03-18 Pedro Alves <pedro@codesourcery.com>
2161
2162 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2163 there's always a frame. Use get_frame_pc_if_available instead of
2164 get_frame_pc, and if there's no PC available, don't look up a
2165 symtab.
2166
1d4f5741
PA
21672011-03-18 Pedro Alves <pedro@codesourcery.com>
2168
2169 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2170 unavailable PC.
2171
dba09041
PA
21722011-03-18 Pedro Alves <pedro@codesourcery.com>
2173
2174 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2175 gracefully.
2176
9a26e44c
PA
21772011-03-18 Pedro Alves <pedro@codesourcery.com>
2178
2179 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2180 * frame.c (frame_unwind_caller_pc_if_available): New.
2181 * stack.c (frame_info): Handle unavailable PC.
2182
21832011-03-18 Pedro Alves <pedro@codesourcery.com>
2184
2185 * frame.c (frame_unwind_pc): Rename to ...
2186 (frame_unwind_pc_if_available): ... this. New `pc' output
2187 parameter. Change return type to int. Gracefully handle
2188 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2189 happened, or 1 otherwise.
2190 (frame_unwind_pc): Reimplement on top of
2191 frame_unwind_pc_if_available.
2192 (get_frame_func): Rename to ...
2193 (get_frame_func_if_available): New `pc' output parameter. Change
2194 return type to int. Gracefully handle the PC not being available.
2195 (get_frame_func): Reimplement on top of
2196 get_frame_func_if_available.
2197 (select_frame): Handle the PC being unavailable.
2198 (get_prev_frame): Handle the PC being unavailable.
2199 (get_frame_pc_if_available): New.
2200 (get_frame_address_in_block_if_available): New.
2201 (find_frame_sal): Handle the frame PC not being available.
2202 * frame.h (get_frame_pc_if_available): Declare.
2203 (get_frame_address_in_block_if_available): Declare.
2204 (get_frame_func_if_available): Declare.
2205 * stack.c (print_frame_info): Handle the PC being unavailable.
2206 (find_frame_funname): Ditto.
2207 (print_frame): Handle the PC being unavailable.
2208 (get_frame_language): Ditto.
2209 * blockframe.c (get_frame_block): Ditto.
2210 * macroscope.c (default_macro_scope): Ditto.
2211 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2212
22132011-03-18 Pedro Alves <pedro@codesourcery.com>
2214
2215 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2216 NOT_AVAILABLE_ERROR when evaluating the location expression.
2217
22182011-03-18 Pedro Alves <pedro@codesourcery.com>
2219
2220 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2221 returning that the register piece is unavailable/optimized out.
2222 (write_pieced_value): Handle get_frame_register_bytes returning
2223 that the register piece is unavailable/optimized out when doing a
2224 read-modify write of a bitfield.
2225 * findvar.c (value_from_register): Handle get_frame_register_bytes
2226 returning that the register piece is unavailable/optimized out.
2227 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2228 and `unavailablep'. Throw error on bad debug info. Use
2229 frame_register instead of frame_register_read, to fill in the new
2230 arguments.
2231 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2232 and `unavailablep'.
2233 * valops.c: (value_assign): Adjust, and handle
2234 get_frame_register_bytes failing.
2235 * spu-tdep.c: Include exceptions.h.
2236 (spu_software_single_step): Adjust, and handle
2237 get_frame_register_bytes failing.
2238 (spu_get_longjmp_target): Ditto.
2239 * gdbarch.sh (register_to_value): Change to return int. New
2240 parameters `optimizedp' and `unavailablep'.
2241 * gdbarch.h, gdbarch.c: Regenerate.
2242 * i386-tdep.c (i386_register_to_value): Adjust to new
2243 gdbarch_register_to_value interface.
2244 * i387-tdep.c (i387_register_to_value): Ditto.
2245 * i387-tdep.h (i387_register_to_value): Ditto.
2246 * alpha-tdep.c (alpha_register_to_value): Ditto.
2247 * ia64-tdep.c (ia64_register_to_value): Ditto.
2248 * m68k-tdep.c (m68k_register_to_value): Ditto.
2249 * mips-tdep.c (mips_register_to_value): Ditto.
2250 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2251
0fdb4f18
PA
22522011-03-18 Pedro Alves <pedro@codesourcery.com>
2253
2254 * findvar.c (value_of_register): Mark the value as unavailable, if
2255 the register is unavailable.
2256 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2257 (frame_register): New `unavailablep' parameter.
2258 (frame_register_read): Update comment.
2259 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2260 Set it if the register is unavailable. If the register is
2261 unavailable, clear the output buffer.
2262 (frame_register): New `unavailablep' parameter. Pass it down.
2263 (frame_unwind_register): Adjust.
2264 (put_frame_register): Adjust.
2265 (frame_register_read): Adjust. Also return false if the register
2266 is not available.
2267 (frame_register_unwind_location): Adjust.
2268 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2269 is unavailable, mark the value accordingly.
2270 * stack.c (frame_info): Handle unavailable registers.
2271
e69aa73e
PA
22722011-03-18 Pedro Alves <pedro@codesourcery.com>
2273
2274 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2275 simplify, using regcache_cooked_read.
2276
05d1431c
PA
22772011-03-18 Pedro Alves <pedro@codesourcery.com>
2278
2279 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2280 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2281 (regcache_raw_read_unsigned, regcache_raw_read_part)
2282 (regcache_cooked_read, regcache_cooked_read_signed)
2283 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2284 (regcache_cooked_read_ftype): Change return to enum
2285 register_status.
2286 * regcache.c: Include exceptions.h
2287 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2288 (do_cooked_read): Change return to enum register_status. Always
2289 forward to regcache_cooked_read.
2290 (regcache_raw_read): Change return to enum register_status. If
2291 the register is not REG_VALID, memset the buffer. Return the
2292 register's status.
2293 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2294 return the register's status.
2295 (regcache_raw_read_unsigned): Ditto.
2296 (regcache_cooked_read): Change return to enum register_status.
2297 Assert that with read-only regcaches, the register's status must
2298 be known. If the regcache is read-only, and the register is not
2299 REG_VALID, memset the buffer. Return the register's status.
2300 (regcache_cooked_read_signed): Change return to enum
2301 register_status. Handle non-REG_VALID registers and return the
2302 register's status.
2303 (regcache_cooked_read_unsigned): Change return to enum
2304 register_status. Handle non-REG_VALID registers and return the
2305 register's status.
2306 (regcache_xfer_part, regcache_raw_read_part)
2307 (regcache_cooked_read_part): Change return to enum
2308 register_status. Return the register's status.
2309 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2310 unavailable.
2311 (regcache_dump): Handle unavailable cooked registers.
2312 * frame.c (do_frame_register_read): Adjust interface to match
2313 regcache_cooked_read_ftype.
2314 * gdbarch.sh (pseudo_register_read): Change return to enum
2315 register_status.
2316 * gdbarch.h, gdbarch.c: Regenerate.
2317
2318 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2319 register_status.
2320 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2321 register_status. If reading a raw register indicates the raw
2322 register is not valid, return the raw register's status,
2323 otherwise, return REG_VALID.
2324 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2325 register_status. Handle non-REG_VALID raw registers and return
2326 the register's status.
2327 * arm-tdep.c (arm_neon_quad_read)
2328 (arm_pseudo_read): Change return to enum register_status. Handle
2329 non-REG_VALID raw registers and return the register's status.
2330 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2331 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2332 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2333 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2334 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2335 register_status.
2336 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2337 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2338 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2339 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2340 (m32c_pseudo_register_read): Change return to enum
2341 register_status. Adjust.
2342 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2343 enum register_status. Return the register's status.
2344 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2345 register_status. Return the register's status.
2346 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2347 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2348 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2349 * rs6000-tdep.c (move_ev_register_func): New typedef.
2350 (e500_move_ev_register): Use it. Change return to enum
2351 register_status. Return the register's status.
2352 (do_regcache_raw_read): New function.
2353 (do_regcache_raw_write): New function.
2354 (e500_pseudo_register_read): Change return to enum
2355 register_status. Return the register's status. Use
2356 do_regcache_raw_read.
2357 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2358 (dfp_pseudo_register_read): Change return to enum register_status.
2359 Return the register's status.
2360 (vsx_pseudo_register_read): Ditto.
2361 (efpr_pseudo_register_read): Ditto.
2362 (rs6000_pseudo_register_read): Ditto.
2363 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2364 register_status. Return the register's status.
2365 * sh64-tdep.c (pseudo_register_read_portions): New function.
2366 (sh64_pseudo_register_read): Change return to enum
2367 register_status. Use pseudo_register_read_portions. Return the
2368 register's status.
2369 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2370 register_status. Return the register's status.
2371 * sh-tdep.c (pseudo_register_read_portions): New function.
2372 (sh_pseudo_register_read): Change return to enum register_status.
2373 Use pseudo_register_read_portions. Return the register's status.
2374 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2375 enum register_status. Return the register's status.
2376 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2377 * spu-tdep.c (spu_pseudo_register_read_spu)
2378 (spu_pseudo_register_read): Ditto.
2379 * xtensa-tdep.c (xtensa_register_read_masked)
2380 (xtensa_pseudo_register_read): Ditto.
2381 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2382
e10abd8f
PM
23832011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2384
2385 * python/py-value.c (valpy_getitem): Fix formatting of error function
2386 call.
2387
7ea6d463
PM
23882011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2389
2390 ARI fixes: Add missing internationalization markups throughout
2391 C source files.
2392 * darwin-nat-info.c: Ditto.
2393 * record.c: Ditto.
2394 * remote.c: Ditto.
2395 * mi/mi-main.c: Ditto.
2396
001083c6
PM
23972011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2398
2399 ARI fixes: Add missing internationalization markups throughout
2400 yacc files.
2401 * c-exp.y: Ditto.
2402 * cp-name-parser.y: Ditto.
2403 * f-exp.y: Ditto.
2404 * m2-exp.y: Ditto.
2405 * objc-exp.y: Ditto.
2406 * p-exp.y: Ditto.
2407
4f1cdeec
PM
24082011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2409
2410 ARI fixes: Messages should have no trailing new lines.
2411 * darwin-nat.c (mach_check_error): Remove trailing new line from
2412 warning function call message.
2413 * record.c (bfdcore_read): Idem for error call.
2414
28e698f1
PM
24152011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2416
2417 * common/signals.c (target_signal_from_host): Add _ markup to error
2418 function call message.
2419 (target_signal_to_host): Add _ markup and remove trailing new line
2420 from warning call message.
2421 (target_signal_from_command): Add _ markup to error function call
2422 message.
2423
99c3dc11
PM
24242011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2425
f33edef8 2426 PR python/12149
99c3dc11
PM
2427
2428 * python/python.c (gdbpy_write): Accept a stream argument and
2429 operate to the appropriate stream.
2430 (gdbpy_flush): Likewise.
2431 (_initialize_python): Add stream constants.
2432 (finish_python_initialization): Add GdbOutputErrorFile class.
2433
c20800be
KY
24342011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2435
2436 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2437
f4a1794a
KY
24382011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2439
2440 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
2441 to store_signed_integer. Add debug message when relocating CALL
2442 instructions. Fix formatting of debug message.
2443 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 2444
d4862372
JB
24452011-03-17 Joel Brobecker <brobecker@gnat.com>
2446
2447 * target.h (struct target_ops): Remove to_lookup_symbol field.
2448 (target_lookup_symbol): Delete macro.
2449 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2450 (update_current_target, setup_target_debug): Remove handling
2451 of to_lookup_symbol target_ops field.
2452 * ada-tasks.c (get_known_tasks_addr): Remove use of
2453 target_lookup_symbol.
2454 * coffread.c (coff_symtab_read): Likewise.
2455 * dbxread.c (read_dbx_symtab): Ditto.
2456
d645e32e
JB
24572011-03-17 Joel Brobecker <brobecker@gnat.com>
2458
2459 PR gdb/12116:
2460 * configure.ac: Add getthrds declaration check.
2461 * configure, config.in: Regenerate.
2462 * aix-thread.c (getthrds): Declare only if not already declared
2463 in procinfo.h. More declaration out of get_signaled_thread to
2464 global scope.
2465
29703da4
PM
24662011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2467
2468 * python/py-symtab.c: Populate symtab_object_methods,
2469 sal_object_methods.
2470 (stpy_is_valid): New function.
2471 (salpy_is_valid): Ditto.
2472 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2473 (sympy_is_valid): New function.
2474 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2475 (objfpy_is_valid): New function.
2476 * python/py-inferior.c: Populate inferior_object_methods.
2477 (infpy_is_valid): New function.
2478 * python/py-infthread.c: Populate thread_object_methods.
2479 (thpy_is_valid): New function.
2480 * python/py-block.c: Declare block_object_methods. Populate. Declare
2481 block_iterator_object_methods. Populate.
2482 (blpy_is_valid): New function.
2483 (blpy_iter_is_valid): Ditto.
2484
c00f8484
KS
24852011-03-16 Keith Seitz <keiths@redhat.com>
2486
2487 * linespec.c (find_methods): Canonicalize NAME before looking
2488 up the symbol.
2489 (name_end): New function.
2490 (keep_name_info): New function.
2491 (decode_line_1): Use keep_name_info.
2492 (decode_compound): Likewise.
2493 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2494 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2495
2496 PR c++/12273
2497 * linespec.c (locate_first_half): Keep overload information, too.
2498 (decode_compound): Use a string to represent break characters
2499 to escape the loop.
2500 If P points to a break character, do not increment it.
2501 For C++ and Java, keep overload information and relevant keywords.
2502 If we cannot find a symbol, search the minimal symbols.
2503
2504 PR c++/11734
2505 * linespec.c (decode_compound): Rename SAVED_ARG to
2506 THE_REAL_SAVED_ARG.
2507 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2508 single-quotes.
2509 Pass a valid block to lookup_symbol.
2510 (lookup_prefix_sym): Likewise.
2511 (find_method): Construct search name based on SYM_CLASS instead
2512 of SAVED_ARG.
2513 * psymtab.c (lookup_partial_symbol): Add language parameter.
2514 (lookup_symbol_aux_psymtabs): Likewise.
2515 Don't assume that the psymtab we found was the right one. Search
2516 for the desired symbol in the symtab to be certain.
2517 (psymtab_search_name): New function.
2518 (lookup_partial_symbol): Use psymtab_search_name.
2519 Add language parameter.
2520 (read_symtabs_for_function): Add language parameter and pass to
2521 lookup_partial_symbol.
2522 (find_symbol_file_from_partial): Likewise.
2523
c91513d8
PP
25242011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2525
2526 PR gdb/12528
2527 * dwarf2read.c (noop_record_line): New function.
2528 (dwarf_decode_lines): Ignore line tables for GCd functions.
2529
b37520b6
PM
25302011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2531
2532 Fix ARI warnings about new lines at the end of messages, which
2533 are unneeded as there is a new line added at the end of the message
2534 automatically.
2535 * darwin-nat.c (darwin_stop_inferior): Ditto.
2536 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2537 * dfp.c (decimal_to_number): Ditto.
2538 * exec.c (print_section_info): Ditto.
2539 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2540 * osdata.c (get_osdata): Ditto.
2541 * record.c (bfdcore_write): Ditto.
2542 * remote-mips.c (mips_readchar): Ditto.
2543 * remote.c (read_ptid): Ditto.
2544 * ser-mingw.c (ser_windows_raw): Ditto.
2545 * tracepoint.c (add_local_symbols): Ditto.
2546 * windows-nat.c (fake_create_process): Ditto.
2547
b08ee6a2
TT
25482011-03-16 Tom Tromey <tromey@redhat.com>
2549
2550 * tracepoint.c (stop_tracing): Don't declare.
2551 * event-top.c (after_char_processing_hook): Add `(void)'.
2552
9a6f1302
PM
25532011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2554
2555 * NEWS: Add Parameter sub-classing description.
2556
7ceb86b1
KT
25572011-03-16 Kai Tietz <ktietz@redhat.com>
2558
2559 * MAINTAINERS: Update my e-mail address.
2560
efeff6cf
AT
25612011-03-15 Andreas Tobler <andreast@fgznet.ch>
2562
2563 * MAINTAINERS: Add myself for write after approval privileges.
2564
681c238c
MS
25652011-03-15 Michael Snyder <msnyder@vmware.com>
2566
f3df5b08
MS
2567 * frame.c (find_frame_sal): Assert sym is not null.
2568
13f6513c
MS
2569 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2570
50412521
MS
2571 * objc-lang.c (selectors_info): Check strchr for null result.
2572
681c238c
MS
2573 * stabsread.c (define_symbol): Guard against bad stabstring input.
2574
6ced1581
PM
25752011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2576
2577 Remove trailing spaces and tabulations from pascal language
2578 support sources.
2579 p-exp.y: Ditto.
2580 p-lang.c: Ditto.
2581 p-lang.h: Ditto.
2582 p-valprint.c: Ditto.
2583
9373cf26
JK
25842011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2587 than LOW. Comment it.
2588 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2589 HIGHPC not strictly higher than LOWPC.
2590
9a1edae6
PM
25912011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2592
2593 Fix formatting of function declarations returning a pointer in
2594 previous commit.
2595 * varobj.c (varobj_add_child): Ditto.
2596 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2597 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2598
24e9cda0
UW
25992011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2600
2601 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2602 for the "generic" vector ABI used with GCC 4.3 and later.
2603 (ppc64_sysv_abi_return_value): Likewise.
2604
26052011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
2606
2607 * infcall.c (call_function_by_hand): Function return value is
2608 always a non_lval, even when using struct_return.
2609
c9174737
PA
26102011-03-15 Pedro Alves <pedro@codesourcery.com>
2611
2612 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2613 (map_display_numbers): New.
2614 (do_delete_display): New.
2615 (undisplay_command): Use map_display_numbers.
2616 (do_enable_disable_display): New.
2617 (enable_disable_display_command): New function.
2618 (enable_display): Delete.
2619 (enable_display_command): New.
2620 (disable_display_command): Reimplement.
2621 (_initialize_printcmd): Adjust "enable display" command to use
2622 `enable_display_command' as callback.
2623
350c6c65
PM
26242011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2625
2626 * NEWS: Add Python breakpoint 'stop' operation.
2627
824446ad
PM
26282011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2629
2630 * NEWS: Delete duplicate entry. Fix typo.
2631
2021ad3a
PM
26322011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2633
2634 Fix ARI warning about function names in first column.
2635 Put prototype declaration on same line as return type.
2636 * objc-exp.y: Ditto.
2637 * p-exp.y: Ditto.
2638 * python/py-stopevent.h: Ditto.
2639 For long function names, split parameters to
2640 allow function name on same line as return type.
2641 * solib-pa64.c: Ditto.
2642 * varobj.c: Ditto.
2643 * varobj.h: Ditto.
2644 For long function declaration, use single line.
2645 * hppa-tdep.h: Ditto.
2646 * inferior.h: Ditto.
2647
7371cf6d
PM
26482011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2649
2650 * python/python.h: Declare gdbpy_should_stop and
2651 gdbpy_breakpoint_has_py_cond.
2652 * python/python.c: Add python.h to includes. Remove python.h from
2653 HAVE_PYTHON definition
2654 (gdbpy_should_stop): New dummy function.
2655 (gdbpy_breakpoint_has_py_cond): New dummy function.
2656 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2657 sub-classing capabilities.
2658 (gdbpy_should_stop): New function.
2659 (gdbpy_breakpoint_has_py_cond): New function.
2660 (local_setattro): New function.
2661 * breakpoint.c (condition_command): Add check for Python 'stop'
2662 operation.
2663 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2664 operation function as part of stop/continue tests.
2665
37b50a69
TT
26662011-03-14 Tom Tromey <tromey@redhat.com>
2667
2668 PR gdb/12576:
2669 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2670 (needs_frame_dwarf_call): Likewise.
2671
eeae04df
PM
26722011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2673
2674 Fix ARI warning about functions without parameters that do not
2675 use (void).
2676 * breakpoint.c (all_tracepoints): Replace () by (void).
2677 * f-exp.y (match_string_literal): Ditto.
2678 (yylex): Ditto.
2679 * m2-exp.y (yylex): Ditto.
2680 * mep-tdep.c (current_me_module): Ditto.
2681 (current_options): Ditto.
2682 (current_cop_data_bus_width): Ditto.
2683 (current_cr_names): Ditto.
2684 (current_cr_is_float): Ditto.
2685 (current_ccr_names): Ditto.
2686 * objc-exp.y (yylex): Ditto.
2687 * p-exp.y (yylex): Ditto.
2688 * remote.c (send_interrupt_sequence): Ditto.
2689 * tracepoint.c (current_trace_status): Ditto.
2690 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2691 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2692
6dc3565d
MS
26932011-03-11 Michael Snyder <msnyder@vmware.com>
2694
1427fe5e
MS
2695 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2696 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2697 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2698 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2699 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2700
60bc018f
MS
2701 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2702 (delete_async_event_handler): Ditto.
2703
f3be5b64
MS
2704 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2705
4c2d5724
MS
2706 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2707
6dc3565d
MS
2708 * top.c (set_verbose): Assert showcmd was found.
2709
4e6ca6d5
MG
27102011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2711
2712 * xtensa-tdep.c (warning_once): Correct style issues.
2713
815a83e4
YQ
27142011-03-11 Yao Qi <yao@codesourcery.com>
2715
2716 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2717
f2eb0bc8
AS
27182011-03-11 Andreas Schwab <schwab@redhat.com>
2719
2720 * common/aclocal.m4: Remove.
2721
b801de47
MG
27222011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2723
2724 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2725 (xtensa_write_register, xtensa_read_register): Likewise.
2726 (xtensa_hextochar): Removed.
2727 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2728
dbab50de
MG
27292011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2730
2731 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 2732 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
2733 (xtensa_alloc_frame_cache): Add initialization for new fields.
2734 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2735 (warning_once): New function.
2736 (xtensa_insn_kind): New item c0opc_and.
2737 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
2738 (call0_track_op): Change arguments. New local variable litbase.
2739 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2740 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2741 in the prologue.
dbab50de 2742 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 2743 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
2744 Add the variety of updates to handle extended prologues, which now can
2745 conduct dynamic stack adjustments.
2746 (call0_frame_cache): Likewise.
2747 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2748 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2749
b2c04452
MS
27502011-03-10 Michael Snyder <msnyder@vmware.com>
2751
f8f67713
MS
2752 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2753 (cmd_qtframe): Ditto.
2754 (cmd_qtbuffer): Ditto.
2755 (cmd_bigqtbuffer): Ditto.
2756
197f0a60
TT
27572011-03-10 Tom Tromey <tromey@redhat.com>
2758
2759 * tracepoint.c (trace_actions_command): Update.
2760 * thread.c (thread_apply_command): Update.
2761 * reverse.c (delete_bookmark_command): Update.
2762 (bookmarks_info): Update.
2763 * printcmd.c (undisplay_command): Update.
2764 * memattr.c (mem_enable_command): Update.
2765 (mem_disable_command): Update.
2766 (mem_delete_command): Update.
2767 * inferior.c (detach_inferior_command): Update.
2768 (kill_inferior_command): Update.
2769 (remove_inferior_command): Update.
2770 * cli/cli-utils.h (struct get_number_or_range_state): New.
2771 (init_number_or_range): Declare.
2772 (get_number_or_range): Update.
2773 * cli/cli-utils.c (init_number_or_range): New function.
2774 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2775 static variables.
2776 (number_is_in_list): Update.
2777 * breakpoint.h (get_tracepoint_by_number): Update.
2778 * breakpoint.c (map_breakpoint_numbers): Update for change to
2779 get_number_or_range.
2780 (find_location_by_number): Use get_number, not
2781 get_number_or_range.
2782 (trace_pass_set_count): New function.
2783 (trace_pass_command): Update for change to get_number_or_range.
2784 Rework loop logic.
2785 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2786 'state' parameter.
2787
ecec24e6
PM
27882011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2789
2790 * python/py-param.c (add_setshow_generic): Add set/show callback
2791 parameters. Register Python object context.
2792 (get_show_value): New function.
2793 (get_set_value): New function.
2794 (call_doc_function): New function.
2795 (get_doc_string): Move behind get_show_value/get_set_value.
2796
6d6c6b1f
JK
27972011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2798
2799 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2800
68d6df83
MG
28012011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2802
dbab50de 2803 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
2804 (xtensa_write_register): Likewise.
2805 (xtensa_hextochar): Add comment and update to match coding conventions.
2806 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2807 (execute_l32e, execute_s32e, execute_code): Update comments.
2808 (xtensa_exception_handler_t): Update to match coding conventions.
2809 (xtensa_insn_kind): Likewise.
2810
85c9d6a6
MS
28112011-03-09 Michael Snyder <msnyder@vmware.com>
2812
2813 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2814
91495617
PA
28152011-03-09 Pedro Alves <pedro@codesourcery.com>
2816
2817 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2818
eb8c0621
TT
28192011-03-09 Tom Tromey <tromey@redhat.com>
2820
2821 * thread.c (restore_selected_frame): Handle frame_level == -1.
2822 (make_cleanup_restore_current_thread): Use
2823 get_selected_frame_if_set.
2824 * frame.h (get_selected_frame_if_set): Declare.
2825 * frame.c (get_selected_frame_if_set): New function.
2826
9f37bbcc
PA
28272011-03-09 Pedro Alves <pedro@codesourcery.com>
2828
2829 * cli/cli-cmds.c (shell_escape): Use lbasename.
2830 * coffread.c (coff_start_symtab): Constify parameter.
2831 (complete_symtab): Constify `name' parameter.
2832 (coff_symtab_read): Constify `filestring' local.
2833 (coff_getfilename): Constify return and `result' local.
2834 Use lbasename.
2835 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2836 * linux-fork.c (info_checkpoints_command): Use lbasename.
2837 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2838 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2839 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2840 * procfs.c (procfs_make_note_section): Use lbasename.
2841 * tui/tui-io.c (printable_part): Constity return and parameter.
2842 Use lbasename.
2843 (print_filename): Constify parameters, and local `s'.
2844 (tui_rl_display_match_list): Constify local `temp'.
2845
f8de3c55
JK
28462011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2847
2848 Revert:
2849 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 Fix DWARF-3+ DW_AT_accessibility default assumption.
2851 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2852 cu->header.version >= 3.
2853
d9837b00
YQ
28542011-03-09 Yao Qi <yao@codesourcery.com>
2855
2856 * common/Makefile.in: Remove.
2857 * common/configure: Remove.
2858 * common/configure.ac: Remove.
2859
e637a4f5
YQ
28602011-03-09 Yao Qi <yao@codesourcery.com>
2861
2862 Revert:
2863 2011-02-11 Yao Qi <yao@codesourcery.com>
2864
2865 * common/Makefile.in: Add copyright header.
2866
2867 2011-02-11 Yao Qi <yao@codesourcery.com>
2868
2869 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2870 libcommon.a.
2871 * configure.ac: Add common to sub dir.
2872 * configure: Regenerate.
2873
f976a05d
MG
28742011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2875
2876 * xtensa-tdep.c (call0_ret): New function.
2877 (xtensa_skip_prologue): Speed up analysis.
2878
57041825
MG
28792011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2880
2881 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2882 while executing MI command -data-list-changed-registers.
2883
08b9c608
MG
28842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2885
2886 * xtensa-tdep.c (xtensa_read_register): New function.
2887 (xtensa_write_register): New function.
2888 (xtensa_find_register_by_name): New function.
2889 (xtensa_windowed_frame_cache): Update comments in type description.
2890 (xtensa_frame_cache): Likewise.
2891 (xtensa_window_interrupt_insn): New function.
2892 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2893 (xtensa_insn_kind): Add new instructions.
2894 (rwx_special_register): New function.
2895 (call0_classify_opcode): Add new instructions to the analysis.
2896 (a0_saved, a7_saved, a11_saved): New variables.
2897 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2898 (execute_l32e): New function.
2899 (execute_s32e): New function.
2900 (xtensa_exception_handler_t): New type.
2901 (execute_code): New function.
2902 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2903 analysis for Xtensa Window Exception handlers.
2904
4d1acb11
MG
29052011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2906
98689b25
MG
2907 * xtensa-tdep.c (TX_PS): New.
2908 (windowing_enabled): Update to count for Call0 ABI.
2909 (xtensa_hextochar): New.
2910 (xtensa_init_reggroups): Make algorithm generic.
2911 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2912
29132011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2914
2915 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 2916
d3f323f3
MS
29172011-03-08 Michael Snyder <msnyder@vmware.com>
2918
3dcabaa8
MS
2919 * i386-tdep.c (i386_follow_jump): Check return value of
2920 target_read_memory.
2921 (i386_analyze_struct_return): Ditto.
2922 (i386_skip_probe): Ditto.
2923 (i386_match_insn): Ditto.
2924 (i386_skip_noop): Ditto.
2925 (i386_analyze_frame_setup): Ditto.
2926 (i386_analyze_register_saves): Ditto.
2927 (i386_skip_prologue): Ditto.
2928 (i386_skip_main_prologue): Ditto.
2929
13b3fd9b
MS
2930 * target.c (read_whatever_is_readable): Fix memory leak.
2931
d3f323f3
MS
2932 * i386-tdep.c (i386_process_record): Document fall through.
2933
421d5c74
JK
29342011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 Fix DWARF-3+ DW_AT_accessibility default assumption.
2937 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2938 cu->header.version >= 3.
2939
63154eca
PA
29402011-03-08 Pedro Alves <pedro@codesourcery.com>
2941
2942 * remote.c (remote_check_symbols): Skip if the target has no
2943 execution.
2944
f1a507a1
JB
29452011-03-08 Joel Brobecker <brobecker@adacore.com>
2946
2947 * target.c (read_whatever_is_readable): Reformat comment,
2948 with a minor typo fix. Minor reformatting of the code.
2949
36073a92
YQ
29502011-03-08 Yao Qi <yao@codesourcery.com>
2951
2952 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2953 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2954 Use cached result instead of calling displaced_in_arm_mode again.
2955 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2956 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2957 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2958 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2959 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2960 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2961 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2962 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2963 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2964 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2965 (arm_catch_kernel_helper_return): Likewise.
2966 * gdb/arm-tdep.h : Update function declarations.
2967
d3f323f3 29682011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 2969
e0e40094
MS
2970 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2971
0b2381f5
MS
2972 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2973
0350914a
MS
2974 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2975
69feea6f
MS
2976 * elfread.c (elf_symtab_read): Stop memory leak.
2977
e6040cbd
MS
2978 * main.c (captured_main): Fix memory leak.
2979
052874e8
AS
29802011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2981
2982 * ada-lang.c (compare_names): Call is_name_suffix with string1
2983 instead of string2.
2984
b11896a5
TT
29852011-03-07 Tom Tromey <tromey@redhat.com>
2986
2987 * xcoffread.c (xcoff_sym_fns): Update.
2988 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2989 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2990 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2991 (symbol_file_add_with_addrs_or_offsets): Likewise.
2992 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2993 * somread.c (som_sym_fns): Update.
2994 * psymtab.h (require_partial_symbols): Declare.
2995 * psymtab.c (require_partial_symbols): New function.
2996 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2997 (ALL_OBJFILE_PSYMTABS): Undef.
2998 (ALL_PSYMTABS): Move from psympriv.h.
2999 (lookup_partial_symtab, find_pc_sect_psymtab)
3000 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3001 (find_last_source_symtab_from_partial)
3002 (forget_cached_source_info_partial)
3003 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3004 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3005 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3006 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3007 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3008 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3009 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3010 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3011 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3012 psymtabs.
3013 * mipsread.c (ecoff_sym_fns): Update.
3014 * machoread.c (macho_sym_fns): Update.
3015 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3016 (read_psyms): New function.
3017 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3018 (elf_sym_fns_lazy_psyms): New global.
3019 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3020 dwarf2_build_psymtabs.
3021 * dbxread.c (aout_sym_fns): Update.
3022 * coffread.c (coff_sym_fns): Update.
3023
fda326dd
TT
30242011-03-07 Tom Tromey <tromey@redhat.com>
3025
3026 * infrun.c (print_exited_reason): Include inferior id and pid in
3027 message.
3028
aeaec162
TT
30292011-03-07 Tom Tromey <tromey@redhat.com>
3030
3031 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3032 parameter.
3033 (target_has_execution_1): Update.
3034 (target_has_execution_current): Declare.
3035 (target_has_execution): Call target_has_execution_current.
3036 (default_child_has_execution): Update.
3037 * target.c (default_child_has_execution): Add 'the_ptid'
3038 parameter.
3039 (target_has_execution_1): Likewise.
3040 (target_has_execution_current): New function.
3041 (add_target): Update.
3042 (init_dummy_target): Update.
3043 * remote-m32r-sdi.c (m32r_has_execution): New function.
3044 (init_m32r_ops): Use it.
3045 * record.c (record_core_has_execution): Now static. Add
3046 'the_ptid' parameter.
3047 * inferior.c (have_live_inferiors): Don't save current thread.
3048 Use target_has_execution_1.
3049
08e14083
YQ
30502011-03-07 Yao Qi <yao@codesourcery.com>
3051
3052 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3053
c05d19c5
JB
30542011-03-07 Joel Brobecker <brobecker@adacore.com>
3055
3056 * elfread.c (elf_symtab_read): Minor reformatting.
3057
3e6ef9e4
JB
30582011-03-07 Joel Brobecker <brobecker@adacore.com>
3059
3060 * objc-lang.c (selectors_info): Minor reformatting.
3061
dbb8534f
JB
30622011-03-07 Joel Brobecker <brobecker@adacore.com>
3063
3064 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3065
dd70cc93
JB
30662011-03-07 Joel Brobecker <brobecker@adacore.com>
3067 Michael Snyder <msnyder@vmware.com>
3068
3069 * ada-valprint.c (ada_val_print_array): Move the declaration of
3070 "byte_order" and "elttype" inside the block where these variables
3071 are actually used. Remove some special handling for the case
3072 where "elttype" and "eltlen" are null. Replace by a comment
3073 and a couple of assertion checks.
3074
b27cf2b3
MS
30752011-03-05 Michael Snyder <msnyder@vmware.com>
3076
3077 * source.c (add_path): Replace semicolon at end of block.
3078 * dwarf2expr.c (execute_stack_op): Ditto.
3079
5387a0c6
MF
30802011-03-05 Mike Frysinger <vapier@gentoo.org>
3081
3082 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3083 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3084 (bfin-*-*): Likewise.
3085
e3aa49af
MS
30862011-03-05 Michael Snyder <msnyder@vmware.com>
3087
82ae4854
MS
3088 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3089 * mdebugread.c (parse_symbol): Ditto.
3090 * parse.c (parse_exp_in_context): Ditto.
3091 * source.c (add_path): Ditto.
3092 * utils.c (gnu_debuglink_crc32): Ditto.
3093 * varobj.c (variable_language): Ditto.
3094
e3aa49af
MS
3095 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3096
154f592e
MS
30972011-03-04 Michael Snyder <msnyder@vmware.com>
3098
da3ecdc6
MS
3099 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3100
9cc89665
MS
3101 * symfile.c (simple_overlay_update): Check for null return value
3102 from lookup_minimal_symbol.
3103
154f592e
MS
3104 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3105
63ffa6ee
TJB
31062011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3107
3108 * eval.c (parse_and_eval_address_1): Remove function.
3109 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3110 instead of parse_and_eval_address_1.
3111 * value.h (parse_and_eval_address_1): Remove prototype.
3112
a17d146e
MS
31132011-03-04 Michael Snyder <msnyder@vmware.com>
3114
3115 * remote.c (putpkt_binary): Document that case stmt falls through.
3116
1a6a67de
TJB
31172011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3118
3119 * breakpointc (print_it_typical): Move NULL check from here...
3120 (print_bp_stop_message): ... to here.
3121
488919c4
MS
31222011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3123
3124 * breakpoint.c (enable_command): Use break instead of continue,
3125 and fill in a missing break.
3126 (disable_command): Ditto.
3127
1e182ce8
UW
31282011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3129
3130 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3131 (terminal_save_ours): Remove misleading comment.
3132 (inflow_inferior_data_cleanup): Free ttystate.
3133 (inflow_inferior_exit): Likewise.
3134 (copy_terminal_info): Copy ttystate.
3135
3136 * serial.c (serial_copy_tty_state): New function.
3137 * serial.h (serial_copy_tty_state): Add prototype.
3138 (struct serial_ops): Add copy_tty_state callback.
3139 * ser-base.c (ser_base_copy_tty_state): New function.
3140 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3141 * ser-go32.c (dos_copy_tty_state): New function.
3142 (dos_ops): Install copy_tty_state callback.
3143 * ser-mingw.c (_initialize_ser_windows): Likewise.
3144 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3145 * ser-unix.c (hardwire_copy_tty_state): New function.
3146 (_initialize_ser_hardwire): Install it.
3147
b2c5f112
MS
31482011-03-04 Michael Snyder <msnyder@vmware.com>
3149
2abae994
MS
3150 * breakpoint.c (create_breakpoint): Add missing break statement.
3151
7f5936f9
MS
3152 Reverting this patch:
3153 * infcall.c (call_function_by_hand): Add break statements for lint.
3154
b2c5f112
MS
3155 Reverting this patch:
3156 * cli/cli-script.c (script_from_file): Add break for lint.
3157
42b1321c
MS
31582011-03-04 Michael Snyder <msnyder@vmware.com>
3159
3160 * solib.c (reload_shared_libraries_1): Close memory leak.
3161
3e2a0cee
TT
31622011-03-03 Tom Tromey <tromey@redhat.com>
3163
3164 PR gdb/12538:
3165 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3166 DW_STRING is NULL.
3167
58397cb7
MS
31682011-03-03 Michael Snyder <msnyder@vmware.com>
3169
2e3fd767
MS
3170 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3171 fields of struct 'st' to zero.
3172
58397cb7
MS
3173 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3174 sal.pspace before calling set_current_source_symtab_and_line.
3175
ced54c8f
YQ
31762011-03-03 Yao Qi <yao@codesourcery.com>
3177
3178 * Makefile.in (configure-common): Remove. Let Makefile
3179 in dir common to rebuild itself.
3180 (common/Makefile): Likewise.
3181
3351ea09
JB
31822011-03-03 Joel Brobecker <brobecker@adacore.com>
3183
3184 * utils.c (parse_escape): Add i18n markup in error message.
3185
bf9f652a
YQ
31862011-03-03 Yao Qi <yao@codesourcery.com>
3187
3188 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3189 ARM_PC_REGNUM.
3190 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3191 (displaced_write_reg, displaced_read_reg): Likewise.
3192 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3193 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3194 (cleanup_branch): Replace magic number 14 and 15 with
3195 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3196
d42de051
MS
31972011-03-02 Michael Snyder <msnyder@vmware.com>
3198
240f9570
MS
3199 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3200
10dd8b54
MS
3201 * cli/cli-script.c (script_from_file): Add break for lint.
3202
b98bd911
MS
3203 * mdebugread.c (parse_partial_symbols): Fix indent.
3204
3494b66d
MS
3205 * target-descriptions.c (tdesc_gdb_type): No need to call
3206 xstrdup, callee saves a copy.
3207
daac021a
MS
3208 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3209
c38d16a7
MS
3210 * infcall.c (call_function_by_hand): Add break statements for lint.
3211
905b671b
MS
3212 * utils.c (parse_escape): Escape the escape char.
3213
f2eb0bc8 3214 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
3215 PyList_Append fails.
3216 (gdbpy_inferiors): Error out if build_inferior_list fails.
3217
8c6a60d1
MS
3218 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3219 a function call.
3220
d42de051
MS
3221 * record.c (record_restore): Move printf to before error return.
3222
4db71c0b
YQ
32232011-03-02 Yao Qi <yao@codesourcery.com>
3224
3225 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3226 is_thumb and insn_size.
3227 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3228 on both ARM and Thumb mode.
3229 (arm_process_displaced_insn): Set is_thumb and insn_size.
3230 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3231 (arm_displaced_step_fixup): Likewise.
3232
a9dc8dcc
MS
32332011-03-01 Michael Snyder <msnyder@vmware.com>
3234
53624a93
MS
3235 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3236
77766669
MS
3237 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3238
62d5b8da
MS
3239 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3240
5e9e105f
MS
3241 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3242
dc19db01
MS
3243 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3244 with xmalloc.
3245
5ce64950
MS
3246 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3247 which shadows function parameter.
3248
a0aa2878
MS
3249 * tracepoint.c (create_tsv_from_upload): Superfluous call
3250 to xstrdup. Callee already calls xstrdup.
3251
e325fb69
MS
3252 * linespec.c (decode_line_1): Remove unnecessary null check.
3253
21cbba77
MS
3254 * tracepoint.c (scope_info): Fix mem leak, remove underused
3255 variable.
3256
63360adc
MS
3257 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3258 superfluous null check.
3259
18ea20ac 3260 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 3261 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 3262
d014929c
MS
3263 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3264
6e9130cf
MS
3265 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3266 be null.
3267
5f01dbc0
MS
3268 * linespec.c (decode_line_1): Check for null before dereference.
3269
d684ab85
MS
3270 * reverse.c (record_restore): Move null-check to before pointer
3271 dereference.
3272
bfffb7e3
MS
3273 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3274
a9dc8dcc
MS
3275 * objc-lang.c (selectors_info): Add explanitory comment.
3276 (classes_info): Ditto.
3277
478fd957
UW
32782011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3279
3280 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3281 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3282 versions of the trampoline. Handle Thumb vs. ARM addresses.
3283 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3284 (arm_linux_init_abi): Install it.
3285 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3286 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3287
0480cefa
MS
32882011-02-28 Michael Snyder <msnyder@vmware.com>
3289
ac50ab3b
MS
3290 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3291 a little bigger, to avoid possibility of an overflow.
3292
f63fbe86
MS
3293 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3294 buffers a little bigger, to avoid possibility of an overflow.
3295
9e91a352
MS
3296 * coffread.c (coff_getfilename): Add check to avoid overflow.
3297
f2eb0bc8 3298 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
3299 avoid overflow.
3300 (classes_info): Error out on too long REGEXP.
3301
098ab512
MS
3302 * infrun.c (handle_inferior_event): Remove unused function call.
3303
bcbd1de9
MS
3304 * fork-child.c (fork_inferior): Remove ifdef'd code and
3305 unused variable.
3306
2e456570
MS
3307 * linux-thread-db.c (attach_thread): Discard unused value.
3308
14571dad
MS
3309 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3310
a9cbf802
MS
3311 * remote.c (remote_get_noisy_reply): Discard unused value.
3312 (remote_vcont_resume): Ditto.
3313 (remote_stop_ns): Ditto.
3314
5715d26e
MS
3315 * linespec.c (decode_objc): Delete unused variable.
3316
4a9bca80
MS
3317 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3318
f47fb265
MS
3319 * dwarf2read.c (add_partial_symbol): Discard unused values.
3320 (read_base_type): Delete unused variable.
3321
e81cff30
MS
3322 * dbxread.c (read_dbx_symtab): Discard unused value.
3323
262acaeb
MS
3324 * eval.c (evaluate_subexp_standard): Delete unused variable,
3325 and discard unused values.
3326
df983543
MS
3327 * infcmd.c (_initialize_infcmd): Discard unused values.
3328
89acf84d
MS
3329 * stabsread.c (rs6000_builtin_type): Missing break statement.
3330
ab8b8aca
MS
3331 * dbxread.c (process_one_symbol): Discard unused value.
3332
6b4511ab
MS
3333 * coffread.c (coff_end_symtab): Delete unused variable.
3334
e8e80198
MS
3335 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3336 (dwarf2_add_typedef): Delete unused variable.
3337 (read_namespace): Ditto.
3338 (dwarf_decode_macros): Ditto.
3339
976aa66e
MS
3340 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3341
5b92b49f
MS
3342 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3343
91e8df85
MS
3344 * p-valprint.c (pascal_val_print): Discard unused value.
3345
899500d6
MS
3346 * utils.c (nquery): Call va_end before return;
3347 (yquery): Ditto.
3348 (query): Ditto.
3349
0480cefa
MS
3350 * proc-service.c (ps_plog): Call va_end before return.
3351
fb6a3ed3
TT
33522011-02-28 Tom Tromey <tromey@redhat.com>
3353
3354 * python/python.c (gdbpy_value_cst): New global.
3355 (_initialize_python): Initialize it.
3356 * python/python-internal.h (gdbpy_value_cst): Declare.
3357 * python/py-value.c (convert_value_from_python): Use
3358 gdbpy_value_cst.
3359
c05202a1
MS
33602011-02-28 Michael Snyder <msnyder@vmware.com>
3361
e463f587
MS
3362 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3363
c38eea1a
MS
3364 * breakpoint.c (catch_syscall_completer): Free malloced list.
3365
3ef09ab5
MS
3366 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3367
8f9a01ee
MS
3368 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3369 (lval_func_check_synthetic_pointer): Ditto.
3370 (lval_func_free_closure): Fix use-after-free.
c05202a1 3371
477d0d57
TT
33722011-02-28 Tom Tromey <tromey@redhat.com>
3373
3374 * psymtab.c (expand_partial_symbol_tables): Use
3375 ALL_OBJFILE_PSYMTABS.
3376
20937029
JK
33772011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3378
3379 * objc-lang.c (selectors_info): Error on too long REGEXP.
3380
907b7f4f
MS
33812011-02-28 Michael Snyder <msnyder@vmware.com>
3382
92e96192
MS
3383 * python/py-param.c (set_parameter_value): Add missing
3384 break statement.
3385
907b7f4f
MS
3386 * linux-record.c (record_linux_system_call): Add missing
3387 break statement.
3388
12c5a436
UW
33892011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3390
3391 * breakpoint.c (print_one_breakpoint_location): Remove unused
3392 argument PRINT_ADDRESS_BITS. Update callers.
3393 (print_one_breakpoint): Likewise.
3394
170b53b2
UW
33952011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3396
3397 * breakpoint.c (wrap_indent_at_field): New function.
3398 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3399 Allocate ui_stream locally instead of using STB argument.
3400 (print_one_breakpoint_location): Update call.
3401 * ui-out.c (ui_out_query_field): New function.
3402 * ui-out.h (ui_out_query_field): Add prototype.
3403
8ab1f94d
JB
34042011-02-28 Joel Brobecker <brobecker@adacore.com>
3405
3406 From Michael Snyder <msnyder@vmware.com>
3407 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3408
7d488639
MS
34092011-02-27 Michael Snyder <msnyder@vmware.com>
3410
ae179fba
MS
3411 * objc-lang.c (selectors_info): Prevent string overrun.
3412
086dbf66
MS
3413 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3414 error in strncpy.
3415
f2eb0bc8 3416 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
3417 outer scope.
3418
7d488639
MS
3419 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3420 param with a local variable of the same name.
3421
3bd0f5ef
MS
34222011-02-27 Michael Snyder <msnyder@vmware.com>
3423
3424 * value.c (value_from_history_ref): New function.
3425 * value.h (value_from_history_ref): Export.
3426 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3427 to parse value history references.
3428 * cli/cli-utils.h (get_number_trailer): Update comment.
3429
34302011-02-27 Michael Snyder <msnyder@vmware.com>
3431
3432 * inferior.c (detach_inferior_command): Use get_number_or_range.
3433 (kill_inferior_command): Ditto.
3434 (remove_inferior_command): Ditto.
3435 (initialize_inferiors): Make command names plural.
3436 Update help strings.
3437
766062f6
MS
34382011-02-27 Michael Snyder <msnyder@vmware.com>
3439
3440 * darwin-nat-info.c: Fix comment typo.
3441 * dwarf2expr.h: Ditto.
3442 * fbsd-nat.c: Ditto.
3443 * fbsd-nat.h: Ditto.
3444 * frame-unwind.h: Ditto.
3445 * frame.h: Ditto.
3446 * hppa-hpux-tdep.c: Ditto.
3447 * i386-linux-nat.c: Ditto.
3448 * linux-nat.c: Ditto.
3449 * nbsd-nat.c: Ditto.
3450 * nbsd-nat.h: Ditto.
3451 * ppc-linux-tdep.c: Ditto.
3452 * serial.c: Ditto.
3453 * ui-file.h: Ditto.
3454 * tui/tui-winsource.c: Ditto.
3455
f2c4ead5
MS
34562011-02-26 Michael Snyder <msnyder@vmware.com>
3457
86b887df
MS
3458 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3459
66fd3b1e
MS
3460 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3461
8c814cdd
MS
3462 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3463 with a local variable of the same name.
3464
6d5e094a 3465 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 3466 param with a local variable of the same name.
6d5e094a 3467 (i387_supply_xsave): Ditto.
e5b3d7d6 3468
5eee517d
MS
3469 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3470 that it does not shadow a function parameter.
3471
8fbf6b93
MS
3472 * i386-nat.c (i386_length_and_rw_bits): Document that case
3473 statement is meant to fall through.
3474
cb969d61
MS
3475 * expprint.c (dump_subexp_body_standard): Document that case
3476 statement is meant to fall through.
3477
f2c4ead5
MS
3478 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3479 dead if statement. Condition can't be false.
3480
b021a221
MS
34812011-02-25 Michael Snyder <msnyder@vmware.com>
3482
3483 * arm-tdep.c: Fix typos in comments.
3484 * bsd-uthread.c: Ditto.
3485 * completer.c: Ditto.
3486 * corelow.c: Ditto.
3487 * cp-namespace.c: Ditto.
3488 * cp-support.c: Ditto.
3489 * cris-tdep.c: Ditto.
3490 * dbxread.c: Ditto.
3491 * dwarf2read.c: Ditto.
3492 * frame.h: Ditto.
3493 * gdbtypes.h: Ditto.
3494 * inferior.h: Ditto.
3495 * mdebugread.c: Ditto.
3496 * mips-tdep.c: Ditto.
3497 * ppc-linux-nat.c: Ditto.
3498 * ppc-linux-tdep.c: Ditto.
3499 * printcmd.c: Ditto.
3500 * sol-thread.c: Ditto.
3501 * solib-frv.c: Ditto.
3502 * solist.h: Ditto.
3503 * sparc64-tdep.c: Ditto.
3504 * spu-tdep.c: Ditto.
3505 * stabsread.c: Ditto.
3506 * symfile.c: Ditto.
3507 * valops.c: Ditto.
3508 * varobj.c: Ditto.
3509 * vax-nat.c: Ditto.
3510 * python/py-block.c: Ditto.
3511 * python/py-symbol.c: Ditto.
3512 * python/py-symtab.c: Ditto.
3513 * python/py-value.c: Ditto.
3514 * tui/tui-win.c: Ditto.
3515
c82c0b55
MS
35162011-02-25 Michael Snyder <msnyder@vmware.com>
3517
3518 * inferior.c (print_inferior): Accept a string instead of an int
3519 for requested_inferiors, and use get_number_or_range to parse it.
3520 (info_inferiors_command): Pass args string to print_inferior.
3521 (initialize_inferiors): Change help string for info inferiors.
3522 * inferior.h (print_inferior): Export prototype change.
3523
ee00cd23
TT
35242011-02-25 Tom Tromey <tromey@redhat.com>
3525
3526 * common/ax.def (invalid2): Set to 0x31.
3527
0502ed8c
JK
35282011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3531 L and plongest.
3532 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3533 use L and plongest.
3534 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3535
2c9de912
MS
35362011-02-24 Michael Snyder <msnyder@vmware.com>
3537
3538 * Makefile.in (clean): Make clean should remove generated files
3539 observer.h and observer.inc.
3540
a04b0428
JB
35412011-02-24 Joel Brobecker <brobecker@adacore.com>
3542
3543 Revert the following patch (not approved yet):
3544 2011-02-21 Hui Zhu <teawater@gmail.com>
3545 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3546 * ax-gdb.c (gen_printf_expr_callback): New function.
3547 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3548 * ax-general.c (ax_memcpy): New function.
3549 (ax_print): Handle "printf".
3550 (ax_reqs): Ditto.
3551 * ax.h (ax_memcpy): Forward declare.
3552 * common/ax.def (invalid2): Removed.
3553 (printf): New entry.
3554 * printcmd.c (printcmd.h): New include.
3555 (string_printf): New function.
3556 (ui_printf): Removed.
3557 (printf_command): Remove static. Call string_printf.
3558 (eval_command): Call string_printf.
3559 * printcmd.h: New file.
3560 * tracepoint.c (validate_actionline,
3561 encode_actions_1): handle printf_command.
3562
2b52013f
TT
35632011-02-23 Tom Tromey <tromey@redhat.com>
3564
3565 * ax-general.c (ax_pick): Add missing newline.
3566
e5a67952
MS
35672011-02-23 Michael Snyder <msnyder@vmware.com>
3568
3569 * breakpoint.c (breakpoint_1): Change first argument from an int
3570 to a char pointer, so that the function now accepts a list of
f2eb0bc8 3571 breakpoints rather than just one. Use new function
e5a67952
MS
3572 'number_is_in_list' to implement.
3573 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3574 (watchpoints_info): Ditto.
3575 (tracepoints_info): Ditto.
3576 (maintenance_info_breakpoints): Ditto.
3577 (_initialize_breakpoint): Update help strings to reflect the fact
3578 that these functions can now take more than one argument.
3579 * cli/cli-utils.c (number_is_in_list): New function.
3580 * cli/cli-utils.h (number_is_in_list): Export.
3581
35822011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
3583
3584 * memattr.c (mem_enable_command): Use get_number_or_range.
3585 (mem_disable_command): Ditto.
3586 (mem_delete_command): Ditto.
3587 (_initialize_mem): Tweak usage message to reflect multiple
3588 arguments.
3589
6e6fbe60
DE
35902011-02-22 Doug Evans <dje@google.com>
3591
3592 Add gdb.lookup_global_symbol python function.
3593 * NEWS: Add entry.
3594 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3595 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3596 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3597
79b97fa8
TT
35982011-02-22 Tom Tromey <tromey@redhat.com>
3599
3600 * language.c (language_class_name_from_physname): Rename
3601 'curr_language' argument to 'lang'; use in body.
3602
298f437a
MS
36032011-02-22 Michael Snyder <msnyder@vmware.com>
3604
3605 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3606
b7ea3126
PA
36072011-02-22 Pedro Alves <pedro@codesourcery.com>
3608
3609 * frame-unwind.h: Fix comment to mention the this frame, not the
3610 next.
3611
58ee6d60
TT
36122011-02-22 Tom Tromey <tromey@redhat.com>
3613
3614 * symfile.c (auto_solib_limit): Remove.
3615 * symfile.h (auto_solib_limit): Remove.
3616
36238dbc
JB
36172011-02-22 Joel Brobecker <brobecker@adacore.com>
3618
3619 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3620
aea5b279
MS
36212011-02-21 Michael Snyder <msnyder@vmware.com>
3622
3623 * gdbthread.h (print_thread_info): Change prototype.
3624 * thread.c (print_thread_info): Accept char* instead of int for
3625 requested_threads argument. Use new function number_is_in_list
3626 to determine which threads to list.
3627 (info_threads_command): Pass char* to print_thread_info.
3628 * cli/cli-utils.c (number_is_in_list): New function.
3629 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 3630 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
3631 print_thread_info.
3632 (print_one_inferior): Ditto.
3633 (mi_cmd_list_thread_groups): Ditto.
3634
8caa75ee
JK
36352011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3636
3637 * common/Makefile.in (CFLAGS): New.
3638 (COMPILE): Add $(CFLAGS).
3639
ea666128
TT
36402011-02-21 Tom Tromey <tromey@redhat.com>
3641
3642 * breakpoint.c (catch_syscall_command_1): Fix typo.
3643
e9cafbcc
TT
36442011-02-21 Tom Tromey <tromey@redhat.com>
3645
3646 * reverse.c: Include cli-utils.h.
3647 * printcmd.c: Include cli-utils.h.
3648 (string_printf): Use skip_spaces.
3649 * cli/cli-utils.h: New file.
3650 * cli/cli-utils.c: New file.
3651 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3652 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3653 * breakpoint.h (get_number, get_number_or_range): Move to
3654 cli-utils.h.
3655 * breakpoint.c: Include cli-utils.h.
3656 (get_number_trailer, get_number, get_number_or_range)
3657 (ep_skip_leading_whitespace): Move to cli-utils.c.
3658 (create_breakpoint_sal, find_condition_and_thread)
3659 (decode_static_tracepoint_spec, watch_command_1)
3660 (watch_maybe_just_location, ep_parse_optional_if_clause)
3661 (catch_fork_command_1, catch_exec_command_1)
3662 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3663 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3664 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3665 (HFILES_NO_SRCDIR): Add cli-utils.h.
3666 (cli-utils.o): New target.
3667
f67fd822
PM
36682011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3669
3670 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3671 before calling discard_all_inferiors.
3672
c9def01d
UW
36732011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3674
3675 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3676 (struct builtin_opencl_type): Remove.
3677 (builtin_opencl_type): Change return type to "struct type **".
3678 (lookup_opencl_vector_type): Update caller.
3679 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3680 (build_opencl_types): Install plain array of "struct type *"
3681 instead of "struct builtin_opencl_type".
3682
e3039479
UW
36832011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3684 Ulrich Weigand <uweigand@de.ibm.com>
3685
3686 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3687 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3688 (struct arm_linux_hwbp_cap): New type.
3689 (arm_linux_get_hwbp_cap): New function.
3690 (arm_linux_get_hw_breakpoint_count): Likewise.
3691 (arm_linux_get_hw_watchpoint_count): Likewise.
3692 (arm_linux_can_use_hw_breakpoint): Likewise.
3693 (arm_hwbp_type): New type.
3694 (arm_hwbp_control_t): Likewise.
3695 (struct arm_linux_hw_breakpoint): Likewise.
3696 (struct arm_linux_thread_points): Likewise.
3697 (arm_threads): New global variable.
3698 (arm_linux_find_breakpoints_by_tid): New function.
3699 (arm_hwbp_control_initialize): Likewise.
3700 (arm_hwbp_control_is_enabled): Likewise.
3701 (arm_hwbp_control_disable): Likewise.
3702 (arm_linux_hw_breakpoint_initialize): Likewise.
3703 (arm_linux_get_hwbp_type): Likewise.
3704 (arm_linux_hw_watchpoint_initialize): Likewise.
3705 (arm_linux_hw_breakpoint_equal): Likewise.
3706 (arm_linux_insert_hw_breakpoint1): Likewise.
3707 (arm_linux_remove_hw_breakpoint1): Likewise.
3708 (arm_linux_insert_hw_breakpoint): Likewise.
3709 (arm_linux_remove_hw_breakpoint): Likewise.
3710 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3711 (arm_linux_insert_watchpoint): Likewise.
3712 (arm_linux_remove_watchpoint): Likewise.
3713 (arm_linux_stopped_data_address): Likewise.
3714 (arm_linux_stopped_by_watchpoint): Likewise.
3715 (arm_linux_watchpoint_addr_within_range): Likewise.
3716 (arm_linux_new_thread): Likewise.
3717 (arm_linux_thread_exit): Likewise.
3718 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3719 related target callbacks. Register arm_linux_new_thread and
3720 arm_linux_thread_exit.
3721 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3722 * arm-tdep.c (arm_pc_is_thumb): Make global.
3723 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3724
b5db5dfc
UW
37252011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3726
3727 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3728 per-frame locations while within a function epilogue.
3729
e25b2cfa
PM
37302011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3731
3732 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3733 to GNU coding standards.
3734
4af53f97
PM
37352011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3736
3737 Allow use of mingw native on Windows 95 OS.
e25b2cfa 3738 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
3739 (ser_windows_close): Only call CancelIo if function exists.
3740 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3741 to check for existence of CancelIo function in kernel32 DLL.
3742
d0e92d82
HZ
37432011-02-21 Hui Zhu <teawater@gmail.com>
3744
3745 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3746 * ax-gdb.c (gen_printf_expr_callback): New function.
3747 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3748 * ax-general.c (ax_memcpy): New function.
3749 (ax_print): Handle "printf".
3750 (ax_reqs): Ditto.
3751 * ax.h (ax_memcpy): Forward declare.
3752 * common/ax.def (invalid2): Removed.
3753 (printf): New entry.
3754 * printcmd.c (printcmd.h): New include.
3755 (string_printf): New function.
3756 (ui_printf): Removed.
3757 (printf_command): Remove static. Call string_printf.
3758 (eval_command): Call string_printf.
3759 * printcmd.h: New file.
3760 * tracepoint.c (validate_actionline,
3761 encode_actions_1): handle printf_command.
3762
7d357efd
MS
37632011-02-19 Michael Snyder <msnyder@vmware.com>
3764
3765 * reverse.c (delete_one_bookmark): Argument is now bookmark
3766 id rather than pointer to bookmark struct.
3767 (delete_bookmark_command): Use get_number_or_range.
3768 (goto_bookmark_command): Parse with get_number instead of strtoul.
3769 (bookmark_1): New function. Print info for one bookmark.
3770 (bookmarks_info): Use get_number_or_range and bookmark_1.
3771
7a45ebd7
MS
37722011-02-18 Michael Snyder <msnyder@vmware.com>
3773
f2eb0bc8 3774 * thread.c (info_threads_command): Re-implement using
7a45ebd7 3775 get_number_or_range.
65ebfb52 3776 (thread_apply_command): Ditto.
7a45ebd7 3777
94d5e490
TT
37782011-02-18 Tom Tromey <tromey@redhat.com>
3779
3780 * common/ax.def: New file.
3781 * ax.h (enum agent_op): Use ax.def.
3782 * ax-general.c (aop_map): Use ax.def.
3783
c7f96d2b
TT
37842011-02-18 Tom Tromey <tromey@redhat.com>
3785
3786 * ax-general.c (aop_map): Add pick and rot.
3787 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3788 <DW_OP_rot>: Implement.
3789 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3790 (ax_pick): Declare.
3791 * ax-general.c (ax_pick): New function.
3792
66694b75
TT
37932011-02-18 Tom Tromey <tromey@redhat.com>
3794
3795 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3796
eeaafae2
JK
37972011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3798 Tom Tromey <tromey@redhat.com>
3799
3800 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3801 make_symbol_overload_list_block with NULL BLOCK.
3802 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3803
3c3fe74c
PA
38042011-02-18 Pedro Alves <pedro@codesourcery.com>
3805
3806 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3807 * breakpoint.h (get_number_or_range): Declare.
3808 * printcmd.c (ALL_DISPLAYS): Declare.
3809 (delete_display): Reimplement taking a display pointer.
3810 (undisplay_command): Accept a range of displays to delete, using
3811 get_number_or_range.
3812
13163d80
PM
38132011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3814
3815 * c-valprint.c (c_val_print): Add embedded_offset to address
3816 for arrays of unspecified length.
3817 * p-valprint.c (pascal_val_print): Likewise.
3818
b434a28f
YQ
38192011-02-18 Yao Qi <yao@codesourcery.com>
3820
3821 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3822 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3823 (thumb_process_displaced_insn): New.
3824 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3825 call to arm_process_displaced_insn.
3826 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3827
9f6f94ff
TT
38282011-02-17 Tom Tromey <tromey@redhat.com>
3829
3830 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3831 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3832 compile_dwarf_to_ax. No longer static. Call
3833 dwarf2_compile_cfa_to_ax.
3834 (locexpr_tracepoint_var_ref): Update.
3835 (loclist_tracepoint_var_ref): Update.
3836 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3837 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3838 argument; add 'gdbarch' and 'pc'.
3839 (dwarf2_compile_cfa_to_ax): New function.
3840 (dwarf2_frame_cache): Update.
3841
e67ad678
JB
38422011-02-17 Joel Brobecker <brobecker@adacore.com>
3843
3844 * ada-lang.c (ada_type_of_array): Fix the size of the array
3845 in the case of an unconstrained packed array.
3846
946ebb0d
YQ
38472011-02-17 Yao Qi <yao@codesourcery.com>
3848
3849 * common/Makefile.in: Add more targets for make.
3850
1ba1b353
TT
38512011-02-16 Tom Tromey <tromey@redhat.com>
3852
3853 * dwarf2loc.c (unimplemented): Fix typo.
3854
b1bfef65
TT
38552011-02-16 Tom Tromey <tromey@redhat.com>
3856
3857 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3858 (compile_dwarf_to_ax) <default>: Use unimplemented.
3859 <DW_OP_deref>: Update.
3860 (disassemble_dwarf_expression): Update.
3861 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3862 (decode_locdesc): Update.
3863 * dwarf2expr.h (dwarf_stack_op_name): Update.
3864
5f1e6f19
TT
38652011-02-16 Tom Tromey <tromey@redhat.com>
3866
3867 * ax.h (struct aop_map) <name>: Now const.
3868
a0c78a73
PA
38692011-02-16 Tom Tromey <tromey@redhat.com>
3870
3871 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3872 than axs_rvalue.
3873
946ebb0d 38742011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
3875
3876 * infrun.c (get_displaced_step_closure_by_addr): New.
3877 * inferior.h: Declare it.
3878 * arm-tdep.c: (arm_pc_is_thumb): Call
3879 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3880 returns non-NULL.
3881
08807d5a
PA
38822011-02-16 Pedro Alves <pedro@codesourcery.com>
3883 Jan Kratochvil <jan.kratochvil@redhat.com>
3884
3885 gdb/
3886 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3887
29976f3f
PA
38882011-02-16 Pedro Alves <pedro@codesourcery.com>
3889 Jan Kratochvil <jan.kratochvil@redhat.com>
3890
3891 * value.c (value_contents_copy_raw): Extend describing comment.
3892 Assert that the destination contents we're overwriting are wholly
3893 available.
fb68ae73 3894 (value_contents_copy): Extend describing comment.
29976f3f 3895
cd24cfaa
PA
38962011-02-16 Pedro Alves <pedro@codesourcery.com>
3897 Jan Kratochvil <jan.kratochvil@redhat.com>
3898
3899 * value.c (value_available_contents_eq): Remove redundant local
3900 variables. Fix available contents comparision.
3901 * value.h (value_available_contents_eq): Extend describing
3902 comment.
3903
60bbf338
YQ
39042011-02-16 Yao Qi <yao@codesourcery.com>
3905
3906 * thread.c (info_threads_command): Add missing i18n markup and remove
3907 trailing newline.
3908
17450429
PP
39092011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3910
3911 * breakpoint.c (longjmp_names): New variable.
3912 (struct breakpoint_objfile_data): New type.
3913 (breakpoint_objfile_key): New variable.
3914 (msym_not_found): New variable.
3915 (msym_not_found_p): New predicate.
3916 (get_breakpoint_objfile_data): New function.
3917 (create_overlay_event_breakpoint): Check per-objfile cache for
3918 symbols first.
3919 (create_longjmp_master_breakpoint): Likewise.
3920 (create_std_terminate_master_breakpoint): Likewise.
3921 (create_exception_master_breakpoint): Likewise.
3922 (_initialize_breakpoint): Register per-objfile data key.
3923
af02033e
PP
39242011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3925
3926 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3927 parameter value.
3928 (create_longjmp_master_breakpoint): Loop over longjmp names.
3929 (create_std_terminate_master_breakpoint): Const-propagate parameter
3930 value.
3931 (update_breakpoints_after_exec): Adjust.
3932 (breakpoint_re_set): Adjust.
3933
60f98dde
MS
39342011-02-15 Michael Snyder <msnyder@vmware.com>
3935
cdf99611
MS
3936 * thread.c (info_threads_command): Process arg as thread id,
3937 or list of thread ids.
3938 (thread_find_command): New command.
3939 (_initialize_thread): Document argument for info threads.
3940 Document 'thread find' command.
3941 * NEWS: Document new command "thread find".
60f98dde 3942
0feedb2c
JK
39432011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3944
3945 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3946 * aclocal.m4: Regenerated with aclocal-1.11.1.
3947 * common/configure: Regenerate with autoconf-2.64.
3948
648cd113
KW
39492011-02-15 Ken Werner <ken.werner@de.ibm.com>
3950
3951 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3952 bool data type to a size of one byte.
3953
5657161f
PA
39542011-02-15 Pedro Alves <pedro@codesourcery.com>
3955 Jan Kratochvil <jan.kratochvil@redhat.com>
3956
3957 * target.c (memory_xfer_live_readonly_partial): Document where to
3958 look for interface description.
3959
494e194e
YQ
39602011-02-15 Yao Qi <yao@codesourcery.com>
3961
3962 PR tdep/12352
3963 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3964 order to store PC value on stack instead of text section.
3965
d9492458
TJB
39662011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3967
3968 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3969 the EFP register set size.
3970 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3971 data from the VMX register.
3972 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3973 and write data from/to the VMX register.
3974
cdf99611
MS
39752011-02-14 Michael Snyder <msnyder@vmware.com>
3976
3977 * command.h (enum command_class): New class 'no_set_class', for
3978 "show" commands without a corresponding "set" command.
3979 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3980 * copying.c (_initialize_copying): Ditto for "show copying" and
3981 "show warranty".
3982 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3983 "show version".
3984 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3985 which there is no corresponding "set" command (eg. "show copying").
3986
424447ee
PA
39872011-02-14 Pedro Alves <pedro@codesourcery.com>
3988 Jan Kratochvil <jan.kratochvil@redhat.com>
3989
3990 * exec.c (section_table_available_memory): Change `len' parameter
3991 type to ULONGEST.
3992 * exec.h (section_table_available_memory): Ditto.
3993 * value.h (read_value_memory): Rename the `offset' parameter to
3994 `embedded_offset'.
3995
c0f61f9c 39962011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 3997 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
3998
3999 * memrange.c (compare_mem_ranges): Mention sort order in
4000 describing comment.
4001 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4002 * tracepoint.c (traceframe_available_memory): Extend comment to
4003 mention what happens to RESULT when the target does not support
4004 the query.
4005
6bfc80c7
PA
40062011-02-14 Pedro Alves <pedro@codesourcery.com>
4007 Jan Kratochvil <jan.kratochvil@redhat.com>
4008
4009 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4010 range.
4011
e7303042
PA
40122011-02-14 Pedro Alves <pedro@codesourcery.com>
4013
4014 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4015 No longer handle NULL values.
4016
8af8e3bc
PA
40172011-02-14 Pedro Alves <pedro@codesourcery.com>
4018
4019 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4020 * value.c: Include "exceptions.h".
4021 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4022 generic error.
4023 * cp-abi.c: Include gdb_assert.h.
4024 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4025 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4026 errors.
4027 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4028 parameters. No longer returns -1 on error.
4029 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4030 `val' parameters.
4031 * cp-valprint.c: Include exceptions.h.
4032 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4033 the baseclass_offset. Handle unavailable base classes. Use
4034 val_print_invalid_address.
4035 * p-valprint.c: Include exceptions.h.
4036 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4037 when fetching the baseclass_offset. No longer expect
4038 baseclass_offset returning -1. Handle unavailable base classes.
4039 Use val_print_invalid_address.
4040 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4041 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4042 `embedded_offset' and `val' parameters. Adjust.
4043 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4044 parameter, and change its type to gdb_byte pointer. Add
4045 `embedded_offset' and `val' parameters. Adjust. No longer expect
4046 baseclass_offset returning -1.
4047 (value_dynamic_cast): Use value_contents_for_printing rather than
4048 value_contents. Adjust.
4049 (search_struct_field): No longer expect baseclass_offset returning
4050 -1.
4051 (search_struct_method): If reading memory from the target is
4052 necessary, wrap it in a new value to pass to baseclass_offset. No
4053 longer expect baseclass_offset returning -1.
4054 (find_method_list): No longer expect baseclass_offset returning
4055 -1. Use value_contents_for_printing rather than value_contents.
4056 * valprint.c (val_print_invalid_address): New function.
4057 * valprint.h (val_print_invalid_address): Declare.
4058 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4059 and `val' parameters. No longer expect baseclass_offset returning
4060 -1. Adjust.
4061 * gnu-v2-abi.c: Include "exceptions.h".
4062 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4063 parameters. Handle unavailable memory. Recurse through
4064 gnuv2_baseclass_offset directly, rather than through
4065 baseclass_offset. No longer returns -1 on not found, instead
4066 throw an error.
4067 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4068 `val' parameters. Adjust.
4069
1b28d0b3
PA
40702011-02-14 Pedro Alves <pedro@codesourcery.com>
4071
4072 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4073 almost but not quite adjacent.
4074
ec0a52e1
PA
40752011-02-14 Pedro Alves <pedro@codesourcery.com>
4076
4077 * value.h (value_entirely_available): Declare.
4078 * value.c (value_entirely_available): New function.
4079 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4080 real type if the pointer is unavailable.
4081
24e6bcee
PA
40822011-02-14 Pedro Alves <pedro@codesourcery.com>
4083
4084 * valops.c (value_repeat): Use read_value_memory instead of
4085 read_memory.
4086
39d37385
PA
40872011-02-14 Pedro Alves <pedro@codesourcery.com>
4088
4089 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4090 * value.c (value_contents_copy_raw, value_contents_copy): New
4091 functions.
4092 (value_primitive_field): Use value_contents_copy_raw instead of
4093 memcpy.
4094 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4095 memcpy.
4096 (value_array, value_slice): Ditto.
4097 * valarith.c (value_subscripted_rvalue): Use
4098 value_contents_copy_raw instead of memcpy.
4099
a3d34bf4
PA
41002011-02-14 Pedro Alves <pedro@codesourcery.com>
4101
4102 <unavailable> references.
4103
4104 * valops.c (get_value_at): Use value_from_contents_and_address,
4105 avoiding read_memory.
4106
9fc6d940
PA
41072011-02-14 Pedro Alves <pedro@codesourcery.com>
4108
4109 * c-valprint.c (c_val_print): Print a string with unavailable
4110 contents as an array.
4111
5467c6c8
PA
41122011-02-14 Pedro Alves <pedro@codesourcery.com>
4113
4114 * value.h (unpack_bits_as_long): Delete declaration.
4115 (unpack_value_bits_as_long): Declare.
4116 (unpack_value_field_as_long): Declare.
4117 (value_field_bitfield): Declare.
4118 * value.c (unpack_bits_as_long): Rename to...
4119 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4120 value parameters. Return the extracted result in a new output
4121 parameter. If the value contents are unavailable, return false,
4122 otherwise return true.
4123 (unpack_value_bits_as_long): New.
4124 (unpack_field_as_long): Rename to...
4125 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4126 Add embedded_offset and value parameters. Return the extracted
4127 result in a new output parameter. If the value contents are
4128 unavailable, return false, otherwise return true.
4129 (unpack_value_field_as_long): New.
4130 (unpack_field_as_long_1): New.
4131 (unpack_field_as_long): Reimplement as wrapper around
4132 unpack_value_field_as_long_1.
4133 (value_field_bitfield): New function.
4134 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4135 unpack_value_bits_as_long. Mark the value as unavailable, if it
4136 is unavailable.
4137 * jv-valprint.c (java_print_value_fields): Use
4138 value_field_bitfield.
4139 * p-valprint.c (pascal_object_print_value_fields): Use
4140 value_field_bitfield.
4141 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4142
3158c6ed
PA
41432011-02-14 Pedro Alves <pedro@codesourcery.com>
4144
4145 * value.c (get_internalvar_integer): Also return the int value of
4146 TYPE_CODE_INT INTERNALVAR_VALUE values.
4147 (set_internalvar): Don't special case TYPE_CODE_INT.
4148
9fbdca0d
PA
41492011-02-14 Pedro Alves <pedro@codesourcery.com>
4150
4151 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4152 INTERNALVAR_POINTER.
4153 <pointer>: Delete.
4154 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4155 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4156 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4157
c8c1c22f
PA
41582011-02-14 Pedro Alves <pedro@codesourcery.com>
4159
4160 * value.h (value_available_contents_eq): Declare.
4161 * value.c (find_first_range_overlap): New function.
4162 (value_available_contents_eq): New function.
4163 * valprint.c (val_print_array_elements): Use
4164 value_available_contents_eq.
4165 * ada-valprint.c (val_print_packed_array_elements): Use
4166 value_available_contents_eq.
4167 * jv-valprint.c (java_value_print): Use
4168 value_available_contents_eq.
4169
e6e4e701
PA
41702011-02-14 Pedro Alves <pedro@codesourcery.com>
4171
4172 * target.c (target_read_live_memory): New function.
4173 (memory_xfer_live_readonly_partial): New.
4174 (memory_xfer_partial): If reading from a traceframe, fallback to
4175 reading unavailable read-only memory from read-only regions of
4176 live target memory.
4177 * tracepoint.c (disconnect_tracing): Adjust.
4178 (set_current_traceframe): New, factored out from
4179 set_traceframe_number.
4180 (set_traceframe_number): Reimplement to only change the traceframe
4181 number on the GDB side.
4182 (do_restore_current_traceframe_cleanup): Adjust.
4183 (make_cleanup_restore_traceframe_number): New.
4184 (cur_traceframe_number): New global.
4185 (tfile_open): Set cur_traceframe_number to no traceframe.
4186 (set_tfile_traceframe): New function.
4187 (tfile_trace_find): If looking up a traceframe using any method
4188 other than by number, make sure the current tfile traceframe
4189 matches gdb's current traceframe. Update the current tfile
4190 traceframe if the lookup succeeded.
4191 (tfile_fetch_registers, tfile_xfer_partial)
4192 (tfile_get_trace_state_variable_value): Make sure the remote
4193 traceframe matches gdb's current traceframe.
4194 * remote.c (remote_traceframe_number): New global.
4195 (remote_open_1): Set it to -1.
4196 (set_remote_traceframe): New function.
4197 (remote_fetch_registers, remote_store_registers)
4198 (remote_xfer_memory, remote_xfer_partial)
4199 (remote_get_trace_state_variable_value): Make sure the remote
4200 traceframe matches gdb's current traceframe.
4201 (remote_trace_find): If looking up a traceframe using any method
4202 other than by number, make sure the current remote traceframe
4203 matches gdb's current traceframe. Update the current remote
4204 traceframe if the lookup succeeded.
4205 * infrun.c (fetch_inferior_event): Adjust.
4206 * tracepoint.h (set_current_traceframe): Declare.
4207 (get_traceframe_number, set_traceframe_number): Add describing
4208 comments.
4209
e6ca34fc
PA
42102011-02-14 Pedro Alves <pedro@codesourcery.com>
4211
4212 Mark pieces of values as unavailable if the corresponding memory
4213 is unavailable.
4214
4215 * valops.c: Include tracepoint.h.
4216 (value_fetch_lazy): Use read_value_memory.
4217 (read_value_memory): New.
4218 * value.h (read_value_memory): Declare.
4219 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4220 * exec.c (section_table_available_memory): New function.
4221 * exec.h (section_table_available_memory): Declare.
4222
2a7498d8
PA
42232011-02-14 Pedro Alves <pedro@codesourcery.com>
4224
4225 * Makefile.in (SFILES): Add memrange.c.
4226 (HFILES_NO_SRCDIR): Add memrange.h.
4227 (COMMON_OBS): Add memrange.o.
4228 * memrange.c: New file.
4229 * memrange.h: New file.
4230 * tracepoint.c: Include memrange.h.
4231 (struct mem_range): Delete.
4232 (mem_range_s): Delete.
4233 (traceframe_available_memory): New function.
4234 * tracepoint.h (traceframe_available_memory): Declare.
4235
b3b9301e
PA
42362011-02-14 Pedro Alves <pedro@codesourcery.com>
4237
4238 * target.h (struct traceframe_info): Forward declare.
4239 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4240 (struct target_ops) <to_traceframe_info>: New field.
4241 (target_traceframe_info): New.
4242 * target.c (update_current_target): Inherit and default
4243 to_traceframe_info.
4244 * remote.c (PACKET_qXfer_traceframe_info): New.
4245 (remote_protocol_features): Register qXfer:traceframe-info:read.
4246 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4247 (remote_traceframe_info): New.
4248 (init_remote_ops): Install it.
4249 (_initialize_remote): Install "set/show remote traceframe-info"
4250 commands.
4251 * tracepoint.h (parse_traceframe_info): Declare.
4252 * tracepoint.c (struct mem_range): New.
4253 (mem_range_s): New typedef.
4254 (struct traceframe_info): New.
4255 (traceframe_info): New global.
4256 (free_traceframe_info): New function.
4257 (clear_traceframe_info): New function.
4258 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4259 info.
4260 (build_traceframe_info): New function.
4261 (tfile_traceframe_info): New function.
4262 (init_tfile_ops): Install tfile_traceframe_info.
4263 (traceframe_info_start_memory, free_result): New functions.
4264 (memory_attributes, traceframe_info_elements): New globals.
4265 (parse_traceframe_info, get_traceframe_info): New functions.
4266 * features/traceframe-info.dtd: New file.
4267 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4268
4e07d55f
PA
42692011-02-14 Pedro Alves <pedro@codesourcery.com>
4270
4271 Base support for <unavailable> value contents.
4272
4e07d55f
PA
4273 * value.h (value_bytes_available): Declare.
4274 (mark_value_bytes_unavailable): Declare.
4275 * value.c (struct range): New struct.
4276 (range_s): New typedef.
4277 (ranges_overlap): New function.
4278 (range_lessthan): New function.
4279 (ranges_contain_p): New function.
4280 (struct value) <unavailable>: New field.
4281 (value_bytes_available): New function.
4282 (mark_value_bytes_unavailable): New function.
4283 (require_not_optimized_out): Constify parameter.
4284 (require_available): New function.
4285 (value_contents_all, value_contents): Require all bytes be
4286 available.
4287 (value_free): Free `unavailable'.
4288 (value_copy): Copy `unavailable'.
4289 * valprint.h (val_print_unavailable): Declare.
4290 * valprint.c (valprint_check_validity): Rename `offset' parameter
4291 to `embedded_offset'. If printing a scalar, check whether the
4292 value chunk is available.
4293 (val_print_unavailable): New.
4294 (val_print_scalar_formatted): Check whether the value is
4295 available.
4296 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4297 pretty-printing unavailable values.
4298
bc9a5551
JK
42992011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4302 * c-typeprint.c (c_type_print_args): Update the function comment. New
4303 variable param_type, initialize it. Remove const/volatile qualifiers
4304 for language_cplus and !show_artificial. Use param_type.
4305
93b55aa1
JK
43062011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4309 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4310 * symtab.h (struct symtab) <next>: Comment extension.
4311
181d9476
YQ
43122011-02-12 Yao Qi <yao@codesourcery.com>
4313
4314 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4315
b708a5c7
JK
43162011-02-11 Yao Qi <yao@codesourcery.com>
4317
4318 * common/Makefile.in: Add copyright header.
4319
c5187ac6
PA
43202011-02-11 Pedro Alves <pedro@codesourcery.com>
4321
4322 * infrun.c (proceed): Move switching out and in of tfind mode from
4323 here ...
4324 (fetch_inferior_event): ... to here.
4325
4f3e6fb7
YQ
43262011-02-11 Yao Qi <yao@codesourcery.com>
4327
4328 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4329 libcommon.a.
4330 * configure.ac: Add common to sub dir.
4331 * configure: Regenerate.
4332
b708a5c7
JK
43332011-02-11 Yao Qi <yao@codesourcery.com>
4334
4335 Build libcommon.a.
4336
4337 * common/Makefile.in: New.
4338 * common/configure.ac: New.
4339 * common/aclocal.m4: New.
4340 * common/configure: Generate.
4341
2287cc7e
PA
43422011-02-10 Pedro Alves <pedro@codesourcery.com>
4343
4344 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4345 side of the parenthesis.
4346
4347 Merge from GCC:
4348 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 4349 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 4350
fd62cb89
MS
43512011-02-08 Michael Snyder <msnyder@vmware.com>
4352
4353 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4354
56d2815c
JK
43552011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4358 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4359 psubd and paddd.
4360
4f7d61a8
JK
43612011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 PR 12361.
4364 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4365 phsubsw.
4366 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4367 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4368
54fcddd0
UW
43692011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4370
4371 * dwarf2read.c (read_subroutine_type): Set special calling
4372 convention flag for functions compiled by IBM XL C for OpenCL.
4373 * ppc-sysv-tdep.c: Include "dwarf2.h"
4374 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4375 calling convention.
4376 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4377 IBM OpenCL vector types calling convention.
4378 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4379 (ppc_sysv_abi_broken_return_value): Likewise.
4380 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4381 types calling convention.
4382 (ppc64_sysv_abi_return_value): Likewise.
4383 * spu-tdep.c: Include "dwarf2.h"
4384 (spu_return_value): Implement IBM OpenCL vector types calling
4385 convention.
4386
d6dafb7c
UW
43872011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4388
4389 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4390 correct ABI for AltiVec vector arguments.
4391
32b72a42
PA
43922011-02-07 Pedro Alves <pedro@codesourcery.com>
4393
4394 * valprint.c (val_print): Extend comment.
4395 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4396 interface explanation to val_print.
4397 (ada_val_print_array): Adjust comment to current interface.
4398 (print_field_values): Adjust comment to current interface.
4399 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4400 explanation to val_print.
4401 * f-valprint.c (f_val_print): Ditto.
4402 * jv-valprint.c (java_val_print): Ditto.
4403 * m2-valprint.c (m2_val_print): Ditto.
4404 * p-valprint.c (pascal_val_print): Ditto.
4405
9998af43
TJB
44062011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4407
4408 * breakpoint.c (parse_breakpoint_sals): Fix description.
4409
505500db 44102011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 4411 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
4412
4413 * python/py-inferior.c (python_on_normal_stop): New function.
4414 (python_on_resume): New function.
4415 (python_inferior_exit): New function.
4416 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4417 inferior_exit observers.
4418 * python/py-evtregistry.c: New file.
4419 * python/py-threadevent.c : New file.
4420 * python/py-event.c: New file.
4421 * python/py-evts.c: New file.
4422 * python/py-continueevent.c: New file.
4423 * python/py-bpevent.c: New file.
4424 * python/py-signalevent.c: New file.
4425 * python/py-exetiedevent.c: New file.
4426 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4427 Move struct breakpoint_object from here...
4428 * python/python-internal.h: ... to here.
4429 * python/py-event.h: New file.
4430 * python/py-events.h: New file.
4431 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4432 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4433 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4434 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4435 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4436 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4437 Add build rules for all the above.
4438
9e0ac564
TT
44392011-02-04 Tom Tromey <tromey@redhat.com>
4440
4441 * dwarf2read.c (dwarf2_section_empty_p): New function.
4442 (dwarf2_read_section): Use dwarf2_section_empty_p.
4443 (dwarf2_section_size): New function.
4444 (dwarf2_get_section_info): Unconditionally read section.
4445 (dwarf2_read_index): Use dwarf2_section_empty_p.
4446 (partial_read_comp_unit_head): Use dwarf2_section_size.
4447 (dwarf2_symbol_mark_computed): Likewise.
4448
eee5b35e
DD
44492011-02-04 David Daney <ddaney@caviumnetworks.com>
4450
4451 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4452
385203ed
DD
44532011-02-04 David Daney <ddaney@caviumnetworks.com>
4454
4455 * mips-linux-tdep.c: Include xml-syscall.h.
4456 (mips_linux_get_syscall_number): New function.
4457 (mips_linux_init_abi): Add calls to
4458 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4459 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4460 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4461 * syscalls/mips-n32-linux.xml: New file.
4462 * syscalls/mips-n64-linux.xml: New file.
4463 * syscalls/mips-o32-linux.xml: New file.
4464
9277c30c
UW
44652011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4466
4467 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4468 Complain about inverted range entries.
4469 (dwarf2_record_block_ranges): Likewise.
4470
a3be7890
TJB
44712011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4472
4473 Fix some typos.
4474 * breakpoint.c (update_watchpoint): Fix name of the
4475 update_global_location_list function.
4476 (print_one_breakpoint): Fix typo.
4477 (_initialize_breakpoint): Remove extra space in hbreak help
4478 string.
4479 * breakpoint.h (struct bp_location) <length>: Fix field
4480 description.
4481
041274d8
PA
44822011-02-04 Pedro Alves <pedro@codesourcery.com>
4483
4484 * regcache.c (registers_changed_ptid): Don't explictly always
4485 clear `current_regcache'. Only clear current_thread_ptid and
4486 current_thread_arch when PTID matches. Only reinit the frame
4487 cache if PTID matches the current inferior_ptid. Move alloca(0)
4488 call to ...
4489 (registers_changed): ... here.
4490
c1c2ab58
UW
44912011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4492
4493 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4494 starts with __stack_chk_guard as stack guard symbol.
4495
9011945e
AB
44962011-02-03 Andrew Burgess <aburgess@broadcom.com>
4497
4498 * disasm.c (compare_lines): Handle the end of sequence markers
4499 within the line table to better support disassembling over
4500 compilation unit boundaries.
4501
e0634ccf
UW
45022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4503
4504 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4505 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4506 implementation even if no symbols are available.
4507 (thumb_analyze_prologue): Update call to skip_prologue_function.
4508 (arm_analyze_prologue): Likewise.
4509
0e9e9abd
UW
45102011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4511
4512 * arm-tdep.c: Include "observer.h".
4513 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4514 (arm_exidx_data_key): New static variable.
4515 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4516 (struct arm_exidx_data): Likewise.
4517 (arm_exidx_data_free): New function.
4518 (arm_compare_exidx_entries): Likewise.
4519 (arm_obj_section_from_vma): Likewise.
4520 (arm_exidx_new_objfile): Likewise.
4521 (arm_find_exidx_entry): Likewise.
4522 (arm_exidx_fill_cache): Likewise.
4523 (arm_exidx_unwind_sniffer): Likewise.
4524 (arm_exidx_unwind): New global variable.
4525 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4526 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4527 observer. Register arm_exidx_data_key as objfile data.
4528
2e9e421f
UW
45292011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4530
4531 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4532 due to accessing uninitialized variable. Fix indentation.
4533
580688f3
PA
45342011-02-02 Pedro Alves <pedro@codesourcery.com>
4535
4536 * c-valprint.c (c_value_print): When doing virtual base pointer
4537 adjustment, create a new value with adjusted contents rather than
4538 changing the contents of the value being printed (and getting it
4539 wrong).
4540
3d2c1d41
PA
45412011-02-02 Pedro Alves <pedro@codesourcery.com>
4542
4543 * xml-support.c (xml_find_attribute): New.
4544 (xinclude_start_include): Use it.
4545 * xml-support.h (xml_find_attribute): Declare.
4546 * memory-map.c (memory_map_start_memory)
4547 (memory_map_start_property): Use xml_find_attribute.
4548 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4549 xml_find_attribute.
4550 * remote.c (start_thread): Use xml_find_attribute.
4551 * solib-target.c (library_list_start_segment)
4552 (library_list_start_section, library_list_start_library)
4553 (library_list_start_list): Use xml_find_attribute.
4554 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4555 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4556 (tdesc_start_field): Use xml_find_attribute.
4557
0af3e2db
UW
45582011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4559
4560 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4561 (BUILD_OCL_VTYPES): Update.
4562
c1039e3c
JB
45632011-02-02 Joel Brobecker <brobecker@adacore.com>
4564
4565 * configure.ac: Work around non-GNU sed limitation when computing
4566 python version number.
4567 * configure: Regenerate.
4568
600ea1be
JK
45692011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 Fix debug printing of TYPE_INSTANCE.
4572 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4573 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4574
56c12414
JK
45752011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4576
4577 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4578 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4579 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4580 * ada-operator.inc: Rename the file to ...
4581 * ada-operator.def: ... here, wrap all the entries by macro OP.
4582 * expprint.c (op_name_standard): Remove all the entries. Include
4583 "std-operator.def" instead.
4584 * expression.h (enum exp_opcode): Include "std-operator.def" and
4585 "ada-operator.def". Move all the entries ...
4586 * std-operator.def: ... here, wrap all the entries by macro OP.
4587
c52b559d
PP
45882011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4589
4590 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4591 * breakpoint.c (remove_jit_event_breakpoints): New function.
4592 * jit.c (jit_descriptor_addr): Delete.
4593 (registering_code): Delete.
4594 (clear_int): Delete.
4595 (jit_inferior_data): New variable.
4596 (struct jit_inferior_data): New type.
4597 (get_jit_inferior_data): New function.
4598 (jit_inferior_data_cleanup): New function.
4599 (jit_read_descriptor): Adjust.
4600 (jit_register_code): Adjust.
4601 (jit_breakpoint_re_set_internal): New function; move code here ...
4602 (jit_inferior_init): ... from here.
4603 (jit_breakpoint_re_set): Adjust.
4604 (jit_reset_inferior_data_and_breakpoints): New function.
4605 (jit_inferior_created_observer): Adjust.
4606 (jit_inferior_exit_hook): Adjust.
4607 (jit_executable_changed_observer): New function.
4608 (jit_event_handler): Adjust.
4609 (_initialize_jit): Adjust.
4610
e839132d
MS
46112011-01-31 Michael Snyder <msnyder@vmware.com>
4612
4613 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4614 line.
4615
47a80e90
TT
46162011-01-31 Tom Tromey <tromey@redhat.com>
4617
4618 PR python/12216:
4619 * python/python.c (execute_gdb_command): Call
4620 prevent_dont_repeat.
4621 * top.c (suppress_dont_repeat): New global.
4622 (dont_repeat): Use it.
4623 (prevent_dont_repeat): New function.
4624 * command.h (prevent_dont_repeat): Declare.
4625
45a43567
TT
46262011-01-31 Tom Tromey <tromey@redhat.com>
4627
4628 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4629 * python/py-breakpoint.c (bppy_set_silent): Use
4630 breakpoint_set_silent.
4631 (bppy_set_thread): Use breakpoint_set_thread.
4632 (bppy_set_task): Use breakpoint_set_task.
4633 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4634 (breakpoint_set_task): Declare.
4635 (make_breakpoint_silent): Remove.
4636 * breakpoint.c (breakpoint_set_silent): New function.
4637 (breakpoint_set_thread): Likewise.
4638 (breakpoint_set_task): Likewise.
4639 (make_breakpoint_silent): Remove.
4640
09d682a4
TT
46412011-01-31 Tom Tromey <tromey@redhat.com>
4642
4643 * breakpoint.h (user_breakpoint_p): Declare.
4644 * breakpoint.c (user_breakpoint_p): New function.
4645 (breakpoint_1): Use it.
4646 (save_breakpoints): Likewise.
4647
9c4ea6c5
JB
46482011-01-31 Joel Brobecker <brobecker@adacore.com>
4649
4650 * configure.ac: Add handling of Python distribution on Windows.
4651 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4652 sysconfig variables are not defined, then do not use them.
4653 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4654 instead. On Windows, return all paths using forward-slashes
4655 rather than backslashes.
4656
ac534cba
JB
46572011-01-31 Joel Brobecker <brobecker@adacore.com>
4658
4659 * configure.ac: Remove fallback behavior for building
4660 against Python. Remove tweaking of Python include path.
4661 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4662 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4663 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4664 Always restore CPPFLAGS and LIBS after linking test.
4665 * configure: Regenerated.
4666 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4667 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4668 * python/python-internal.h: Adjust includes of Python .h files.
4669
c2f0d045
JB
46702011-01-31 Joel Brobecker <brobecker@adacore.com>
4671
4672 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4673 in error message.
4674
6b0c4c1f
JB
46752011-01-31 Joel Brobecker <brobecker@adacore.com>
4676
4677 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4678 value test.
4679
672c9795
YQ
46802011-01-31 Yao Qi <yao@codesourcery.com>
4681
4682 * arm-linux-nat.c: Update calls to regcache_register_status
4683 instead of regcache_valid_p.
4684 * aix-thread.c: Likewise.
4685 * i386gnu-nat.c: Likewise.
4686
80b23b6a
JK
46872011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4688
4689 Fix crash.
4690 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4691 touching TYPE_FIELD_ARTIFICIAL.
4692
4cd712bd
RE
46932011-01-28 Richard Earnshaw <rearnsha@arm.com>
4694
4695 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4696 Committers.
4697
ffd5ec24
PA
46982011-01-28 Pedro Alves <pedro@codesourcery.com>
4699
4700 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4701 selected, don't try iterating over the traceframe's blocks.
4702 (tfile_has_stack): If there's no traceframe selected, then there's
4703 no stack.
4704 (tfile_has_registers): If there's no traceframe selected, then
4705 there's no registers.
4706
e8c9e0a1
PA
47072011-01-28 Pedro Alves <pedro@codesourcery.com>
4708
4709 * target.c (memory_xfer_partial): No need to restore shadows if we
4710 haven't read anything.
4711
de15c4ab
PA
47122011-01-28 Pedro Alves <pedro@codesourcery.com>
4713
4714 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4715 and val_print_scalar_formatted.
4716
9f41c731
PA
47172011-01-27 Pedro Alves <pedro@codesourcery.com>
4718
4719 * tracepoint.c (tfile_read): New.
4720 (tfile_open): Use it.
4721 (tfile_get_traceframe_address): Use it.
4722 (tfile_trace_find): Use it.
4723 (walk_blocks_callback_func): New typedef.
4724 (match_blocktype): New function.
4725 (traceframe_walk_blocks): New function.
4726 (traceframe_find_block_type): New function.
4727 (tfile_fetch_registers, tfile_xfer_partial)
4728 (tfile_get_trace_state_variable_value): Use
4729 traceframe_find_block_type and tfile_read.
4730
cdefc55d
KB
47312011-01-26 Kevin Buettner <kevinb@redhat.com>
4732
4733 * remote-mips.c: Add internationalization mark ups. Remove
4734 trailing \n from already marked up strings.
4735
a81766d8
TT
47362011-01-26 Tom Tromey <tromey@redhat.com>
4737
4738 * python/py-prettyprint.c (print_string_repr): Clear
4739 'addressprint' option when calling val_print_string.
4740 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4741 option when calling val_print_string.
4742
74aedc46
TT
47432011-01-26 Tom Tromey <tromey@redhat.com>
4744
4745 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4746 GDB_PY_LL_ARG.
4747 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4748 macros.
4749 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4750 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4751 (gdb_py_long_as_ulongest): New defines.
4752 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4753 (gdb_py_int_as_long): Declare.
4754 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4755 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4756 (valpy_long): Add comment.
4757 * python/py-utils.c (get_addr_from_python): Use
4758 gdb_py_long_as_ulongest. Handle overflow properly.
4759 (gdb_py_object_from_longest): New function.
4760 (gdb_py_object_from_ulongest): Likewise.
4761 (gdb_py_int_as_long): Likewise.
4762 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4763 * python/py-symtab.c (salpy_get_pc): Use
4764 gdb_py_long_from_ulongest.
4765 (salpy_get_line): Use PyInt_FromLong.
4766 * python/py-param.c (set_parameter_value): Use
4767 gdb_py_int_as_long.
4768 * python/py-lazy-string.c (stpy_get_address): Use
4769 gdb_py_long_from_ulongest.
4770 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4771 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4772 * python/py-breakpoint.c (bppy_set_thread): Use
4773 gdb_py_int_as_long.
4774 (bppy_set_task): Likewise.
4775 (bppy_set_ignore_count): Likewise.
4776 (bppy_set_hit_count): Likewise.
4777 * python/py-block.c (blpy_get_start): Use
4778 gdb_py_object_from_ulongest.
4779 (blpy_get_end): Likewise.
4780 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4781
e4f6d2ec
TJB
47822011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4783
4784 PR/symtab 11766:
4785 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4786 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4787 equality test for objfile, initialize addr_low if needed.
4788
b30aa278
PA
47892011-01-25 Pedro Alves <pedro@codesourcery.com>
4790
4791 * tui/tui-regs.c (tui_register_format): Remove dead code.
4792
ab2188aa
PA
47932011-01-25 Pedro Alves <pedro@codesourcery.com>
4794
4795 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4796 instead of print_scalar_formatted.
4797 (print_scalar_formatted): Don't handle 's' format strings here,
4798 and add an assertion that we never see such format here.
4799 * valprint.h (val_print_scalar_formatted): Declare.
4800 * valprint.c (val_print_scalar_formatted): New.
4801 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4802 instead of print_scalar_formatted.
4803 * jv-valprint.c (java_val_print): Ditto.
4804 * p-valprint.c (pascal_val_print): Ditto.
4805 * ada-valprint.c (ada_val_print_1): Ditto.
4806 * f-valprint.c (f_val_print): Ditto.
4807 * infcmd.c (registers_info): Ditto.
4808 * m2-valprint.c (m2_val_print): Ditto.
4809
66d61a4c
PA
48102011-01-25 Pedro Alves <pedro@codesourcery.com>
4811
4812 * m2-valprint.c (print_unbounded_array): Pass
4813 value_contents_for_printing rather than value_contents, to
4814 m2_print_array_contents. Also pass in the value.
4815
831adc1f
JK
48162011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4817
4818 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4819 (save_gdb_index_command): Switch to .gdb_index version 4.
4820
20622269
PA
48212011-01-25 Pedro Alves <pedro@codesourcery.com>
4822
4823 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4824 than frame_register, and always pass a valid value to val_print.
4825
585fdaa1
PA
48262011-01-25 Pedro Alves <pedro@codesourcery.com>
4827
4828 Centralize printing "<optimized out>".
4829
4830 * valprint.h (val_print_optimized_out): Declare.
4831 * cp-valprint.c (cp_print_value_fields): Use
4832 val_print_optimized_out.
4833 * jv-valprint.c (java_print_value_fields): Ditto.
4834 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4835 * printcmd.c (print_formatted): Ditto.
4836 * valprint.c (valprint_check_validity): Ditto.
4837 (value_check_printable): Ditto.
4838 (val_print_optimized_out): New.
4839
29ec5263
PA
48402011-01-25 Pedro Alves <pedro@codesourcery.com>
4841
4842 * infcmd.c (default_print_registers_info): Allocate values so to
4843 never pass a NULL value to val_print.
4844
de4127a3
PA
48452011-01-25 Pedro Alves <pedro@codesourcery.com>
4846
4847 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4848 boolean. Make sure to always pass a value that matches the
4849 contents buffer to callees. Preserve `address' for following
4850 iterations.
4851 * value.c (value_contents_for_printing_const): New.
4852 (value_address): Constify value argument.
4853 * value.h (value_contents_for_printing_const): Declare.
4854 (value_address): Constify value argument.
4855
ee99023e
PA
48562011-01-25 Pedro Alves <pedro@codesourcery.com>
4857
4858 * regcache.c (struct regcache_descr): Rename
4859 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4860 and sizeof_cooked_register_valid_p to
4861 sizeof_cooked_register_status.
4862 (init_regcache_descr): Adjust.
4863 (struct regcache): Rename register_valid_p field to
4864 register_status.
4865 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4866 (do_cooked_read): Adjust.
4867 (regcache_valid_p): Rename to ...
4868 (regcache_register_status): ... this. Adjust.
4869 (regcache_invalidate): Adjust.
4870 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4871 Adjust.
4872 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4873 as unavailable, not valid.
4874 (regcache_dump): Adjust.
4875 * regcache.h (enum register_status): New.
4876 (regcache_register_status): Declare.
4877 (regcache_invalidate): Delete declaration.
4878 * corelow.c (get_core_registers): Adjust.
4879 * tracepoint.c (tfile_fetch_registers): Adjust.
4880 * trad-frame.c (REG_VALUE): Rename to ...
4881 (TF_REG_VALUE): ... this.
4882 (REG_UNKNOWN): Rename to ...
4883 (TF_REG_UNKNOWN): ... this.
4884 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4885 * mi/mi-main.c (register_changed_p): Adjust.
4886
99e42fd8
PA
48872011-01-25 Pedro Alves <pedro@codesourcery.com>
4888
4889 * regcache.c (struct regcache_descr): Remove outdated comment.
4890 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4891 overallocate hack.
4892 (regcache_xmalloc): Rename to ...
4893 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4894 Allocate the regcache type accordingly.
4895 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4896 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4897 cooked registers, not raw.
4898 (regcache_dup_no_passthrough): Delete.
4899 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4900 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4901 mention obsolete write_register_bytes.
4902 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4903
f7605bc2
PA
49042011-01-25 Pedro Alves <pedro@codesourcery.com>
4905
4906 Stop remote_read_bytes from handling partial reads itself.
4907
4908 * remote-fileio.c: Include target.h.
4909 (remote_fileio_write_bytes): Delete.
4910 (remote_fileio_func_open, remote_fileio_func_write)
4911 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4912 target_read_memory.
4913 (remote_fileio_func_stat): Use target_read_memory and
4914 target_write_memory.
4915 (remote_fileio_func_gettimeofday): Use target_write_memory.
4916 (remote_fileio_func_system): Use target_read_memory.
4917 * remote.c (remote_write_bytes): Make it static.
4918 (remote_read_bytes): Don't handle partial reads here.
4919 * remote.h (remote_read_bytes): Delete declaration.
4920
efc0eabd
PA
49212011-01-25 Pedro Alves <pedro@codesourcery.com>
4922
4923 Simplify XML parsing a bit.
4924
4925 * xml-support.h (gdb_xml_parse_quick): Declare.
4926 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4927 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4928 parameter.
4929 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4930 gdb_xml_create_parser_and_cleanup_1.
4931 (gdb_xml_parse_quick): New.
4932 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4933 * osdata.c (osdata_parse): Ditto.
4934 * remote.c (remote_threads_info): Ditto.
4935 * solib-target.c (solib_target_parse_libraries): Ditto.
4936 * xml-syscall.c (syscall_parse_xml): Ditto.
4937 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4938
314d366a
KB
49392011-01-24 Kevin Buettner <kevinb@redhat.com>
4940
4941 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4942 with remote-mips.o added to gdb_target_obs.
4943 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4944
a491d753
PA
49452011-01-24 Pedro Alves <pedro@codesourcery.com>
4946
4947 * ada-valprint.c (val_print_packed_array_elements): Pass the
4948 correct struct value to val_print.
4949 (ada_val_print_1): Ditto.
4950
490f124f
PA
49512011-01-24 Pedro Alves <pedro@codesourcery.com>
4952
4953 Don't lose embedded_offset in printing routines throughout.
4954
4955 * valprint.h (val_print_array_elements): Change prototype.
4956 * valprint.c (val_print_array_elements): Add `embedded_offset'
4957 parameter, and adjust to pass it down to val_print, while passing
4958 `valaddr' or `address' unmodified. Take embedded_offset into
4959 account when checking repetitions.
4960 * c-valprint.c (c_val_print): Pass embedded_offset to
4961 val_print_array_elements instead of adjusting `valaddr' and
4962 `address'.
4963 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4964 embedded_offset to val_print_array_elements instead of adjusting
4965 `valaddr'.
4966 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4967 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4968 val_print_array_elements and pascal_object_print_value_fields
4969 instead of adjusting `valaddr'.
4970 (pascal_object_print_value_fields): Add `offset' parameter, and
4971 adjust to use it.
4972 (pascal_object_print_value): Add `offset' parameter, and adjust to
4973 use it.
4974 (pascal_object_print_static_field): Use
4975 value_contents_for_printing/value_embedded_offset, rather than
4976 value_contents.
4977 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4978 parameter, and adjust to use it. Use
4979 value_contents_for_printing/value_embedded_offset, rather than
4980 value_contents.
4981 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4982 (ada_val_print_array): Add `offset' parameter, and adjust to use
4983 it.
4984 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4985 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4986 Instead work with offsets. Use
4987 value_contents_for_printing/value_embedded_offset, rather than
4988 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4989 and use value_from_pointer to extract a target pointer, rather
4990 than value_from_longest.
4991 (print_variant_part): Add `offset' parameter. Replace
4992 `outer_valaddr' parameter by a new `outer_offset' parameter.
4993 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4994 (ada_value_print): Use
4995 value_contents_for_printing/value_embedded_offset, rather than
4996 value_contents.
4997 (print_record): Add `offset' parameter, and adjust to pass it
4998 down.
4999 (print_field_values): Add `offset' parameter. Replace
5000 `outer_valaddr' parameter by a new `outer_offset' parameter.
5001 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5002 Use value_contents_for_printing/value_embedded_offset, rather than
5003 value_contents.
5004 * d-valprint.c (dynamic_array_type): Use
5005 value_contents_for_printing/value_embedded_offset, rather than
5006 value_contents.
5007 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5008 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5009 (java_print_value_fields): Take `offset' into account. Don't
5010 re-adjust `valaddr'. Instead pass down adjusted offsets.
5011 (java_val_print): Take `embedded_offset' into account. Pass it to
5012 java_print_value_fields.
5013 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5014 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5015 down adjusted offsets.
5016 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5017 (f_val_print): Take `embedded_offset' into account.
5018
7bfc9434
JB
50192011-01-21 Joel Brobecker <brobecker@adacore.com>
5020
5021 * inflow.c: Include "gdbcmd.h".
5022 (interactive_mode): New static global, moved here from top.c.
5023 (show_interactive_mode): New function, moved here from top.c.
5024 use gdb_has_a_terminal instead of input_from_terminal_p to
5025 determine the current mode.
5026 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5027 setting.
5028 (_initialize_inflow): Add the "set/show interactive-mode"
5029 commands. Moved here from top.c, after having adjusted slightly
5030 the help text.
5031 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5032 to inflow.c.
5033 (input_from_terminal_p): Remove handling of "interactive-mode"
5034 setting, moved to infow.c.
5035 (init_main): Remove creation of the "set/show interactive-mode"
5036 commands, moved to inflow.c.
5037
44603653
JB
50382011-01-19 Joel Brobecker <brobecker@adacore.com>
5039
5040 * NEWS: Add entry for native ia64-hpux support.
5041
4694da01
TT
50422011-01-19 Tom Tromey <tromey@redhat.com>
5043
5044 PR mi/8618:
5045 * thread.c (free_thread): Free 'name'.
5046 (print_thread_info): Emit thread name. Change CLI output.
5047 (thread_name_command): New function.
5048 (do_captured_thread_select): Emit newline.
5049 (_initialize_thread): Register 'thread name' command.
5050 * target.h (struct target_ops) <to_thread_name>: New field.
5051 (target_thread_name): New macro.
5052 * target.c (update_current_target): Handle to_thread_name.
5053 * python/py-infthread.c (thpy_get_name): New function.
5054 (thpy_set_name): Likewise.
5055 (thread_object_getset): Add "name".
5056 * linux-nat.c (linux_nat_thread_name): New function.
5057 (linux_nat_add_target): Set to_thread_name.
5058 * gdbthread.h (struct thread_info) <name>: New field.
5059
10d44370
JB
50602011-01-18 Joel Brobecker <brobecker@adacore.com>
5061
5062 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5063 (ada_val_print_1): Likewise.
5064
e3acb115
JB
50652011-01-18 Joel Brobecker <brobecker@adacore.com>
5066
5067 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5068 upper limit address is not greater than the function end address
5069 when the upper limit could not be computed using the debugging
5070 info.
5071
dc92e161
TT
50722011-01-17 Tom Tromey <tromey@redhat.com>
5073
5074 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5075 get_regcomp_error.
5076 * utils.c: Include gdb_regex.h.
5077 (do_regfree_cleanup): New function.
5078 (make_regfree_cleanup): Likewise.
5079 (get_regcomp_error): Likewise.
5080 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5081
f55af66d
TT
50822011-01-17 Tom Tromey <tromey@redhat.com>
5083
5084 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5085 re_compile_fastmap.
5086
a5a44b53
PM
50872011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5088
5089 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5090 for internal variables.
5091 (last_was_structop): New static variable.
5092 (COMPLETE): New token.
5093 (field_exp): New rule to group all '.' suffix handling.
5094 Add mark_struct_expression calls when approriate to be able
5095 to correctly find fields for completion.
5096 (yylex): Adapt to handle field completion and set INTVAR when
5097 required.
5098
2c291032
YQ
50992011-01-14 Yao Qi <yao@codesourcery.com>
5100
5101 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5102 save_reggroup, restore_reggroup and all_reggroup.
5103
447b483c
JB
51042011-01-14 Joel Brobecker <brobecker@adacore.com>
5105
5106 * ada-valprint. (ada_printchar): Use the correct type length
5107 in call to ada_emit_char.
5108 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5109
7b64a93b
PM
51102011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5111
5112 * solib-som.h (hpux_major_release): Declare variable here.
5113 * solib-som.c: Remove <sys/utsname.h> header.
5114 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5115 (hpux_major_release): Make global, change default value to
5116 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 5117 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
5118 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5119 Add "solib-som.h" header.
5120 (set_hpux_major_release): New function.
5121 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5122
4e18c053
MF
51232011-01-14 Mike Frysinger <vapier@gentoo.org>
5124
5125 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5126
a9df6b22
JB
51272011-01-14 Joel Brobecker <brobecker@adacore.com>
5128
5129 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5130 new-line at end of warning message.
5131 (ia64_hpux_store_register): Remove trailing new-line at end of
5132 error message.
5133 * ia64-hpux-tdep.c: Rephrase comment.
5134 * solib-ia64-hpux.c (struct dld_info): Change type of field
5135 dld_flags from "long long" to ULONGEST.
5136
ecb956dd
PA
51372011-01-14 Pedro Alves <pedro@codesourcery.com>
5138
5139 * target.h (deprecated_child_ops): Delete declaration.
5140 * target.c (deprecated_child_ops): Delete definition.
5141
76adfcae
PA
51422011-01-14 Pedro Alves <pedro@codesourcery.com>
5143
5144 * Makefile.in (hpux-thread.o): Delete rule.
5145 * configure.ac: Don't check for HPUX DCE threads support.
5146 * configure, config.in: Regenerate.
5147 * hppa-hpux-nat.c (child_suppress_run): Delete.
5148 (hppa_hpux_child_can_run): Delete.
5149 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5150 * hpux-thread.c: Delete.
5151
042e866e
JB
51522011-01-13 Joel Brobecker <brobecker@adacore.com>
5153
5154 * hpux-thread.c (hpux_pid_to_str): Delete.
5155
4ffa5a33
JB
51562011-01-13 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-valprint.c (ada_emit_char): Remove strange code.
5159 Check that c is <= UCHAR_MAX before passing it to isascii.
5160 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5161
de8fa76c
JB
51622011-01-13 Joel Brobecker <brobecker@adacore.com>
5163
5164 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5165 to the case where instream is stdin.
5166
c4de7027
JB
51672011-01-13 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ia64-tdep.h (struct regcache): Forward declare.
5170 (struct ia64_infcall_ops): New struct type.
5171 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5172 and "infcall_ops".
5173 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5174 Renames ia64_find_global_pointer.
5175 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5176 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5177 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5178 methods.
5179 (ia64_infcall_ops): New static global constant.
5180 (ia64_gdbarch_init): Set tdep->infcall_ops.
5181 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5182 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5183 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5184 (ia64_hpux_dummy_code): New static global constant.
5185 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5186 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5187 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5188 New function.
5189 (ia64_hpux_infcall_ops): New static global constant.
5190 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5191 for inferior function calls to work properly on ia64-hpux.
5192
77ca787b
JB
51932011-01-13 Joel Brobecker <brobecker@adacore.com>
5194
5195 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5196 * ia64-tdep.h (struct frame_info): forward declaration.
5197 (struct gdbarch_tdep): Add field size_of_register_frame.
5198 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5199 to determine the size of the register frame.
5200 (ia64_size_of_register_frame): New function.
5201 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5202 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5203 (IA64_HPUX_UREG_REASON): New macro.
5204 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5205 New functions.
5206 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5207 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5208 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5209 objects.
5210
92c9a463
JB
52112011-01-13 Joel Brobecker <brobecker@adacore.com>
5212
5213 Add support for ia64-hpux.
5214 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5215 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5216
5217 * configure.host: Add handling for ia64-hpux hosts. Add associated
5218 floatformats.
5219 * configure.tgt: Add handling for ia64-hpux targets.
5220 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5221 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5222 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5223
f688d93f
JB
52242011-01-13 Joel Brobecker <brobecker@adacore.com>
5225
5226 [ttrace] Compute thread list immediately after attach.
5227 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5228 New subprogram.
5229 (inf_ttrace_attach): Use it.
5230
1b89e62f
JB
52312011-01-13 Joel Brobecker <brobecker@adacore.com>
5232
5233 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5234 if we could not determine the frame's function address. Instead,
5235 use the frame's PC, and then continue.
5236
3e5e6e2a
JB
52372011-01-13 Joel Brobecker <brobecker@adacore.com>
5238
5239 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5240 not already defined.
5241
825d6d8a
JB
52422011-01-13 Joel Brobecker <brobecker@adacore.com>
5243
5244 * ia64-tdep.c (ia64_struct_type_p): New function.
5245 (ia64_extract_return_value): Handle integral values that are
5246 less than 8 bytes long.
5247 (ia64_push_dummy_call): Likewise.
5248
7458e667
JB
52492011-01-13 Joel Brobecker <brobecker@adacore.com>
5250
5251 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5252 floatformat_ia64_ext.
5253 (floatformat_ia64_ext_big): New static const.
5254 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5255
1b05df00
TT
52562011-01-12 Tom Tromey <tromey@redhat.com>
5257
5258 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5259 messages.
5260 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5261 (mi_cmd_thread_list_ids): Likewise.
5262 (mi_cmd_data_list_changed_registers): Likewise.
5263 (mi_cmd_data_list_register_values): Likewise.
5264 (mi_cmd_data_write_register_values): Likewise.
5265 (mi_cmd_data_evaluate_expression): Likewise.
5266 (mi_cmd_data_read_memory): Likewise.
5267 (mi_cmd_data_read_memory_bytes): Likewise.
5268 (mi_cmd_data_write_memory): Likewise.
5269 (mi_cmd_enable_timings): Likewise.
5270 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5271 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5272 (mi_cmd_var_delete): Likewise.
5273 (mi_cmd_var_set_format): Likewise.
5274 (mi_cmd_var_show_format): Likewise.
5275 (mi_cmd_var_info_num_children): Likewise.
5276 (mi_cmd_var_list_children): Likewise.
5277 (mi_cmd_var_info_type): Likewise.
5278 (mi_cmd_var_info_expression): Likewise.
5279 (mi_cmd_var_show_attributes): Likewise.
5280 (mi_cmd_var_assign): Likewise.
5281 (mi_cmd_var_update): Likewise.
5282 (mi_cmd_enable_pretty_printing): Likewise.
5283 (mi_cmd_var_set_update_range): Likewise.
5284 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5285 messages.
5286 (mi_cmd_target_file_put): Likewise.
5287 (mi_cmd_target_file_delete): Likewise.
5288 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5289 messages.
5290 (mi_cmd_stack_info_depth): Likewise.
5291 (mi_cmd_stack_list_locals): Likewise.
5292 (mi_cmd_stack_list_args): Likewise.
5293 (mi_cmd_stack_select_frame): Likewise.
5294 (mi_cmd_stack_select_frame): Likewise.
5295 (mi_cmd_stack_info_frame): Likewise.
5296 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5297 messages.
5298 (mi_cmd_file_list_exec_source_files): Likewise.
5299 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5300 (mi_cmd_env_cd): Likewise.
5301 (mi_cmd_env_path): Likewise.
5302 (mi_cmd_env_dir): Likewise.
5303 (mi_cmd_inferior_tty_show): Likewise.
5304 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5306 (mi_cmd_break_watch): Likewise.
5307
ad422571
TJB
53082011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5309
5310 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5311 (ppc_linux_insert_hw_breakpoint): Likewise.
5312 (ppc_linux_remove_hw_breakpoint): Likewise.
5313 (ppc_linux_insert_watchpoint): Likewise.
5314
c2ff108b
JK
53152011-01-12 Andrew Burgess <aburgess@broadcom.com>
5316 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 PR fortran/11104 and DWARF unbound arrays detection.
5319 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5320 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5321 unspecified upper bound.
5322 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5323 variables array_size_array, tmp_type and offset_item. New variable
5324 array. Remove call to f77_get_upperbound. New variables array_type
5325 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5326 the final call to deprecated_set_value_type.
5327
41e8491f
JK
53282011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5329
5330 Make value allocations more lazy.
5331 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5332 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 5333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
5334 instead of allocate_value and set_value_lazy.
5335 * findvar.c (value_of_register_lazy): Likewise.
5336 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 5337 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
5338 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5339 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5340 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5341 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5342 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5343 the end, remove set_value_lazy there.
5344 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5345 instead of allocate_value and set_value_lazy when possible.
5346 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5347 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5348 of allocate_value and set_value_lazy.
5349 (value_from_contents_and_address): Use allocate_value_lazy instead of
5350 allocate_value and set_value_lazy when possible.
5351
b716877b
AB
53522011-01-12 Andrew Burgess <aburgess@broadcom.com>
5353
5354 * disasm.c (dump_insns): Support dumping opcodes for MI.
5355 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5356 dumping of instruction opcodes.
5357
d5ae309f
JB
53582011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5359
5360 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5361 appropiately.
5362
98871305
TT
53632011-01-11 Tom Tromey <tromey@redhat.com>
5364
5365 * thread.c (do_captured_thread_select): Emit newline before
5366 printing frame.
5367
c378eb4e
MS
53682011-01-11 Michael Snyder <msnyder@vmware.com>
5369
5370 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5371 * score-tdep.c: Ditto.
5372 * score-tdep.h: Ditto.
5373 * ser-base.c: Ditto.
5374 * ser-go32.c: Ditto.
5375 * serial.c: Ditto.
5376 * serial.h: Ditto.
5377 * ser-mingw.c: Ditto.
5378 * ser-pipe.c: Ditto.
5379 * ser-tcp.c: Ditto.
5380 * ser-unix.c: Ditto.
5381 * sh64-tdep.c: Ditto.
5382 * shnbsd-nat.c: Ditto.
5383 * sh-tdep.c: Ditto.
5384 * sh-tdep.h: Ditto.
5385 * solib.c: Ditto.
5386 * solib-darwin.c: Ditto.
5387 * solib-frv.c: Ditto.
5388 * solib.h: Ditto.
5389 * solib-irix.c: Ditto.
5390 * solib-osf.c: Ditto.
5391 * solib-pa64.c: Ditto.
5392 * solib-som.c: Ditto.
5393 * solib-spu.c: Ditto.
5394 * solib-sunos.c: Ditto.
5395 * solib-svr4.c: Ditto.
5396 * solist.h: Ditto.
5397 * sol-thread.c: Ditto.
5398 * somread.c: Ditto.
5399 * source.c: Ditto.
5400 * source.h: Ditto.
5401 * sparc64-linux-tdep.c: Ditto.
5402 * sparc64-tdep.c: Ditto.
5403 * sparc-linux-nat.c: Ditto.
5404 * sparc-linux-tdep.c: Ditto.
5405 * sparc-sol2-nat.c: Ditto.
5406 * sparc-sol2-tdep.c: Ditto.
5407 * sparc-tdep.c: Ditto.
5408 * sparc-tdep.h: Ditto.
5409 * spu-tdep.c: Ditto.
5410 * stabsread.c: Ditto.
5411 * stabsread.h: Ditto.
5412 * stack.c: Ditto.
5413 * symfile.c: Ditto.
5414 * symfile.h: Ditto.
5415 * symmisc.c: Ditto.
5416 * symtab.c: Ditto.
5417 * symtab.h: Ditto.
5418 * target.c: Ditto.
5419 * target-descriptions.c: Ditto.
5420 * target-descriptions.h: Ditto.
5421 * target.h: Ditto.
5422 * target-memory.c: Ditto.
5423 * terminal.h: Ditto.
5424 * thread.c: Ditto.
5425 * top.c: Ditto.
5426 * tracepoint.c: Ditto.
5427 * tracepoint.h: Ditto.
5428 * trad-frame.h: Ditto.
5429 * typeprint.c: Ditto.
5430
581e13c1
MS
54312011-01-11 Michael Snyder <msnyder@vmware.com>
5432
5433 * ui-file.c: Comment cleanup, mostly periods and spaces.
5434 * ui-file.h: Ditto.
5435 * ui-out.c: Ditto.
5436 * ui-out.h: Ditto.
5437 * utils.c: Ditto.
5438 * v850-tdep.c: Ditto.
5439 * valarith.c: Ditto.
5440 * valops.c: Ditto.
5441 * valprint.c: Ditto.
5442 * valprint.h: Ditto.
5443 * value.c: Ditto.
5444 * value.h: Ditto.
5445 * varobj.c: Ditto.
5446 * varobj.h: Ditto.
5447 * vax-tdep.c: Ditto.
5448 * vec.c: Ditto.
5449 * vec.h: Ditto.
5450 * version.h: Ditto.
5451 * windows-nat.c: Ditto.
5452 * windows-tdep.c: Ditto.
5453 * xcoffread.c: Ditto.
5454 * xcoffsolib.c: Ditto.
5455 * xml-support.c: Ditto.
5456 * xstormy16-tdep.c: Ditto.
5457 * xtensa-tdep.c: Ditto.
5458 * xtensa-tdep.h: Ditto.
5459
90e4670f
TJB
54602011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5461
5462 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5463 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5464
e09342b5
TJB
54652011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5466 Thiago Jung Bauermann <bauerman@br.ibm.com>
5467
5468 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 5469 * breakpoint.h
e09342b5
TJB
5470 (struct breakpoint_ops) <resources_needed>: New method.
5471 Initialize to NULL in all existing breakpoint_ops instances.
5472 (struct breakpoint) <exact>: New field.
5473 (target_exact_watchpoints): Declare external global.
5474 * breakpoint.c (target_exact_watchpoints): New global flag.
5475 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5476 b->enable_state to bp_enabled before calling
5477 hw_watchpoint_used_count.
5478 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5479 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5480 if available.
5481 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5482 if the watchpoint is exact.
5483 (resources_needed_watchpoint): New function.
5484 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5485 (watch_command_1): Set b->exact if the user asked for an exact
5486 watchpoint and one can be set.
5487 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5488 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5489 the user asks for an exact watchpoint and one can be set. Return
5490 number of needed debug registers to watch the expression.
5491 * gdbtypes.c (is_scalar_type): New function, based on
5492 valprint.c:scalar_type_p.
5493 (is_scalar_type_recursive): New function.
5494 * gdbtypes.h (is_scalar_type_recursive): Declare.
5495 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5496 handle regions when ranged watchpoints are available.
5497 (create_watchpoint_request): New function.
5498 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5499 create_watchpoint_request.
5500 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5501 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5502 `set powerpc' and `show powerpc' commands.
5503 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5504 Mention documentation comment in the target macro.
5505 (target_region_ok_for_hw_watchpoint): Document return value.
5506
9fa40276
TJB
55072011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5508
5509 * breakpoint.c (update_watchpoint): Decide on using a software or
5510 hardware watchpoint after the bp_locations are created.
5511
77b06cd7
TJB
55122010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5513
5514 Convert hardware watchpoints to use breakpoint_ops.
5515 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5516 <insert_location>: ... this. Return int instead of void.
5517 Accept pointer to struct bp_location instead of pointer to
5518 struct breakpoint. Adapt all implementations.
f2eb0bc8 5519 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
5520 <remove_location>: ... this. Accept pointer to struct bp_location
5521 instead of pointer to struct breakpoint. Adapt all implementations.
5522 * breakpoint.c (insert_catchpoint): Delete function.
5523 (insert_bp_location): Call the watchpoint or catchpoint's
5524 breakpoint_ops.insert method.
5525 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5526 breakpoint_ops.remove method.
5527 (insert_watchpoint, remove_watchpoint): New functions.
5528 (watchpoint_breakpoint_ops): New structure.
5529 (watch_command_1): Initialize the OPS field.
5530 * inf-child.c (inf_child_insert_fork_catchpoint)
5531 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5532 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5533 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5534 Delete functions.
5535 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5536 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5537 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5538 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5539 * target.c (update_current_target): Change default implementation of
5540 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5541 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5542 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5543 to_set_syscall_catchpoint to return_one.
5544 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5545 (debug_to_insert_exec_catchpoint): Report return value.
5546 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5547 (to_insert_exec_catchpoint): Change declaration to return int instead
5548 of void.
5549
9b20d036
MS
55502011-01-11 Michael Snyder <msnyder@vmware.com>
5551
5552 * arm-tdep.c: Internationalization.
5553 * c-lang.c: Ditto.
5554 * charset.c: Ditto.
5555 * fork-child.c: Ditto.
5556 * nto-procfs.c: Ditto.
5557 * ppc-sysv-tdep.c: Ditto.
5558 * procfs.c: Ditto.
5559 * remote-mips.c: Ditto.
5560 * remote.c: Ditto.
5561 * rs6000-nat.c: Ditto.
5562 * rs6000-tdep.c: Ditto.
5563 * target.c: Ditto.
5564 * valops.c: Ditto.
5565 * value.c: Ditto.
5566 * xml-support.c: Ditto.
5567 * mi/mi-cmd-break.c: Ditto.
5568 * mi/mi-cmd-var.c: Ditto.
5569 * mi/mi-interp.c: Ditto.
5570 * mi/mi-main.c: Ditto.
5571
dae477fe
AB
55722011-01-11 Andrew Burgess <aburgess@broadcom.com>
5573
5574 * remote-sim.c (gdbsim_store_register): Update API to
5575 sim_store_register to check more error conditions.
5576
0df8b418
MS
55772011-01-10 Michael Snyder <msnyder@vmware.com>
5578
5579 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5580 * nto-tdep.c: Ditto.
5581 * nto-tdep.h: Ditto.
5582 * objc-exp.y: Ditto.
5583 * objc-lang.c: Ditto.
5584 * objfiles.c: Ditto.
5585 * objfiles.h: Ditto.
5586 * observer.c: Ditto.
5587 * opencl-lang.c: Ditto.
5588 * osabi.c: Ditto.
5589 * parse.c: Ditto.
5590 * parser-defs.h: Ditto.
5591 * p-exp.y: Ditto.
5592 * p-lang.c: Ditto.
5593 * posix-hdep.c: Ditto.
5594 * ppcbug-rom.c: Ditto.
5595 * ppc-linux-nat.c: Ditto.
5596 * ppc-linux-tdep.c: Ditto.
5597 * ppc-linux-tdep.h: Ditto.
5598 * ppcnbsd-tdep.c: Ditto.
5599 * ppcobsd-tdep.c: Ditto.
5600 * ppcobsd-tdep.h: Ditto.
5601 * ppc-sysv-tdep.c: Ditto.
5602 * ppc-tdep.h: Ditto.
5603 * printcmd.c: Ditto.
5604 * proc-abi.c: Ditto.
5605 * proc-flags.c: Ditto.
5606 * procfs.c: Ditto.
5607 * proc-utils.h: Ditto.
5608 * progspace.h: Ditto.
5609 * prologue-value.c: Ditto.
5610 * prologue-value.h: Ditto.
5611 * psympriv.h: Ditto.
5612 * psymtab.c: Ditto.
5613 * p-typeprint.c: Ditto.
5614 * p-valprint.c: Ditto.
5615 * ravenscar-sparc-thread.c: Ditto.
5616 * ravenscar-thread.c: Ditto.
5617 * ravenscar-thread.h: Ditto.
5618 * record.c: Ditto.
5619 * regcache.c: Ditto.
5620 * regcache.h: Ditto.
5621 * remote.c: Ditto.
5622 * remote-fileio.c: Ditto.
5623 * remote-fileio.h: Ditto.
5624 * remote.h: Ditto.
5625 * remote-m32r-sdi.c: Ditto.
5626 * remote-mips.c: Ditto.
5627 * remote-sim.c: Ditto.
5628 * rs6000-aix-tdep.c: Ditto.
5629 * rs6000-nat.c: Ditto.
5630 * rs6000-tdep.c: Ditto.
5631
0d7a18f7
MS
56322011-01-10 Michael Snyder <msnyder@vmware.com>
5633
5634 * charset.c (validate): Internationalization.
5635 * coffread.c (read_one_sym): Ditto.
5636 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5637 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5638 * inflow.c (new_tty): Ditto.
5639 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5640 * m32c-tdep.c (m32c_return_value): Ditto.
5641 * mep-tdep.c (mep_store_return_value): Ditto.
5642 * score-tdep.c (score7_fetch_insn): Ditto.
5643 * ser-mingw.c (pipe_windows_open): Ditto.
5644 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5645 * spu-tdep.c (spu_register_type): Ditto.
5646 * tracepoint.c (trace_find_command): Ditto.
5647 * valarith.c (value_pos): Ditto.
5648
9a153e0b
JB
56492011-01-10 Joel Brobecker <brobecker@adacore.com>
5650
5651 * ada-valprint.c (printstr): Minor comment reformatting.
5652
35ecd2d6
MS
56532011-01-08 Michael Snyder <msnyder@vmware.com>
5654
5655 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5656 markup.
5657
1777feb0
MS
56582011-01-08 Michael Snyder <msnyder@vmware.com>
5659
5660 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5661 * hppa-hpux-tdep.c: Ditto.
5662 * hppa-linux-nat.c: Ditto.
5663 * hppa-linux-tdep.c: Ditto.
5664 * hppanbsd-tdep.c: Ditto.
5665 * hppa-tdep.c: Ditto.
5666 * hppa-tdep.h: Ditto.
5667 * hpux-thread.c: Ditto.
5668 * i386-cygwin-tdep.c: Ditto.
5669 * i386-darwin-nat.c: Ditto.
5670 * i386gnu-nat.c: Ditto.
5671 * i386-linux-nat.c: Ditto.
5672 * i386-linux-tdep.c: Ditto.
5673 * i386-nat.c: Ditto.
5674 * i386-nat.h: Ditto.
5675 * i386nbsd-tdep.c: Ditto.
5676 * i386-sol2-nat.c: Ditto.
5677 * i386-stub.c: Ditto.
5678 * i386-tdep.c: Ditto.
5679 * i386-tdep.h: Ditto.
5680 * i387-tdep.c: Ditto.
5681 * ia64-linux-nat.c: Ditto.
5682 * ia64-linux-tdep.c: Ditto.
5683 * ia64-tdep.c: Ditto.
5684 * infcall.c: Ditto.
5685 * infcall.h: Ditto.
5686 * infcmd.c: Ditto.
5687 * inferior.c: Ditto.
5688 * inferior.h: Ditto.
5689 * infloop.c: Ditto.
5690 * inflow.c: Ditto.
5691 * infrun.c: Ditto.
5692 * interps.c: Ditto.
5693 * interps.h: Ditto.
5694 * iq2000-tdep.c: Ditto.
5695 * irix5-nat.c: Ditto.
5696 * jit.c: Ditto.
5697 * jit.h: Ditto.
5698 * jv-exp.y: Ditto.
5699 * jv-lang.c: Ditto.
5700 * jv-lang.h: Ditto.
5701 * jv-typeprint.c: Ditto.
5702 * jv-valprint.c: Ditto.
5703 * language.c: Ditto.
5704 * language.h: Ditto.
5705 * linespec.c: Ditto.
5706 * linux-fork.c: Ditto.
5707 * linux-nat.c: Ditto.
5708 * linux-thread-db.c: Ditto.
5709 * lm32-tdep.c: Ditto.
5710
025bb325
MS
57112011-01-08 Michael Snyder <msnyder@vmware.com>
5712
5713 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5714 * m2-lang.c: Ditto.
5715 * m2-typeprint.c: Ditto.
5716 * m2-valprint.c: Ditto.
5717 * m32c-tdep.c: Ditto.
5718 * m32r-linux-nat.c: Ditto.
5719 * m32r-rom.c: Ditto.
5720 * m32r-tdep.c: Ditto.
5721 * m32r-tdep.h: Ditto.
5722 * m68hc11-tdep.c: Ditto.
5723 * m58klinux-nat.c: Ditto.
5724 * m68k-tdep.c: Ditto.
5725 * m88k-tdep.c: Ditto.
5726 * m88k-tdep.h: Ditto.
5727 * machoread.c: Ditto.
5728 * macrocmd.c: Ditto.
5729 * macroexp.c: Ditto.
5730 * macrotab.c: Ditto.
5731 * main.c: Ditto.
5732 * maint.c: Ditto.
5733 * mdebugread.c: Ditto.
5734 * mdebugread.h: Ditto.
5735 * memattr.c: Ditto.
5736 * memattr.h: Ditto.
5737 * memory-map.h: Ditto.
5738 * mep-tdep.c: Ditto.
5739 * microblaze-rom.c: Ditto.
5740 * microblaze-tdep.c: Ditto.
5741 * minsyms.c: Ditto.
5742 * mips-irix-tdep.c: Ditto.
5743 * mips-linux-nat.c: Ditto.
5744 * mips-linux-tdep.c: Ditto.
5745 * mips-linux-tdep.h: Ditto.
5746 * mipsnbsd-nat.c: Ditto.
5747 * mipsnbsd-tdep.c: Ditto.
5748 * mipsread.c: Ditto.
5749 * mips-tdep.c: Ditto.
5750 * mips-tdep.h: Ditto.
5751 * mn10300-linux-tdep.c: Ditto.
5752 * mn10300-tdep.c: Ditto.
5753 * mn10300-tdep.h: Ditto.
5754 * monitor.c: Ditto.
5755 * monitor.h: Ditto.
5756 * moxie-tdep.c: Ditto.
5757 * moxie-tdep.h: Ditto.
5758 * mt-tdep.c: Ditto.
5759
1642781b
MF
57602011-01-08 Mike Frysinger <vapier@gentoo.org>
5761
5762 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5763
394b0adb
JB
57642011-01-08 Robert Millan <rmh@gnu.org>
5765
5766 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5767
b670013c
MS
57682011-01-07 Michael Snyder <msnyder@vmware.com>
5769
5770 * charset.c (_initialize_charset): Fix typo in string.
5771
a743e542
MS
57722011-01-07 Michael Snyder <msnyder@vmware.com>
5773
5774 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5775 for i18n.
f2eb0bc8 5776 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
5777 Split line so that operator goes to beginning of line.
5778 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5779 assignment out of if statement.
5780
0963b4bd
MS
57812011-01-07 Michael Snyder <msnyder@vmware.com>
5782
5783 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5784 * ada-lang.h: Ditto.
5785 * ada-tasks.c: Ditto.
5786 * ada-valprint.c: Ditto.
5787 * aix-threads.c: Ditto.
5788 * alpha-linux-nat.c: Ditto.
5789 * alpha-linux-tdep.c: Ditto.
5790 * alpha-mdebug-tdep.c: Ditto.
5791 * alpha-nat.c: Ditto.
5792 * alpha-osf1-tdep.c: Ditto.
5793 * alpha-tdep.c: Ditto.
5794 * alphabsd-nat.c: Ditto.
5795 * alphabsd-tdep.c: Ditto.
5796 * amd64-darwin-tdep.c: Ditto.
5797 * amd64-linux-nat.c: Ditto.
5798 * amd64-linux-tdep.c: Ditto.
5799 * amd64-sol2-tdep.c: Ditto.
5800 * amd64-tdep.c: Ditto.
5801 * amd64-fbsd-tdep.c: Ditto.
5802 * amd64-nbsd-tdep.c: Ditto.
5803 * amd64-obsd-tdep.c: Ditto.
5804 * amd64-linux-nat.c: Ditto.
5805 * amd64-linux-tdep.c: Ditto.
5806 * arm-tdep.c: Ditto.
5807 * arm-tdep.h: Ditto.
5808 * armnbsd-nat.c: Ditto.
5809 * avr-tdep.c: Ditto.
5810 * bfin-tdep.c: Ditto.
5811 * bsd-kvm.c: Ditto.
5812 * c-typeprintc: Ditto.
5813 * c-valprint.c: Ditto.
5814 * coff-pe-read.h: Ditto.
5815 * coffreead.c: Ditto.
5816 * cris-tdep.c: Ditto.
5817 * d-lang.c: Ditto.
5818 * darwin-nat-info.c: Ditto.
5819 * darwin-nat.c: Ditto.
5820 * dbug-rom.c: Ditto.
5821 * dbxread.c: Ditto.
5822 * dcache.c: Ditto.
5823 * dcache.h: Ditto.
5824 * dec-thread.c: Ditto.
5825 * defs.h: Ditto.
5826 * demangle.c: Ditto.
5827 * dicos-tdep.c: Ditto.
5828 * dictionary.c: Ditto.
5829 * dictionary.h: Ditto.
5830 * dink32-rom.c: Ditto.
5831 * disasm.c: Ditto.
5832 * doublest.c: Ditto.
5833 * dsrec.c: Ditto.
5834 * dummy-frame.c: Ditto.
5835 * dwarf2-frame.c: Ditto.
5836 * dwarf2expr.c: Ditto.
5837 * dwarf2loc.c: Ditto.
5838 * dwarf2read.c: Ditto.
5839 * elfread.c: Ditto.
5840 * environ.c: Ditto.
5841 * eval.c: Ditto.
5842 * event-top.h: Ditto.
5843 * exceptions.c: Ditto.
5844 * exceptions.h: Ditto.
5845 * exec.c: Ditto.
5846 * expprint.c: Ditto.
5847 * expression.h: Ditto.
5848 * f-exp.y: Ditto.
5849 * f-lang.c: Ditto.
5850 * f-lang.h: Ditto.
5851 * f-typeprint.c: Ditto.
5852 * f-valprint.c: Ditto.
5853 * fbsd-nat.c: Ditto.
5854 * findvar.c: Ditto.
5855 * fork-child.c: Ditto.
5856 * frame.c: Ditto.
5857 * frame.h: Ditto.
5858 * frv-linux-tdep.c: Ditto.
5859 * frv-tdep.c: Ditto.
5860 * gcore.c: Ditto.
5861 * gdb-stabs.h: Ditto.
5862 * gdb_assert.h: Ditto.
5863 * gdb_string.h: Ditto.
5864 * gdb_thread_db.h: Ditto.
5865 * gdb_wait.h: Ditto.
5866 * gdbarch.sh: Ditto.
5867 * gdbcore.h: Ditto.
5868 * gdbthread.h: Ditto.
5869 * gdbtypes.c: Ditto.
5870 * gdbtypes.h: Ditto.
5871 * gnu-nat.c: Ditto.
5872 * gnu-nat.h: Ditto.
5873 * gnu-v2-abi.c: Ditto.
5874 * gnu-v3-abi.c: Ditto.
5875 * go32-nat.c: Ditto.
5876 * gdbarch.c: Regenerate.
5877 * gdbarch.h: Regenerate.
5878
ac74f770
MS
58792011-01-07 Michael Snyder <msnyder@vmware.com>
5880
5881 * ax-gdb.c: Adjust some long output strings.
5882 * breakpoint.c: Ditto.
5883 * charset.c: Ditto.
5884 * cp-abi.c: Ditto.
5885 * infcall.c: Ditto.
5886 * infrun.c: Ditto.
5887 * linux-nat.c: Ditto.
5888 * solib-pa64.c: Ditto.
5889 * solib-som.c: Ditto.
5890
d8e22779
TT
58912011-01-06 Tom Tromey <tromey@redhat.com>
5892
5893 PR python/12367:
5894 * NEWS: Add item.
5895 * python/python.c (GdbMethods): Add "newest_frame" method.
5896 * python/python-internal.h (gdbpy_newest_frame): Declare.
5897 * python/py-frame.c (gdbpy_newest_frame): New function.
5898
a255712f
PP
58992010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5900
5901 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5902 * jit.c (jit_debug): New variable.
5903 (show_jit_debug): New function.
5904 (struct target_buffer): Use ULONGEST.
5905 (bfd_open_from_target_memory): Likewise.
5906 (jit_register_code, jit_inferior_init): Add debug output.
5907 (_initialize_jit): Register "debug jit" command.
5908
ccfc3d6e
TT
59092011-01-06 Tom Tromey <tromey@redhat.com>
5910
5911 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5912 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5913 and ARCH_FRAME.
5914
57126e4a
TT
59152011-01-06 Tom Tromey <tromey@redhat.com>
5916
5917 * python/py-frame.c (frapy_block): Use get_frame_block.
5918
16dfc9ce
JB
59192011-01-06 Joel Brobecker <brobecker@adacore.com>
5920
5921 Do not stop on SIGPRIO signals by default
5922 * infrun.c (_initialize_infrun): Unset signal_stop and
5923 signal_print for TARGET_SIGNAL_PRIO.
5924
b1ce2347
JB
59252011-01-06 Joel Brobecker <brobecker@adacore.com>
5926
5927 * ada-tasks.c: Fix style violation in comment.
5928
8f7e195f
JB
59292011-01-06 Joel Brobecker <brobecker@adacore.com>
5930
5931 * linespec.c (decode_compound, find_method): Remove trailing \n
5932 at end of error string.
5933 * solib-irix.c (irix_current_sos): Likewise.
5934 * varobj.c (uninstall_variable): Likewise.
5935
e9bdf92c
JB
59362011-01-06 Joel Brobecker <brobecker@adacore.com>
5937
5938 * copyright.py: New script.
5939 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5940 Launch emacs without exec'ing. Call copyright.py afterwards.
5941
3e43a32a
MS
59422011-01-05 Michael Snyder <msnyder@vmware.com>
5943
5944 * addrmap.c: Shorten lines of >= 80 columns.
5945 * arch-utils.c: Ditto.
5946 * arch-utils.h: Ditto.
5947 * ax-gdb.c: Ditto.
5948 * ax-general.c: Ditto.
5949 * bcache.c: Ditto.
5950 * blockframe.c: Ditto.
5951 * breakpoint.c: Ditto.
5952 * buildsym.c: Ditto.
5953 * c-lang.c: Ditto.
5954 * c-typeprint.c: Ditto.
5955 * charset.c: Ditto.
5956 * coffread.c: Ditto.
5957 * command.h: Ditto.
5958 * corelow.c: Ditto.
5959 * cp-abi.c: Ditto.
5960 * cp-namespace.c: Ditto.
5961 * cp-support.c: Ditto.
5962 * dbug-rom.c: Ditto.
5963 * dbxread.c: Ditto.
5964 * defs.h: Ditto.
5965 * dfp.c: Ditto.
5966 * dfp.h: Ditto.
5967 * dictionary.c: Ditto.
5968 * disasm.c: Ditto.
5969 * doublest.c: Ditto.
5970 * dwarf2-frame.c: Ditto.
5971 * dwarf2expr.c: Ditto.
5972 * dwarf2loc.c: Ditto.
5973 * dwarf2read.c: Ditto.
5974 * elfread.c: Ditto.
5975 * eval.c: Ditto.
5976 * event-loop.c: Ditto.
5977 * event-loop.h: Ditto.
5978 * exceptions.h: Ditto.
5979 * exec.c: Ditto.
5980 * expprint.c: Ditto.
5981 * expression.h: Ditto.
5982 * f-lang.c: Ditto.
5983 * f-valprint.c: Ditto.
5984 * findcmd.c: Ditto.
5985 * frame-base.c: Ditto.
5986 * frame-unwind.c: Ditto.
5987 * frame-unwind.h: Ditto.
5988 * frame.c: Ditto.
5989 * frame.h: Ditto.
5990 * gcore.c: Ditto.
5991 * gdb-stabs.h: Ditto.
5992 * gdb_assert.h: Ditto.
5993 * gdb_dirent.h: Ditto.
5994 * gdb_obstack.h: Ditto.
5995 * gdbcore.h: Ditto.
5996 * gdbtypes.c: Ditto.
5997 * gdbtypes.h: Ditto.
5998 * inf-ttrace.c: Ditto.
5999 * infcall.c: Ditto.
6000 * infcmd.c: Ditto.
6001 * inflow.c: Ditto.
6002 * infrun.c: Ditto.
6003 * inline-frame.h: Ditto.
6004 * language.c: Ditto.
6005 * language.h: Ditto.
6006 * libunwind-frame.c: Ditto.
6007 * libunwind-frame.h: Ditto.
6008 * linespec.c: Ditto.
6009 * linux-nat.c: Ditto.
6010 * linux-nat.h: Ditto.
6011 * linux-thread-db.c: Ditto.
6012 * machoread.c: Ditto.
6013 * macroexp.c: Ditto.
6014 * macrotab.c: Ditto.
6015 * main.c: Ditto.
6016 * maint.c: Ditto.
6017 * mdebugread.c: Ditto.
6018 * memattr.c: Ditto.
6019 * minsyms.c: Ditto.
6020 * monitor.c: Ditto.
6021 * monitor.h: Ditto.
6022 * objfiles.c: Ditto.
6023 * objfiles.h: Ditto.
6024 * osabi.c: Ditto.
6025 * p-typeprint.c: Ditto.
6026 * p-valprint.c: Ditto.
6027 * parse.c: Ditto.
6028 * printcmd.c: Ditto.
6029 * proc-events.c: Ditto.
6030 * procfs.c: Ditto.
6031 * progspace.c: Ditto.
6032 * progspace.h: Ditto.
6033 * psympriv.h: Ditto.
6034 * psymtab.c: Ditto.
6035 * record.c: Ditto.
6036 * regcache.c: Ditto.
6037 * regcache.h: Ditto.
6038 * remote-fileio.c: Ditto.
6039 * remote.c: Ditto.
6040 * ser-mingw.c: Ditto.
6041 * ser-tcp.c: Ditto.
6042 * ser-unix.c: Ditto.
6043 * serial.c: Ditto.
6044 * serial.h: Ditto.
6045 * solib-frv.c: Ditto.
6046 * solib-irix.c: Ditto.
6047 * solib-osf.c: Ditto.
6048 * solib-pa64.c: Ditto.
6049 * solib-som.c: Ditto.
6050 * solib-sunos.c: Ditto.
6051 * solib-svr4.c: Ditto.
6052 * solib-target.c: Ditto.
6053 * solib.c: Ditto.
6054 * somread.c: Ditto.
6055 * source.c: Ditto.
6056 * stabsread.c: Ditto.
6057 * stabsread.c: Ditto.
6058 * stack.c: Ditto.
6059 * stack.h: Ditto.
6060 * symfile-mem.c: Ditto.
6061 * symfile.c: Ditto.
6062 * symfile.h: Ditto.
6063 * symmisc.c: Ditto.
6064 * symtab.c: Ditto.
6065 * symtab.h: Ditto.
6066 * target-descriptions.c: Ditto.
6067 * target-memory.c: Ditto.
6068 * target.c: Ditto.
6069 * target.h: Ditto.
6070 * terminal.h: Ditto.
6071 * thread.c: Ditto.
6072 * top.c: Ditto.
6073 * tracepoint.c: Ditto.
6074 * tracepoint.h: Ditto.
6075 * ui-file.c: Ditto.
6076 * ui-file.h: Ditto.
6077 * ui-out.h: Ditto.
6078 * user-regs.c: Ditto.
6079 * user-regs.h: Ditto.
6080 * utils.c: Ditto.
6081 * valarith.c: Ditto.
6082 * valops.c: Ditto.
6083 * valprint.c: Ditto.
6084 * valprint.h: Ditto.
6085 * value.c: Ditto.
6086 * varobj.c: Ditto.
6087 * varobj.h: Ditto.
6088 * vec.h: Ditto.
6089 * xcoffread.c: Ditto.
6090 * xcoffsolib.c: Ditto.
6091 * xcoffsolib.h: Ditto.
6092 * xml-syscall.c: Ditto.
6093 * xml-tdesc.c: Ditto.
6094
9a2b4c1b
MS
60952011-01-05 Michael Snyder <msnyder@vmware.com>
6096
6097 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6098 * cli/cli-decode.c: Ditto.
6099 * cli/cli-dump.c: Ditto.
6100 * cli/cli-logging.c: Ditto.
6101 * cli/cli-script.c: Ditto.
6102 * cli/cli-setshow.c: Ditto.
6103 * common/signals.c: Ditto.
6104 * mi/mi-cmd-break.c: Ditto.
6105 * mi/mi-cmd-disas.c: Ditto.
6106 * mi/mi-cmd-stack.c: Ditto.
6107 * mi/mi-cmd-var.c: Ditto.
6108 * mi/mi-cmds.c: Ditto.
6109 * mi/mi-common.h: Ditto.
6110 * mi/mi-console.c: Ditto.
6111 * mi/mi-interp.c: Ditto.
6112 * mi/mi-main.c: Ditto.
6113 * osf-share/cma_attr.c: Ditto.
6114 * osf-share/cma_deb_core.h: Ditto.
6115 * osf-share/cma_debug_client.h: Ditto.
6116 * osf-share/cma_handle.h: Ditto.
6117 * osf-share/cma_mutex.h: Ditto.
6118 * osf-share/cma_stack_int.h: Ditto.
6119 * osf-share/cma_tcb_defs.h: Ditto.
6120 * python/py-auto-load.c: Ditto.
6121 * python/py-breakpoint.c: Ditto.
6122 * python/py-cmd.c: Ditto.
6123 * python/py-frame.c: Ditto.
6124 * python/py-objfile.c: Ditto.
6125 * python/py-param.c: Ditto.
6126 * python/py-progspace.c: Ditto.
6127 * python/py-symbol.c: Ditto.
6128 * python/py-value.c: Ditto.
6129 * python/python-internal.h: Ditto.
6130 * python/python.c: Ditto.
6131 * tui/tui-data.c: Ditto.
6132 * tui/tui-disasm.c: Ditto.
6133 * tui/tui-hooks.c: Ditto.
6134 * tui/tui-io.c: Ditto.
6135 * tui/tui-layout.c: Ditto.
6136 * tui/tui-regs.c: Ditto.
6137 * tui/tui-source.c: Ditto.
6138 * tui/tui-stack.c: Ditto.
6139 * tui/tui-win.c: Ditto.
6140 * tui/tui-windata.c: Ditto.
6141 * tui/tui-winsource.c: Ditto.
6142
44944448
JB
61432011-01-05 Joel Brobecker <brobecker@adacore.com>
6144
6145 * configure.ac, gdb.1: Copyright year update.
6146
ebedcab5
JK
61472011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6150 this_pc_in_block, morestack_msym and morestack_name. Check for
6151 "__morestack" minimal symbol there.
6152
e5cc9f32
JB
61532011-01-03 Joel Brobecker <brobecker@adacore.com>
6154
6155 * symfile.c (find_sym_fns): Add call to dont_repeat.
6156
7b6bb8da
JB
61572011-01-01 Joel Brobecker <brobecker@adacore.com>
6158
6159 Copyright year update in most files (performed by copyright.sh).
6160
71ce852c
JB
61612011-01-01 Joel Brobecker <brobecker@adacore.com>
6162
6163 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 6164
c3c1ebe8 6165For older changes see ChangeLog-2010.
c906108c
SS
6166\f
6167Local Variables:
6168mode: change-log
6169left-margin: 8
6170fill-column: 74
6171version-control: never
57da7796 6172coding: utf-8
c906108c 6173End: