* python/py-bpevent.c: Include defs.h.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-08 Tom Tromey <tromey@redhat.com>
2
3 * python/py-bpevent.c: Include defs.h.
4 * python/py-continueevent.c: Include defs.h.
5 * python/py-event.c: Include defs.h.
6 * python/py-event.h: Don't include defs.h.
7 * python/py-events.h: Don't include defs.h.
8 * python/py-evts.c: Include defs.h.
9 * python/py-exitedevent.c: Include defs.h.
10 * python/py-newobjfileevent.c: Include defs.h.
11 * python/py-signalevent.c: Include defs.h.
12 * python/py-stopevent.c: Include defs.h.
13 * python/py-threadevent.c: Include defs.h.
14
15 2012-11-08 Pierre Muller <muller@sourceware.org>
16
17 * update-web-ari.sh (print_heading): Add number of files
18 checked.
19 (nb_files): New variable counting the number of sources
20 files found by gdb_find.sh script.
21 (debug_awk): New variable to allow extra debug output.
22 (indexes): Add more information if DEBUG_AWK is set.
23
24 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
25
26 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
27 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
28 following the change in PLT call stubs on linker.
29
30 2012-11-08 Pierre Muller <muller@sourceware.org>
31
32 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
33 as default language.
34 (AWK): Use = instead of == for sh test to avoid warning.
35 (Linux rule): Correct [:digit] into [[:digit:]].
36 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
37 (vasprintf rule): Adapt to common subdirectory moves.
38 (xasprintf rule): Idem.
39 (xvasprintf rule): Idem.
40 (var_boolean rule): Accept occurence in == or != test.
41
42 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
43
44 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
45
46 * tui/tui-hooks.c (tui_inferior_exit): New function.
47 (tui_detach_hook): Remove.
48 (tui_install_hooks): Install the inferior exit observer.
49 (tui_remove_hooks): Remove it.
50
51 2012-11-08 Yao Qi <yao@codesourcery.com>
52
53 PR gdb/14777.
54 * source.c (_initialize_source): Call add_com_alias to abbreviate
55 'forward-search' as 'fo'.
56
57 2012-11-07 Pedro Alves <palves@redhat.com>
58
59 * arm-tdep.c: Make defs.h be the first include.
60 * coff-pe-read.c: Ditto.
61 * gnu-nat.c: Ditto.
62 * go32-nat.c: Ditto.
63 * i386-nat.c: Ditto.
64 * ppcnbsd-nat.c: Ditto.
65 * ada-varobj.h: Don't include defs.h.
66 * i386-darwin-tdep.h: Ditto.
67 * i386-nat.h: Ditto.
68
69 2012-11-07 Pedro Alves <palves@redhat.com>
70
71 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
72 Committee.
73
74 2012-11-07 Pierre Muller <muller@sourceware.org>
75
76 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
77 File already uses "gdb_dirent.h" header.
78
79 2012-11-07 Yao Qi <yao@codesourcery.com>
80
81 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
82 tracepoint_count'.
83
84 2012-11-06 Tom Tromey <tromey@redhat.com>
85
86 * target.h (inferior_has_forked, inferior_has_vforked)
87 (inferior_has_execd, inferior_has_called_syscall): Remove
88 declarations.
89
90 2012-11-06 Pierre Muller <muller@sourceware.org>
91
92 * remote.c (remote_insert_hw_breakpoint): ARI fix,
93 add missing internalization markup.
94
95 2012-11-06 Pedro Alves <palves@redhat.com>
96
97 PR gdb/14810
98
99 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
100
101 2012-11-06 Pierre Muller <muller@sourceware.org>
102
103 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
104 is not executable.
105
106 2012-11-05 Joel Brobecker <brobecker@adacore.com>
107
108 * gnulib/update-gnulib.sh: New script.
109
110 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
111
112 * MAINTAINERS: Update my email address.
113
114 2012-11-05 Tom Tromey <tromey@redhat.com>
115
116 * frame.c (put_frame_register): Don't use temporary buffer.
117
118 2012-11-05 Pedro Alves <palves@redhat.com>
119
120 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
121 child. Clear 'pending_detach'.
122 * infrun.c (handle_vfork_child_exec_or_exit): Clear
123 'pending_detach' in the vfork parent.
124
125 2012-11-05 Doug Evans <dje@google.com>
126
127 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
128 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
129 * dwarf2read.c: #include "elf-bfd.h".
130 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
131 (dwop_section_names): Renamed from dwo_section names. All uses
132 updated. Add entries for .debug_cu_index, .debug_tu_index.
133 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
134 All uses updated.
135 (struct dwp_sections): New type.
136 (struct virtual_dwo_sections): New type.
137 (struct dwp_hash_table): New type.
138 (struct dwp_file): New type.
139 (init_cutu_and_read_dies): Ensure DWO info/types section has been
140 read in. Handle DWOs coming from DWP files.
141 (lookup_dwo_file_slot): New function.
142 (dwarf2_locate_dwo_sections): Move definition closer to use.
143 (create_dwo_debug_info_hash_table_reader): Renamed from
144 create_debug_info_hash_table_reader. All callers updated.
145 (create_dwo_debug_info_hash_table): Renamed from
146 create_debug_info_hash_table. All callers updated.
147 (create_dwp_hash_table): New function.
148 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
149 (lookup_dwo_in_dwp): New function.
150 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
151 is_dwp. All callers updated.
152 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
153 (open_and_init_dwo_file): Renamed from init_dwo_file.
154 All callers updated.
155 (lookup_dwo_file): Delete.
156 (dwarf2_locate_dwp_sections): New function.
157 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
158 (allocate_dwp_loaded_cutus_table): New function.
159 (open_and_init_dwp_file): New function.
160 (lookup_dwo_cutu): New function.
161 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
162
163 2012-11-03 Yao Qi <yao@codesourcery.com>
164
165 Fix PR gdb/14617.
166 * breakpoint.c (trace_pass_set_count): Call
167 observer_notify_breakpoint_modified instead of
168 observer_notify_tracepoint_modified.
169 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
170
171 2012-11-02 Tom Tromey <tromey@redhat.com>
172
173 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
174 argument to complete_on_enum.
175
176 2012-11-02 Tom Tromey <tromey@redhat.com>
177
178 * configure: Rebuild.
179 * configure.ac (build_warnings): Add -Wempty-body.
180 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
181 * remote.c (handle_notification): Use braces for empty 'else' body.
182 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
183 'else' body.
184 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
185 'else' body.
186 * solib-som.c (som_relocate_section_addresses): Use braces
187 for empty 'else' body.
188 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
189 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
190
191 2012-11-02 Pedro Alves <palves@redhat.com>
192
193 PR gdb/14766
194
195 * infrun.c (handle_inferior_event)
196 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
197 null_ptid before handling a vfork child exec or exit. Switch to
198 the event ptid afterwards.
199
200 2012-11-02 Yao Qi <yao@codesourcery.com>
201
202 * std-operator.def: Remove OP_LABELED.
203 * eval.c: Remove the declaration of 'get_label'.
204 (get_label): Remove.
205 (evaluate_struct_tuple): Remove code handling OP_LABELED.
206 Update comment.
207 Remove local variable 'variantno' and related code.
208 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
209 with 'fieldno'.
210 * expprint.c (print_subexp_standard): Likewise.
211 (dump_subexp_body_standard): Likewise.
212 * parse.c (operator_length_standard): Likewise.
213
214 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
215
216 Incorporate ARI web page generator into GDB sources.
217 * contrib/ari/create-web-ari-in-src.sh: New file.
218 * contrib/ari/gdb_ari.sh: New file.
219 * contrib/ari/gdb_find.sh: New file.
220 * contrib/ari/update-web-ari.sh: New file.
221
222 2012-10-31 Tom Tromey <tromey@redhat.com>
223
224 * gdbarch.c: Rebuild.
225 * gdbarch.sh: Remove references to gdbarch_swap.
226 * corelow.c (core_open): Remove obsolete comment.
227
228 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
229
230 PR cli/14772
231 * c-typeprint.c (c_print_type): Don't print a space for vector
232 types, this is handled within the suffix.
233 (c_type_print_varspec_suffix): Add a space to vector suffix.
234
235 2012-10-26 Pedro Alves <palves@redhat.com>
236
237 * amd64-tdep.c (amd64_relocate_instruction): Use
238 store_unsigned_integer instead of memcpy.
239 * i386-tdep.c (i386_relocate_instruction): Ditto.
240
241 2012-10-26 Pedro Alves <palves@redhat.com>
242
243 * infrun.c (handle_inferior_event): Merge handling of
244 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
245 switch case.
246
247 2012-10-26 Pedro Alves <palves@redhat.com>
248
249 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
250 Remove comment.
251
252 2012-10-26 Pedro Alves <palves@redhat.com>
253
254 * target.c (target_waitstatus_to_string): Handle
255 TARGET_WAITKIND_VFORK_DONE.
256
257 2012-10-26 Pedro Alves <palves@redhat.com>
258
259 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
260 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
261
262 2012-10-24 Tristan Gingold <gingold@adacore.com>
263
264 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
265 Add comments.
266
267 2012-10-24 Joel Brobecker <brobecker@adacore.com>
268
269 * ravenscar-thread.c (ravenscar_wait): Only update the list
270 of threads and inferior_ptid if the inferior is still alive.
271
272 2012-10-24 Joel Brobecker <brobecker@adacore.com>
273
274 * ada-lang.c (is_known_support_routine): Use lbasename when
275 matching the symtab's filename against
276 known_runtime_file_name_patterns.
277
278 2012-10-24 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-lang.c (ada_same_array_size_p): New function.
281 (ada_promote_array_of_integrals): New function.
282 (coerce_for_assign): Add handling of arrays where the elements
283 are integrals of a smaller size than the size of the target
284 array element type.
285
286 2012-10-24 Joel Brobecker <brobecker@adacore.com>
287
288 * doublest.c (convert_doublest_to_floatformat): Fix comparison
289 against maximum exponent value.
290
291 2012-10-24 Joel Brobecker <brobecker@adacore.com>
292
293 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
294 "unwind-seh.c".
295
296 2012-10-24 Joel Brobecker <brobecker@adacore.com>
297
298 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
299 strip typedef layer when computing the fixed type's field type,
300 only when computing its size.
301
302 2012-10-24 Mark Kettenis <kettenis@gnu.org>
303
304 PR gdb/12783
305 * i386-tdep.c (i386_return_value): Handle complex double and long
306 double.
307
308 2012-10-24 Joel Brobecker <brobecker@adacore.com>
309
310 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
311 New local variable args_len.
312 Quote the name of the executable when computing the command line.
313
314 2012-10-23 Mark Kettenis <kettenis@gnu.org>
315
316 PR gdb/12796
317 PR gdb/12798
318 PR gdb/12800
319 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
320 AMD64_FTAG_REGNUM.
321 * amd64-tdep.c (amd64_classify): Classify complex types.
322 (amd64_return_value): Handle the COMPLEX_X87 class.
323
324 2012-10-23 Joel Brobecker <brobecker@adacore.com>
325
326 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
327 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
328
329 2012-10-23 Joel Brobecker <brobecker@adacore.com>
330
331 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
332 function.
333 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
334 to amd64_windows_auto_wide_charset.
335
336 2012-10-23 Yao Qi <yao@codesourcery.com>
337
338 * event-top.c (mark_async_signal_handler_wrapper): Remove.
339 * event-top.h: Remove its declaration.
340 (async_request_quit): Call mark_async_signal_handler instead of
341 mark_async_signal_handler_wrapper.
342 (async_do_nothing, async_disconnect): Likewise.
343 (async_stop_sig): Likewise.
344 * remote.c (handle_remote_sigint): Likewise.
345 (handle_remote_sigint_twice): Likewise.
346
347 2012-10-23 Yao Qi <yao@codesourcery.com>
348
349 * event-top.c (sigint_token, sighup_token): Replace 'void *'
350 with 'static struct async_signal_handler *'.
351 (sighup_token, sigquit_token, sigstp_token): Likewise.
352
353 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
354
355 * gdbarch.sh (function_list): Use 'pstring' when printing
356 a variable which could return NULL.
357 * gdbarch.c: Regenerate.
358
359 2012-10-10 Joel Brobecker <brobecker@adacore.com>
360 Tom Tromey <tromey@redhat.com>
361
362 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
363 inneffective if condition by gdb assertion. Add function
364 description comment.
365
366 2012-10-19 Joel Brobecker <brobecker@adacore.com>
367
368 * parser-defs.h (struct exp_descriptor): Document constraint
369 on return value for "op_name" callbacks.
370
371 2012-10-18 Tom Tromey <tromey@redhat.com>
372
373 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
374 * symtab.c (iterate_over_some_symtabs): Constify.
375 * source.h (symtab_to_fullname): Return 'const char *'.
376 * source.c (symtab_to_fullname): Return 'const char *'.
377 * python/py-symtab.c (stpy_fullname): Constify.
378 * cli/cli-cmds.c (edit_command): Constify.
379 * breakpoint.c (print_breakpoint_location)
380 (update_static_tracepoint): Constify.
381
382 2012-10-18 Tom Tromey <tromey@redhat.com>
383
384 * breakpoint.c (compare_breakpoints): Fix comparison.
385
386 2012-10-18 Tom Tromey <tromey@redhat.com>
387
388 * valprint.c (generic_emit_char, generic_printstr): Pass size of
389 gdb_wchar_t to convert_between_encodings.
390
391 2012-10-17 Yao Qi <yao@codesourcery.com>
392
393 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
394 more parameter 'inferior'.
395 * corefile.c (write_memory_with_notification): Caller update.
396
397 * mi/mi-cmd-var.c: Include "mi-main.h".
398 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
399 to 1 and restore it later.
400 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
401 and "data-write-memory-bytes.
402 * mi/mi-interp.c: Include objfiles.h.
403 (mi_interpreter_init): Call observer_attach_memory_changed.
404 (mi_memory_changed): New.
405 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
406 New field.
407
408 * NEWS: Mention new MI notification "memory-changed".
409
410 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
413
414 2012-10-15 Doug Evans <dje@google.com>
415
416 New option -nh: inhibit loading of ~/.gdbinit.
417 * NEWS: Mention -nh.
418 * main.c (captured_main): Recognize and process -nh.
419 (print_gdb_help): Mention -nh.
420 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
421
422 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
423
424 PR backtrace/14646
425 PR gdb/14647
426 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
427 pc_regnum_from_eax.
428 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
429 nor pc_regnum_from_eax.
430 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
431 nor pc_regnum_from_eax.
432
433 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
434
435 Fix entry values resolving in inlined frames.
436 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
437 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
438 entries of FRAME.
439
440 2012-10-15 Joel Brobecker <brobecker@adacore.com>
441
442 * configure.ac: Build with -DMS_WIN64 if building with Python
443 enabled using GCC on amd64-windows.
444 * configure: Regenerate.
445
446 2012-10-15 Tom Tromey <tromey@redhat.com>
447
448 PR python/14635:
449 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
450 to Py_None.
451
452 2012-10-15 Tom Tromey <tromey@redhat.com>
453
454 PR python/14634:
455 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
456
457 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
458
459 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
460 reset thread numbering back to 1.
461
462 2012-10-11 Doug Evans <dje@google.com>
463
464 PR breakpoints/14643.
465 * linespec.c (struct ls_parser): New member keyword_ok.
466 (linespec_lexer_lex_string): Add comment.
467 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
468 for one.
469 (parse_linespec): Set keyword_ok.
470
471 2012-10-10 Doug Evans <dje@google.com>
472
473 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
474 "0x" prefix on address in log message.
475
476 * dwarf2read.c (read_1_byte): Add const to buf parameter.
477 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
478 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
479 (lookup_dwo_file): Add const to dwo_name parameter.
480 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
481
482 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
483
484 Fix crash during stepping on ppc32.
485 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
486 SYM.
487
488 2012-10-03 Doug Evans <dje@google.com>
489
490 PR symtab/14601
491 * buildsym.c (buildsym_init): Reset using_directives to NULL.
492
493 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
494
495 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
496 output and use uint32_t not long to ensure 4 byte size.
497
498 2012-10-02 Joel Brobecker <brobecker@adacore.com>
499
500 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
501 unref'ed it.
502
503 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
504
505 * target.c (simple_search_memory): Include access length in
506 warning message.
507
508 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
509 Edjunior Machado <emachado@linux.vnet.ibm.com>
510
511 PR gdb/13989
512 * solib.c (solib_find): Prevent GDB from loading native libraries when
513 debugging a cross-target corefile.
514
515 2012-09-28 selven <pcthegreat@gmail.com>
516
517 Make definition match declaration.
518
519 * regcache.c (regcache_register_status): Change return type to
520 enum register_status.
521
522 2012-09-28 Yao Qi <yao@codesourcery.com>
523
524 * mi/mi-main.c (mi_cmd_data_write_memory): Call
525 write_memory_with_notification instead of write_memory.
526 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
527 instead of target_write_memory.
528
529 2012-09-28 Yao Qi <yao@codesourcery.com>
530
531 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
532 when the length of content is not an even number.
533
534 2012-09-27 Tom Tromey <tromey@redhat.com>
535
536 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
537 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
538
539 2012-09-27 Joel Brobecker <brobecker@adacore.com>
540
541 * sol-thread.c (sol_thread_fetch_registers)
542 (sol_thread_store_registers): Delete commented out code.
543
544 2012-09-27 Joel Brobecker <brobecker@adacore.com>
545
546 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
547 Move these functions to sparc-sol-thread.c.
548 * sparc-sol-thread.c: New file.
549 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
550 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
551 configurations.
552 * configure: Regenerate.
553
554 2012-09-27 Joel Brobecker <brobecker@adacore.com>
555
556 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
557 Remove commented-out code.
558
559 2012-09-27 Joel Brobecker <brobecker@adacore.com>
560
561 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
562 Enable this code for sparc hosts only.
563
564 2012-09-27 Joel Brobecker <brobecker@adacore.com>
565
566 * procfs.h (procfs_find_LDT_entry): Add declaration.
567 * sol-thread.c (ps_lgetLDT): Delete local declaration of
568 function procfs_find_LDT_entry.
569
570 2012-09-27 Joel Brobecker <brobecker@adacore.com>
571
572 * procfs.c (proc_get_LDT_entry): Make static.
573
574 2012-09-27 Joel Brobecker <brobecker@adacore.com>
575
576 * procfs.c (proc_find_memory_regions): Fix declaration.
577
578 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
579
580 * amd64-tdep.c (amd64_return_value): Revert previous change
581 that used TYPE_LENGTH directly.
582 * bfin-tdep.c (bfin_extract_return_value): Likewise.
583 (bfin_store_return_value): Likewise.
584 * cris-tdep.c (cris_store_return_value): Likewise.
585 (cris_extract_return_value): Likewise.
586 * h8300-tdep.c (h8300_extract_return_value): Likewise.
587 * hppa-tdep.c (hppa64_return_value): Likewise.
588 * lm32-tdep.c (lm32_store_return_value): Likewise.
589 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
590 * spu-tdep.c (spu_value_from_register): Likewise.
591 * vax-tdep.c (vax_return_value): Likewise.
592
593 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
594
595 * gdbtypes.c (lookup_array_range_type): Expand parameters
596 LOW_BOUND and HIGH_BOUND to LONGEST.
597 (lookup_string_range_type): Likewise.
598 * gdbtypes.h (lookup_array_range_type): Likewise.
599 (lookup_string_range_type): Likewise.
600 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
601 Expand HIGHBOUND to ssize_t.
602 (value_string): Likewise.
603 * value.h (value_cstring): Expand parameter LEN to ssize_t.
604 (value_string): Likewise.
605
606 2012-09-27 Yao Qi <yao@codesourcery.com>
607
608 PR breakpoints/13898
609 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
610 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
611 per breakpoint type.
612
613 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
614
615 * procfs.c: Add gdb_bfd header.
616 * rs6000-nat.c: Likewise.
617 * solib-pa64.c: Likewise.
618 * spu-linux-nat.c: Likewise.
619 * windows-nat.c: Likewise.
620
621 2012-09-26 Tom Tromey <tromey@redhat.com>
622
623 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
624
625 2012-09-26 Tom Tromey <tromey@redhat.com>
626
627 * dwarf2read.c (mark_common_block_symbol_computed): New function.
628 (read_common_block): Handle child DIEs with
629 DW_AT_data_member_location.
630 (new_symbol_full): Add special case for common blocks.
631
632 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
633 Tom Tromey <tromey@redhat.com>
634
635 * dwarf2read.c (read_common_block): Rewrite.
636 (new_symbol_full): Handle DW_TAG_common_block.
637 * f-lang.c (head_common_list, find_common_for_function):
638 Remove.
639 * f-lang.h (struct common_entry, struct saved_f77_common,
640 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
641 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
642 BLANK_COMMON_NAME_LOCAL): Remove.
643 (struct common_block): New.
644 * f-valprint.c (list_all_visible_commons): Remove.
645 (info_common_command_for_block): New function.
646 (info_common_command): Use it.
647 * stack.c (iterate_over_block_locals): Special case for
648 COMMON_BLOCK_DOMAIN.
649 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
650 constant.
651 (struct general_symbol_info) <value.common_block>: New field.
652 (SYMBOL_VALUE_COMMON_BLOCK): New define.
653
654 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
655 Tom Tromey <tromey@redhat.com>
656
657 * f-lang.c (allocate_saved_bf_node,
658 allocate_saved_function_node, allocate_saved_f77_common_node,
659 allocate_common_entry_node, tail_common_list, current_common,
660 saved_bf_list, saved_bf_list_end, current_head_bf_list,
661 tmp_bf_ptr, add_common_block, add_common_entry,
662 find_first_common_named, patch_common_entries,
663 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
664 global_remote_debug, get_bf_for_fcn, saved_function_list,
665 saved_function_list_end, clear_function_list, struct saved_fcn,
666 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
667 SAVED_BF, SAVED_BF_PTR): Remove.
668 * f-lang.h (tail_common_list, current_common,
669 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
670 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
671 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
672 real_main_c_value): Remove.
673 * f-valprint.c (there_is_a_visible_common_named): Remove.
674
675 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
676
677 * breakpoint.c (update_global_location_list): Ignore previous
678 duplicate status of a breakpoint when starting a new scan for
679 duplicate breakpoints.
680
681 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
682 PR breakpoints/14419
683 * arm-tdep.c (arm_skip_prologue): Extending producer check to
684 support LLVM compiler.
685
686 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
687
688 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
689 * bfin-tdep.c (bfin_extract_return_value): Likewise.
690 (bfin_store_return_value): Likewise.
691 * cris-tdep.c (cris_store_return_value): Likewise.
692 (cris_extract_return_value): Likewise.
693 * h8300-tdep.c (h8300_extract_return_value): Likewise.
694 * hppa-tdep.c (hppa64_return_value): Likewise.
695 * lm32-tdep.c (lm32_store_return_value): Likewise.
696 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
697 * spu-tdep.c (spu_value_from_register): Likewise.
698 * vax-tdep.c (vax_return_value): Likewise.
699
700 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
701
702 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
703 parameter LEN to ssize_t.
704
705 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
706
707 * ada-valprint.c (ada_val_print_1): Eliminate single-use
708 variable LEN.
709 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
710 directly.
711 (alpha_store_return_value): Likewise.
712 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
713 (amd64_push_arguments): Likewise.
714 * ax-gdb.c (gen_trace_static_fields): Likewise.
715 (gen_traced_pop): Likewise.
716 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
717 * breakpoint.c (update_watchpoint): Likewise.
718 * findcmd.c (parse_find_args): Use local variable for type
719 instead of length.
720 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
721 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
722 (h8300_store_return_value): Likewise.
723 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
724 Use i386_darwin_arg_type_alignment directly.
725 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
726 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
727 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
728 (m68hc11_extract_return_value): Likewise.
729 * mep-tdep.c (mep_push_dummy_call): Likewise.
730 * printcmd.c (float_type_from_length): Likewise.
731 * s390-tdep.c (s390_value_from_register): Likewise.
732 * stack.c (read_frame_arg): Likewise.
733 * tracepoint.c (encode_actions_1): Likewise.
734 * valops.c (value_fetch_lazy): Use local variable for type
735 instead of length. Use TYPE_LENGTH directly.
736 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
737
738 2012-09-25 Joel Brobecker <brobecker@adacore.com>
739
740 * symtab.c (skip_prologue_sal): Fix typo in comment.
741
742 2012-09-25 Joel Brobecker <brobecker@adacore.com>
743
744 * linespec.c (create_sals_line_offset): Fix typo in comment.
745
746 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
747
748 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
749 use plongest to print the array size.
750
751 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
752
753 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
754 * p-valprint.c (pascal_type_print_base): Likewise.
755
756 2012-09-22 Yao Qi <yao@codesourcery.com>
757
758 * remote.c (remote_get_trace_status): Remove setting default
759 values of fields of 'ts'.
760
761 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 Fix internal error on canonicalization of clang types.
764 * cp-name-parser.y (operator): New comment at make_operator call for
765 new, delete, new[] and delete[].
766 (exp): Use "sizeof ". Add new comment at make_operator call.
767
768 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
769
770 Fix disassemble without parameters in tailcall frame.
771 * cli/cli-cmds.c (disassemble_current_function): Use
772 get_frame_address_in_block.
773
774 2012-09-21 Tom Tromey <tromey@redhat.com>
775
776 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
777 TYPE_CODE_UNION>: Unify, removing a goto.
778
779 2012-09-21 Tom Tromey <tromey@redhat.com>
780
781 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
782
783 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
784
785 * findvar.c (read_frame_register_value): Mark the result value as
786 optimized out if any of the input registers have been optimized out.
787
788 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
789
790 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
791
792 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
793
794 * eval.c (evaluate_subexp_standard): Eliminate single-use
795 variable LOWER.
796
797 2012-09-21 Yao Qi <yao@codesourcery.com>
798
799 * mi/mi-interp.c: Declare mi_record_changed.
800 (mi_interpreter_init): Call observer_attach_record_changed.
801 (mi_record_changed): New.
802 * record.c (record_open): Call observer_notify_record_changed.
803 (cmd_record_stop): Call observer_notify_record_changed.
804 * NEWS: Mention it.
805
806 2012-09-20 Tom Tromey <tromey@redhat.com>
807
808 * NEWS: Update.
809 * python/python.c (finalize_python): New function.
810 (_initialize_python): Make a final cleanup.
811
812 2012-09-19 Doug Evans <dje@google.com>
813
814 * buildsym.h (param_symbols): Delete, unused.
815 (context_stack): Delete member "params", unused.
816 * buildsym.c (push_context): Update.
817 * dwarf2read.c (read_func_scope): Update.
818
819 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
820
821 * sh-tdep.c (sh_register_convert_to_virtual)
822 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
823 all callers. Just do a memcpy if not the little-endian case.
824
825 * h8300-tdep.c (h8300_gdbarch_init): Invoke
826 set_gdbarch_double_format and set_gdbarch_long_double_format.
827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
828 set_gdbarch_double_format.
829 * sh-tdep.c (sh_gdbarch_init): Likewise.
830
831 * NEWS: Document the removal of SH's 'regs' command.
832 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
833 command.
834
835 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
836
837 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
838 `jump'.
839
840 2012-09-18 Joel Brobecker <brobecker@adacore.com>
841
842 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
843 language when iterating over symbols.
844
845 2012-09-18 Yao Qi <yao@codesourcery.com>
846
847 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
848 (mi_interpreter_init): Call observer_attach_tsv_created and
849 observer_attach_tsv_deleted.
850 (mi_tsv_created, mi_tsv_deleted): New.
851 * tracepoint.c (delete_trace_state_variable): Call
852 observer_notify_tsv_deleted.
853 (trace_variable_command): Call observer_notify_tsv_created.
854 (delete_trace_variable_command): Call
855 observer_notify_tsv_deleted.
856 (create_tsv_from_upload): Call observer_notify_tsv_created.
857 * NEWS: Mention it.
858
859 2012-09-18 Yao Qi <yao@codesourcery.com>
860
861 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
862 if traceframe changed.
863 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
864 "trace-find".
865 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
866 (mi_interpreter_init): Hook mi_traceframe_changed to observer
867 'traceframe_changed'.
868 (mi_traceframe_changed): New.
869 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
870 New field.
871 * NEWS: Mention the new MI notification.
872
873 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
874
875 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
876
877 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
878
879 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
880 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
881 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
882 Extend code also for PaX support. Convert all gdb_assert to warning
883 calls.
884
885 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 Implement auto-load user conveniences suggested by Doug Evans.
888 * auto-load.c: Include top.h.
889 (file_is_auto_load_safe): New variable advice_printed. Print advice.
890 (_initialize_auto_load): New variable scripts_directory_help. Mention
891 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
892 scripts-directory. Document in online help one can use also files for
893 set auto-load safe-path.
894 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
895 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
896
897 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
898
899 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
900 of LEN.
901
902 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
903
904 * m2-valprint.c (m2_print_array_contents): Eliminate variable
905 ELTLEN and use TYPE_LENGTH directly.
906 (m2_val_print): Likewise.
907 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
908 variable LEN and use TYPE_LENGTH directly.
909 (m68k_svr4_store_return_value): Likewise.
910 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
911 ARGLEN and use TYPE_LENGTH directly.
912 (mips_o64_push_dummy_call): Likewise.
913 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
914 variable LENGTH and use TYPE_LENGTH directly.
915 (s390_function_arg_float): Likewise.
916 (s390_function_arg_integer): Likewise.
917 (s390_push_dummy_call): Likewise.
918 (s390_return_value_convention): Likewise.
919 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
920 TYPE_LENGTH directly.
921
922 2012-09-17 Yao Qi <yao@codesourcery.com>
923
924 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
925 Update comment to add_setshow_integer_cmd.
926 * cli/cli-setshow.c (do_set_command): Handle case
927 'var_zuinteger_unlimited'.
928 (do_show_command): Likewise.
929 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
930 for command 'remotetimeout'.
931 * command.h (enum var_types): New zuinteger_unlimited. Update comment
932 to var_integer.
933 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
934 for command 'set listsize'.
935
936 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
937
938 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
939 variable LEN.
940
941 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
942
943 PR 14119
944 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
945 (frame_pop): Drop also TAILCALL_FRAME frames.
946 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
947
948 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
949 Pedro Alves <palves@redhat.com>
950
951 PR 14548
952 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
953 function start if we are already at function start. Both for
954 reverse-next and for reverse-step into function without line number
955 info.
956
957 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
958
959 Code cleanup - rename 'inline' depth to 'artificial' depth.
960 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
961 frame_id_artificial_p, extend the comment.
962 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
963 * frame.c (fprint_frame_id): Rename at a user, change debug output
964 text to "artificial=".
965 (skip_inlined_frames): Rename to ...
966 (skip_artificial_frames): ... here. Extend the comment.
967 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
968 (frame_id_inlined_p): Rename to ...
969 (frame_id_artificial_p): ... here. Rename at a user.
970 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
971 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
972 at a user.
973 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
974 Extend the comment.
975 (frame_id_inlined_p): Rename to ...
976 (frame_id_artificial_p): ... here.
977 * inline-frame.c (inline_frame_this_id): Rename at a user.
978
979 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
980
981 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
982 vector variables using vector_size syntax rather than array
983 syntax.
984
985 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
986
987 * valarith.c (value_concat): Replace unsafe ALLOCA with
988 XMALLOC/XFREE.
989
990 2012-09-14 Pedro Alves <palves@redhat.com>
991
992 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
993
994 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
995
996 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
997 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
998 data-directory as appropriate.
999
1000 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1001
1002 * printcmd.c (ui_printf): Eliminate single-use variable
1003 PARAM_LEN.
1004
1005 2012-09-14 Yao Qi <yao@codesourcery.com>
1006 Pedro Alves <palves@redhat.com>
1007
1008 * valops.c (value_assign): Move observer_notify_target_changed
1009 below to replace reinit_frame_cache.
1010
1011 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1012
1013 Refactor Python "gdb" module into a proper Python package, by
1014 introducing a new "_gdb" module for code implemented in C, and
1015 using reload/__import__ instead of exec.
1016 * python/lib/gdb/__init__.py: Import * from _gdb.
1017 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1018 prompt_hook, sys.argv): Moved from finish_python_initialization.
1019 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1020 (packages, auto_load_packages): New list and function replacing
1021 module_dict and auto-loading code, using __file__ instead of
1022 gdb.PYTHONDIR and reload/__import__ instead of exec.
1023 (GdbSetPythonDirectory): Replacing function of the same name
1024 from finish_python_initialization, using reload/__import__ instead
1025 of exec, as well as call auto_load_packages.
1026 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1027 gdb_python_module and not gdb_module.
1028 * python/python-internal.h (gdb_python_module): Declare.
1029 * python/python.c (gdb_python_module): New global.
1030 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1031 (_initialize_python): Rename gdb module to _gdb.
1032 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1033 (finish_python_initialization): Move Python code to
1034 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1035 __main__.
1036
1037 2012-09-13 Pedro Alves <palves@redhat.com>
1038
1039 * Makefile.in (COMMON_OBS): Add registry.o.
1040 * registry.c: New file.
1041 * registry.h (struct registry_container): Declare.
1042 (registry_data_callback): New typedef.
1043 (struct registry_data, struct registry_data_registration, struct
1044 registry_data_registry): New type.
1045 (register_data_with_cleanup, registry_alloc_data)
1046 (registry_callback_adaptor, registry_clear_data)
1047 (registry_container_free_data, registry_set_data, registry_data):
1048 Declare.
1049 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1050 the new common structures and functions.
1051 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1052 callback typedefs.
1053
1054 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1055
1056 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1057 there is an error inserting hardware breakpoints and use the
1058 error message from the target.
1059
1060 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1061 Catch this exception and print the error message contained within. Do not
1062 print the default hardware error breakpoint message in this case.
1063
1064 2012-09-12 Doug Evans <dje@google.com>
1065
1066 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1067 cu == NULL.
1068
1069 2012-09-11 Doug Evans <dje@google.com>
1070
1071 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1072 .gdb_index symbol attributes if there are none.
1073
1074 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1075
1076 * symtab.h (struct minimal_symbol) [has_size]: New field.
1077 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1078 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1079 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1080 minimal symbols if the symbol's size is actually known.
1081 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1082 of msymbol's size field. Add comment.
1083 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1084 SET_MSYMBOL_SIZE to set the minimal symbol size.
1085
1086 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1087
1088 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1089 minimal_symbol struct object, rather than setting some of its
1090 fields one by one.
1091
1092 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1093
1094 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1095 passed_a_ptr flag when displaying typedef types.
1096
1097 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1098
1099 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1100 the optimized_out flag is preserved.
1101
1102 2012-09-10 Anthony Green <green@moxielogic.com>
1103
1104 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1105 prologue changes in GCC.
1106
1107 2012-09-10 Keith Seitz <keiths@redhat.com>
1108
1109 PR gdb/13483
1110 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1111 (BOOL_CONVERSION_BADNESS): ... this.
1112 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1113 (rank_one_type): Allow all boolean conversions
1114 permitted by the standard.
1115
1116 2012-09-06 Tom Tromey <tromey@redhat.com>
1117
1118 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1119 Don't decref py_objfile.
1120
1121 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1122
1123 Do not enable -lmcheck by default when Python is enabled with
1124 threading support.
1125 * configure.ac: (python_has_threads) New variable, by testing
1126 if WITH_THREAD is defined in Python.h.
1127 Move --enable-lmcheck after --with-python.
1128 Do not enable -lmcheck by default if python_has_threads=yes.
1129 Warn if --enable-lmcheck and python_has_threads=yes.
1130 * configure: Regenerate.
1131
1132 2012-08-31 Yao Qi <yao@codesourcery.com>
1133
1134 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1135 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1136 Update some commands.
1137 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1138 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1139 to 1.
1140
1141 2012-08-31 Yao Qi <yao@codesourcery.com>
1142
1143 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1144
1145 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1146
1147 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1148
1149 2012-08-29 Doug Evans <dje@google.com>
1150
1151 * main.c (print_gdb_help): Remove reference to
1152 --use-deprecated-index-sections.
1153
1154 2012-08-28 Yao Qi <yao@codesourcery.com>
1155
1156 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1157 (init_cmds): Call add_setshow_uinteger_cmd for command
1158 'max-user-call-depth'.
1159 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1160 declaration of 'max_user_call_depth'.
1161 * frame.c (backtrace_limit): Add 'unsigned'.
1162 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1163 'limit'.
1164 * remote.c (remoteaddresssize): Add 'unsigned'.
1165 (remote_address_masked): Change local var 'address_size' to
1166 'unsigned'.
1167 (_initialize_remote): Call add_setshow_uinteger_cmd for
1168 'remoteaddresssize'.
1169 * top.c (history_size): Add 'unsigned'.
1170 (show_commands): Change local variables to 'unsigned'.
1171 (set_history_size_command): Don't check history_size is negative.
1172 Adjust the condition to call unstifle_history and set history_size
1173 to UNIT_MAX.
1174
1175 2012-08-28 Pedro Alves <palves@redhat.com>
1176
1177 PR gdb/14428
1178
1179 * infcmd.c (default_print_one_register_info): New, factored out
1180 from default_print_registers_info.
1181 (default_print_registers_info): Use it. Mark value unavailable if
1182 necessary.
1183 (registers_info): Print user registers with
1184 default_print_one_register_info.
1185
1186 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1187
1188 PR tui/14486
1189 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1190 is not NULL before referencing it.
1191
1192 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1193
1194 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1195 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1196 original PC for it.
1197
1198 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1199 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 * auto-load.c (auto_load_objfile_script): Rename to ...
1202 (auto_load_objfile_script_1): ... here, change variable realname to
1203 parameter realname, document it, add return value, add variable retval.
1204 (auto_load_objfile_script): New function.
1205
1206 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1207
1208 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1209 followed by a whitespace.
1210
1211 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1212
1213 PR gdb/14494.
1214 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1215 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1216 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1217 here.
1218
1219 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1220
1221 * memattr.c (create_mem_region): Fix memory region overlapping
1222 checking.
1223
1224 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1225
1226 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1227 with xmalloc/cleanup.
1228 * mt-tdep.c (mt_push_dummy_call): Likewise.
1229 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1230 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1231
1232 2012-08-24 Yao Qi <yao@codesourcery.com>
1233
1234 * jv-exp.y (push_expression_name): Add "." at the end of error
1235 message.
1236
1237 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1238
1239 Document how to return from "python-interactive" to GDB.
1240 * python/python.c (_initialize_python): Update documentation.
1241
1242 2012-08-23 Pedro Alves <palves@redhat.com>
1243
1244 * infrun.c (_initialize_infrun) <handle command help text>:
1245 Mention that multiple signals are supported.
1246
1247 2012-08-23 Pedro Alves <palves@redhat.com>
1248
1249 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1250 string.
1251
1252 2012-08-23 Yao Qi <yao@codesourcery.com>
1253
1254 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1255 (tfind_1): Don't call registers_changed, set_traceframe_num,
1256 and clear_traceframe_info.
1257 Call set_current_traceframe.
1258 (set_current_traceframe): call set_traceframe_num.
1259
1260 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1261
1262 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1263 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1264
1265 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1266
1267 Enable readline in Python in a GDB-specific way and block the
1268 standard Python readline module to prevent conflicts with GDB.
1269 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1270 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1271 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1272 * python/py-gdb-readline.c: New file.
1273 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1274 prototype.
1275 * python/python.c (_initialize_python): Call
1276 gdbpy_initialize_gdb_readline.
1277
1278 2012-08-22 Keith Seitz <keiths@redhat.com>
1279
1280 * defs.h: Include build-gnulib/config.h
1281
1282 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1283
1284 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1285 and blx pc.
1286
1287 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1288
1289 Add a new "python-interactive" command that starts a standard
1290 Python interactive prompt with "pi" as alias, and add "py" as
1291 an alias to "python".
1292 * NEWS: Mention the new commands.
1293 * python/python.c (eval_python_command): New function.
1294 (python_interactive_command): For "python-interactive" with
1295 arguments, call eval_python_command. For "python-interactive"
1296 without arguments, call PyRun_InteractiveLoop.
1297 (_initialize_python): Add "python-interactive" command with
1298 "pi" as alias, and add "py" as an alias to "python".
1299
1300 2012-08-22 Tom Tromey <tromey@redhat.com>
1301
1302 * defs.h (quit_flag): Don't declare.
1303 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1304 (QUIT): Use new functions.
1305 * event-top.c (command_handler): Use clear_quit_flag.
1306 (handle_sigint): Use set_quit_flag.
1307 (async_request_quit): Use check_quit_flag. Don't check
1308 immediate_quit.
1309 * exceptions.c (throw_exception): Use clear_quit_flag.
1310 * main.c (captured_main): Use clear_quit_flag.
1311 * python/python.c (clear_quit_flag, set_quit_flag)
1312 (check_quit_flag): New functions.
1313 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1314 clear_quit_flag.
1315 * remote.c (remote_wait_as): Use check_quit_flag,
1316 clear_quit_flag.
1317 (remote_start_remote): Call QUIT.
1318 * symfile.c (load_progress): Use check_quit_flag.
1319 * top.c (command_loop): Use clear_quit_flag.
1320 (command_line_input): Call QUIT.
1321 * utils.c (quit_flag): Conditionally define.
1322 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1323 functions.
1324 (prompt_for_continue): Call QUIT. Use quit, not
1325 async_request_quit.
1326 * remote-mips.c (mips_expect_timeout): Call QUIT.
1327 * monitor.c (monitor_expect): Call QUIT.
1328
1329 2012-08-22 Tom Tromey <tromey@redhat.com>
1330
1331 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1332 (async_init_signals): Update.
1333 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1334 (SIGWINCH_HANDLER_BODY): Remove.
1335
1336 2012-08-22 Tom Tromey <tromey@redhat.com>
1337
1338 * jit.c (jit_object_close_impl): Don't malloc the objfile
1339 name.
1340 * objfiles.c (allocate_objfile): Don't malloc the objfile
1341 name.
1342 (free_objfile): Don't free the objfile name.
1343 * objfiles.h (struct objfile) <name>: Update comment.
1344 * symfile.c (reread_symbols): Fix reference counting. Don't
1345 malloc objfile name.
1346
1347 2012-08-22 Tom Tromey <tromey@redhat.com>
1348
1349 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1350 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1351 (symfile_bfd_open): Likewise.
1352 (generic_load): Likewise.
1353 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1354 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1355 gdb_bfd_open.
1356 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1357 Use gdb_bfd_open.
1358 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1359 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1360 (pmon_load_fast): Likewise.
1361 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1362 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1363 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1364 (macho_check_dsym): Likewise.
1365 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1366 (m32r_upload_command): Likewise.
1367 * gdb_bfd.h (gdb_bfd_cache): Declare.
1368 * gdb_bfd.c (struct gdb_bfd_data): New.
1369 (gdb_bfd_cache): New global.
1370 (struct gdb_bfd_cache_search): New.
1371 (hash_bfd): New function.
1372 (eq_bfd): Likewise.
1373 (gdb_bfd_open): Likewise.
1374 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1375 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1376 gdb_bfd_data.
1377 * exec.c (exec_file_attach): Use gdb_bfd_open.
1378 * dsrec.c (load_srec): Use gdb_bfd_open.
1379
1380 2012-08-22 Tom Tromey <tromey@redhat.com>
1381
1382 * dwarf2read.c (macro_start_file): Update.
1383 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1384 (free_objfile_per_bfd_storage): Destroy macro_cache.
1385 (allocate_objfile, free_objfile): Update.
1386 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1387 New field.
1388 (struct objfile) <macro_cache>: Remove.
1389 * symfile.c (reread_symbols): Update.
1390 * symmisc.c (print_symbol_bcache_statistics): Update.
1391 (print_objfile_statistics): Update.
1392
1393 2012-08-22 Tom Tromey <tromey@redhat.com>
1394
1395 * elfread.c (elf_symtab_read): Update.
1396 * objfiles.c (objfiles_bfd_data): New global.
1397 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1398 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1399 (allocate_objfile, free_objfile): Update.
1400 (_initialize_objfiles): Initialize objfiles_bfd_data.
1401 * objfiles.h (struct objfile_per_bfd_storage): New.
1402 (struct objfile) <per_bfd>: New field.
1403 <filename_cache>: Remove.
1404 (set_objfile_per_bfd): Declare.
1405 * symfile.c (reread_symbols): Update. Call
1406 set_objfile_per_bfd.
1407 (allocate_symtab): Update.
1408 * symmisc.c (print_symbol_bcache_statistics): Update.
1409 (print_objfile_statistics): Print the size of the BFD obstack.
1410
1411 2012-08-22 Tom Tromey <tromey@redhat.com>
1412
1413 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1414 * gdb_bfd.c: Use DEFINE_REGISTRY.
1415 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1416 (gdb_bfd_ref): Call bfd_alloc_data.
1417 (gdb_bfd_unref): Call bfd_free_data.
1418
1419 2012-08-22 Tom Tromey <tromey@redhat.com>
1420
1421 * registry.h (struct registry_fields): New.
1422 (REGISTRY_FIELDS): Redefine.
1423 (REGISTRY_ACCESS_FIELD): New macro.
1424 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1425 functions.
1426
1427 2012-08-22 Tom Tromey <tromey@redhat.com>
1428
1429 * auto-load.c (_initialize_auto_load): Update.
1430 * solib-svr4.c (_initialize_svr4_solib): Update
1431 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1432 * solib-darwin.c (_initialize_darwin_solib): Update.
1433 * registry.h: New file.
1434 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1435 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1436 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1437 (register_program_space_data_with_cleanup)
1438 (register_program_space_data, program_space_alloc_data)
1439 (clear_program_space_data, set_program_space_data)
1440 (program_space_data): Don't declare.
1441 * progspace.c: Use DEFINE_REGISTRY.
1442 (struct program_space_data, struct
1443 program_space_data_registration, struct
1444 program_space_data_registry, program_space_data_registry)
1445 (register_program_space_data_with_cleanup)
1446 (register_program_space_data, program_space_alloc_data)
1447 (program_space_free_data, clear_program_space_data)
1448 (set_program_space_data, program_space_data): Remove.
1449 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1450 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1451 (register_objfile_data_with_cleanup, register_objfile_data)
1452 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1453 declare.
1454 * objfiles.c: Use DEFINE_REGISTRY.
1455 (struct objfile_data, struct objfile_data_registration, struct
1456 objfile_data_registry, objfile_data_registry)
1457 (register_objfile_data_with_cleanup, register_objfile_data)
1458 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1459 (set_objfile_data, objfile_data): Remove.
1460 (_initialize_objfiles): Update.
1461 * jit.c (_initialize_jit): Update.
1462 * inflow.c (_initialize_inflow): Update.
1463 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1464 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1465 (register_inferior_data_with_cleanup, register_inferior_data)
1466 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1467 declare.
1468 * inferior.c: Use DEFINE_REGISTRY.
1469 (struct inferior_data, struct inferior_data_registration, struct
1470 inferior_data_registry, inferior_data_registry)
1471 (register_inferior_data_with_cleanup, register_inferior_data)
1472 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1473 (set_inferior_data, inferior_data): Remove.
1474 * auxv.c (_initialize_auxv): Update.
1475 * ada-lang.c (_initialize_ada_language): Update.
1476 * breakpoint.c (_initialize_breakpoint): Update.
1477 * i386-nat.c (i386_use_watchpoints): Update.
1478
1479 2012-08-22 Tom Tromey <tromey@redhat.com>
1480
1481 * exec.c (exec_close, exec_file_attach): Update.
1482 (add_to_section_table): Initialize 'key' field.
1483 (add_target_sections, remove_target_sections): Add 'key' argument.
1484 * exec.h (add_target_sections, remove_target_sections): Add
1485 'key' argument.
1486 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1487 (reload_shared_libraries_1): Update.
1488 * target.h (struct target_section) <key>: New field.
1489
1490 2012-08-22 Tom Tromey <tromey@redhat.com>
1491
1492 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1493
1494 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1495
1496 * symfile.c (allocate_symtab): Use host_address_to_string
1497 function instead of cast of pointer to long which is not
1498 compatible with x86_64-w64-mingw32 build.
1499
1500 2012-08-19 Andrew Pinski <apinski@cavium.com>
1501
1502 * mips-tdep.c (is_octeon): New function.
1503 (is_octeon_bbit_op): New function.
1504 (mips32_next_pc): Handle Octeon's bbit instructions.
1505 (mips32_instruction_has_delay_slot): Likewise.
1506
1507 2012-08-19 Andrew Pinski <apinski@cavium.com>
1508
1509 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1510 before the function.
1511
1512 2012-08-19 Andrew Pinski <apinski@cavium.com>
1513
1514 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1515
1516 2012-08-19 Keith Seitz <keiths@redhat.com>
1517
1518 PR c++/14365
1519 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1520 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1521
1522 2012-08-18 Eli Zaretskii <eliz@gnu.org>
1523
1524 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1525 The typo broke "make TAGS".
1526
1527 2012-08-17 Joel Brobecker <brobecker@adacore.com>
1528
1529 GDB 7.5 released.
1530
1531 2012-08-17 Keith Seitz <keiths@redhat.com>
1532
1533 PR c++/13356
1534 * gdbtypes.c (strict_type_checking): New variable.
1535 (show_strict_type_checking): New function.
1536 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1537 if strict type checking is disabled.
1538 (_initialize_gdbtypes): Add "check type" subcommand.
1539 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1540
1541 2012-08-17 Keith Seitz <keiths@redhat.com>
1542
1543 * language.h (type_mode): Remove.
1544 (type_check): Remove.
1545 (struct language_defn): Remove la_type_check.
1546 (STRICT_TYPE): Remove unused macro.
1547 (type_error): Remove.
1548 * language.c (set_type_range_case): Renamed to ...
1549 (set_range_case): ... this. Update all callers.
1550 Remove type_mode/type_check.
1551 (type_mode): Remove.
1552 (type_check): Remove.
1553 (show_type_command): Remove.
1554 (set_type_command): Remove.
1555 (language_info): Remove type checking output.
1556 (type_error): Remove unused function.
1557 (range_error): Update comment.
1558 (unknown_language_defn): Remove la_type_check.
1559 (auto_language_defn): Likewise.
1560 (local_language_defn): Likewise.
1561 (_initialize_language): Remove "check type" subcommand.
1562 * ada-lang.c (ada_language_defn): Remove la_type_check.
1563 * c-lang.c (c_language_defn): Likewise.
1564 (cplus_language_defn): Likewise.
1565 (asm_language_defn): Likewise.
1566 (minimal_language_defn): Likewise.
1567 * d-lang.c (d_language_defn): Likewise.
1568 * f-lang.c (f_language_defn): Likewise.
1569 * go-lang.c (go_language_defn): Likewise.
1570 * jv-lang.c (java_language_defn): Likewise.
1571 * m2-lang.c (m2_language_defn): Likewise.
1572 * objc-lang.c (objc_language_defn): Likewise.
1573 * opencl-lang.c (opencl_language_defn): Likewise.
1574 * p-lang.c (pascal_language_defn): Likewise.
1575
1576 2012-08-16 Mike Frysinger <vapier@gentoo.org>
1577
1578 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1579
1580 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1581
1582 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1583 New function.
1584 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1585 using the regache. Use ia64_hpux_get_register_from_save_state_t
1586 to access the bsp and bspstore registers if not.
1587
1588 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1589
1590 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1591 * breakpoint.c (detach_breakpoints): Change pid parameter into
1592 a ptid. Adjust code accordingly.
1593 * infrun.c (handle_inferior_event): Delete variable child_pid.
1594 Update call to detach_breakpoints to pass the child ptid for
1595 fork events.
1596 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1597 assert that inferior_ptid's lwp is zero.
1598 (linux_handle_extended_wait): Update call to detach_breakpoints.
1599 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1600 detach_breakpoints.
1601
1602 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1603
1604 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1605 parent, only call detach_breakpoints if tts.tts_event ==
1606 TTEVT_VFORK.
1607
1608 2012-08-16 Joel Brobecker <brobecker@adacore.com>
1609
1610 * dwarf2-frame.c (dwarf2_frame_cache): Use
1611 get_frame_address_in_block instead of get_frame_pc as
1612 the bound for executing the frame's FDE.
1613
1614 2012-08-16 Yao Qi <yao@codesourcery.com>
1615
1616 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1617 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1618 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1619 (c_type_print_varspec_suffix): Likewise.
1620 * eval.c (evaluate_subexp_standard): Likewise.
1621 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1622 (f_type_print_varspec_suffix): Likewise.
1623 * gdbtypes.c (is_scalar_type): Likewise.
1624 (recursive_dump_type): Likewise.
1625 * infcall.c (value_arg_coerce): Likewise.
1626 * m2-valprint.c (m2_val_print): Likewise.
1627 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1628 (pascal_type_print_varspec_suffix): Likewise.
1629 (pascal_type_print_base): Likewise.
1630 * p-valprint.c (pascal_val_print): Likewise.
1631 (pascal_val_print): Likewise.
1632 * valops.c (value_slice): Likewise.
1633 * valprint.c (scalar_type_p): Likewise.
1634 * valarith.c (value_bitstring_subscript): Remove.
1635 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1636 Remove comment on TYPE_CODE_BITSTRING.
1637
1638 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1639 TYPE_CODE_BITSTRING.
1640
1641 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1642 slot 0.
1643
1644 2012-08-16 Yao Qi <yao@codesourcery.com>
1645
1646 * tracepoint.c (trace_find_none_command): Remove.
1647 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1648
1649 2012-08-16 Yao Qi <yao@codesourcery.com>
1650
1651 * remote.c (handle_notification): Remove parameter 'length'.
1652 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1653
1654 2012-08-15 Keith Seitz <keiths@redhat.com>
1655
1656 * gdbtypes.c (opaque_type_resolution): Make static.
1657 Add missing comment.
1658 (overload_debug): Add missing comment.
1659 (show_opaque_type_resolution): Likewise.
1660 (show_overload_debug): Likewise.
1661 (print_bit_vector): Remove unnecessary forward declaration.
1662 (print_arg_types): Likewise.
1663 (dump_fn_fieldlists): Likewise.
1664 (print_cplus_stuff): Likewise.
1665
1666 2012-08-15 Tom Tromey <tromey@redhat.com>
1667
1668 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1669 (gdb_bfd_ref): Initialize new field.
1670 (gdb_bfd_unref): Unref the archive BFD.
1671 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1672 parent archive.
1673
1674 2012-08-15 Tom Tromey <tromey@redhat.com>
1675
1676 PR python/14387:
1677 * python/py-bpevent.c (create_breakpoint_event_object): Update
1678 comment.
1679 * python/py-event.c (evpy_add_attribute): Update comment.
1680 * python/py-exitedevent.c (create_exited_event_object): Fix
1681 reference counting and error handling.
1682 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1683 Fix reference counting.
1684 * python/py-signalevent.c (create_signal_event_object): Fix
1685 reference counting and error handling.
1686 * python/py-stopevent.c (emit_stop_event): Fix reference
1687 counting.
1688 * python/py-threadevent.c (get_event_thread): Return a
1689 borrowed reference.
1690 * python/py-type.c (convert_field): Fix reference counting.
1691
1692 2012-08-15 Tom Tromey <tromey@redhat.com>
1693
1694 * dwarf2read.c (dwarf_decode_macro_bytes)
1695 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1696 as hash key.
1697
1698 2012-08-14 Mike Frysinger <vapier@gentoo.org>
1699
1700 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1701 stepi, nexti, finish, next, step, jump, and continue commands.
1702 * infrun.c (_initialize_infrun): Update help text for the handle
1703 command.
1704
1705 2012-08-14 Doug Evans <dje@google.com>
1706
1707 * gdbtypes.c (struct extra): Delete, unused.
1708
1709 * gdbtypes.c: Whitespace cleanup.
1710 (address_space_name_to_int): Remove "extern" from definition.
1711 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1712
1713 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1714 TYPE_POINTER_TYPE (type).
1715
1716 2012-08-14 Gary Benson <gbenson@redhat.com>
1717
1718 * solib-svr4.c (svr4_free_library_list): Use free_so.
1719
1720 2012-08-13 Mike Frysinger <vapier@gentoo.org>
1721
1722 * .gitignore: Add go-exp.c.
1723
1724 2012-08-13 Doug Evans <dje@google.com>
1725
1726 * value.c (show_convenience): Tweak comment.
1727 (_initialize_values): Mention convenience functions in the help text
1728 for "show convenience".
1729
1730 2012-08-13 Yao Qi <yao@codesourcery.com>
1731
1732 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1733 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1734 TERNOP_SLICE_COUNT.
1735 * eval.c (evaluate_subexp_standard): Likewise.
1736 * expprint.c (print_subexp_standard): Likewise.
1737 (dump_subexp_body_standard): Likewise.
1738 * parse.c (operator_length_standard): Likewise.
1739
1740 2012-08-13 Yao Qi <yao@codesourcery.com>
1741
1742 * std-operator.def: Remove OP_BITSTRING.
1743 * breakpoint.c (watchpoint_exp_is_const): Update.
1744 * eval.c (evaluate_subexp_standard): Remove handling to
1745 OP_BITSTRING.
1746 * expprint.c (print_subexp_standard): Likewise.
1747 (dump_subexp_body_standard): Likewise.
1748 * parse.c (operator_length_standard): Likewise.
1749 * valops.c (value_bitstring): Remove.
1750 * value.h: Remove the declaration of 'value_bitstring'.
1751
1752 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1753
1754 * linespec.c (find_methods): Remove unused variables `i1' and
1755 `name_len'.
1756 (decode_line_full): Likewise for `arg_start'.
1757
1758 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1759
1760 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1761 (zlib_decompress_section): Likewise for `section_data'.
1762 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1763
1764 2012-08-10 Doug Evans <dje@google.com>
1765
1766 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1767 * NEWS: Document them.
1768 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1769 function/strfns.py.
1770 * python/py-type.c (typy_array_1): New function.
1771 (typy_array): Call it.
1772 (typy_vector): New function.
1773 (type_object_methods): Add "vector".
1774 * python/lib/gdb/function/__init__.py: New file.
1775 * python/lib/gdb/function/strfns.py: New file.
1776
1777 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1778
1779 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1780 for TYPE_FIELD_BITPOS.
1781 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1782
1783 2012-08-10 Mike Frysinger <vapier@gentoo.org>
1784
1785 PR cli/10436:
1786 * common/vec.h (VEC_merge): Define.
1787 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1788 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1789 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1790 * completer.c: Include gdb_signals.h.
1791 (signal_completer): Define.
1792 * completer.h (signal_completer): Add prototype.
1793 * infcmd.c (_initialize_infcmd): Assign the command
1794 completer for "signal" to handle_completer.
1795 * infrun.c: Include completer.h.
1796 (handle_completer): Define.
1797 (_initialize_infrun): Declare a new local variable c. Store the
1798 result of add_com("handle") to it. Assign the command
1799 completer for "handle" to handle_completer.
1800
1801 2012-08-09 Yao Qi <yao@codesourcery.com>
1802
1803 * cli/cli-decode.c (set_cmd_prefix): New.
1804 (lookup_cmd_for_prefixlist): New.
1805 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1806 of each cmd_list_element in *prefixlist.
1807 (add_setshow_cmd_full): set_cmd_prefix.
1808 (add_alias_cmd): Likewise.
1809 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1810 Declare 'auto_boolean_enums'.
1811 * cli/cli-setshow.c: Include "observer.h".
1812 (notify_command_param_changed_p): New.
1813 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1814 Remove 'static'.
1815 (do_setshow_command): Split it to ...
1816 (do_set_command, do_show_command): ... them. New.
1817 (do_set_command): Call observer_notify_command_param_changed if
1818 notify_command_param_changed_p returns true.
1819 (cmd_show_list): Caller update.
1820 * auto-load.c (set_auto_load_cmd): Likewise.
1821 * remote.c (show_remote_cmd): Likewise.
1822 * cli/cli-setshow.h: Update declarations.
1823 * top.c (execute_command): Call do_set_command and do_show_command.
1824
1825 * NEWS: Mention new MI notification.
1826 * mi/mi-interp.c: Declare mi_command_param_changed.
1827 (mi_interpreter_init): Attach mi_command_param_changed to
1828 observer command_param_changed.
1829 (mi_command_param_changed): New.
1830 Remove mi_suppress_breakpoint_notifications.
1831 Define global variable mi_suppress_notification.
1832 (mi_breakpoint_created): Update.
1833 (mi_breakpoint_deleted): Likewise.
1834 (mi_breakpoint_modified): Likewise.
1835 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1836 'gdb-set' and set mi_suppress_notification.
1837 * mi/mi-main.h: (mi_suppress_notification): New struct.
1838
1839 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
1840 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1843
1844 2012-08-09 Yao Qi <yao@codesourcery.com>
1845
1846 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1847 (skiplist): Move it to skip.c.
1848 (init_cmd_lists): Remove code setting enablebreaklist and
1849 skiplist to NULL.
1850 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1851 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1852 skiplist.
1853 * gdbcmd.h: Likewise.
1854 * skip.c (_initialize_step_skip): Move 'skiplist' from
1855 cli/cli-cmds.c.
1856
1857 2012-08-09 Yao Qi <yao@codesourcery.com>
1858
1859 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1860 * gnu-nat.c, symfile.c: Likewise.
1861
1862 2012-08-08 Aaron Gamble <agamble@google.com>
1863
1864 * utils.c (prompt_for_continue_wait_time): New static global.
1865 (make_command_stats_cleanup): Initialize it.
1866 (report_command_stats): Subtract time waiting for user.
1867 (prompt_for_continue): Track time waiting for user.
1868 (defaulted_query): Track time waiting for user.
1869
1870 2012-08-08 Doug Evans <dje@google.com>
1871
1872 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1873 UNOP_MEMVAL_TYPE.
1874 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1875 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1876 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1877 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1878 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1879 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1880 elt.
1881 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1882 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1883 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1884 (dump_prefix_expression): Handle OP_TYPE.
1885
1886 2012-08-08 Keith Seitz <keiths@redhat.com>
1887
1888 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1889 addr_start.
1890
1891 2012-08-08 Doug Evans <dje@google.com>
1892
1893 * linux-thread-db.c: #include "gdb_vecs.h".
1894 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1895 updated.
1896 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1897 (thread_db_load_search): Use a vector to iterate over path elements.
1898 Handle text appearing after "$pdir".
1899
1900 * gdb_string.h: Moved to ...
1901 * common/gdb_string.h: ... here.
1902 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1903 gdb_string.h and gdb_assert.h.
1904
1905 2012-08-08 Yao Qi <yao@codesourcery.com>
1906
1907 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1908 (tic6x_value_to_register): Likewise.
1909 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1910 and set_gdbarch_value_to_register.
1911
1912 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1913 Jean-Marc Saffroy <saffroy@gmail.com>
1914
1915 PR 11804
1916 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1917 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1918 * gcore.c (gcore_create_callback): New function comment. Add modified
1919 parameter. Only write modified regions. Set SEC_READONLY exactly
1920 according to MODIFIED.
1921 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1922 the passed modified value to FUNC.
1923 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1924 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1925 first. New variables modified and has_anonymous. Parse the lines of
1926 smaps file. Add the passed MODIFIED value to FUNC.
1927 * procfs.c (find_memory_regions_callback): Add the passed modified
1928 value.
1929
1930 2012-08-06 Tom Tromey <tromey@redhat.com>
1931
1932 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1933 (dwarf2_frame_cache): Use it.
1934 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1935 cache initialization constraint.
1936
1937 2012-08-06 Tom Tromey <tromey@redhat.com>
1938
1939 PR python/14386:
1940 * varobj.c (update_dynamic_varobj_children): Don't call
1941 PyIter_Check.
1942
1943 2012-08-06 Tom Tromey <tromey@redhat.com>
1944
1945 PR cli/14392:
1946 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1947
1948 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
1949
1950 * NEWS: New entry for 'cd' default parameters.
1951 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1952
1953 2012-08-03 Tom Tromey <tromey@redhat.com>
1954
1955 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1956 return.
1957
1958 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1959
1960 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1961 to attempting lseek/write.
1962 (inf_child_fileio_pread): Likewise for pread.
1963
1964 2012-08-02 Yao Qi <yao@codesourcery.com>
1965
1966 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1967 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1968 add_setshow_zinteger_cmd.
1969 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1970 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1971 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1972 instead of add_setshow_zinteger_cmd.
1973 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1974 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1975 instead of add_setshow_zinteger_cmd.
1976 * frame.c (frame_debug): Add 'unsigned'.
1977 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1978 add_setshow_zinteger_cmd.
1979 * frame.h: Update the declaration of 'frame_debug'.
1980 * gdbtypes.c (overload_debug): Add 'unsigned'.
1981 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1982 add_setshow_zinteger_cmd.
1983 * inferior.h: Update declaration of 'debug_infrun'.
1984 * infrun.c (debug_infrun): Add 'unsigned'.
1985 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1986 add_setshow_zinteger_cmd.
1987 * jit.c (jit_debug): Add 'unsigned'.
1988 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1989 add_setshow_zinteger_cmd.
1990 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1991 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1992 instead of add_setshow_zinteger_cmd.
1993 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1994 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1995 add_setshow_zinteger_cmd.
1996 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1997 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1998 instead of add_setshow_zinteger_cmd.
1999 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2000 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2001 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2002 intead of add_setshow_zinteger_cmd.
2003 * mips-tdep.c (mips_debug): Add 'unsigned'.
2004 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2005 instead of add_setshow_zinteger_cmd.
2006 * monitor.c (monitor_debug): Add 'unsigned'.
2007 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2008 add_setshow_zinteger_cmd.
2009 * observer.c (observer_debug): Add 'unsigned'.
2010 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2011 add_setshow_zinteger_cmd.
2012 * parse.c (expressiondebug): Add 'unsigned'.
2013 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2014 add_setshow_zinteger_cmd.
2015 * record.c (record_debug): Add 'unsigned'.
2016 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2017 add_setshow_zinteger_cmd.
2018 * record.h: Update the declaration of 'record_debug'.
2019 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2020 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2021 add_setshow_zinteger_cmd.
2022 * serial.c (global_serial_debug_p): Add 'unsigned'.
2023 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2024 add_setshow_zinteger_cmd.
2025 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2026 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2027 add_setshow_zinteger_cmd.
2028 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2029 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2030 add_setshow_zinteger_cmd.
2031 * target.c (targetdebug): Add 'unsigned'.
2032 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2033 add_setshow_zinteger_cmd.
2034 * valops.c (overload_debug): Add 'unsigned'.
2035 * varobj.c (varobjdebug): Add 'unsigned'.
2036 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2037 add_setshow_zinteger_cmd.
2038 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2039 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2040 instead of add_setshow_zinteger_cmd.
2041
2042 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2043 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2044 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2045 instead of add_setshow_zinteger_cmd.
2046 * gdbarch.c, gdbarch.h: Re-generated.
2047
2048 2012-08-02 Yao Qi <yao@codesourcery.com>
2049
2050 * nto-tdep.c: Don't include cli/cli-decode.h and
2051 cli/cli-cmds.h.
2052 (_initialize_nto_tdep): Remove.
2053 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2054 Remove field.
2055 Remove macro nto_internal_debugging.
2056
2057 2012-08-01 Richard Henderson <rth@redhat.com>
2058
2059 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2060 (mep-*-*) [gdb_target_obs]: Likewise.
2061
2062 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2063
2064 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2065 linux_get_siginfo_type.
2066
2067 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2070 AT_ENTRY_POINT.
2071 (call_function_by_hand) <ON_STACK>: Call write_memory with
2072 gdbarch_breakpoint_from_pc, if possible.
2073 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2074 here.
2075
2076 2012-07-31 Yao Qi <yao@codesourcery.com>
2077
2078 * tracepoint.c: Add 'static' for some variables.
2079
2080 2012-07-31 Yao Qi <yao@codesourcery.com>
2081
2082 * go32-nat.c: Declare _initialize_go32_nat.
2083 * ser-go32.c: Declare _initialize_ser_dos.
2084 * top.c (do_chdir_cleanup): Add 'static'.
2085
2086 2012-07-30 Keith Seitz <keiths@redhat.com>
2087
2088 * linespec.c (linespec_lex_number): A number followed
2089 by quotes is a valid number, too.
2090
2091 2012-07-30 Tom Tromey <tromey@redhat.com>
2092
2093 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2094
2095 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2096
2097 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2098 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2099
2100 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2101
2102 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2103 invalid or reevaluated to prevent prevent references to possibly
2104 delete'd type objects being left in the varobj.
2105
2106 2012-07-27 Tom Tromey <tromey@redhat.com>
2107 Jan Kratochvil <jan.kratochvil@redhat.com>
2108
2109 * copying.awk: Print buffer-read-only and vi ro markers.
2110 * copying.c: Rebuild.
2111 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2112 * gdbarch.c, gdbarch.h: Rebuild.
2113 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2114 buffer-read-only and vi ro markers.
2115 * features/arm-with-iwmmxt.c: Rebuild.
2116 * features/arm-with-m-fpa-layout.c: Rebuild.
2117 * features/arm-with-m-vfp-d16.c: Rebuild.
2118 * features/arm-with-m.c: Rebuild.
2119 * features/arm-with-neon.c: Rebuild.
2120 * features/arm-with-vfpv2.c: Rebuild.
2121 * features/arm-with-vfpv3.c: Rebuild.
2122 * features/i386/amd64-avx-linux.c: Rebuild.
2123 * features/i386/amd64-avx.c: Rebuild.
2124 * features/i386/amd64-linux.c: Rebuild.
2125 * features/i386/amd64.c: Rebuild.
2126 * features/i386/i386-avx-linux.c: Rebuild.
2127 * features/i386/i386-avx.c: Rebuild.
2128 * features/i386/i386-linux.c: Rebuild.
2129 * features/i386/i386-mmx-linux.c: Rebuild.
2130 * features/i386/i386-mmx.c: Rebuild.
2131 * features/i386/i386.c: Rebuild.
2132 * features/i386/x32-avx-linux.c: Rebuild.
2133 * features/i386/x32-avx.c: Rebuild.
2134 * features/i386/x32-linux.c: Rebuild.
2135 * features/i386/x32.c: Rebuild.
2136 * features/mips-dsp-linux.c: Rebuild.
2137 * features/mips-linux.c: Rebuild.
2138 * features/mips64-dsp-linux.c: Rebuild.
2139 * features/mips64-linux.c: Rebuild.
2140 * features/rs6000/powerpc-32.c: Rebuild.
2141 * features/rs6000/powerpc-32l.c: Rebuild.
2142 * features/rs6000/powerpc-403.c: Rebuild.
2143 * features/rs6000/powerpc-403gc.c: Rebuild.
2144 * features/rs6000/powerpc-405.c: Rebuild.
2145 * features/rs6000/powerpc-505.c: Rebuild.
2146 * features/rs6000/powerpc-601.c: Rebuild.
2147 * features/rs6000/powerpc-602.c: Rebuild.
2148 * features/rs6000/powerpc-603.c: Rebuild.
2149 * features/rs6000/powerpc-604.c: Rebuild.
2150 * features/rs6000/powerpc-64.c: Rebuild.
2151 * features/rs6000/powerpc-64l.c: Rebuild.
2152 * features/rs6000/powerpc-7400.c: Rebuild.
2153 * features/rs6000/powerpc-750.c: Rebuild.
2154 * features/rs6000/powerpc-860.c: Rebuild.
2155 * features/rs6000/powerpc-altivec32.c: Rebuild.
2156 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2157 * features/rs6000/powerpc-altivec64.c: Rebuild.
2158 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2159 * features/rs6000/powerpc-cell32l.c: Rebuild.
2160 * features/rs6000/powerpc-cell64l.c: Rebuild.
2161 * features/rs6000/powerpc-e500.c: Rebuild.
2162 * features/rs6000/powerpc-e500l.c: Rebuild.
2163 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2164 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2165 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2166 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2167 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2168 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2169 * features/rs6000/powerpc-vsx32.c: Rebuild.
2170 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2171 * features/rs6000/powerpc-vsx64.c: Rebuild.
2172 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2173 * features/rs6000/rs6000.c: Rebuild.
2174 * features/s390-linux32.c: Rebuild.
2175 * features/s390-linux32v1.c: Rebuild.
2176 * features/s390-linux32v2.c: Rebuild.
2177 * features/s390-linux64.c: Rebuild.
2178 * features/s390-linux64v1.c: Rebuild.
2179 * features/s390-linux64v2.c: Rebuild.
2180 * features/s390x-linux64.c: Rebuild.
2181 * features/s390x-linux64v1.c: Rebuild.
2182 * features/s390x-linux64v2.c: Rebuild.
2183 * features/tic6x-c62x-linux.c: Rebuild.
2184 * features/tic6x-c62x.c: Rebuild.
2185 * features/tic6x-c64x-linux.c: Rebuild.
2186 * features/tic6x-c64x.c: Rebuild.
2187 * features/tic6x-c64xp-linux.c: Rebuild.
2188 * features/tic6x-c64xp.c: Rebuild.
2189
2190 2012-07-27 Tom Tromey <tromey@redhat.com>
2191
2192 * c-exp.y (classify_name): Avoid assignment in condition.
2193
2194 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2195
2196 * amd64-windows-tdep.c: Include "frame.h".
2197 (amd64_windows_skip_trampoline_code): New function.
2198 (amd64_windows_init_abi): Add trampoline registration.
2199
2200 2012-07-27 Yao Qi <yao@codesourcery.com>
2201
2202 * tracepoint.c (cur_traceframe_number): Remove.
2203 (set_tfile_traceframe): Remove.
2204 (tfile_trace_find, tfile_fetch_registers): Update callers.
2205 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2206 (tfile_open, tfile_trace_find): Likewise.
2207
2208 2012-07-27 Yao Qi <yao@codesourcery.com>
2209
2210 * thread.c (switch_to_thread): Don't call registers_changed.
2211
2212 2012-07-26 Tom Tromey <tromey@redhat.com>
2213
2214 * Makefile.in (SFILES): Remove objc-exp.y.
2215 (YYFILES): Remove objc-exp.c.
2216 (YYOBJ): Remove objc-exp.o.
2217 (local-maintainer-clean): Don't mention objc-exp.c.
2218 * c-exp.y: Include objc-lang.h.
2219 (%union) <class>: New field.
2220 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2221 (exp): Clone subscript production for OBJC_LBRAC. Add various
2222 Objective C productions.
2223 (msglist, msgarglist, msgarg): New productions.
2224 (array_mod, func_mod, operator): Clone productions for
2225 OBJC_LBRAC.
2226 (parse_string_or_char): Handle '@' strings.
2227 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2228 (classify_name): Check la_name_of_this. Recognize ObjC class
2229 names.
2230 * objc-exp.y: Remove.
2231 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2232 * objc-lang.h (objc_parse, objc_error): Don't declare.
2233
2234 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2235
2236 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2237
2238 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2239
2240 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2241 and decrement.
2242
2243 2012-07-26 Tom Tromey <tromey@redhat.com>
2244
2245 * copying.c: Rebuild.
2246 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2247 'no_class'.
2248
2249 2012-07-26 Tom Tromey <tromey@redhat.com>
2250
2251 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2252 immediate_quit.
2253 (print_objfile_statistics): Likewise.
2254 (maintenance_print_symbols): Likewise.
2255 (maintenance_print_msymbols): Likewise.
2256 (maintenance_print_objfiles): Likewise.
2257 * psymtab.c (print_partial_symbols): Call QUIT.
2258 (maintenance_print_psymbols): Likewise. Don't modify
2259 immediate_quit.
2260 * copying.c (show_copying_command): Don't modify immediate_quit.
2261 (show_warranty_command): Likewise.
2262 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2263
2264 2012-07-26 Keith Seitz <keiths@redhat.com>
2265
2266 * linespec.c (linespec_lexer_lex_number): The input
2267 is also a valid number if the next character is a comma
2268 or colon.
2269
2270 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2271
2272 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2273 configure options.
2274
2275 2012-07-26 Tristan Gingold <gingold@adacore.com>
2276
2277 * machoread.c: Include gdb_bfd.h.
2278
2279 2012-07-26 Tristan Gingold <gingold@adacore.com>
2280
2281 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2282 offset.
2283
2284 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2285
2286 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2287 SIZE to size_t.
2288 (dwarf2_evaluate_loc_desc): Likewise.
2289 (dwarf2_loc_desc_needs_frame): Likewise.
2290 (locexpr_describe_location_1): Likewise.
2291 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2292 size_t.
2293 (struct dwarf2_loclist_baton): Likewise.
2294 * dwarf2read.c (struct dwarf_block): Likewise.
2295 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2296 (decode_locdesc): Expand SIZE and I to size_t.
2297
2298 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2301
2302 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2303
2304 * doublest.c (convert_doublest_to_floatformat): If the exponent
2305 is too small, treat the value as zero. If the exponent is too
2306 large, treat the value as infinity.
2307
2308 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2309
2310 * configure.ac: Add --enable-lmcheck configure option.
2311 * configure: Regenerate.
2312
2313 2012-07-25 Tom Tromey <tromey@redhat.com>
2314
2315 * NEWS: Mention maint info bfds.
2316 * gdb_bfd.c (all_bfds): New global.
2317 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2318 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2319 New functions.
2320
2321 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2322
2323 * configure.tgt: Add v850*-*-rtems*.
2324
2325 2012-07-25 Tom Tromey <tromey@redhat.com>
2326
2327 * macrotab.c (macro_bcache_str): Remove cast.
2328
2329 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2330
2331 * linespec.c (linespec_lexer_lex_number): Update comments,
2332 change the return and add check to make sure the input is
2333 the decimal numbers.
2334 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2335 false, call linespec_lexer_lex_string.
2336
2337 2012-07-24 Tom Tromey <tromey@redhat.com>
2338
2339 * symfile.c (symbol_file_add): Don't open BFD twice.
2340
2341 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2342
2343 * breakpoint.c (create_breakpoint): Store condition for pending
2344 breakpoints.
2345
2346 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2347
2348 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2349 (m68k_return_value): Handle complex types like structures.
2350 (m68k_svr4_return_value): Likewise.
2351
2352 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2353
2354 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2355 parameters to bfd_get_section_name.
2356
2357 2012-07-24 Yao Qi <yao@codesourcery.com>
2358
2359 * cli/cli-setshow.c: Handle case 'var_uinteger'
2360 and 'var_zuninteger' together. Handle case 'var_integer' and
2361 'var_zinteger' together.
2362
2363 2012-07-23 Keith Seitz <keiths@redhat.com>
2364
2365 * linespec.c (convert_linespec_to_sal): Don't add
2366 any symbols to the result vector if symbol_to_sal
2367 returns zero.
2368
2369 2012-07-23 Keith Seitz <keiths@redhat.com>
2370
2371 * linespec.c (decode_objc): Record the function name
2372 in the linespec.
2373
2374 2012-07-23 Tom Tromey <tromey@redhat.com>
2375
2376 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2377 counting.
2378 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2379 (map_vmap): Acquire a reference to the BFD.
2380
2381 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2382
2383 * p-valprint.c (pascal_object_print_value): Replace potentially
2384 unsafe alloca with xmalloc/xfree.
2385 * valops.c (search_struct_method): Likewise.
2386
2387 2012-07-23 Tom Tromey <tromey@redhat.com>
2388
2389 * solib-svr4.c (enable_break): Update.
2390 * bfd-target.h (target_bfd_reopen): Update documentation.
2391
2392 2012-07-23 Tom Tromey <tromey@redhat.com>
2393
2394 * symfile.c (separate_debug_file_exists): Update.
2395 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2396 (reread_symbols): Update.
2397 * elfread.c (build_id_verify): Update.
2398 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2399 bfd_open_maybe_remote.
2400
2401 2012-07-23 Tom Tromey <tromey@redhat.com>
2402
2403 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2404
2405 2012-07-23 Tom Tromey <tromey@redhat.com>
2406
2407 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2408 and 'abfd'.
2409 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2410 and 'abfd'.
2411 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2412 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2413 'abfd'.
2414 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2415 * objfiles.c (allocate_objfile): Acquire a new reference.
2416 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2417 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2418 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2419 a cleanup for 'nbfd'.
2420 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2421 for 'nbfd'.
2422 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2423 make a cleanup for 'abfd'.
2424 (symbol_file_add): Make a BFD cleanup.
2425
2426 2012-07-23 Tom Tromey <tromey@redhat.com>
2427
2428 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2429 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2430 * corelow.c (core_open): Use gdb_bfd_fopen.
2431 * dsrec.c (load_srec): Use gdb_bfd_openr.
2432 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2433 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2434 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2435 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2436 (gdb_bfd_fdopenr): New functions.
2437 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2438 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2439 (gdb_bfd_fdopenr): Declare.
2440 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2441 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2442 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2443 gdb_bfd_openr_next_archived_file.
2444 (macho_check_dsym): Use gdb_bfd_openr.
2445 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2446 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2447 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2448 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2449 gdb_bfd_openr.
2450 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2451 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2452 gdb_bfd_openr_next_archived_file.
2453 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2454 Use gdb_bfd_openr.
2455 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2456 gdb_bfd_openr.
2457 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2458 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2459 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2460 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2461 (symfile_bfd_open): Use gdb_bfd_fopen.
2462 (generic_load): Use gdb_bfd_openr.
2463 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2464
2465 2012-07-23 Tom Tromey <tromey@redhat.com>
2466
2467 * bfd-target.c (target_bfd_reopen): Update.
2468 * cli/cli-dump.c (bfd_openr_with_cleanup)
2469 (bfd_openw_with_cleanup): Update.
2470 * corelow.c (core_open): Update.
2471 * dsrec.c (load_srec): Update.
2472 * exec.c (exec_file_attach): Update.
2473 * gcore.c (create_gcore_bfd): Update.
2474 * gdb_bfd.c (gdb_bfd_ref): Return void.
2475 (gdb_bfd_open): Update.
2476 * gdb_bfd.h (gdb_bfd_ref): Return void.
2477 Update comments.
2478 * jit.c (jit_bfd_try_read_symtab): Update.
2479 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2480 * machoread.c (macho_symfile_read_all_oso): Update.
2481 (macho_check_dsym): Update.
2482 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2483 * remote-m32r-sdi.c (m32r_load): Update.
2484 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2485 * rs6000-nat.c (add_vmap): Update.
2486 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2487 Update.
2488 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2489 * solib-spu.c (spu_bfd_open): Update.
2490 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2491 * spu-linux-nat.c (spu_bfd_open): Update.
2492 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2493 (generic_load): Update.
2494 * windows-nat.c (windows_make_so): Update.
2495
2496 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2497
2498 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2499
2500 2012-07-20 Jeff Kenton <jkenton@tilera.com>
2501
2502 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2503 SIGTRAMP_FRAME unwinding.
2504
2505 2012-07-20 Doug Evans <dje@google.com>
2506
2507 * NEWS: Document new options "set/show use-deprecated-index-sections",
2508 and delete reference to --use-deprecated-index-sections.
2509 * symfile.h (use_deprecated_index_sections): Delete.
2510 * dwarf2read.c (use_deprecated_index_sections): Make static.
2511 (read_index_from_section): Update wording of how to load
2512 deprecated index sections.
2513 (_initialize_dwarf2_read): New options
2514 "set/show use-deprecated-index-sections".
2515 * main.c (captured_main): Delete --use-deprecated-index-sections.
2516
2517 2012-07-20 Pedro Alves <palves@redhat.com>
2518
2519 PR threads/11692
2520 PR gdb/12203
2521
2522 * infrun.c (handle_inferior_event) <new thread>: Don't special
2523 case minus_one_ptid.
2524 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2525 * linux-thread-db.c (thread_get_info_callback): Don't return early
2526 if the thread is zombie.
2527 (thread_from_lwp): Change return type to void. Rewrite stale
2528 comment.
2529 (attach_thread): Don't return early if the thread is zombie,
2530 instead set its "dying" flag.
2531 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2532 (find_new_threads_callback): Don't return early if the thread is
2533 zombie.
2534
2535 2012-07-20 Pedro Alves <palves@redhat.com>
2536
2537 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2538 * target.c (target_wait): Likewise.
2539 (str_comma_list_concat_elem, do_option, target_options_to_string):
2540 New functions.
2541 * target.h (target_options_to_string): Declare.
2542
2543 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 Tom Tromey <tromey@redhat.com>
2545
2546 * dwarf2read.c (dwarf_decode_macros)
2547 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2548 DW_MACRO_GNU_transparent_include_alt>: New cases.
2549 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2550 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2551
2552 2012-07-20 Tom Tromey <tromey@redhat.com>
2553
2554 * dwarf2read.c (try_open_dwo_file): Don't call
2555 gdb_bfd_stash_filename.
2556
2557 2012-07-20 Pedro Alves <palves@redhat.com>
2558
2559 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2560 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2561 (i386_process_record): Tweak description comments.
2562
2563 2012-07-20 Pedro Alves <palves@redhat.com>
2564
2565 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2566 (i386_process_record): Use record_read_memory.
2567 * record.c (record_read_memory): New function.
2568 (record_arch_list_add_mem, record_exec_insn): Use
2569 record_read_memory.
2570 * record.h (record_read_memory): Declare.
2571
2572 2012-07-20 Yao Qi <yao@codesourcery.com>
2573
2574 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2575 NULL for xfree.
2576
2577 2012-07-19 Pedro Alves <palves@redhat.com>
2578
2579 * record.c (record_resume): Ask the target beneath to report all
2580 signals.
2581
2582 2012-07-19 Doug Evans <dje@google.com>
2583
2584 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2585 there's no section at address zero.
2586 (dwarf2_record_block_ranges): Ditto.
2587
2588 2012-07-19 Yao Qi <yao@codesourcery.com>
2589
2590 * command.h, remote.c: Fix a typo in comment.
2591
2592 2012-07-19 Tom Tromey <tromey@redhat.com>
2593
2594 PR exp/13206:
2595 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2596 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2597 OP_DECLTYPE>: New cases.
2598 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2599 (type_exp): Add new productions.
2600 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2601 and decltype.
2602 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2603 New case.
2604 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2605 OP_DECLTYPE>: New case.
2606 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2607 New case.
2608 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2609 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2610
2611 2012-07-19 Tom Tromey <tromey@redhat.com>
2612
2613 * c-exp.y (enum token_flags): New.
2614 (struct token) <cxx_only>: Remove.
2615 <flags>: New field.
2616 (tokentab3, tokentab2, ident_tokens): Update.
2617 (lex_one_token): Update. Handle FLAG_SHADOW.
2618
2619 2012-07-19 Tom Tromey <tromey@redhat.com>
2620
2621 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2622 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2623 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2624 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2625 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2626 type_exp production where appropriate.
2627 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2628 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2629 <UNOP_MEMVAL_TYPE>: New case.
2630 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2631 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2632 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2633 <UNOP_MEMVAL_TYPE>: New case.
2634 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2635 UNOP_REINTERPRET_CAST>: Update.
2636 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2637 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2638 UNOP_REINTERPRET_CAST>: Update.
2639 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2640 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2641 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2642 constants.
2643
2644 2012-07-19 Yao Qi <yao@codesourcery.com>
2645 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2648 and case 'var_optional_filename' together.
2649 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2650 instead of add_setshow_optional_filename_cmd for setshow command
2651 'args'. Set completer for 'set args'.
2652
2653 2012-07-18 Doug Evans <dje@google.com>
2654
2655 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2656 * common/gdb_vecs.c: New file, contents from utils.c.
2657 * common/host-defs.h: New file, contents from defs.h.
2658 * utils.h: New file, contents from defs.h.
2659 * defs.h: Move all declarations of objects defined in utils.c
2660 to utils.h (except QUIT() and related).
2661 #include "utils.h", "host-defs.h".
2662 * probe.h (probe_p): Move here from gdb_vecs.h.
2663 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2664 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2665 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2666 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2667 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2668 (COMMON_OBS): Add gdb_vecs.o.
2669 (gdb_vecs.o): New rule.
2670
2671 2012-07-18 Keith Seitz <keiths@redhat.com>
2672
2673 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2674 parameter. If non-zero, use SYMNAME as the canonical name
2675 for the SaL.
2676 Update all callers.
2677 (convert_linespec_to_sals): Use add_sal_to_sals for
2678 expressions, too.
2679 (decode_line_full): No need to "fill in missing canonical names"
2680 anymore. Simply make cleanups for the allocated names.
2681
2682 2012-07-18 Keith Seitz <keiths@redhat.com>
2683
2684 * linespec.c (struct linespec): Constify expression,
2685 source_filename, function_name, and label_name.
2686 (symbol_not_found_error): Make all parameters const.
2687 (linespec_parser_delete): No need to check for NULL
2688 when using xfree. Cast const char * to char * for xfree.
2689
2690 2012-07-18 Keith Seitz <keiths@redhat.com>
2691
2692 * breakpoint.c (invalid_thread_id_error): New function.
2693 (find_condition_and_thread): Use invalid_thread_id_error.
2694 (watch_command_1): Likewise.
2695
2696 2012-07-18 Tom Tromey <tromey@redhat.com>
2697
2698 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2699 * contrib/cc-with-tweaks.sh: New file.
2700
2701 2012-07-18 Tom Tromey <tromey@redhat.com>
2702
2703 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2704 (locate_dwz_sections): Recognize .gdb_index.
2705 (create_cus_from_index_list): New function.
2706 (create_cus_from_index): Use it. Handle .dwz data.
2707 (read_index_from_section): New function, extracted from
2708 dwarf2_read_index.
2709 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2710 if needed.
2711
2712 2012-07-18 Tom Tromey <tromey@redhat.com>
2713
2714 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2715 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2716 <is_dwz>: New field.
2717 (struct dwz_file): New.
2718 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2719 (locate_dwz_sections, dwarf2_get_dwz_file)
2720 (get_abbrev_section_for_cu): New functions.
2721 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2722 (read_and_check_type_unit_head): Add abbrev_section argument.
2723 (create_debug_types_hash_table): Update.
2724 (init_cutu_and_read_dies): Use proper abbrev section.
2725 (init_cutu_and_read_dies_no_follow): Likewise.
2726 (set_partial_user): Do nothing if PST==NULL.
2727 (read_comp_units_from_section): New function.
2728 (create_all_comp_units): Use it.
2729 (scan_partial_symbols, partial_die_parent_scope): Update.
2730 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2731 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2732 (find_partial_die): Add offset_in_dwz argument. Update.
2733 (guess_partial_die_structure_name, fixup_partial_die): Update.
2734 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2735 DW_FORM_GNU_strp_alt.
2736 (read_indirect_string_from_dwz): New function.
2737 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2738 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2739 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2740 (follow_die_offset): Add offset_in_dwz argument.
2741 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2742 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2743 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2744 Handle new macro forms.
2745 (dwarf_decode_macros): Update.
2746 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2747 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2748 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2749 (create_debug_types_hash_table): Use correct abbrev section.
2750 (get_debug_line_section): New function.
2751 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2752 (process_full_comp_unit): Pass 'required' argument to
2753 end_symtab_get_static_block.
2754 * buildsym.h (end_symtab_get_static_block): Update.
2755 * buildsym.c (end_symtab_get_static_block): Add 'required'
2756 argument.
2757 (end_symtab, end_expandable_symtab): Update.
2758
2759 2012-07-18 Tom Tromey <tromey@redhat.com>
2760
2761 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2762 (pagesize): Remove.
2763 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2764 (zlib_decompress_section): Remove.
2765 (dwarf2_read_section): Use gdb_bfd_map_section.
2766 (munmap_section_buffer): Remove.
2767 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2768 munmap_section_buffer.
2769 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2770 (struct gdb_bfd_section_data): New.
2771 (free_one_bfd_section): New function.
2772 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2773 (get_section_descriptor, zlib_decompress_section)
2774 (gdb_bfd_map_section): New functions.
2775 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2776
2777 2012-07-18 Tom Tromey <tromey@redhat.com>
2778
2779 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2780
2781 2012-07-18 Tom Tromey <tromey@redhat.com>
2782
2783 * gdb_bfd.c (struct gdb_bfd_data): New.
2784 (gdb_bfd_cache): New global.
2785 (struct gdb_bfd_cache_search): New.
2786 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2787 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2788 * gdb_bfd.h (gdb_bfd_open): Declare.
2789
2790 2012-07-18 Tom Tromey <tromey@redhat.com>
2791
2792 * utils.c (make_cleanup_bfd_unref): Rename from
2793 make_cleanup_bfd_close.
2794 * defs.h (make_cleanup_bfd_unref): Rename from
2795 make_cleanup_bfd_close.
2796 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2797 (bfd_openw_with_cleanup): Update.
2798 * corelow.c (core_open): Update.
2799 * dsrec.c (load_srec): Update.
2800 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2801 * remote-m32r-sdi.c (m32r_load): Update.
2802 * remote-mips.c (mips_load_srec): Update.
2803 (pmon_load_fast): Update.
2804 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2805 Update.
2806 (darwin_bfd_open): Update.
2807 * solib.c (solib_bfd_fopen): Update.
2808 * symfile-mem.c (symbol_file_add_from_memory): Update.
2809 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2810 (symfile_bfd_open): Update.
2811 (generic_load): Update.
2812
2813 2012-07-18 Tom Tromey <tromey@redhat.com>
2814
2815 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2816 (pmon_load_fast): Likewise.
2817 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2818 (m32r_upload_command): Likewise.
2819 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2820 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2821 Use make_cleanup_bfd_close.
2822
2823 2012-07-18 Tom Tromey <tromey@redhat.com>
2824
2825 * symfile.c (symfile_bfd_open): Don't copy name. Call
2826 gdb_bfd_stash_filename.
2827 (load_command): Open the new BFD before freeing the old.
2828 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2829 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2830 Call gdb_bfd_stash_filename.
2831 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2832 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2833 gdb_bfd_stash_filename.
2834 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2835 Free found_pathname.
2836 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2837 gdb_bfd_stash_filename.
2838 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2839 * machoread.c (macho_add_oso_symfile): Call
2840 gdb_bfd_stash_filename.
2841 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2842 gdb_bfd_stash_filename.
2843 (macho_check_dsym): Don't copy filename. Call
2844 gdb_bfd_stash_filename.
2845 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2846 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2847 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2848 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2849 * exec.c (exec_close): Don't free the BFD's filename.
2850 (exec_file_attach): Don't copy the filename. Call
2851 gdb_bfd_stash_filename.
2852 * corelow.c (core_close): Don't free the BFD's filename.
2853 (core_open): Call gdb_bfd_stash_filename.
2854 * corefile.c (reopen_exec_file): Remove #if 0 code.
2855 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2856 pathname.
2857 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2858
2859 2012-07-18 Tom Tromey <tromey@redhat.com>
2860
2861 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2862 gdb_bfd_unref.
2863 (free_dwo_file): Use gdb_bfd_unref.
2864 * cli/cli-dump.c: Include gdb_bfd.h.
2865 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2866 (bfd_openr_with_cleanup): Likewise.
2867 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2868 gdb_bfd_unref.
2869 * utils.c: Include gdb_bfd.h.
2870 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2871 * symfile.c: Include gdb_bfd.h.
2872 (separate_debug_file_exists): Use gdb_bfd_unref.
2873 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2874 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2875 (generic_load): Use gdb_bfd_ref.
2876 (reread_symbols): Use gdb_bfd_unref.
2877 * symfile-mem.c: Include gdb_bfd.h.
2878 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2879 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2880 * solib.c: Include gdb_bfd.h.
2881 (solib_bfd_fopen): Use gdb_bfd_ref.
2882 (solib_bfd_open): Use gdb_bfd_unref.
2883 (free_so_symbols): Use gdb_bfd_unref.
2884 (reload_shared_libraries_1): Use gdb_bfd_unref.
2885 * solib-spu.c: Include gdb_bfd.h.
2886 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2887 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2888 gdb_bfd_unref.
2889 * solib-frv.c: Include gdb_bfd.h.
2890 (enable_break2): Use gdb_bfd_unref.
2891 * solib-dsbt.c: Include gdb_bfd.h.
2892 (enable_break2): Use gdb_bfd_unref.
2893 * solib-darwin.c: Include gdb_bfd.h.
2894 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2895 gdb_bfd_unref.
2896 (darwin_bfd_open): Use gdb_bfd_unref.
2897 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2898 * remote-mips.c: Include gdb_bfd.h.
2899 (mips_load_srec): Use gdb_bfd_ref.
2900 (pmon_load_fast): Use gdb_bfd_ref.
2901 * remote-m32r-sdi.c: Include gdb_bfd.h.
2902 (m32r_load): Use gdb_bfd_ref.
2903 * record.c: Include gdb_bfd.h.
2904 (record_save_cleanups): Use gdb_bfd_unref.
2905 (cmd_record_save): Use gdb_bfd_unref.
2906 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2907 gdb_bfd_unref.
2908 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2909 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2910 * objfiles.c: Include gdb_bfd.h.
2911 (free_objfile): Use gdb_bfd_unref.
2912 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2913 gdb_bfd.c.
2914 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2915 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2916 (macho_check_dsym): Likewise.
2917 * m32r-rom.c: Include gdb_bfd.h.
2918 (m32r_load): Use gdb_bfd_ref.
2919 (m32r_upload_command): Use gdb_bfd_ref.
2920 * jit.c: Include gdb_bfd.h.
2921 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2922 * gdb_bfd.h: New file.
2923 * gdb_bfd.c: New file.
2924 * gcore.c: Include gdb_bfd.h.
2925 (create_gcore_bfd): Use gdb_bfd_ref.
2926 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2927 (gcore_command): Use gdb_bfd_unref.
2928 * exec.c: Include gdb_bfd.h.
2929 (exec_close): Use gdb_bfd_unref.
2930 (exec_close_1): Use gdb_bfd_unref.
2931 (exec_file_attach): Use gdb_bfd_ref.
2932 * elfread.c: Include gdb_bfd.h.
2933 (build_id_verify): Use gdb_bfd_unref.
2934 * dsrec.c: Include gdb_bfd.h.
2935 (load_srec): Use gdb_bfd_ref.
2936 * corelow.c: Include gdb_bfd.h.
2937 (core_close): Use gdb_bfd_unref.
2938 (core_open): Use gdb_bfd_ref.
2939 * bfd-target.c: Include gdb_bfd.h.
2940 (target_bfd_xclose): Use gdb_bfd_unref.
2941 (target_bfd_reopen): Use gdb_bfd_ref.
2942 * Makefile.in (SFILES): Add gdb_bfd.c.
2943 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2944 (COMMON_OBS): Add gdb_bfd.o.
2945
2946 2012-07-18 Keith Seitz <keiths@redhat.com>
2947
2948 * breakpoint.c (find_condition_and_thread): Initialize
2949 TASK and REST.
2950 (create_breakpiont): find_condition_and_thread will now
2951 initialize COND_STRING, THREAD, and REST (and TASK).
2952 (addr_string_to_sals): Likewise.
2953
2954 2012-07-18 Pedro Alves <palves@redhat.com>
2955
2956 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2957 Pull the single step breakpoints out of the target.
2958
2959 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2960
2961 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2962 * stap-probe.c (compile_probe_arg): Likewise.
2963
2964 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2965
2966 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2967 (elf_compile_to_ax): Likewise.
2968 * infrun.c (insert_exception_resume_from_probe): Likewise.
2969 (check_exception_resume): Remove `objfile' variable.
2970 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2971 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2972 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2973 (compare_entries): Rename to...
2974 (compare_probes): ...this. Adjust function to work with
2975 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2976 respectively.
2977 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2978 `VEC (probe_p) *'.
2979 (print_ui_out_info): Adjust argument to be `struct probe *'.
2980 (info_probes_for_ops): Adjust internal computations to use
2981 `VEC (probe_p) *'.
2982 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2983 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2984 gen_info_probes_table_values>: Remove `objfile' argument.
2985 (struct probe) <objfile>: New field.
2986 (find_probe_by_pc): Remove `objfile' argument.
2987 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2988 (stap_get_probe_argument_count): Likewise.
2989 (stap_get_arg): Likewise.
2990 (stap_evaluate_probe_argument): Likewise.
2991 (stap_compile_to_ax): Likewise.
2992 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2993 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2994 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2995 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2996 sym_compile_to_ax>: Likewise.
2997
2998 2012-07-18 Terry Guo <terry.guo@arm.com>
2999
3000 PR 14329
3001 * defs.h (GDB_MI_MSG_WIDTH): New.
3002 * ser_base (ser_base_read_error_fd): New function.
3003 (do_ser_base_readchar): Poll error file descriptor as well as
3004 standard output.
3005 (generic_readchar): Refactor error handling.
3006
3007 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3008
3009 * NEWS: Create a new section for the next release branch.
3010 Rename the section of the current branch, now that it has
3011 been cut.
3012
3013 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3014
3015 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3016 * version.in: Bump version to 7.5.50.20120718-cvs.
3017
3018 2012-07-17 Keith Seitz <keiths@redhat.com>
3019
3020 * linespec.c (linespec_parse_line_offset): Make parameter
3021 const.
3022
3023 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 PR 11914
3026 * f-valprint.c (info_common_command): New variable frame_id.
3027 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3028 * printcmd.c (print_variable_and_value): Extend function comment.
3029 Add comment for invalidated FRAME.
3030 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3031 FI form FRAME_ID after each print_frame_local_vars.
3032 (struct print_variable_and_value_data): Change frame to frame_id.
3033 (do_print_variable_and_value): New variable frame, initialize it from
3034 p->frame_id. Add comment for invalidated FRAME.
3035 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3036 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3037 for invalidated FRAME.
3038
3039 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3040 Pedro Alves <palves@redhat.com>
3041
3042 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3043 loop.
3044
3045 2012-07-16 Tom Tromey <tromey@redhat.com>
3046
3047 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3048
3049 2012-07-15 Doug Evans <dje@google.com>
3050
3051 * dwarf2read.c (stmt_list_hash): New struct.
3052 (type_unit_group): Embed "per_cu" member, remove pointer.
3053 New union member "t", move member "tus" into it, all uses updated.
3054 New member "hash", replaces member "line_offset, all uses updated.
3055 (quick_file_names): Replace member "offset" with "hash", all uses
3056 updated.
3057 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3058 (hash_file_name_entry, eq_file_name_entry): Call them.
3059 (hash_type_unit_group, eq_type_unit_group): Ditto.
3060 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3061 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3062 (dw2_get_file_names): Update.
3063 (create_type_unit_group): Replace "per_cu" arg with "cu".
3064 All callers updated. Fix "quick" (.gdb_index) handling.
3065 (get_type_unit_group): Replace "per_cu" arg with "cu".
3066 All callers updated.
3067 (build_type_unit_groups): Don't reset tu_stats.
3068
3069 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3070 "tab_cur_size". Change member "tab" to be a htab_t.
3071 (create_filename_seen_cache): Update.
3072 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3073 (filename_seen): Update.
3074
3075 2012-07-13 Doug Evans <dje@google.com>
3076
3077 * symtab.c (filename_seen): Update comment.
3078
3079 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Doug Evans <dje@google.com>
3081
3082 * buildsym.c (end_symtab_1): Split it to ...
3083 (end_symtab_get_static_block): ... this ...
3084 (end_symtab_from_static_block): ... and this function.
3085 (end_symtab, end_expandable_symtab): Call them.
3086 * buildsym.h (end_symtab_get_static_block)
3087 (end_symtab_from_static_block): New declarations.
3088 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3089 Set its valid CU ranges.
3090
3091 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3092
3093 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3094 DW_OP_GNU_parameter_ref.
3095
3096 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3097
3098 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3099 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3100
3101 2012-07-13 Doug Evans <dje@google.com>
3102
3103 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3104 (filename_seen_cache): New struct.
3105 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3106 (create_filename_seen_cache): New function.
3107 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3108 (filename_seen): Delete arg "first". New arg "cache". All callers
3109 updated.
3110 (output_source_filename_data): New struct.
3111 (output_source_filename): Delete arg "first". New arg "data".
3112 All callers updated.
3113 (sources_info): Delete local "first". New locals "data", "cleanups".
3114 Rewrite to use filename_seen_cache.
3115 (add_partial_filename_data): Delete member "first". New member
3116 "filename_seen_cache". All uses updated.
3117 (make_source_files_completion_list): Rewrite to use
3118 filename_seen_cache.
3119
3120 2012-07-12 Doug Evans <dje@google.com>
3121
3122 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3123
3124 2012-07-10 Doug Evans <dje@google.com>
3125
3126 PR gdb/13498
3127 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3128 all_type_unit_groups, type_unit_groups, tu_stats.
3129 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3130 All uses updated. Add type_unit_group to union "s".
3131 (type_unit_group): New struct.
3132 (IS_TYPE_UNIT_GROUP): New macro.
3133 (abbrev_table): Delete unused member "section".
3134 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3135 (dw2_get_cu): Assert not used with type_unit_group.
3136 (dw2_get_primary_cu): New function.
3137 (dw2_build_type_unit_groups_reader): New function.
3138 (dw2_build_type_unit_groups): New function.
3139 (dw2_get_file_names): Assert not called on type units.
3140 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3141 Redo loop to iterate over type unit groups instead of type units.
3142 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3143 (read_abbrev_offset): New function.
3144 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3145 updated.
3146 (create_partial_symtab): New function.
3147 (process_psymtab_comp_unit_reader): Assert not used with type units.
3148 Call create_partial_symtab.
3149 (process_psymtab_type_unit): Delete.
3150 (hash_type_unit_group, eq_type_unit_group): New functions.
3151 (allocate_type_unit_groups_table): New function.
3152 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3153 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3154 (create_type_unit_group, get_type_unit_group): New functions.
3155 (tu_abbrev_offset): New struct.
3156 (sort_tu_by_abbrev_offset): New function.
3157 (add_type_unit_group_to_table): New function.
3158 (build_type_unit_groups): New function.
3159 (build_type_psymtabs_reader): New function.
3160 (build_type_psymtab_dependencies): New function.
3161 (build_type_psymtabs): Rewrite.
3162 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3163 is seen in a type unit.
3164 (process_queue): Move symtab expansion debugging printfs here.
3165 Call process_full_type_unit for type units.
3166 (compute_symtab_includes): Assert not called for type units.
3167 (process_cu_includes): Don't call compute_symtab_includes for
3168 type units.
3169 (process_full_type_unit): New function.
3170 (process_imported_unit_die): Flag an error if called for type units.
3171 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3172 updated. Assert not called for type units.
3173 (read_file_scope): Call dwarf2_start_symtab.
3174 (setup_type_unit_groups): New function.
3175 (read_type_unit_scope): Rewrite.
3176 (abbrev_table_read_table): Initialize abbrev_table->offset.
3177 (abbrev_table_free_cleanup): New function.
3178 (dwarf2_start_symtab): New function.
3179 (load_full_type_unit): Assert not called for type unit groups.
3180 * buildsym.c (finish_block_internal): New arg "expandable".
3181 All callers updated.
3182 (start_symtab): Move most contents to ...
3183 (restart_symtab): ... here. New function.
3184 (reset_symtab_globals): New function.
3185 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3186 Call reset_symtab_globals.
3187 (end_symtab, end_expandable_symtab): New functions.
3188 (set_missing_symtab, augment_type_symtab): New functions.
3189 * buildsym.h (end_expandable_symtab): Declare.
3190 (augment_type_symtab, restart_symtab): Declare.
3191 * psympriv.h (struct partial_symtab): New member "anonymous".
3192 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3193 anonymous psymtabs.
3194 (read_psymtabs_with_filename): Ditto.
3195 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3196 (expand_symtabs_matching_via_partial): Ditto.
3197 (dump_psymtab): Update.
3198 * dictionary.c (dict_add_pending): New function.
3199 * dictionary.h (dict_add_pending): Declare.
3200
3201 2012-07-09 Doug Evans <dje@google.com>
3202
3203 * buildsym.c (start_subfile): Remove unnecessary check for
3204 name == NULL.
3205
3206 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3207
3208 * dwarf2read.c (load_full_type_unit): Simplify.
3209
3210 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3211 to struct signatured_type **. All uses updated.
3212
3213 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3214 All callers updated.
3215
3216 2012-07-09 Tom Tromey <tromey@redhat.com>
3217
3218 * c-exp.y (check_parameter_typelist): New function.
3219 (parameter_typelist): Call it.
3220 * eval.c (make_params): Handle '(void)' case.
3221 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3222 '(void)' case.
3223
3224 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3225
3226 * common/linux-ptrace.c: Include gdb_assert.h.
3227 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3228 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3229 stdint.h.
3230 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3231 functions.
3232 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3233 * linux-nat.c (linux_child_post_attach)
3234 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3235
3236 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3237
3238 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3239 nptl <2.7 bug workaround for core files.
3240
3241 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3242
3243 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3244 clearing.
3245 (save_siginfo): Remove.
3246 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3247 call.
3248 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3249 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3250 * linux-nat.h (struct lwp_info): Remove field siginfo.
3251
3252 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3253
3254 Code cleanup for the next patch.
3255 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3256 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3257 call for it.
3258 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3259 (ia64_linux_stopped_data_address):
3260 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3261 the return value.
3262 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3263 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3264 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3265 call for it.
3266
3267 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 PR 14321
3270 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3271 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3272
3273 2012-07-06 Tom Tromey <tromey@redhat.com>
3274
3275 * c-exp.y (DOTDOTDOT): New token.
3276 (func_mod, exp): Use parameter_typelist.
3277 (parameter_typelist): New production.
3278 (tokentab3): Add "..." token.
3279 * eval.c (make_params): Handle varargs.
3280 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3281 varargs.
3282
3283 2012-07-06 Tom Tromey <tromey@redhat.com>
3284
3285 PR exp/9608:
3286 * c-exp.y (%union) <tvec>: Change type.
3287 (func_mod): Now uses <tvec> type.
3288 (exp): Update for tvec change.
3289 (direct_abs_decl): Push the typelist.
3290 (func_mod): Return a typelist.
3291 (nonempty_typelist): Update for tvec change.
3292 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3293 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3294 * parse.c (pop_type_list): New function.
3295 (push_typelist): New function.
3296 (follow_types): Handle tp_function_with_arguments.
3297 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3298 (enum type_pieces) <tp_function_with_arguments>: New constant.
3299 (union type_stack_elt) <typelist_val>: New field.
3300 (push_typelist): Declare.
3301
3302 2012-07-06 Tom Tromey <tromey@redhat.com>
3303
3304 * c-exp.y (%union) <type_stack>: New field.
3305 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3306 (ptr_operator_ts): New production.
3307 (ptype): Update.
3308 * parse.c (type_stack_reserve): New function.
3309 (check_type_stack_depth): Use it.
3310 (pop_type_stack, append_type_stack, push_type_stack)
3311 (get_type_stack, type_stack_cleanup): New functions.
3312 (follow_types): Handle tp_type_stack.
3313 (_initialize_parse): Simplify initialization.
3314 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3315 constant.
3316 (union type_stack_elt) <stack_val>: New field.
3317 (get_type_stack, append_type_stack, push_type_stack)
3318 (type_stack_cleanup): Declare.
3319
3320 2012-07-06 Tom Tromey <tromey@redhat.com>
3321
3322 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3323 Remove.
3324 (struct type_stack): New.
3325 * parse.c (type_stack, type_stack_size, type_stack_depth):
3326 Remove.
3327 (type_stack): New global.
3328 (parse_exp_in_context, check_type_stack_depth)
3329 (insert_into_type_stack, insert_type, push_type, push_type_int)
3330 (insert_type_address_space, pop_type, pop_type_int)
3331 (_initialize_parse): Update.
3332
3333 2012-07-06 Tom Tromey <tromey@redhat.com>
3334
3335 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3336 Remove %type.
3337
3338 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3339
3340 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3341
3342 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3343 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3346 alloca with xmalloc/xfree.
3347
3348 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3349
3350 * MAINTAINERS (Write After Approval): Add myself to the list.
3351
3352 2012-07-05 Doug Evans <dje@google.com>
3353
3354 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3355
3356 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3357
3358 * ax-gdb.c (cli/cli-utils.h): New include.
3359 (linespec.h): Ditto.
3360 (agent_eval_command_one): New function.
3361 (agent_command_1): Ditto.
3362 (agent_command): Call function agent_command_1.
3363 (agent_eval_command): Ditto.
3364 (_initialize_ax_gdb): Change help for "maint agent"
3365 and "maint agent-eval".
3366
3367 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3368
3369 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3370 * cli/cli-utils.c (check_for_argument): New function.
3371 * cli/cli-utils.h (check_for_argument): Ditto.
3372
3373 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3374
3375 * NEWS: Mention x32 ABI support.
3376
3377 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3378
3379 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3380 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3381
3382 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3383 and pc_regnum_from_eax to -1. Update SP regnum from
3384 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3385 needed.
3386
3387 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3388 pc_regnum_from_eax.
3389
3390 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3391
3392 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3393 * dwarf2expr.h: Include gdbtypes.h.
3394 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3395 these forward declarations.
3396 (cu_offset, sect_offset): Move these ...
3397 * gdbtypes.h: Remove include dwarf2expr.h.
3398 (cu_offset, sect_offset): ... here.
3399
3400 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3401
3402 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3403 (amd64_linux_sigtramp_code): This.
3404 (amd64_x32_linux_sigtramp_code): New.
3405 (LINUX_SIGTRAMP_LEN): Updated.
3406 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3407
3408 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3411
3412 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 * config.in: Regenerate.
3415 * configure: Regenerate.
3416 * configure.ac: Remove check for gnu/libc-version.h.
3417 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3418 gnu/libc-version.h.
3419 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3420 variables libc_version, libc_major and libc_minor. Replace sscanf by
3421 inferior_has_bug. Extend the comment.
3422
3423 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 * linux-thread-db.c (inferior_has_bug): New function.
3426 (thread_db_find_new_threads_silently): Return boolean as checked by
3427 inferior_has_bug, describe it in the comments.
3428 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3429 earlier. Abort the initialization if it returned non-zero.
3430 (thread_db_new_objfile): Exclude debug files.
3431 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3432 if UNTIL_NO_NEW,
3433
3434 2012-07-02 Doug Evans <dje@google.com>
3435
3436 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3437 related to queue management.
3438
3439 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3440 instead of "debug dwarf2-die" in debugging printfs.
3441 (create_debug_info_hash_table_reader): Ditto.
3442 (create_debug_info_hash_table): Ditto.
3443 (init_dwo_file): Ditto.
3444 (init_cutu_and_read_dies): Add debugging printf.
3445 (init_cutu_and_read_dies_no_follow): Ditto.
3446 (process_psymtab_comp_unit_reader): Ditto.
3447
3448 2012-07-02 Stan Shebs <stan@codesourcery.com>
3449
3450 Add target-side support for dynamic printf.
3451 * NEWS: Mention the additional style.
3452 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3453 (struct bp_location): New field cmd_bytecode.
3454 * breakpoint.c: Include format.h.
3455 (disconnected_dprintf): New global.
3456 (parse_cmd_to_aexpr): New function.
3457 (build_target_command_list): New function.
3458 (insert_bp_location): Call it.
3459 (remove_breakpoints_pid): Skip dprintf breakpoints.
3460 (print_one_breakpoint_location): Ditto.
3461 (dprintf_style_agent): New global.
3462 (dprintf_style_enums): Add dprintf_style_agent.
3463 (update_dprintf_command_list): Add agent case.
3464 (agent_printf_command): New function.
3465 (_initialize_breakpoint): Add new commands.
3466 * common/ax.def (printf): New bytecode.
3467 * ax.h (ax_string): Declare.
3468 * ax-gdb.h (gen_printf): Declare.
3469 * ax-gdb.c: Include cli-utils.h, format.h.
3470 (gen_printf): New function.
3471 (maint_agent_print_command): New function.
3472 (_initialize_ax_gdb): Add maint agent-printf command.
3473 * ax-general.c (ax_string): New function.
3474 (ax_print): Add printf disassembly.
3475 * Makefile.in (SFILES): Add format.c
3476 (COMMON_OBS): Add format.o.
3477 * common/format.h: New file.
3478 * common/format.c: New file.
3479 * printcmd.c: Include format.h.
3480 (ui_printf): Call parse_format_string.
3481 * remote.c (remote_state): New field breakpoint_commands.
3482 (PACKET_BreakpointCommands): New enum.
3483 (remote_breakpoint_commands_feature): New function.
3484 (remote_protocol_features): Add new BreakpointCommands entry.
3485 (remote_can_run_breakpoint_commands): New function.
3486 (remote_add_target_side_commands): New function.
3487 (remote_insert_breakpoint): Call it.
3488 (remote_insert_hw_breakpoint): Ditto.
3489 (_initialize_remote): Add new packet configuration for
3490 target-side breakpoint commands.
3491 * target.h (struct target_ops): New field
3492 to_can_run_breakpoint_commands.
3493 (target_can_run_breakpoint_commands): New macro.
3494 * target.c (update_current_target): Handle
3495 to_can_run_breakpoint_commands.
3496
3497 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 Execute -ix and -iex only after system and user gdbinit files.
3500 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3501 processing down after gdbinit files.
3502
3503 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3504
3505 Add fnmatch-gnu module.
3506 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3507 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3508 * gnulib/aclocal.m4: Regenerate.
3509 * gnulib/config.in: Regenerate.
3510 * gnulib/configure: Regenerate.
3511 * gnulib/import/dummy.c: Remove.
3512 * gnulib/import/Makefile.am: Regenerate.
3513 * gnulib/import/Makefile.in: Likewise.
3514 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3515 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3516 * gnulib/import/alloca.c: New file.
3517 * gnulib/import/alloca.in.h: Likewise.
3518 * gnulib/import/config.charset: Likewise.
3519 * gnulib/import/fnmatch.c: Likewise.
3520 * gnulib/import/fnmatch.in.h: Likewise.
3521 * gnulib/import/fnmatch_loop.c: Likewise.
3522 * gnulib/import/localcharset.c: Likewise.
3523 * gnulib/import/localcharset.h: Likewise.
3524 * gnulib/import/m4/alloca.m4: Likewise.
3525 * gnulib/import/m4/codeset.m4: Likewise.
3526 * gnulib/import/m4/configmake.m4: Likewise.
3527 * gnulib/import/m4/fcntl-o.m4: Likewise.
3528 * gnulib/import/m4/fnmatch.m4: Likewise.
3529 * gnulib/import/m4/glibc21.m4: Likewise.
3530 * gnulib/import/m4/localcharset.m4: Likewise.
3531 * gnulib/import/m4/locale-fr.m4: Likewise.
3532 * gnulib/import/m4/locale-ja.m4: Likewise.
3533 * gnulib/import/m4/locale-zh.m4: Likewise.
3534 * gnulib/import/m4/mbrtowc.m4: Likewise.
3535 * gnulib/import/m4/mbsinit.m4: Likewise.
3536 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3537 * gnulib/import/m4/mbstate_t.m4: Likewise.
3538 * gnulib/import/m4/stdbool.m4: Likewise.
3539 * gnulib/import/m4/wchar_h.m4: Likewise.
3540 * gnulib/import/m4/wctype_h.m4: Likewise.
3541 * gnulib/import/m4/wint_t.m4: Likewise.
3542 * gnulib/import/mbrtowc.c: Likewise.
3543 * gnulib/import/mbsinit.c: Likewise.
3544 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3545 * gnulib/import/mbsrtowcs-state.c: Likewise.
3546 * gnulib/import/mbsrtowcs.c: Likewise.
3547 * gnulib/import/ref-add.sin: Likewise.
3548 * gnulib/import/ref-del.sin: Likewise.
3549 * gnulib/import/stdbool.in.h: Likewise.
3550 * gnulib/import/streq.h: Likewise.
3551 * gnulib/import/strnlen1.c: Likewise.
3552 * gnulib/import/strnlen1.h: Likewise.
3553 * gnulib/import/verify.h: Likewise.
3554 * gnulib/import/wchar.in.h: Likewise.
3555 * gnulib/import/wctype.in.h: Likewise.
3556
3557 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 Support shell wildcards for 'set auto-load safe-path'.
3560 * auto-load.c: Include fnmatch.h.
3561 (filename_is_in_dir): Rename to ...
3562 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3563 it. Update function comment. Rename dir_len to pattern_len. New
3564 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3565 messages. Use gdb_filename_fnmatch.
3566 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3567 pattern.
3568 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3569 * defs.h (gdb_filename_fnmatch): New declaration.
3570 * utils.c: Include fnmatch.h.
3571 (gdb_filename_fnmatch): New function.
3572
3573 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3574
3575 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3576 `-probe' and `-probe-stap' options.
3577
3578 2012-07-01 Yao Qi <yao@codesourcery.com>
3579
3580 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3581 always_inserted_off, and always_inserted_enums.
3582 Change always_inserted_mode's type to 'enum auto_boolean'.
3583 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3584 callers.
3585 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3586 of add_setshow_enum_cmd.
3587 * infrun.c: Remove can_use_displaced_stepping_auto,
3588 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3589 can_use_displaced_stepping_enum.
3590 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3591 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3592 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3593 add_setshow_enum_cmd.
3594
3595 2012-06-30 Doug Evans <dje@google.com>
3596
3597 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3598 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3599 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3600
3601 2012-06-29 Doug Evans <dje@google.com>
3602
3603 * linespec.c: #include "stack.h".
3604 (decode_line_with_current_source): Moved here from symtab.c and
3605 renamed from decode_line_spec. All callers updated.
3606 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3607 renamed from decode_line_spec_1. All callers updated.
3608 * linespec.h (decode_line_with_current_source): Move declaration here
3609 from symtab.h and renamed from decode_line_spec.
3610 (decode_line_with_last_displayed): Move declaration here from symtab.h
3611 and renamed from decode_line_spec_1.
3612 * macrocmd.c: #include "linespec.h".
3613 * symtab.c: Remove #include "linespec.h".
3614
3615 2012-06-28 Doug Evans <dje@google.com>
3616
3617 * dwarf2read.c (get_cu_length): New function.
3618 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3619 (create_debug_types_hash_table): Ditto.
3620 (init_cutu_and_read_dies): Ditto.
3621 (init_cutu_and_read_dies_no_follow): Ditto.
3622
3623 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3624
3625 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3626 (struct abbrev_table): Define.
3627 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3628 abbrev_table.
3629 (init_cutu_and_read_dies): Update.
3630 (abbrev_table_alloc_abbrev): New function. Replaces
3631 dwarf_alloc_abbrev. All callers updated.
3632 (abbrev_table_add_abbrev): New function.
3633 (abbrev_table_lookup_abbrev): New function. Replaces
3634 dwarf2_lookup_abbrev. All callers updated.
3635 (abbrev_table_read_table): New function. Contents moved here from
3636 dwarf2_read_abbrevs.
3637 (dwarf2_read_abbrevs): Call it.
3638 (abbrev_table_free): New function.
3639 (dwarf2_free_abbrev_table): Call it.
3640
3641 2012-06-28 Stan Shebs <stan@codesourcery.com>
3642
3643 * osdata.c (info_osdata_command): Filter out "Title" columns
3644 from non-MI uses.
3645 * common/linux-osdata.c (struct osdata_type): Add title field.
3646 (osdata_table): Add titles to each entry.
3647 (linux_command_xfer_osdata): Add a column for title data.
3648
3649 2012-06-28 Stan Shebs <stan@codesourcery.com>
3650
3651 Make logging work for MI.
3652 * NEWS: Mention it.
3653 * interps.h (interp_set_logging_ftype): New typedef.
3654 (struct interp_procs): New field set_logging_proc.
3655 (current_interp_set_logging): Declare.
3656 * interps.c (current_interp_set_logging): New function.
3657 * cli/cli-logging.c: Include interps.h.
3658 (set_logging_redirect): Call current_interp_set_logging.
3659 (pop_output_files): Ditto.
3660 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3661 * mi/mi-console.h (mi_console_set_raw): Declare.
3662 * mi/mi-console.c (mi_console_set_raw): New function.
3663 * mi/mi-interp.c (saved_raw_stdout): New global.
3664 (mi_set_logging): New function.
3665 (_initialize_mi_interp): Add it to interp procs.
3666
3667 2012-06-28 Doug Evans <dje@google.com>
3668
3669 * symtab.c (lookup_symbol_aux_objfile): Use
3670 ALL_OBJFILE_PRIMARY_SYMTABS.
3671
3672 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3673
3674 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 * common/buffer.c: Include inttypes.h and stdint.h.
3677 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3678
3679 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 Pedro Alves <palves@redhat.com>
3681
3682 * gdbthread.h (ALL_THREADS): New macro.
3683 (thread_list): Declare.
3684 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3685 going, but instead fall through to the stepping handling.
3686 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3687 the passed in signal. Adjust debug output.
3688 (resume_callback): Rename to ...
3689 (linux_nat_resume_callback): ... this. Pass the thread's last
3690 stop signal, if in "pass" state.
3691 (linux_nat_resume): Adjust to rename.
3692 (stop_wait_callback): New assertion. Don't respawn signals;
3693 instead let the LWP remain with SIGNALLED set.
3694 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3695 * remote.c (append_pending_thread_resumptions): New.
3696 (remote_vcont_resume): Call it.
3697 * target.h (target_resume): Extend comment.
3698
3699 2012-06-28 Iain Sandoe <iain@codesourcery.com>
3700
3701 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3702
3703 2012-06-27 Doug Evans <dje@google.com>
3704
3705 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3706 Delete have_addr_base, unused. All uses updated.
3707 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3708 (dwarf2_get_pc_bounds): Add ranges_base.
3709 (dwarf2_record_block_ranges): Ditto.
3710
3711 2012-06-27 Tom Tromey <tromey@redhat.com>
3712
3713 PR macros/7961:
3714 * varobj.c (varobj_create): Update.
3715 (varobj_set_value): Update.
3716 * tracepoint.c (validate_actionline): Update.
3717 (encode_actions_1): Update.
3718 * parse.c (parse_exp_1): Add 'pc' argument.
3719 (parse_exp_in_context): Add 'pc' argument. Change how
3720 expression_context_pc is set.
3721 (parse_expression): Update.
3722 (parse_field_expression): Update.
3723 * expression.h (parse_exp_1): Update.
3724 * eval.c (parse_to_comma_and_eval): Update.
3725 * breakpoint.c (set_breakpoint_condition): Update.
3726 (update_watchpoint): Update.
3727 (init_breakpoint_sal): Update
3728 (find_condition_and_thread): Update.
3729 (watch_command_1): Update.
3730 (update_breakpoint_locations): Update.
3731 * ada-lang.c (ada_read_renaming_var_value): Update.
3732 (create_excep_cond_exprs): Update.
3733
3734 2012-06-27 Doug Evans <dje@google.com>
3735
3736 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3737 type units.
3738
3739 2012-06-26 Doug Evans <dje@google.com>
3740
3741 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3742 prototype.
3743 (error_check_comp_unit_head): New arg abbrev_section. All callers
3744 updated.
3745 (read_and_check_comp_unit_head): Ditto.
3746 (read_and_check_type_unit_head): Ditto.
3747
3748 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3749
3750 New attribute 'last' for gdb.Symtab_and_line.
3751 * NEWS (Python Scripting): Add entry about the new attribute.
3752 * python/py-symtab.c (salpy_get_last): New function which
3753 implements the get method for the 'last' attribute of
3754 gdb.Symtab_and_line.
3755 (sal_object_getset): Add entry for the 'last' attribute.
3756
3757 2012-06-26 Doug Evans <dje@google.com>
3758
3759 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3760 (dwo_sections): Add macinfo, macro.
3761 (dwarf2_locate_dwo_sections): Watch for macro sections.
3762 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3763 All callers updated. Handle DWO files.
3764
3765 * NEWS: Mention new options "set debug dwarf2-read" and
3766 "set debug symtab-create".
3767 * dwarf2read.c (dwarf2_read_debug): New static global.
3768 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3769 (process_queue): Ditto.
3770 (process_full_comp_unit): Ditto.
3771 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3772 * elfread.c (elf_symfile_read): Add debugging printf.
3773 * minsyms.c (install_minimal_symbols): Ditto.
3774 * psymtab.c (allocate_psymtab): Ditto.
3775 * symfile.c (allocate_symtab): Ditto.
3776 * symtab.c (symtab_create_debug): New global.
3777 (_initialize_symtab): Add new option "set debug symtab-create".
3778 * symtab.h (symtab_create_debug): Declare.
3779
3780 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3781 (lookup_dwo_type_unit): Ditto.
3782
3783 2012-06-26 Roland McGrath <roland@hack.frob.com>
3784 H.J. Lu <hongjiu.lu@intel.com>
3785
3786 * amd64-linux-nat.c: Include <sys/user.h>.
3787 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3788 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3789 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3790
3791 * configure.ac: Check if the fs_base and gs_base members of
3792 `struct user_regs_struct' exist.
3793 * config.in: Regenerated.
3794 * configure: Likewise.
3795
3796 2012-06-25 Michael Eager <eager@eagercon.com>
3797
3798 PR python/14291
3799 * python/python.c (gdbpy_write): Check for interrupted output.
3800
3801 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3802
3803 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3804 register as a stack alignment in ARM mode.
3805
3806 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3807
3808 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3809 * gnulib/config.in: Regenerate.
3810 * gnulib/configure: Likewise.
3811 * gnulib/import/m4/extensions.m4: Update it.
3812 * gnulib/import/m4/gnulib-common.m4: Likewise.
3813 * gnulib/import/m4/memmem.m4: Likewise.
3814 * gnulib/import/m4/mmap-anon.m4: Likewise.
3815 * gnulib/import/m4/multiarch.m4: Likewise.
3816 * gnulib/import/stdint.in.h: Likewise.
3817
3818 2012-06-24 Yao Qi <yao@codesourcery.com>
3819
3820 * corefile.c (write_memory_with_notification): New.
3821 * gdbcore.h: Declare write_memory_with_notification.
3822 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3823 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3824 * valops.c (value_assign): Likewise.
3825 * python/py-inferior.c (infpy_write_memory): Call
3826 'write_memory_with_notification'.
3827
3828 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3829
3830 * cc-with-index.sh: Use also -ex "set auto-load no".
3831
3832 2012-06-23 Doug Evans <dje@google.com>
3833
3834 PR 14125
3835 * NEWS: Document additions to .gdb_index.
3836 * dwarf2read.c: #include "gdb/gdb-index.h".
3837 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3838 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3839 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3840 (dwarf2_read_index): Recognize version 7.
3841 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3842 block_kind, domain): All callers updated.
3843 (dw2_find_symbol_file): Handle new index CU values.
3844 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3845 (add_index_entry): New args is_static, kind. All callers updated.
3846 (offset_type_compare, uniquify_cu_indices): New functions
3847 (symbol_kind): New function.
3848 (write_psymtabs_to_index): Remove duplicate CU values.
3849 (write_psymtabs_to_index): Write .gdb_index version 7.
3850
3851 2012-06-22 Joel Brobecker <brobecker@adacore.com>
3852
3853 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3854 * configure: Regenerate.
3855
3856 2012-06-20 Yao Qi <yao@codesourcery.com>
3857
3858 * python/py-inferior.c: Update comments of infpy_read_memory
3859 and infpy_write_memory.
3860
3861 2012-06-19 Tom Tromey <tromey@redhat.com>
3862
3863 PR exp/9514:
3864 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3865 (push_type_address_space): Remove.
3866 * parse.c (insert_into_type_stack): New function.
3867 (insert_type): Likewise.
3868 (insert_type_address_space): Rename from push_type_address_space.
3869 Insert tp_space_identifier.
3870 * c-exp.y (ptr_operator): New production.
3871 (abs_decl): Use ptr_operator.
3872 (space_identifier): Call insert_type_address_space.
3873 (ptype): Don't use const_or_volatile_or_space_identifier.
3874 (const_or_volatile_noopt): Call insert_type.
3875 (conversion_type_id, conversion_declarator): New productions.
3876 (operator): Use conversion_type_id.
3877
3878 2012-06-18 Doug Evans <dje@google.com>
3879
3880 * symtab.h (minimal_symbol): New member created_by_gdb.
3881 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3882 created by gdb.
3883 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3884 (search_symbols): Call it instead of lookup_symbol.
3885 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3886
3887 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3888 Adjust address for DW_OP_GNU_addr_index.
3889 * dwarf2expr.h (dwarf_expr_context): Update comment.
3890 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3891 all callers updated. Handle TLS vars described with
3892 DW_OP_GNU_const_index.
3893 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3894 and DW_OP_GNU_const_index.
3895 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3896
3897 * block.c (find_block_in_blockvector): Make explicit the fact that we
3898 ignore GLOBAL_BLOCK.
3899
3900 2012-06-18 Tom Tromey <tromey@redhat.com>
3901
3902 * c-exp.y (operator): Remove trailing space after "delete" and
3903 "delete[]".
3904
3905 2012-06-18 Mark Kettenis <kettenis@gnu.org>
3906 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 Switch i386 and derived targets to ON_STACK.
3909 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3910 (amd64_dicos_init_abi): Remove its installment.
3911 * dicos-tdep.c (dicos_init_abi): Remove the
3912 set_gdbarch_call_dummy_location call. Update the comment here.
3913 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3914 (i386_dicos_init_abi): Remove its installment.
3915 * i386-tdep.c (i386_push_dummy_code): New function.
3916 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3917 i386_push_dummy_code.
3918
3919 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 Remove stale dummy frames.
3922 * breakpoint.c: Include dummy-frame.h.
3923 (longjmp_breakpoint_ops): New variable.
3924 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3925 bp_longjmp_call_dummy.
3926 (bpstat_what, bptype_string, print_one_breakpoint_location)
3927 (init_bp_location): Support bp_longjmp_call_dummy.
3928 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3929 (set_longjmp_breakpoint_for_call_dummy)
3930 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3931 functions.
3932 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3933 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3934 FIXME comment and extend the other comment for bp_call_dummy.
3935 (set_longjmp_breakpoint_for_call_dummy)
3936 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3937 * dummy-frame.c: Include gdbthread.h.
3938 (pop_dummy_frame_bpt): New function.
3939 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3940 (dummy_frame_discard): New function.
3941 (cleanup_dummy_frames): Update the comment about longjmps.
3942 * dummy-frame.h (dummy_frame_discard): New declaration.
3943 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3944 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3945 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3946 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3947 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3948 keep_going if IS_LONGJMP and there is no other reason to stop.
3949
3950 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3951
3952 * remote-sim.c (sim_command_completer): Initialize
3953 variable 'result'.
3954
3955 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3956
3957 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3958 * dwarf2loc.c (call_site_parameter_matches): Support
3959 CALL_SITE_PARAMETER_PARAM_OFFSET.
3960 (needs_dwarf_reg_entry_value): Push stub value.
3961 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3962 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3963 * gdbtypes.h (enum call_site_parameter_kind): New item
3964 CALL_SITE_PARAMETER_PARAM_OFFSET.
3965 (struct call_site.parameter.u): New field param_offset.
3966
3967 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 Code cleanup: Generalize call_site.parameter key.
3970 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3971 variable dwarf_reg. New variable kind_u. Update parameters to
3972 push_dwarf_reg_entry_value.
3973 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3974 * dwarf2expr.h (enum call_site_parameter_kind)
3975 (union call_site_parameter_u): Forward declarations.
3976 (struct dwarf_expr_context_funcs): Update parameters and their
3977 description for push_dwarf_reg_entry_value.
3978 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3979 * dwarf2loc.c (call_site_parameter_matches): New function.
3980 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3981 description. Use call_site_parameter_matches.
3982 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3983 Update parameters and their description.
3984 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3985 New variable kind_u. Adjust the caller for updated parameters.
3986 (needs_dwarf_reg_entry_value): Update parameters.
3987 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3988 instead of attr. Update for the changed fields of struct
3989 call_site_parameter.
3990 * gdbtypes.h: Include dwarf2expr.h.
3991 (enum call_site_parameter_kind): New.
3992 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3993 fb_offset into new union u.
3994
3995 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3996
3997 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3998 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3999 for x32.
4000
4001 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4002
4003 * amd64-linux-nat.c (compat_x32_clock_t): New.
4004 (compat_x32_siginfo_t): Likewise.
4005 (compat_x32_siginfo_from_siginfo): Likewise.
4006 (siginfo_from_compat_x32_siginfo): Likewise.
4007 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4008 and siginfo_from_compat_x32_siginfo for x32.
4009
4010 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4011
4012 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4013
4014 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4015
4016 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4017 instead of gdbarch_ptr_bit.
4018 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4019 (amd64_supply_native_gregset): Likewise.
4020 (amd64_collect_native_gregset): Likewise.
4021 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4022 (amd64_supply_xsave): Likewise.
4023 (amd64_collect_fxsave): Likewise.
4024 (amd64_collect_xsave): Likewise.
4025
4026 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4027
4028 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4029 (amd64_linux_read_description): Check DS segment register for
4030 x32 process.
4031
4032 2012-06-15 Tom Tromey <tromey@redhat.com>
4033
4034 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4035 init_cutu_and_read_dies.
4036
4037 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4038
4039 * MAINTAINERS (Write After Approval): Add myself to the list.
4040
4041 2012-06-15 Tom Tromey <tromey@redhat.com>
4042
4043 * valops.c (value_find_oload_method_list): Now static.
4044 * value.h (value_find_oload_method_list): Don't declare.
4045
4046 2012-06-15 Tom Tromey <tromey@redhat.com>
4047
4048 * valops.c (find_overload_match): Use value_ind.
4049
4050 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4051
4052 * infrun.c (handle_inferior_event): Correct indentation.
4053
4054 2012-06-14 Doug Evans <dje@google.com>
4055
4056 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4057 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4058 All uses updated.
4059 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4060 updated. Handle DEBUG_LOC_START_LENGTH.
4061 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4062 (loclist_describe_location): Ditto.
4063
4064 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4065
4066 PR backtrace/13866
4067 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4068 after hiding inline functions.
4069
4070 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4071
4072 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4073 _initialize_inf_ttrace.
4074
4075 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4076
4077 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4078 _initialize_hppa_hpux_nat.
4079
4080 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4081
4082 * remote-sim.c (sim_command_completer): Change type of return
4083 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4084
4085 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4086 Jan Kratochvil <jan.kratochvil@redhat.com>
4087
4088 PR tdep/14222
4089 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4090 stack on a 16-byte boundary.
4091
4092 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4093
4094 * jit.c (finalize_symtab): Set function's return type to 'void' by
4095 default.
4096
4097 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4098 H.J. Lu <hongjiu.lu@intel.com>
4099
4100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4101 Move bits common to both the classic LP64 and the new x32 ILP32
4102 ABI here.
4103 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4104 (amd64_x32_linux_init_abi): New function.
4105 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4106 subtype.
4107
4108 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4109 * i386-tdep.c (i386_pseudo_register_name): Make public.
4110 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4111 * amd64-tdep.c (amd64_dword_names): Add "eip".
4112 (amd64_x32_pseudo_register_type): New function
4113 (amd64_x32_init_abi): New function.
4114
4115 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4116
4117 PR build/14003
4118 * inferior.h (struct inferior_suspend_state): Comment out.
4119 (struct inferior): Comment out the field suspend.
4120 * infrun.c (struct infcall_suspend_state): Comment out the field
4121 inferior_suspend.
4122 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4123 out its assignment.
4124
4125 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4126
4127 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4128 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4129 function comment. Return ERROR for unresolved cases. Implement
4130 returning proper NAME.
4131 (yylex): Accept also NAME from classify_inner_name.
4132 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4133 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4134 LOC_TYPEDEF type.
4135 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4136
4137 2012-06-13 Tom Tromey <tromey@redhat.com>
4138
4139 * breakpoint.c (condition_completer): New function.
4140 (_initialize_breakpoint): Use it.
4141 * value.c (complete_internalvar): New function.
4142 * value.h (complete_internalvar): Declare.
4143
4144 2012-06-13 Tom Tromey <tromey@redhat.com>
4145
4146 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4147 * breakpoint.c (catch_syscall_completer): Return a VEC.
4148 * cli/cli-cmds.c (complete_command): Update.
4149 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4150 (complete_on_enum): Likewise.
4151 * command.h: Include gdb_vecs.h.
4152 (completer_ftype): Change return type.
4153 (complete_on_cmdlist, complete_on_enum): Likewise.
4154 * completer.c (noop_completer, filename_completer)
4155 (location_completer): Return a VEC.
4156 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4157 to a VEC.
4158 (expression_completer, complete_line_internal, complete_line)
4159 (command_completer): Return a VEC.
4160 (gdb_completion_word_break_characters, line_completion_function):
4161 Update.
4162 * completer.h: Include gdb_vecs.h.
4163 (complete_line, noop_completer, filename_completer)
4164 (expression_completer, location_completer, command_completer):
4165 Update.
4166 * f-lang.c (f_word_break_characters): Return a VEC.
4167 * interps.c (interpreter_completer): Return a VEC.
4168 * language.h (struct language_defn)
4169 <la_make_symbol_completion_list>: Return a VEC.
4170 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4171 * symtab.c (free_completion_list): Take a VEC.
4172 (return_val_size, return_val_index): Remove.
4173 (return_val): Now a VEC.
4174 (completion_list_add_name): Update.
4175 (default_make_symbol_completion_list_break_on)
4176 (default_make_symbol_completion_list, make_symbol_completion_list)
4177 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4178 Return a VEC.
4179 (add_filename_to_list): Update.
4180 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4181 <list>: Now a VEC.
4182 (maybe_add_partial_symtab_filename): Update.
4183 (make_source_files_completion_list): Return a VEC.
4184 * symtab.h (default_make_symbol_completion_list_break_on)
4185 (default_make_symbol_completion_list, make_symbol_completion_list)
4186 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4187 (make_source_files_completion_list): Update.
4188
4189 2012-06-13 Tom Tromey <tromey@redhat.com>
4190
4191 * breakpoint.c (add_catch_command): Use completer_ftype.
4192 * breakpoint.h: Include command.h.
4193 (add_catch_command): Use completer_ftype.
4194 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4195 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4196 Use completer_ftype.
4197 * command.h (completer_ftype): New typedef.
4198 (set_cmd_completer): Use it.
4199 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4200 completer_ftype.
4201
4202 2012-06-13 Pedro Alves <palves@redhat.com>
4203
4204 Partial revert of previous change.
4205
4206 * serial.c (scb_base): New global.
4207 (serial_for_fd): New.
4208 (serial_open, serial_fdopen_ops): Link new serial in open serials
4209 chain.
4210 (do_serial_close): Unlink serial from the open serials chain.
4211
4212 2012-06-12 Pedro Alves <palves@redhat.com>
4213
4214 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4215 threads here.
4216 (prepare_for_detach): No longer context switch here in non-stop
4217 mode.
4218 (fetch_inferior_event): Ditto.
4219 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4220 to the event thread before removing breakpoints. Switch to the
4221 event thread before inserting breakpoints and resuming.
4222 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4223 event thread before resuming.
4224 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4225 Switch to the event thread before removing breakpoints.
4226
4227 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4228
4229 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4230 special characters correctly for the Windows shells. See
4231 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4232 report.
4233 [!__MINGW32__]: Remove extra double quote character from special
4234 characters.
4235
4236 2012-06-11 Stan Shebs <stan@codesourcery.com>
4237
4238 * ui-out.h: Remove #if 0 declarations.
4239 * ui-out.c: Remove #if 0 functions.
4240
4241 2012-06-11 Pedro Alves <palves@redhat.com>
4242
4243 * ser-base.c (run_async_handler_and_reschedule): New.
4244 (fd_event, push_event): Use it.
4245 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4246 reference count to 1.
4247 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4248 instead of xfree.
4249 (serial_is_open, serial_ref, serial_unref): New.
4250 * serial.h (serial_open): Adjust comment.
4251 (serial_is_open): Declare.
4252 (serial_close): Adjust comment.
4253 (serial_ref, serial_unref) Declare.
4254 (struct serial): New field 'refcnt'.
4255
4256 2012-06-11 Pedro Alves <palves@redhat.com>
4257
4258 Remove #if 0'd "connect" command, and unnecessary associated
4259 refcounting and serial reuse bits.
4260
4261 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4262 * serial.c (last_serial_opened): Delete.
4263 (scb_base): Delete.
4264 (serial_open): Adjust.
4265 (serial_for_fd): Delete.
4266 (serial_fdopen_ops, do_serial_close): Adjust.
4267 (serial_fdopen_ops): Adjust.
4268
4269 2012-06-11 Pedro Alves <palves@redhat.com>
4270
4271 * serial.c (do_serial_close): Remove early return when SCB is
4272 null.
4273
4274 2012-06-11 Tom Tromey <tromey@redhat.com>
4275
4276 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4277
4278 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4279
4280 Fix regression by the "ambiguous linespec" series.
4281 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4282 get_last_displayed_symtab and get_last_displayed_line and depending
4283 on CURSAL.
4284
4285 2012-06-11 Tom Tromey <tromey@redhat.com>
4286
4287 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4288 (dw2_find_symbol_file): Use it.
4289
4290 2012-06-11 Michael Eager <eager@eagercon.com>
4291
4292 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4293 * mips-linux-tdep.h (mips_signals): New
4294
4295 2012-06-11 Tom Tromey <tromey@redhat.com>
4296
4297 * infrun.c (handle_inferior_event)
4298 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4299 breakpoint.
4300 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4301 exception logic in all cases. Update comments.
4302 (insert_longjmp_resume_breakpoint): Set the exception resume
4303 breakpoint.
4304
4305 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4306
4307 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4308
4309 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4310
4311 * valarith.c (binop_types_user_defined_p): Fix a typo.
4312
4313 2012-06-08 Yao Qi <yao@codesourcery.com>
4314 Chung-Lin Tang <cltang@codesourcery.com>
4315
4316 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4317 * arch-utils.h: Declare.
4318 * gdbarch.sh: Add return_in_first_hidden_param_p.
4319 * gdbarch.c, gdbarch.h: Regenerated.
4320 * infcall.c (call_function_by_hand): Call
4321 gdbarch_return_in_first_hidden_param_p instead of
4322 language_pass_by_reference.
4323
4324 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4325 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4326 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4327 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4328 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4329 `cplus_return_struct_by_reference'.
4330 (tic6x_return_value): Handle language cplusplus.
4331 (tic6x_return_in_first_hidden_param_p): New.
4332 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4333
4334 2012-06-07 Doug Evans <dje@google.com>
4335
4336 * dwarf2read.c (dwarf2_cu): Add comment.
4337
4338 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4339
4340 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4341 variable.
4342 (mips_eabi_push_dummy_call): Likewise.
4343 (mips_n32n64_push_dummy_call): Likewise.
4344 (mips_o32_push_dummy_call): Likewise.
4345 (mips_o64_push_dummy_call): Likewise.
4346
4347 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4348
4349 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4350
4351 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4352
4353 * mips-tdep.c (mips_pseudo_register_type): Use
4354 mips_float_register_p.
4355
4356 2012-06-06 Pedro Alves <palves@redhat.com>
4357
4358 * infrun.c (handle_inferior_event): Remove calls to
4359 reinit_frame_cache that follow a context_switch call.
4360
4361 2012-06-06 Pedro Alves <palves@redhat.com>
4362
4363 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4364 context_switch and remove stale comment.
4365
4366 2012-06-06 Pedro Alves <palves@redhat.com>
4367
4368 * infrun.c (struct execution_control_state): Remove
4369 `new_thread_event' field.
4370 (handle_inferior_event): Simplify new threads handling; don't
4371 resume the inferior if we find a new thread.
4372
4373 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4374
4375 * NEWS: Document the deprecation of SH's 'regs' command.
4376 * inferior.h (all_registers_info): Add function declaration.
4377 * sh-tdep.c (sh_show_regs): Remove variable.
4378 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4379 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4380 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4381 (sh_show_regs_command): Remove functions.
4382 (sh_gdbarch_init): Don't set sh_show_regs.
4383 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4384 'info all-registers'.
4385 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4386 (sh64_show_regs): Remove functions.
4387 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4388
4389 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 * configure.ac: Move development=true below AC_INIT.
4392 * configure: Regenerate.
4393
4394 2012-06-05 Stan Shebs <stan@codesourcery.com>
4395
4396 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4397 gdb_stdout.
4398
4399 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4400
4401 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4402 argument as ssize_t.
4403 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4404 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4405 * target.c (target_read_stack, target_write_memory)
4406 (target_write_raw_memory): Likewise.
4407 * target.h (target_read_stack, target_write_memory)
4408 (target_write_raw_memory): Likewise.
4409
4410 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4411
4412 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4413 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4414 * target.c (target_read_memory): Change LEN to ssize_t.
4415 * target.h (target_read_memory): Change LEN to ssize_t.
4416
4417 2012-06-05 Pedro Alves <palves@redhat.com>
4418
4419 PR backtrace/13866
4420
4421 * breakpoint.c (until_break_command): Only fetch the selected
4422 frame after decode_line_1.
4423
4424 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4425
4426 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4427 event breakpoint at _start, __start or main if a program
4428 interpreter is not found.
4429
4430 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4431
4432 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4433 Add declaration.
4434 * windows-tdep.c: #include "objfiles.h".
4435 (windows_iterate_over_objfiles_in_search_order): New function.
4436 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4437 iterate_over_objfiles_in_search_order gdbarch method to
4438 windows_iterate_over_objfiles_in_search_order.
4439 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4440
4441 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4442
4443 * gdbarch.sh: Add generation of
4444 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4445 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4446 (iterate_over_objfiles_in_search_order): New gdbarch method.
4447 * gdbarch.h, gdbarch.c: Regenerate.
4448 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4449 Add declaration.
4450 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4451 New function.
4452 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4453 out of lookup_symbol_aux_symtabs.
4454 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4455 call to lookup_symbol_aux_objfile.
4456 (struct global_sym_lookup_data): New type.
4457 (lookup_symbol_global_iterator_cb): New function.
4458 (lookup_symbol_global): Search for symbol using
4459 gdbarch_iterate_over_objfiles_in_search_order and
4460 lookup_symbol_global_iterator_cb.
4461 * findvar.c (struct minsym_lookup_data): New type.
4462 (minsym_lookup_iterator_cb): New function.
4463 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4464 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4465 and minsym_lookup_iterator_cb.
4466
4467 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4468
4469 Revert the following patch:
4470 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4471 try locating the symbol in the symbol's own objfile first, before
4472 extending the search to all objfiles.
4473 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4474 out of lookup_symbol_aux_symtabs.
4475 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4476 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4477 Do not search EXCLUDE_OBJFILE.
4478 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4479 (lookup_symbol_global): Search for matches in the block's objfile
4480 first, before searching all other objfiles.
4481
4482 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4483
4484 * breakpoint.c (find_condition_and_thread): Stop parsing
4485 as soon as the first invalid keyword is found.
4486
4487 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4488
4489 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4490
4491 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4492
4493 * config/djgpp/djcheck.sh: Add copyright header.
4494
4495 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4496
4497 * copyright.py (update_files, main): Fix path to update-copyright
4498 script.
4499
4500 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4501
4502 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4503 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4504 for which a reminder to update by hand is printed.
4505
4506 2012-06-04 Doug Evans <dje@google.com>
4507
4508 * buildsym.c (make_blockvector): Add comment.
4509
4510 2012-06-04 Pedro Alves <palves@redhat.com>
4511
4512 * arch-utils.c (default_gdb_signal_from_target): Delete.
4513 * arch-utils.h (default_gdb_signal_from_target): Delete.
4514 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4515 gdbarch_gdb_signal_from_target_p.
4516 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4517 predicate).
4518 * gdbarch.h: Regenerate.
4519 * gdbarch.c: Regenerate.
4520
4521 2012-06-04 Pedro Alves <palves@redhat.com>
4522
4523 * gdbarch.sh (gdb_signal_from_target): Mention that the
4524 implementation of the method must be host independent.
4525 * gdbarch.h: Regenerate.
4526
4527 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4528
4529 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4530 parameters.
4531 (target_read_memory_bfd): New function.
4532 (symbol_file_add_from_memory): Use it.
4533
4534 2012-06-03 Doug Evans <dje@google.com>
4535
4536 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4537 of primary symtab.
4538 (basic_lookup_transparent_type): Ditto.
4539
4540 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4541 (ALL_PRIMARY_SYMTABS): Use it.
4542 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4543 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4544 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4545 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4546 (basic_lookup_transparent_type): Ditto.
4547
4548 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4549
4550 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4551 it to optimize resolution of demangled name.
4552
4553 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4554
4555 * configure.ac (development): Define new variable.
4556 Call AC_CHECK_LIB for mcheck if $development.
4557 (ERROR_ON_WARNING): Enable it by default only if $development.
4558 * config.in: Regenerate.
4559 * configure: Regenerate.
4560
4561 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4562
4563 * target.c (target_read_memory): Make LEN argument as size_t.
4564 * target.h (target_read_memory): Likewise.
4565
4566 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4567
4568 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4569
4570 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4571
4572 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4573 BookE interface for PowerPC server processors if not available
4574 in the Linux Kernel.
4575
4576 2012-05-31 Keith Seitz <keiths@redhat.com>
4577
4578 * linespec.c (decode_objc): Add cleanup to free
4579 INFO.FILE_SYMTABS.
4580 (find_linespec_symbols): Add cleanup to free CLASSES.
4581 * symfile.c (find_separate_debug_file_by_debuglink): Add
4582 cleanup to free DEBUGLINK.
4583 * ui-out.c (clear_header_list): No need to check if
4584 HEADER_NEXT.COLHDR is NULL.
4585 Free HEADER_NEXT.COL_NAME.
4586
4587 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4588
4589 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4590 warning.
4591
4592 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4593
4594 * configure.host (gdb_host_cpu): Handle tilegx*.
4595 (gdb_host): Handle tilegx-*-linux*.
4596 * tilegx-linux-nat.c: New file.
4597 * config/tilegx/linux.mh: New file.
4598
4599 2012-05-30 Jeff Kenton <jkenton@tilera.com>
4600
4601 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4602 tilegx-linux-tdep.o.
4603 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4604 tilegx-linux-tdep.c.
4605 * configure.tgt: Handle tilegx-*-linux*.
4606 * tilegx-tdep.h: New file.
4607 * tilegx-tdep.c: New file.
4608 * tilegx-linux-tdep.c: New file.
4609 * regformats/reg-tilegx.dat: New file.
4610
4611 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4612
4613 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4614 accounting of hw watchpoints on ppc.
4615
4616 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4617
4618 * source.c (openp): Expand tilde in path entries.
4619
4620 2012-05-29 Doug Evans <dje@google.com>
4621
4622 * buildsym.c (block_compar): Fix comment.
4623 (end_symtab): Fix and clarify some comments.
4624
4625 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4626 cleanup_undefined_types.
4627 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4628 All callers updated.
4629
4630 2012-05-29 Tom Tromey <tromey@redhat.com>
4631
4632 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4633 fails.
4634 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4635 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4636 fails.
4637 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4638 fails.
4639
4640 2012-05-29 Tristan Gingold <gingold@adacore.com>
4641
4642 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4643 (struct darwin_info): ... New struct.
4644 (solib_darwin_pspace_data): New variable.
4645 (darwin_pspace_data_cleanup): New function.
4646 (get_darwin_info): Likewise.
4647 (darwin_dyld_version_ok, darwin_load_image_infos)
4648 (darwin_solib_get_all_image_info_addr_at_init)
4649 (darwin_solib_read_all_image_info_addr): Add info argument.
4650 Adjust code.
4651 (darwin_current_sos): Use per pspace structure.
4652 (darwin_solib_create_inferior_hook): Likewise.
4653 (darwin_clear_solib): Likewise.
4654 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4655
4656 2012-05-28 Pedro Alves <palves@redhat.com>
4657
4658 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4659 block that uses them. Clear ecss before handling each event.
4660
4661 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4662
4663 * solib-svr4.c (svr4_current_sos): New comment on
4664 svr4_current_sos_via_xfer_libraries fall back.
4665
4666 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4667
4668 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4669 it as a fallback for TYPE_IS_OPAQUE.
4670 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4671 symbols for lookup_symbol.
4672
4673 2012-05-24 John Steele Scott <toojays@toojays.net>
4674
4675 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4676 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4677 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4678 (check_producer): ... this new function, which also checks for ICC
4679 and caches the result.
4680 (producer_is_icc): New function.
4681 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4682 producer was ICC.
4683
4684 2012-05-24 Pedro Alves <palves@redhat.com>
4685
4686 PR gdb/7205
4687
4688 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4689 (default_gdb_signal_to_target): ... this. Add comment.
4690 (default_gdb_signal_from_host): Rename to ...
4691 (default_gdb_signal_from_target): ... this. Add comment.
4692 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4693 (default_gdb_signal_to_target): ... this.
4694 (default_gdb_signal_from_host): Rename to ...
4695 (default_gdb_signal_from_target): ... this.
4696 * corelow.c (core_open): Adjust to naming change. Replace comment.
4697 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4698 (gdb_signal_from_target): ... this. Adjust to
4699 default_gdb_signal_from_host naming change. Extend comment.
4700 (gdb_signal_to_host): Rename to ...
4701 (gdb_signal_to_target): ... this. Adjust to
4702 default_gdb_signal_to_host naming change.
4703 * gdbarch.h, gdbarch.c: Renegerate.
4704
4705 2012-05-24 Pedro Alves <palves@redhat.com>
4706
4707 PR gdb/7205
4708
4709 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4710
4711 2012-05-24 Pedro Alves <palves@redhat.com>
4712
4713 PR gdb/7205
4714
4715 Replace target_signal with gdb_signal throughout.
4716
4717 2012-05-24 Pedro Alves <palves@redhat.com>
4718
4719 PR tui/14159
4720
4721 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4722 string, instead of reusing the va_list argument.
4723
4724 2012-05-24 Tom Tromey <tromey@redhat.com>
4725
4726 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4727 Remove.
4728
4729 2012-05-23 Doug Evans <dje@google.com>
4730
4731 * symtab.c (search_symbols): Formatting fixes.
4732 (print_symbol_info): Formatting fixes.
4733
4734 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4735 int64_t change to leb128 API.
4736 (read_encoded_value, decode_frame_entry_1): Ditto.
4737 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4738 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4739 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4740 (execute_stack_op): Ditto.
4741 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4742 (safe_read_uleb128, safe_read_sleb128): Ditto.
4743 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4744 (dwarf2_compile_expr_to_ax): Ditto.
4745 (locexpr_describe_location_piece): Ditto.
4746 (disassemble_dwarf_expression): Ditto.
4747 (locexpr_describe_location_1): Ditto.
4748
4749 2012-05-23 Stan Shebs <stan@codesourcery.com>
4750 Kwok Cheung Yeung <kcy@codesourcery.com>
4751
4752 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4753 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4754 (mi-cmd-info.o): New rule.
4755 * osdata.h (info_osdata_command): New declaration.
4756 * osdata.c (info_osdata_command): Change to non-static.
4757 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4758 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4759 * mi/mi-cmd-info.c: New file.
4760
4761 2012-05-23 Doug Evans <dje@google.com>
4762
4763 * symtab.c (search_symbols): Pass NULL for file_matcher to
4764 expand_symtabs_matching if there are no files to match.
4765
4766 * gdbtypes.c (lookup_typename): Simplify.
4767
4768 2012-05-23 Pedro Alves <palves@redhat.com>
4769
4770 * arch-utils.h (default_target_signal_to_host): Delete.
4771 * arch-utils.c (default_target_signal_to_host): Delete.
4772 * gdbarch.sh (target_signal_to_host): Remove.
4773 * gdbarch.h, gdbarch.c: Regenerate.
4774
4775 2012-05-22 Doug Evans <dje@google.com>
4776
4777 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4778 "const gdb_byte *".
4779 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4780 (execute_cfa_program): Update to match API of leb128 functions.
4781 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4782 "const gdb_byte *".
4783 (read_unsigned_leb128, read_signed_leb128): Delete.
4784 (read_initial_length): Change type of buf argument to
4785 "const gdb_byte *".
4786 (read_encoded_value): Update to match API of leb128 functions.
4787 (decode_frame_entry): Change result to "const gdb_byte *", and
4788 similarly for "start" parameter.
4789 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4790 (dwarf2_build_frame_info): Change local frame_ptr to
4791 "const gdb_byte *".
4792 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4793 read_uleb128, read_sleb128. All callers updated.
4794 (safe_skip_leb128): New function.
4795 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4796 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4797 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4798 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4799 read_uleb128, read_sleb128.
4800 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4801 (execute_stack_op): Update to match API of leb128 functions.
4802 * dwarf2expr.h: #include "leb128.h".
4803 (read_uleb128, read_sleb128): Delete.
4804 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4805 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4806 * dwarf2loc.c (debug_loc_kind): New enum.
4807 (decode_debug_loc_addresses): New function.
4808 (decode_debug_loc_dwo_addresses): New function.
4809 (dwarf2_find_location_expression): Rewrite.
4810 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4811 (locexpr_describe_location_piece): Ditto.
4812 (disassemble_dwarf_expression): Ditto.
4813 (locexpr_describe_location_1): Ditto.
4814 (loclist_describe_location): Rewrite.
4815 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4816 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4817 (dwarf2_section_buffer_overflow_complaint): Renamed from
4818 dwarf2_macros_too_long_complaint. All callers updated.
4819 (skip_leb128): Delete.
4820 (init_cu_die_reader): Initialize reader->buffer_end.
4821 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4822 (skip_form_bytes): New arg buffer_end. All callers updated.
4823 Replace call to skip_leb128 with gdb_skip_leb128.
4824 (skip_unknown_opcode): New arg mac_end. All callers updated.
4825 (fill_in_loclist_baton): Initialize baton->from_dwo.
4826
4827 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4828
4829 * mips-linux-nat.c (mips_linux_read_description): Use a more
4830 verbose error message.
4831
4832 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4833
4834 * NEWS: Add MIPS/Linux DSP support.
4835 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4836 (SIGCONTEXT_DSPCTL): New macro.
4837 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4838 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4839 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4840 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4841 (N64_SIGCONTEXT_HI3): Likewise.
4842 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4843 (N64_SIGCONTEXT_LO3): Likewise.
4844 (N64_SIGCONTEXT_DSPCTL): Likewise.
4845 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4846 (mips_linux_o32_sigframe_init): Handle DSP registers.
4847 (mips_linux_n32n64_sigframe_init): Likewise.
4848
4849 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4850
4851 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4852 call to abort.
4853
4854 2012-05-22 Pedro Alves <palves@redhat.com>
4855
4856 * target.h (store_waitstatus): Move declaration ...
4857 * inf-child.h (store_waitstatus): ... here.
4858 * target.c: Move inclusion of gdb_wait.h, and ...
4859 (store_waitstatus): ... this ...
4860 * inf-child.c: ... here.
4861 * linux-nat.c: Include inf-child.h.
4862 * rs6000-nat.c: Include inf-child.h.
4863 * spu-linux-nat.c: Include inf-child.h.
4864
4865 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4866
4867 * tracepoint.c (start_tracing): Add missing i18n markup.
4868 (stop_tracing, set_trace_user): Ditto.
4869 (set_trace_notes, set_trace_stop_notes): Ditto.
4870
4871 2012-05-21 Tom Tromey <tromey@redhat.com>
4872
4873 PR c++/7173:
4874 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4875 types.
4876 * value.h (value_cast_pointers): Update.
4877 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4878 (value_cast): Update.
4879 (update_search_result): New function.
4880 (do_search_struct_field): New, from search_struct_field. Check
4881 for ambiguous results.
4882 (search_struct_field): Rewrite.
4883 * infcall.c (value_arg_coerce): Update.
4884 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4885 value_cast_pointers.
4886 * ada-lang.c (ada_convert_actual): Update.
4887
4888 2012-05-21 Tom Tromey <tromey@redhat.com>
4889
4890 * macroexp.c (macro_stringify): Terminate the string.
4891
4892 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4893
4894 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4895 Describe it.
4896 * auto-load.c (auto_load_expand_dir_vars): New function.
4897 (auto_load_safe_path_vec_update): Use it, remove the
4898 substitute_path_component call thanks to it.
4899 (auto_load_objfile_script): Remove the debug_file_directory processing.
4900 Use auto_load_expand_dir_vars, remove the substitute_path_component
4901 call thanks to it.
4902 * configure: Regenerate.
4903 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4904 path. Escape $ also for $debugdir.
4905 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4906 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4907
4908 2012-05-20 Doug Evans <dje@google.com>
4909
4910 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4911 before use. Check for symtab->includes == NULL before scanning it.
4912
4913 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4914
4915 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4916
4917 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4918
4919 * NEWS: Add microMIPS support and "set mips compression",
4920 "show mips compression" commands.
4921 * mips-tdep.h (mips_isa): New enum.
4922 (gdbarch_tdep): Add mips_isa.
4923 (mips_pc_is_mips16): Update prototype.
4924 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4925 * mips-tdep.c (mips_compression_mips16): New variable.
4926 (mips_compression_micromips): Likewise.
4927 (mips_compression_strings): Likewise.
4928 (mips_compression_string): Likewise.
4929 (is_mips16_isa, is_micromips_isa): New functions.
4930 (is_mips16_addr): Rename to...
4931 (is_compact_addr): ... this.
4932 (unmake_mips16_addr): Likewise to...
4933 (unmake_compact_addr): ... this.
4934 (make_mips16_addr): Likewise to...
4935 (make_compact_addr): ... this.
4936 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4937 functions.
4938 (mips_elf_make_msymbol_special): Handle microMIPS code.
4939 (msymbol_is_special): Rename to...
4940 (msymbol_is_mips16): ... this.
4941 (mips_make_symbol_special, mips_pc_is_mips16): Update
4942 accordingly.
4943 (msymbol_is_mips, msymbol_is_micromips): New functions.
4944 (mips16_to_32_reg): Rename to...
4945 (mips_reg3_to_reg): ... this.
4946 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4947 (mips_pc_isa): Likewise.
4948 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4949 code.
4950 (mips_fetch_instruction): Pass return status instead of printing
4951 an error message if requested. Handle microMIPS code. Bail out
4952 on an invalid ISA.
4953 (micromips_op): New macro.
4954 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4955 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4956 (b6s4_op, b7s3_reg): Likewise.
4957 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4958 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4959 (mips_insn_size): New function.
4960 (mips32_next_pc): Update mips_fetch_instruction call.
4961 (micromips_relative_offset7): New function.
4962 (micromips_relative_offset10): Likewise.
4963 (micromips_relative_offset16): Likewise.
4964 (micromips_pc_insn_size): Likewise.
4965 (micromips_bc1_pc): Likewise.
4966 (micromips_next_pc): Likewise.
4967 (unpack_mips16): Update mips_fetch_instruction call.
4968 (extended_mips16_next_pc): Update according to change to
4969 mips16_to_32_reg.
4970 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4971 code.
4972 (mips16_scan_prologue): Update mips_fetch_instruction call.
4973 Update according to change to mips16_to_32_reg.
4974 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4975 (mips_insn16_frame_base_sniffer): Likewise.
4976 (micromips_decode_imm9): New function.
4977 (micromips_scan_prologue): Likewise.
4978 (mips_micro_frame_cache): Likewise.
4979 (mips_micro_frame_this_id): Likewise.
4980 (mips_micro_frame_prev_register): Likewise.
4981 (mips_micro_frame_sniffer): Likewise.
4982 (mips_micro_frame_unwind): New variable.
4983 (mips_micro_frame_base_address): New function.
4984 (mips_micro_frame_base): New variable.
4985 (mips_micro_frame_base_sniffer): New function.
4986 (mips32_scan_prologue): Update mips_fetch_instruction call.
4987 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4988 rather than for MIPS16.
4989 (mips_insn32_frame_base_sniffer): Likewise.
4990 (mips_addr_bits_remove): Handle microMIPS code.
4991 (deal_with_atomic_sequence): Rename to...
4992 (mips_deal_with_atomic_sequence): ... this. Update the type
4993 of the variable used to hold an instruction. Remove the ISA bit
4994 check. Update mips_fetch_instruction call.
4995 (micromips_deal_with_atomic_sequence): New function.
4996 (deal_with_atomic_sequence): Likewise.
4997 (mips_about_to_return): Handle microMIPS code. Update
4998 mips_fetch_instruction call.
4999 (heuristic_proc_start): Check for the standard MIPS ISA rather
5000 than for MIPS16. Update mips_pc_is_mips16 and
5001 mips_fetch_instruction calls. Handle microMIPS code.
5002 (mips_push_dummy_code): Handle microMIPS code.
5003 (mips_eabi_push_dummy_call): Likewise.
5004 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5005 (mips_o64_push_dummy_call): Handle microMIPS code.
5006 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5007 (is_delayed): Remove function.
5008 (mips_single_step_through_delay): Replace the call to is_delayed
5009 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5010 Handle microMIPS code.
5011 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5012 microMIPS code.
5013 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5014 call.
5015 (micromips_in_function_epilogue_p): New function.
5016 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5017 call.
5018 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5019 Handle microMIPS.
5020 (gdb_print_insn_mips): Likewise.
5021 (mips_breakpoint_from_pc): Likewise.
5022 (mips_remote_breakpoint_from_pc): New function.
5023 (mips32_instruction_has_delay_slot): Simplify making use of the
5024 updated mips_fetch_instruction interface.
5025 (micromips_instruction_has_delay_slot): New function.
5026 (mips16_instruction_has_delay_slot): Simplify making use of the
5027 updated mips_fetch_instruction interface.
5028 (mips_adjust_breakpoint_address): Check for the standard MIPS
5029 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5030 calls. Handle microMIPS code.
5031 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5032 (mips_skip_trampoline_code): Handle microMIPS code.
5033 (global_mips_compression): New function.
5034 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5035 file flags. Register the microMIPS remote breakpoint handler
5036 and heuristic frame unwinder.
5037 (show_mips_compression): New function.
5038 (_initialize_mips_tdep): Add the "set mips compression" and
5039 "show mips compression" commands.
5040
5041 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5042
5043 * ada-lang.c:
5044 * ada-tasks.c:
5045 * ada-varobj.c:
5046 * amd64-darwin-tdep.c:
5047 * arm-symbian-tdep.c:
5048 * arm-tdep.c:
5049 * avr-tdep.c:
5050 * ax-gdb.c:
5051 * bfin-linux-tdep.c:
5052 * breakpoint.c:
5053 * c-valprint.c:
5054 * cli/cli-cmds.c:
5055 * coffread.c:
5056 * cp-support.c:
5057 * cris-tdep.c:
5058 * dwarf2-frame-tailcall.c:
5059 * dwarf2-frame.c:
5060 * dwarf2expr.c:
5061 * dwarf2loc.c:
5062 * dwarf2read.c:
5063 * elfread.c:
5064 * eval.c:
5065 * expprint.c:
5066 * f-valprint.c:
5067 * frv-tdep.c:
5068 * h8300-tdep.c:
5069 * hppa-hpux-tdep.c:
5070 * hppa-tdep.c:
5071 * hppanbsd-tdep.c:
5072 * i386-nto-tdep.c:
5073 * i386-tdep.c:
5074 * i387-tdep.c:
5075 * ia64-tdep.c:
5076 * jit.c:
5077 * linespec.c:
5078 * linux-tdep.c:
5079 * lm32-tdep.c:
5080 * m2-valprint.c:
5081 * m32c-tdep.c:
5082 * m32r-rom.c:
5083 * m32r-tdep.c:
5084 * m68k-tdep.c:
5085 * m68klinux-tdep.c:
5086 * mi/mi-main.c:
5087 * microblaze-tdep.c:
5088 * mips-linux-tdep.c:
5089 * mips-tdep.c:
5090 * mn10300-tdep.c:
5091 * p-valprint.c:
5092 * parse.c:
5093 * ppc-linux-tdep.c:
5094 * ppc-sysv-tdep.c:
5095 * printcmd.c:
5096 * python/py-finishbreakpoint.c:
5097 * python/py-inferior.c:
5098 * python/py-infthread.c:
5099 * python/py-type.c:
5100 * python/python.c:
5101 * remote-fileio.c:
5102 * remote-m32r-sdi.c:
5103 * remote-mips.c:
5104 * reverse.c:
5105 * rl78-tdep.c:
5106 * rs6000-aix-tdep.c:
5107 * rs6000-tdep.c:
5108 * s390-tdep.c:
5109 * score-tdep.c:
5110 * sh64-tdep.c:
5111 * skip.c:
5112 * solib-darwin.c:
5113 * solib-dsbt.c:
5114 * solib-frv.c:
5115 * sparc-tdep.c:
5116 * spu-multiarch.c:
5117 * spu-tdep.c:
5118 * stack.c:
5119 * symfile.c:
5120 * symtab.c:
5121 * tic6x-tdep.c:
5122 * tracepoint.c:
5123 * v850-tdep.c:
5124 * valarith.c:
5125 * valprint.c:
5126 * value.c:
5127 * xcoffread.c:
5128 * xtensa-tdep.c:
5129 * ada-lang.c:
5130 * ada-tasks.c:
5131 * ada-varobj.c:
5132 * amd64-darwin-tdep.c:
5133 * arm-symbian-tdep.c:
5134 * arm-tdep.c: Delete unused variables.
5135
5136 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 Rename $ddir to $datadir.
5139 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5140 * auto-load.c (auto_load_safe_path_vec_update)
5141 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5142 * configure: Regenerate.
5143 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5144 Likewise. Remove the 'use $ddir' help string.
5145
5146 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5147
5148 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5149 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5150
5151 2012-05-18 Tom Tromey <tromey@redhat.com>
5152
5153 PR exp/13907:
5154 * valprint.h (struct value_print_options) <symbol_print>: New
5155 field.
5156 * valprint.c (user_print_options): Add default for symbol_print.
5157 (show_symbol_print): New function.
5158 (generic_val_print): Respect symbol_print.
5159 (_initialize_valprint): Add "print symbol" setting.
5160 * f-valprint.c (f_val_print): Respect symbol_print.
5161 * c-valprint.c (c_val_print): Respect symbol_print.
5162 * NEWS: Update.
5163 * printcmd.c (print_address_symbolic): Return int. Ignore some
5164 zero-size symbols.
5165 (print_address_demangle): Return int.
5166 * defs.h: (print_address_symbolic): Return int.
5167 * value.h (print_address_demangle): Return int.
5168
5169 2012-05-18 Tom Tromey <tromey@redhat.com>
5170
5171 * valprint.c (val_print_string): Don't print leading space.
5172 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5173 print space before string or vtbl.
5174 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5175 before string.
5176 * jv-valprint.c (java_value_print): Print space before string.
5177 * go-valprint.c (print_go_string): Print space before string.
5178 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5179 space before string.
5180 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5181 space before string or vtbl.
5182 * auxv.c (fprint_target_auxv): Print space after address.
5183
5184 2012-05-18 Tom Tromey <tromey@redhat.com>
5185
5186 * printcmd.c (print_address_demangle): Remove special case for 0.
5187
5188 2012-05-18 Tom Tromey <tromey@redhat.com>
5189
5190 * printcmd.c (print_address_demangle): Add 'opts' argument.
5191 * p-valprint.c (pascal_val_print): Update.
5192 * jv-valprint.c (java_val_print): Update.
5193 * value.h: Update.
5194 * valprint.c (generic_val_print): Update.
5195 (print_function_pointer_address): Add 'options' argument. Remove
5196 'addressprint' argument. Update.
5197 * m2-valprint.c (print_unpacked_pointer): Update.
5198 * gnu-v3-abi.c (print_one_vtable): Update.
5199 (gnuv3_print_method_ptr): Update.
5200 * f-valprint.c (f_val_print): Update.
5201 * cp-valprint.c (cp_print_value_fields): Update.
5202 * valprint.h (print_function_pointer_address): Update.
5203 * c-valprint.c (c_val_print): Update.
5204
5205 2012-05-18 Tom Tromey <tromey@redhat.com>
5206
5207 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5208 directly corresponding to the found psymtab.
5209 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5210 (dw2_find_pc_sect_symtab): Use it.
5211 * block.h (blockvector_contains_pc): Declare.
5212 * block.c (find_block_in_blockvector): New function.
5213 (blockvector_for_pc_sect): Use it.
5214 (blockvector_contains_pc): New function.
5215
5216 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5217
5218 * mips-tdep.h (mips_write_pc): New prototype.
5219 * mips-tdep.c (mips_write_pc): Make external, add description.
5220 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5221 add description.
5222
5223 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5224
5225 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5226 mips_regnum->pc.
5227 (mips_unwind_pc, mips_write_pc): Likewise.
5228 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5229 gdbarch_read_pc.
5230
5231 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5232
5233 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5234 proc_warn, proc_error, proc_get_status, proc_flags,
5235 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5236 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5237 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5238 proc_stop_process, proc_wait_for_stop, proc_run_process,
5239 proc_set_traced_signals, proc_set_traced_faults,
5240 proc_set_traced_sysentry, proc_set_traced_sysexit,
5241 proc_set_held_signals, proc_get_held_signals,
5242 proc_get_traced_signals, proc_get_traced_faults,
5243 proc_get_traced_sysentry, proc_get_traced_sysexit,
5244 proc_clear_current_fault, proc_set_current_signal,
5245 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5246 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5247 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5248 proc_get_current_thread, proc_get_current_thread,
5249 proc_get_current_thread, proc_update_threads,
5250 proc_update_threads, proc_update_threads, proc_update_threads,
5251 proc_iterate_over_threads, procfs_find_new_threads,
5252 procfs_pid_to_str): Make static. Remove advance declaration.
5253 (proc_cursig): Make static. Conditionalized defintion on
5254 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5255 (proc_syscall, proc_set_kill_on_last_close,
5256 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5257 proc_get_pending_signals, proc_get_signal_actions,
5258 proc_trace_signal, proc_ignore_signal): Delete.
5259
5260 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5261
5262 * coffread.c (cs_section_address): Passing proper argument for
5263 `bfd_get_section_vma'.
5264 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5265 `bfd_get_section_flags'.
5266 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5267 `bfd_get_section_vma'.
5268
5269 2012-05-16 Tom Tromey <tromey@redhat.com>
5270
5271 PR macros/13205:
5272 * macrotab.h: (macro_define_special): Declare.
5273 (enum macro_special_kind): New.
5274 (struct macro_definition) <argc, replacement>: Update comments.
5275 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5276 (macro_define_object_internal): New function.
5277 (macro_define_object): Use it.
5278 (macro_define_special): New function.
5279 (fixup_definition): New function.
5280 (macro_lookup_definition, foreach_macro_in_scope)
5281 (foreach_macro): Use fixup_definition.
5282 * macroexp.h (macro_stringify): Declare.
5283 * macroexp.c (free_buffer_return_text): New function.
5284 (stringify): Constify "arg".
5285 (macro_stringify): New function.
5286 * dwarf2read.c (macro_start_file): Call macro_define_special.
5287
5288 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5289 Maciej W. Rozycki <macro@mips.com>
5290
5291 * breakpoint.h (bp_location): Add related_address member.
5292 * inferior.h (get_return_value): Take a pointer to struct value
5293 instead of struct type for the function requested.
5294 * value.h (using_struct_return): Likewise.
5295 * gdbarch.sh (return_value): Take a pointer to struct value
5296 instead of struct type for the function requested.
5297 * breakpoint.c (set_breakpoint_location_function): Initialize
5298 related_address for bp_gnu_ifunc_resolver breakpoints.
5299 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5300 requested function's address to gdbarch_return_value.
5301 * eval.c (evaluate_subexp_standard): Pass the requested
5302 function's address to using_struct_return.
5303 * infcall.c (call_function_by_hand): Pass the requested
5304 function's address to using_struct_return and
5305 gdbarch_return_value.
5306 * infcmd.c (get_return_value): Take a pointer to struct value
5307 instead of struct type for the function requested.
5308 (print_return_value): Update accordingly.
5309 (finish_command_continuation): Likewise.
5310 * stack.c (return_command): Pass the requested function's
5311 address to using_struct_return and gdbarch_return_value.
5312 * value.c (using_struct_return): Take a pointer to struct value
5313 instead of struct type for the function requested. Pass the
5314 requested function's address to gdbarch_return_value.
5315 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5316 New function_value member, replacing function_type.
5317 (bpfinishpy_dealloc): Update accordingly.
5318 (bpfinishpy_pre_stop_hook): Likewise.
5319 (bpfinishpy_init): Likewise. Record the requested function's
5320 address.
5321 * mips-tdep.c (mips_fval_reg): New enum.
5322 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5323 words put in GP registers.
5324 (mips_o64_push_dummy_call): Update a comment.
5325 (mips_o32_return_value): Take a pointer to struct value instead
5326 of struct type for the function requested and use it to check if
5327 using the MIPS16 calling convention. Return the designated
5328 general purpose registers for floating-point values returned in
5329 MIPS16 mode.
5330 (mips_o64_return_value): Likewise.
5331 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5332 (ppc_sysv_abi_broken_return_value): Likewise.
5333 (ppc64_sysv_abi_return_value): Likewise.
5334 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5335 value instead of struct type for the function requested.
5336 * amd64-tdep.c (amd64_return_value): Likewise.
5337 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5338 * arm-tdep.c (arm_return_value): Likewise.
5339 * avr-tdep.c (avr_return_value): Likewise.
5340 * bfin-tdep.c (bfin_return_value): Likewise.
5341 * cris-tdep.c (cris_return_value): Likewise.
5342 * frv-tdep.c (frv_return_value): Likewise.
5343 * h8300-tdep.c (h8300_return_value): Likewise.
5344 (h8300h_return_value): Likewise.
5345 * hppa-tdep.c (hppa32_return_value): Likewise.
5346 (hppa64_return_value): Likewise.
5347 * i386-tdep.c (i386_return_value): Likewise.
5348 * ia64-tdep.c (ia64_return_value): Likewise.
5349 * iq2000-tdep.c (iq2000_return_value): Likewise.
5350 * lm32-tdep.c (lm32_return_value): Likewise.
5351 * m32c-tdep.c (m32c_return_value): Likewise.
5352 * m32r-tdep.c (m32r_return_value): Likewise.
5353 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5354 * m68k-tdep.c (m68k_return_value): Likewise.
5355 (m68k_svr4_return_value): Likewise.
5356 * m88k-tdep.c (m88k_return_value): Likewise.
5357 * mep-tdep.c (mep_return_value): Likewise.
5358 * microblaze-tdep.c (microblaze_return_value): Likewise.
5359 * mn10300-tdep.c (mn10300_return_value): Likewise.
5360 * moxie-tdep.c (moxie_return_value): Likewise.
5361 * mt-tdep.c (mt_return_value): Likewise.
5362 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5363 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5364 (ppc_sysv_abi_broken_return_value): Likewise.
5365 (ppc64_sysv_abi_return_value): Likewise.
5366 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5367 * rl78-tdep.c (rl78_return_value): Likewise.
5368 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5369 * rx-tdep.c (rx_return_value): Likewise.
5370 * s390-tdep.c (s390_return_value): Likewise.
5371 * score-tdep.c (score_return_value): Likewise.
5372 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5373 (sh_return_value_fpu): Likewise.
5374 * sh64-tdep.c (sh64_return_value): Likewise.
5375 * sparc-tdep.c (sparc32_return_value): Likewise.
5376 * sparc64-tdep.c (sparc64_return_value): Likewise.
5377 * spu-tdep.c (spu_return_value): Likewise.
5378 * tic6x-tdep.c (tic6x_return_value): Likewise.
5379 * v850-tdep.c (v850_return_value): Likewise.
5380 * vax-tdep.c (vax_return_value): Likewise.
5381 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5382 * xtensa-tdep.c (xtensa_return_value): Likewise.
5383 * gdbarch.c: Regenerate.
5384 * gdbarch.h: Regenerate.
5385
5386 2012-05-15 Tom Tromey <tromey@redhat.com>
5387
5388 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5389
5390 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5391
5392 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5393 of command in two error message.
5394
5395 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5396
5397 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5398
5399 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5400
5401 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5402
5403 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5404
5405 * NEWS (show auto-load scripts-directory): Add forgotten command.
5406
5407 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5408
5409 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5410 parameters.
5411
5412 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5413
5414 * amd64-tdep.c: Include features/i386/x32.c and
5415 features/i386/x32-avx.c.
5416 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5417 initialize_tdesc_x32_avx.
5418
5419 2012-05-14 Stan Shebs <stan@codesourcery.com>
5420
5421 Add dynamic printf.
5422 * breakpoint.h (enum bptype): New type bp_dprintf.
5423 (struct breakpoint): New field extra_string.
5424 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5425 (create_breakpoint): Add extra_string arg.
5426 * breakpoint.c (dprintf_breakpoint_ops): New.
5427 (is_breakpoint): Add bp_dprintf.
5428 (bpstat_what): Add dprintf case.
5429 (bptype_string): Ditto.
5430 (print_one_breakpoint_location): Ditto.
5431 (init_bp_location): Ditto.
5432 (bkpt_print_mention): Ditto.
5433 (dprintf_style_enums): New array.
5434 (dprintf_style): New global.
5435 (dprintf_function): New global.
5436 (dprintf_channel): New global.
5437 (update_dprintf_command_list): New function.
5438 (update_dprintf_commands): New function.
5439 (init_breakpoint_sal): Add extra_string argument, handle it.
5440 (create_breakpoint_sal): Add extra_string argument.
5441 (create_breakpoints_sal): Add extra_string argument, update callers.
5442 (find_condition_and_thread): Add extra argument.
5443 (create_breakpoint): Add extra_string argument, record it.
5444 (dprintf_command): New function.
5445 (break_command_1): Add arg to create_breakpoint call.
5446 (handle_gnu_v3_exceptions): Ditto.
5447 (trace_command): Ditto.
5448 (ftrace_command): Ditto.
5449 (strace_command): Ditto.
5450 (bkpt_print_mention): Add dprintf case.
5451 (create_breakpoint_sal_default): Add extra_string argument.
5452 (_initialize_breakpoint): Add new commands.
5453 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5454 * python/py-breakpoint.c (bppy_init): Ditto.
5455 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5456
5457 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5458
5459 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5460
5461 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5462
5463 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5464 unsigned long long.
5465
5466 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5467
5468 Add a new function gdb.find_pc_line to the Python API.
5469 * NEWS (Python Scripting): Add entry about the new function.
5470 * python/python.c (gdbpy_find_pc_line): New function which
5471 implements gdb.find_pc_line.
5472 (GdbMethods): Add entry for the new function.
5473
5474 2012-05-12 Pedro Alves <palves@redhat.com>
5475
5476 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5477 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5478
5479 2012-05-12 Eli Zaretskii <eliz@gnu.org>
5480
5481 * inferior.c: Include completer.h
5482 (initialize_inferiors): Set completer of add-inferior to
5483 filename_completer.
5484
5485 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5486
5487 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5488 gdbarch_ptr_bit for x32 core dump.
5489
5490 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5491
5492 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5493 and features/i386/x32-avx-linux.c.
5494
5495 2012-05-11 Stan Shebs <stan@codesourcery.com>
5496 Kwok Cheung Yeung <kcy@codesourcery.com>
5497
5498 * NEWS: Describe new info os commands.
5499 * common/linux-osdata.c (PID_T, TIME_T): Define.
5500 (MAX_PID_T_STRLEN): New.
5501 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5502 MAX_PID_T_STRLEN.
5503 (command_from_pid): Add comment. Change to use PID_T.
5504 (commandline_from_pid): Change to use PID_T.
5505 (user_from_pid): Add comment.
5506 (get_process_owner): Add comment. Change to use PID_T and
5507 MAX_PID_T_STRLEN.
5508 (get_number_of_cpu_cores): Add comment.
5509 (get_cores_used_by_process): Add comment. Change to use PID_T and
5510 MAX_PID_T_STRLEN.
5511 (linux_xfer_osdata_processes): Change to use PID_T and
5512 MAX_PID_T_STRLEN.
5513 (compare_processes): New function.
5514 (linux_xfer_osdata_processgroups): New function.
5515 (linux_xfer_osdata_threads): Change to use PID_T.
5516 (linux_xfer_osdata_fds): New function.
5517 (format_socket_state, print_sockets): New functions.
5518 (union socket_addr): New union.
5519 (linux_xfer_osdata_isockets): New function.
5520 (time_from_time_t, group_from_gid): New functions.
5521 (linux_xfer_osdata_shm): New function.
5522 (linux_xfer_osdata_sem): New function.
5523 (linux_xfer_osdata_msg): New function.
5524 (linux_xfer_osdata_modules): New function.
5525 (osdata_table): Add new entries.
5526 * common/buffer.c (buffer_xml_printf): Add support for long and
5527 long long format specifiers.
5528
5529 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5530
5531 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5532 (tdesc_x32_avx_linux): Likewise.
5533
5534 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5535
5536 Implement multi-component --with-auto-load-dir.
5537 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5538 entries.
5539 (--with-auto-load-safe-path): Update the default value description.
5540 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5541 New.
5542 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5543 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5544 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5545 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5546 "set auto-load scripts-directory".
5547 * config.in: Regenerate.
5548 * configure: Regenerate.
5549 * configure.ac (--with-auto-load-dir): New configure option.
5550 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5551
5552 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5553
5554 Provide $ddir substitution for --with-auto-load-safe-path.
5555 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5556 entries.
5557 * auto-load.c: Include observer.h.
5558 (auto_load_safe_path_vec_update): Call substitute_path_component for
5559 each component. New variable ddir_subst.
5560 (auto_load_gdb_datadir_changed): New function.
5561 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5562 AUTO_LOAD_SAFE_PATH. New comment.
5563 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5564 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5565 * config.in: Regenerate.
5566 * configure: Regenerate.
5567 * configure.ac (--auto-load-safe-path): Rename
5568 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5569 GDB_DATADIR/auto-load.
5570 * defs.h (substitute_path_component): New declaration.
5571 * top.c: Include observer.h.
5572 (set_gdb_datadir): New function.
5573 (init_main): Install it for "set data-directory".
5574 * utils.c (substitute_path_component): New function.
5575
5576 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5577
5578 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5579 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5580 DEBUG_FILE_DIRECTORY. Handle multiple components of
5581 DEBUG_FILE_DIRECTORY.
5582
5583 2012-05-10 Tom Tromey <tromey@redhat.com>
5584
5585 * dwarf2read.c (recursively_write_psymbols): New function.
5586 (write_psymtabs_to_index): Use it.
5587
5588 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5589 field.
5590 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5591 (load_partial_comp_unit): Update.
5592 (queue_comp_unit): Add argument 'pretend_language'.
5593 (process_queue): Update.
5594 (psymtab_to_symtab_1): Skip dependencies that have a user.
5595 (load_partial_comp_unit_reader): Give meaning to the 'data'
5596 argument.
5597 (load_full_comp_unit): Add 'pretend_language' argument.
5598 (process_full_comp_unit): Add 'pretend_language' argument. Set
5599 language on CU.
5600 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5601 Update.
5602 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5603 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5604 Update.
5605 (prepare_one_comp_unit): Add 'pretend_language' argument.
5606
5607 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5608 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5609 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5610 (dw2_do_instantiate_symtab): Check whether symtab was read in
5611 before queueing.
5612 (dw2_instantiate_symtab): Add assertion. Call
5613 process_cu_includes.
5614 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5615 (partial_symtab_p): New typedef.
5616 (set_partial_user): New function.
5617 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5618 (scan_partial_symbols): Add imported CU to imported_symtabs.
5619 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5620 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5621 (get_symtab, recursively_compute_inclusions)
5622 (compute_symtab_includes, process_cu_includes)
5623 (process_imported_unit_die): New functions.
5624 (process_die) <DW_TAG_imported_unit>: New case.
5625 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5626
5627 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5628 comment.
5629 (struct partial_die_info) <locdesc>: Remove.
5630 <d>: New field.
5631 (process_psymtab_comp_unit): Add 'read_partial' argument.
5632 Update.
5633 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5634 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5635 (add_partial_symbol): Update.
5636 (process_die): Handle DW_TAG_partial_unit.
5637 (read_file_scope): Update comment.
5638 (load_partial_dies): Handle DW_TAG_imported_unit.
5639 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5640 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5641
5642 2012-05-10 Tom Tromey <tromey@redhat.com>
5643
5644 * cc-with-dwz.sh: New file.
5645
5646 2012-05-10 Tom Tromey <tromey@redhat.com>
5647
5648 * symtab.h (struct symtab) <includes, user>: New fields.
5649 * block.h (struct block_iterator) <d, idx, which>: New fields.
5650 * block.c (initialize_block_iterator, find_iterator_symtab)
5651 (block_iterator_step, block_iter_name_step)
5652 (block_iter_match_step): New functions.
5653 (block_iterator_first, block_iterator_next)
5654 (block_iter_name_first, block_iter_name_next)
5655 (block_iter_match_first, block_iter_match_next): Rewrite.
5656 (get_block_symtab): New function.
5657
5658 2012-05-10 Tom Tromey <tromey@redhat.com>
5659
5660 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5661 set_block_symtab.
5662 * jit.c (finalize_symtab): Use allocate_global_block,
5663 set_block_symtab.
5664 * buildsym.c (finish_block_internal): New function, from old
5665 finish_block.
5666 (finish_block): Rewrite.
5667 (end_symtab): Use finish_block_internal, set_block_symtab.
5668 * block.h (struct global_block): New.
5669 (allocate_global_block, set_block_symtab): Declare.
5670 * block.c (allocate_global_block, set_block_symtab): New
5671 functions.
5672
5673 2012-05-10 Tom Tromey <tromey@redhat.com>
5674
5675 * psymtab.c (partial_map_expand_apply): Add assertion.
5676 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5677 (psymtab_to_symtab): Find unshared psymtab.
5678 (dump_psymtab): Print including psymtabs.
5679 (recursively_search_psymtabs): New function.
5680 (expand_symtabs_matching_via_partial): Use it.
5681 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5682 fields.
5683 (enum psymtab_search_status): New.
5684
5685 2012-05-10 Tom Tromey <tromey@redhat.com>
5686
5687 * tracepoint.c (scope_info): Update.
5688 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5689 (find_pc_sect_symtab, search_symbols)
5690 (default_make_symbol_completion_list_break_on)
5691 (make_file_symbol_completion_list): Update.
5692 * symmisc.c (dump_symtab_1): Update.
5693 * stack.c (print_frame_args, iterate_over_block_locals)
5694 (print_frame_labels, iterate_over_block_arg_vars): Update.
5695 * python/py-block.c (block_object) <dict>: Remove.
5696 <block>: New field.
5697 <iter>: Change type.
5698 (blpy_iter): Update.
5699 (blpy_block_syms_iternext): Update.
5700 * psymtab.c (map_block): Use block iterators.
5701 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5702 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5703 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5704 * infrun.c (check_exception_resume): Update.
5705 * cp-support.c (make_symbol_overload_list_block): Update.
5706 * coffread.c (patch_opaque_types): Update.
5707 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5708 * block.h (struct block_iterator): New.
5709 (block_iterator_first, block_iterator_next, block_iter_name_first)
5710 (block_iter_name_next, block_iter_match_first)
5711 (block_iter_match_next): Declare.
5712 (ALL_BLOCK_SYMBOLS): Redefine.
5713 * block.c (block_iterator_first, block_iterator_next)
5714 (block_iter_name_first, block_iter_name_next)
5715 (block_iter_match_first, block_iter_match_next): New functions.
5716 * ada-lang.c (ada_add_block_symbols)
5717 (ada_make_symbol_completion_list): Use block iterator.
5718
5719 2012-05-10 Tom Tromey <tromey@redhat.com>
5720
5721 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5722 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5723 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5724 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5725 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5726 Update.
5727
5728 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5729
5730 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5731 print-file-var-lib2.c, print-file-var-main.c and
5732 print-file-var.exp (located in gdb/testsuite/gdb.base).
5733
5734 2012-05-10 Joel Brobecker <brobecker@adacore.com>
5735
5736 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5737 try locating the symbol in the symbol's own objfile first, before
5738 extending the search to all objfiles.
5739 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5740 out of lookup_symbol_aux_symtabs.
5741 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5742 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5743 Do not search EXCLUDE_OBJFILE.
5744 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5745 (lookup_symbol_global): Search for matches in the block's objfile
5746 first, before searching all other objfiles.
5747
5748 2012-05-10 Tristan Gingold <gingold@adacore.com>
5749
5750 * printcmd.c (set_command): Add pre/post inc/dec.
5751
5752 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
5753
5754 * gdb.1: Document -ex option.
5755
5756 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5757
5758 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5759 * inferior.h (AT_SYMBOL): Delete.
5760
5761 2012-05-09 Joel Brobecker <brobecker@adacore.com>
5762
5763 * mips-tdep.c (mips_push_dummy_code): New function.
5764 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5765 ON_STACK and install mips_push_dummy_code as our gdbarch
5766 push_dummy_code routine.
5767
5768 2012-05-09 Pedro Alves <palves@redhat.com>
5769
5770 * target.c (set_maintenance_target_async_permitted): Rename to ...
5771 (set_target_async_command): ... this.
5772 (show_maintenance_target_async_permitted): Rename to ...
5773 (show_target_async_command): ... this.
5774 (initialize_targets): Adjust.
5775
5776 2012-05-08 Doug Evans <dje@google.com>
5777
5778 * go-exp.y (classify_name): Add missing assignment of fields of
5779 yylval.ssym.
5780
5781 2012-05-08 Eli Zaretskii <eliz@gnu.org>
5782
5783 Display the ">" prompt in interactive mode while reading canned
5784 commands, even when the current interpreter is MI.
5785
5786 * interps.c (interp_set_temp): New function.
5787
5788 * interps.h (interp_set_temp): Add prototype.
5789
5790 * cli/cli-script.c (restore_interp): New cleanup function.
5791 (read_command_lines): Temporarily override the current interpreter
5792 with CLI and arrange for restoring the original one.
5793
5794 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5795
5796 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5797
5798 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5799
5800 * probe.c (parse_probes): Move conditional to check for
5801 debuginfo files from here...
5802 * stap-probe.c (stap_get_probes): ... to here.
5803
5804 2012-05-07 Mark Kettenis <kettenis@gnu.org>
5805 H.J. Lu <hongjiu.lu@intel.com>
5806
5807 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5808 `movl %esp, %ebp' for the X32 ABI.
5809
5810 2012-05-07 Tom Tromey <tromey@redhat.com>
5811
5812 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5813 get_DW_TAG_name.
5814 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5815 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5816 (dwarf_stack_op_name): Remove.
5817 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5818 (decode_locdesc): Use get_DW_OP_name.
5819 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5820 (dwarf2_compile_expr_to_ax): Likewise.
5821 (disassemble_dwarf_expression): Likewise.
5822 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5823
5824 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5825
5826 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5827 (sh_linux_sigtramp_cache): New function.
5828 (sh_linux_sigreturn_init): New function.
5829 (sh_linux_rt_sigreturn_init): New function.
5830 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5831 patterns.
5832 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5833 syscall codes.
5834 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5835 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5836 (sh_linux_init_abi): Add init calls to register new tramp_frame
5837 definitions under 32-bit SH, update comments.
5838
5839 2012-05-07 Pedro Alves <palves@redhat.com>
5840
5841 PR gdb/10952
5842
5843 * amd64-linux-tdep.c: Include glibc-tdep.h.
5844 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5845 gdbarch_skip_solib_resolver callback.
5846
5847 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5850 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5851 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5852 (add_auto_load_safe_path): Change the error message.
5853 (_initialize_auto_load): Change the "safe-path" help text.
5854 * configure: Regenerate
5855 * configure.ac (--without-auto-load-safe-path): Set
5856 WITH_AUTO_LOAD_SAFE_PATH to /.
5857
5858 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5859
5860 * stap-probe.h: Do not include unecessary `probe.h'.
5861
5862 2012-05-05 Alan Modra <amodra@gmail.com>
5863
5864 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5865 bfd_und_section_ptr.
5866 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5867 and bfd_com_section_ptr.
5868
5869 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5870
5871 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5872
5873 2012-05-04 Joel Brobecker <brobecker@adacore.com>
5874
5875 * windows-nat.h (segment_register_p_ftype): New typedef.
5876 (windows_set_segment_register_p): Add declaration.
5877 * windows-nat.c (segment_register_p): New static global.
5878 (windows_set_segment_register_p): New function.
5879 (do_windows_fetch_inferior_registers): Add special handling
5880 for segment registers.
5881 * amd64-windows-nat.c: #include "amd64-tdep.h".
5882 (amd64_windows_segment_register_p): New function.
5883 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5884 * i386-windows-nat.c: #include "i386-tdep.h".
5885 (i386_windows_segment_register_p): New function.
5886 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5887
5888 2012-05-04 Tristan Gingold <gingold@adacore.com>
5889
5890 * printcmd.c (set_command): Emit a warning if the expression is not
5891 an assignment.
5892
5893 2012-05-03 Joel Brobecker <brobecker@adacore.com>
5894
5895 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5896 Make static.
5897
5898 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5899
5900 * stap-probe.c (stap_is_operator): Change declaration.
5901 (stap_get_opcode): Change return value.
5902 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5903 `stap_parse_argument_1'.
5904
5905 2012-05-03 Pedro Alves <pedro@codesourcery.com>
5906
5907 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5908 debug log.
5909
5910 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5911
5912 Add two new methods global_block and static_block to gdb.Symtab
5913 objects.
5914 * NEWS (Python scripting): Add entry about the new methods.
5915 * python/py-symtab.c (stpy_global_block): New function which
5916 implements the gdb.Symtab.global_block() method.
5917 (stpy_static_block): New function which implements the
5918 gdb.Symtab.static_block() method.
5919 (symtab_object_methods): Add entries for the two new methods.
5920
5921 2012-05-03 Doug Evans <dje@google.com>
5922
5923 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5924 files.
5925
5926 2012-05-03 Yao Qi <yao@codesourcery.com>
5927
5928 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5929 space.
5930 (i386_process_record): Ditto.
5931
5932 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5933
5934 * infcall.c (unwind_on_signal_p): Make static.
5935
5936 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5937
5938 * sol-thread.c (solaris_pid_to_str): Make static.
5939 (_initialize_sol_thread): Add prototype.
5940
5941 2012-05-02 Joel Brobecker <brobecker@adacore.com>
5942
5943 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5944
5945 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5946
5947 * MAINTAINERS: Remove myself.
5948
5949 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5950
5951 Fix --without-auto-load-safe-path for MS-Windows host platform.
5952 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5953
5954 2012-05-02 Eli Zaretskii <eliz@gnu.org>
5955
5956 * gdb_curses.h: Undefine KEY_EVENT before including curses
5957 headers. Move "#undef MOUSE_MOVED" before any curses header
5958 inclusion.
5959
5960 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5961
5962 * features/i386/i386-mmx-linux.c: Regenerate.
5963 * features/rs6000/powerpc-32.c: Likewise.
5964 * features/rs6000/powerpc-32l.c: Likewise.
5965 * features/rs6000/powerpc-403.c: Likewise.
5966 * features/rs6000/powerpc-403gc.c: Likewise.
5967 * features/rs6000/powerpc-405.c: Likewise.
5968 * features/rs6000/powerpc-505.c: Likewise.
5969 * features/rs6000/powerpc-601.c: Likewise.
5970 * features/rs6000/powerpc-602.c: Likewise.
5971 * features/rs6000/powerpc-603.c: Likewise.
5972 * features/rs6000/powerpc-604.c: Likewise.
5973 * features/rs6000/powerpc-64.c: Likewise.
5974 * features/rs6000/powerpc-64l.c: Likewise.
5975 * features/rs6000/powerpc-750.c: Likewise.
5976 * features/rs6000/powerpc-860.c: Likewise.
5977 * features/rs6000/powerpc-e500.c: Likewise.
5978 * features/rs6000/powerpc-e500l.c: Likewise.
5979 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5980 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5981 * features/rs6000/rs6000.c: Likewise.
5982
5983 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5984
5985 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5986 variable.
5987 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5988 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5989 (stap_parse_argument) <e>: Likewise.
5990 (handle_stap_probe) <byte_order>: Likewise.
5991
5992 2012-04-30 Doug Evans <dje@google.com>
5993
5994 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5995 init_and_read_dies_worker. All callers updated.
5996 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5997 replaced with init_cutu_and_read_dies.
5998 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5999 (find_partial_die): Remove FIXME. Don't free current CU.
6000
6001 2012-04-30 Sterling Augustine <saugustine@google.com>
6002
6003 * contrib: New directory.
6004 * contrib/test_pubnames_and_indexes.py: New file.
6005
6006 2012-04-30 Doug Evans <dje@google.com>
6007
6008 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6009 All callers updated.
6010 (init_cu_die_reader): Verify the section is non-empty.
6011 (dwarf_decode_line_header): Don't dereference section->asection
6012 until we know the section is present.
6013
6014 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6015
6016 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6017 probes.
6018
6019 2012-04-29 Yao Qi <yao@codesourcery.com>
6020
6021 * gdb-code-style.el: New hook gdb-markup-hook
6022 and gdb-comment-hook.
6023
6024 2012-04-28 Doug Evans <dje@google.com>
6025
6026 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6027 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6028 objfile->obfd.
6029 * symfile.h (dwarf2_debug_sections): New member addr.
6030 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6031 (ctx_no_get_addr_index): New function.
6032 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6033 (ctx_no_get_addr_index): Declare.
6034 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6035 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6036 (dwarf_expr_ctx_funcs): Update.
6037 (needs_get_addr_index): New function.
6038 (needs_frame_ctx_funcs): Update.
6039 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6040 * dwarf2read.c: #include "gdbcore.h".
6041 (dwarf2_per_objfile): New members addr, dwo_files.
6042 (dwarf2_elf_names): Add entry for addr.
6043 (struct dwo_section_names): New type.
6044 (dwo_section_names): New static global.
6045 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6046 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6047 old debug_types_section member updated to use this.
6048 Rename member debug_types_section to info_or_types_section,
6049 all uses updated.
6050 (signatured_type): Rename member type_offset to type_offset_in_tu,
6051 all uses updated. New member type_offset_in_section.
6052 (struct dwo_sections): New type.
6053 (struct dwo_unit): New type.
6054 (struct dwo_file): New type.
6055 (die_reader_specs): New member dwo_file.
6056 (dwarf2_locate_sections): Watch for .debug_addr.
6057 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6058 (dwarf2_read_section): Get bfd of section from bfd's asection,
6059 instead of objfile.
6060 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6061 (create_signatured_type_table_from_index): Initialize
6062 sig_type->info_or_types_section.
6063 (dw2_get_file_names): Statement lists for type units with DWO files
6064 live in the DWO file.
6065 (create_debug_types_hash_table): New function.
6066 (create_all_type_units): Rewrite.
6067 (init_cu_die_reader): New arg dwo_file, all callers updated.
6068 (init_and_read_dies_worker): Get section from
6069 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6070 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6071 continue reading the CU/TU from there.
6072 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6073 updated. Get section from this_cu->info_or_types_section.
6074 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6075 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6076 DW_FORM_GNU_str_index.
6077 (hash_dwo_file, eq_dwo_file): New functions.
6078 (allocate_dwo_file_hash_table): New function.
6079 (hash_dwo_unit, eq_dwo_unit): New functions.
6080 (allocate_dwo_unit_table): New function.
6081 (dwarf2_locate_dwo_sections): New function.
6082 (struct create_dwo_info_table_data): New type.
6083 (create_debug_info_hash_table_reader): New function.
6084 (create_debug_info_hash_table): New function.
6085 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6086 (lookup_dwo_file): New function.
6087 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6088 (free_dwo_file, free_dwo_file_cleanup): New functions.
6089 (free_dwo_file_from_slot, free_dwo_files): New functions.
6090 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6091 (dwarf2_record_block_ranges): Ditto.
6092 (read_partial_die): Ditto.
6093 (process_enumeration_scope): Update to use type_offset_in_section.
6094 (read_full_die_1): New function.
6095 (read_full_die): Rewrite.
6096 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6097 DW_FORM_GNU_str_index.
6098 (read_addr_index_1, read_addr_index): New functions.
6099 (read_addr_index_from_leb128): New function.
6100 (struct dwarf2_read_addr_index_data): New type.
6101 (dwarf2_read_addr_index_reader): New function.
6102 (dwarf2_read_addr_index): New function.
6103 (read_str_index): New function.
6104 (leb128_size): New function.
6105 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6106 If processing a type unit from a DWO file, get the line section
6107 from the DWO file.
6108 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6109 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6110 DW_FORM_GNU_str_index.
6111 (lookup_die_type): Check whether section offset of type's die is
6112 known before looking it up. Remove assert. Condition can
6113 legimately happen for inter-cu type references.
6114 (dwarf_attr_name): Handle Fission attributes.
6115 (dwarf_form_name): Handle Fission forms.
6116 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6117 DW_FORM_GNU_str_index.
6118 (follow_die_sig): Update to use type_offset_in_section.
6119 (decode_locdesc): New case DW_OP_GNU_addr_index.
6120 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6121 DW_FORM_GNU_str_index.
6122 (cu_debug_loc_section): New function.
6123 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6124 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6125 Free DWO files if present.
6126 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6127
6128 Refactor DIE reading.
6129 * dwarf2read.c (dwarf2_per_objfile): Replace members
6130 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6131 (die_reader_specs): New member "die_section". Temporarily make
6132 member "buffer" non-const, pending constifying all info_ptr uses.
6133 (die_reader_func_ftype): New typedef.
6134 (dw2_get_file_names_reader): New function.
6135 (dw2_get_file_names): Rewrite.
6136 (read_and_check_type_unit_head): Rename arg type_offset to
6137 type_offset_in_tu.
6138 (create_all_type_units): Improve debugging message.
6139 Improve dummy type unit check.
6140 (init_cu_die_reader): New arg "section". All callers updated.
6141 (init_and_read_dies_worker): New function.
6142 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6143 (init_cutu_and_read_dies_no_follow): New function.
6144 (init_cutu_and_read_dies_simple): New function.
6145 (process_psymtab_comp_unit_reader): New function.
6146 (process_psymtab_comp_unit): Delete args section,
6147 is_debug_types_section. Rewrite. All callers updated.
6148 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6149 All callers updated. Rewrite.
6150 (load_partial_comp_unit_reader): New function.
6151 (load_partial_comp_unit): Rewrite.
6152 (skip_children): New arg reader. Delete args buffer, cu.
6153 All callers updated.
6154 (skip_one_die): New arg reader. Delete args buffer, cu.
6155 All callers updated.
6156 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6157 All callers updated.
6158 (load_full_comp_unit_reader): New function.
6159 (load_full_comp_unit): Rewrite.
6160 (read_comp_unit): Delete.
6161 (read_die_and_children_1): Delete, contents moved ...
6162 (read_die_and_children): ... here.
6163 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6164 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6165 All callers updated.
6166 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6167 All callers updated.
6168 (find_partial_die): Rewrite load_all_dies support.
6169 (read_attribute_value): New arg reader. Delete args abfd, cu.
6170 All callers updated.
6171 (read_attribute): New arg reader. Delete args abfd, cu.
6172 All callers updated.
6173 (load_full_type_unit): Add assert.
6174 (read_signatured_type_reader): New function.
6175 (read_signatured_type): Rewrite.
6176 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6177 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6178 All callers updated. Set per_cu->cu = NULL after freeing it.
6179 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6180 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6181 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6182 (set_die_type): Update.
6183 (get_die_type_at_offset): Update.
6184 (read_file_scope): Call prepare_one_comp_unit.
6185 (read_type_unit_scope): Ditto.
6186 (prepare_one_comp_unit): Set producer if present.
6187
6188 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6189
6190 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6191 gettext function on `error'.
6192
6193 2012-04-27 Doug Evans <dje@google.com>
6194
6195 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6196 is empty.
6197
6198 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6199 Tom Tromey <tromey@redhat.com>
6200
6201 * breakpoint.c (struct breakpoint_objfile_data)
6202 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6203 <exception_probes>: New fields.
6204 (free_breakpoint_probes): New function.
6205 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6206 `_Unwind_DebugHook'.
6207 (create_exception_master_breakpoint): Likewise.
6208 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6209 * infrun.c: Including necessary header files for handling SystemTap
6210 probes.
6211 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6212 via SystemTap probes.
6213 (check_exception_resume): Remove `func' argument. Handle exception
6214 unwinding breakpoint set via a SystemTap probe.
6215 (insert_exception_resume_from_probe): New function.
6216
6217 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6218 Tom Tromey <tromey@redhat.com>
6219 Jan Kratochvil <jan.kratochvil@redhat.com>
6220
6221 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6222 (COMMON_OBS): Likewise.
6223 (HFILES_NO_SRCDIR): Add `probe'.
6224 * NEWS: Mention support for static and SystemTap probes.
6225 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6226 SystemTap probes' arguments parser.
6227 * arm-linux-tdep.c: Including headers needed to perform the parsing
6228 of SystemTap probes' arguments.
6229 (arm_stap_is_single_operand): New function.
6230 (arm_stap_parse_special_token): Likewise.
6231 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6232 probes' arguments parser.
6233 * ax-gdb.c (require_rvalue): Removing static declaration.
6234 (gen_expr): Likewise.
6235 * ax-gdb.h (gen_expr): Declaring function.
6236 (require_rvalue): Likewise.
6237 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6238 (bkpt_probe_breakpoint_ops): New variable.
6239 (momentary_breakpoint_from_master): Set the `probe' value.
6240 (add_location_to_breakpoint): Likewise.
6241 (break_command_1): Using proper breakpoint_ops according to the
6242 argument passed by the user in the command line.
6243 (bkpt_probe_insert_location): New function.
6244 (bkpt_probe_remove_location): Likewise.
6245 (bkpt_probe_create_sals_from_address): Likewise.
6246 (bkpt_probe_decode_linespec): Likewise.
6247 (tracepoint_probe_create_sals_from_address): Likewise.
6248 (tracepoint_probe_decode_linespec): Likewise.
6249 (tracepoint_probe_breakpoint_ops): New variable.
6250 (trace_command): Using proper breakpoint_ops according to the
6251 argument passed by the user in the command line.
6252 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6253 static probes on breakpoints and tracepoints.
6254 * breakpoint.h (struct bp_location) <probe>: New field.
6255 * cli-utils.c (skip_spaces_const): New function.
6256 (extract_arg): Likewise.
6257 * cli-utils.h (skip_spaces_const): Likewise.
6258 (extract_arg): Likewise.
6259 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6260 * configure.ac: Append `stap-probe.o' to be generated when ELF
6261 support is present.
6262 * configure: Regenerate.
6263 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6264 * elfread.c: Include `probe.h' and `arch-utils.h'.
6265 (probe_key): New variable.
6266 (elf_get_probes): New function.
6267 (elf_get_probe_argument_count): Likewise.
6268 (elf_evaluate_probe_argument): Likewise.
6269 (elf_compile_to_ax): Likewise.
6270 (elf_symfile_relocate_probe): Likewise.
6271 (stap_probe_key_free): Likewise.
6272 (elf_probe_fns): New variable.
6273 (elf_sym_fns): Add `sym_probe_fns' value.
6274 (elf_sym_fns_lazy_psyms): Likewise.
6275 (elf_sym_fns_gdb_index): Likewise.
6276 (_initialize_elfread): Initialize objfile cache for static
6277 probes.
6278 * gdb_vecs.h (struct probe): New forward declaration.
6279 (probe_p): New VEC declaration.
6280 * gdbarch.c: Regenerate.
6281 * gdbarch.h: Regenerate.
6282 * gdbarch.sh (stap_integer_prefix): New variable.
6283 (stap_integer_suffix): Likewise.
6284 (stap_register_prefix): Likewise.
6285 (stap_register_suffix): Likewise.
6286 (stap_register_indirection_prefix): Likewise.
6287 (stap_register_indirection_suffix): Likewise.
6288 (stap_gdb_register_prefix): Likewise.
6289 (stap_gdb_register_suffix): Likewise.
6290 (stap_is_single_operand): New function.
6291 (stap_parse_special_token): Likewise.
6292 (struct stap_parse_info): Forward declaration.
6293 * i386-tdep.c: Including headers needed to perform the parsing
6294 of SystemTap probes' arguments.
6295 (i386_stap_is_single_operand): New function.
6296 (i386_stap_parse_special_token): Likewise.
6297 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6298 probes' arguments parser.
6299 * i386-tdep.h (i386_stap_is_single_operand): New function.
6300 (i386_stap_parse_special_token): Likewise.
6301 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6302 * mipsread.c (ecoff_sym_fns): Likewise.
6303 * objfiles.c (objfile_relocate1): Support relocation for static
6304 probes.
6305 * parse.c (prefixify_expression): Remove static declaration.
6306 (initialize_expout): Likewise.
6307 (reallocate_expout): Likewise.
6308 * parser-defs.h (initialize_expout): Declare function.
6309 (reallocate_expout): Likewise.
6310 (prefixify_expression): Likewise.
6311 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6312 of SystemTap probes' arguments.
6313 (ppc_stap_is_single_operand): New function.
6314 (ppc_stap_parse_special_token): Likewise.
6315 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6316 probes' arguments parser.
6317 * probe.c: New file, for generic statically defined probe support.
6318 * probe.h: Likewise.
6319 * s390-tdep.c: Including headers needed to perform the parsing of
6320 SystemTap probes' arguments.
6321 (s390_stap_is_single_operand): New function.
6322 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6323 probes' arguments parser.
6324 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6325 * stap-probe.c: New file, for SystemTap probe support.
6326 * stap-probe.h: Likewise.
6327 * symfile.h: Include `gdb_vecs.h'.
6328 (struct sym_probe_fns): New struct.
6329 (struct sym_fns) <sym_probe_fns>: New field.
6330 * symtab.c (init_sal): Initialize `probe' field.
6331 * symtab.h (struct probe): Forward declaration.
6332 (struct symtab_and_line) <probe>: New field.
6333 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6334 locations.
6335 (stop_tracing): Likewise.
6336 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6337
6338 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6339 Tom Tromey <tromey@redhat.com>
6340
6341 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6342 and to compile agent expressions.
6343 * infrun.c (siginfo_make_value): New argument `ignore'.
6344 (siginfo_funcs): New struct.
6345 (_initialize_infrun): New argument when calling
6346 `create_internalvar_type_lazy'.
6347 * thread.c (thread_id_make_value): New argument `ignore'.
6348 (thread_funcs): New struct.
6349 (_initialize_thread): New argument when calling
6350 `create_internalvar_type_lazy'.
6351 * tracepoint.c (sdata_make_value): New argument `ignore'.
6352 (sdata_funcs): New struct.
6353 (_initialize_tracepoint): New argument when calling
6354 `create_internalvar_type_lazy'.
6355 * value.c (make_value): New struct.
6356 (create_internalvar_type_lazy): New argument `data'.
6357 (compile_internalvar_to_ax): New function.
6358 (value_of_internalvar): Properly handling `make_value' case.
6359 (clear_internalvar): Likewise.
6360 (show_convenience): Adding `TRY_CATCH' block.
6361 * value.h (internalvar_make_value): Delete, replace by...
6362 (struct internalvar_funcs): ... this.
6363 (create_internalvar_type_lazy) <fun>: Delete argument.
6364 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6365 (compile_internalvar_to_ax): New function.
6366 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6367 (tlb_funcs): New struct.
6368 (_initialize_windows_tdep): New argument when calling
6369 `create_internalvar_type_lazy'.
6370
6371 2012-04-27 Mark Wielaard <mjw@redhat.com>
6372
6373 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6374 see whether it is an address or a constant offset from DW_AT_low_pc.
6375 (dwarf2_record_block_ranges): Likewise.
6376 (read_partial_die): Likewise.
6377
6378 2012-04-26 Mark Wielaard <mjw@redhat.com>
6379
6380 * MAINTAINERS (Write After Approval): Add myself to the list.
6381
6382 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6383
6384 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6385 (proc_prettyprint_signal): Likewise.
6386 (proc_prettyprint_faultset): Likewise.
6387 (proc_prettyprint_fault): Likewise.
6388 (proc_prettyprint_actionset): Likewise.
6389 (proc_prettyprint_flags): Move to new proc-flags.c section.
6390 (proc_prettyfprint_flags): New prototype.
6391 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6392 (proc_syscall, proc_cursig): Likewise.
6393 (proc_set_kill_on_last_close): Likewise.
6394 (proc_unset_kill_on_last_close): Likewise.
6395 (proc_set_watchpoint): Make static.
6396 (proc_delete_dead_threads): Likewise.
6397 (procfs_set_watchpoint): Likewise.
6398 (_initialize_procfs): Add prototype.
6399 * proc-events.c: Include proc-utils.h.
6400 (init_syscall_table): Make static.
6401 * proc-api.c (_initialize_proc_api): Add prototype.
6402 * proc-flags.c: Include proc-utils.h.
6403
6404 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6405
6406 * configure.ac: Add AC_ARG_PROGRAM.
6407 * configure: Regenerate.
6408
6409 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 Fix DW_AT_lower_bound defaults for DWARF-4+.
6412 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6413 high. New variable low_default_is_valid. Implement DWARF-4+
6414 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6415 no default by the DWARF standard.
6416
6417 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6418 Maciej W. Rozycki <macro@codesourcery.com>
6419
6420 * infrun.c (handle_inferior_event): Move the check for return
6421 trampolines ahead of the check for function trampolines.
6422 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6423 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6424 (mips_str_mips16_ret_stub): Likewise.
6425 (mips_str_call_fp_stub): Likewise.
6426 (mips_str_call_stub): Likewise.
6427 (mips_str_fn_stub): Likewise.
6428 (mips_str_pic): Likewise.
6429 (mips_in_frame_stub): New function.
6430 (mips_unwind_pc): Return the return address rather than the PC
6431 if the PC of an intermediate frame is inside a call thunk.
6432 (mips_is_stub_suffix): New function.
6433 (mips_is_stub_mode): Likewise.
6434 (mips_get_mips16_fn_stub_pc): Likewise.
6435 (mips_skip_mips16_trampoline_code): Update to handle all the
6436 currently generated stub types. Don't recurse into __fn_stub
6437 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6438 Use cooked register accesses.
6439 (mips_in_return_stub): Reintroduce function.
6440 (mips_skip_trampoline_code): Traverse trampolines recursively.
6441 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6442
6443 2012-04-26 Joel Brobecker <brobecker@adacore.com>
6444
6445 GDB 7.4.1 released.
6446
6447 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6448
6449 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6450 * features/arm-with-m-vfp-d16.xml: New file. Describes
6451 Cortex-M with VFPv4-sp-d16 FPU register layout.
6452 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6453 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6454 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6455 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6456 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6457
6458 2012-04-25 Doug Evans <dje@google.com>
6459
6460 * cli/cli-decode.c (print_doc_line): Use stream instead of
6461 current_uiout.
6462
6463 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6464
6465 * features/arm-with-iwmmxt.c: Regenerate.
6466 * features/arm-with-m-fpa-layout.c: Likewise.
6467 * features/arm-with-m.c: Likewise.
6468 * features/arm-with-neon.c: Likewise.
6469 * features/arm-with-vfpv2.c: Likewise.
6470 * features/arm-with-vfpv3.c: Likewise.
6471 * features/mips-dsp-linux.c: Likewise.
6472 * features/mips-linux.c: Likewise.
6473 * features/mips64-dsp-linux.c: Likewise.
6474 * features/mips64-linux.c: Likewise.
6475 * features/s390-linux32.c: Likewise.
6476 * features/s390-linux32v1.c: Likewise.
6477 * features/s390-linux32v2.c: Likewise.
6478 * features/s390-linux64.c: Likewise.
6479 * features/s390-linux64v1.c: Likewise.
6480 * features/s390-linux64v2.c: Likewise.
6481 * features/s390x-linux64.c: Likewise.
6482 * features/s390x-linux64v1.c: Likewise.
6483 * features/s390x-linux64v2.c: Likewise.
6484 * features/tic6x-c62x-linux.c: Likewise.
6485 * features/tic6x-c62x.c: Likewise.
6486 * features/tic6x-c64x-linux.c: Likewise.
6487 * features/tic6x-c64x.c: Likewise.
6488 * features/tic6x-c64xp-linux.c: Likewise.
6489 * features/tic6x-c64xp.c: Likewise.
6490 * target-descriptions.c: Only generate `field_type' and `type'
6491 variables when needed.
6492
6493 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6494
6495 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6496
6497 2012-04-25 Doug Evans <dje@google.com>
6498
6499 Initial pass at Go language support.
6500 * NEWS: Mention Go.
6501 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6502 go-valprint.c.
6503 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6504 (YYFILES): Add go-exp.c.
6505 (YYOBJ): Add go-exp.o.
6506 (local-maintainer-clean): Delete go-exp.c.
6507 * defs.h (enum language): Add language_go.
6508 * dwarf2read.c: #include "go-lang.h".
6509 (fixup_go_packaging): New function.
6510 (process_full_comp_unit): Call it when processing Go CUs.
6511 (dwarf2_physname): Add Go support.
6512 (read_file_scope): Handle missing language spec for GNU Go.
6513 (set_cu_language): Handle DW_LANG_Go.
6514 * go-exp.y: New file.
6515 * go-lang.h: New file.
6516 * go-lang.c: New file.
6517 * go-typeprint.c: New file.
6518 * go-valprint.c: New file.
6519 * symtab.c: #include "go-lang.h".
6520 (symbol_set_language): Handle language_go.
6521 (symbol_find_demangled_name, symbol_set_names): Ditto.
6522 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6523
6524 2012-04-24 Jim Meyering <meyering@redhat.com>
6525
6526 avoid a few strncpy-induced buffer overruns
6527 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6528 fname and psargs before trying to concatenate.
6529 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6530 "name" before applying strchr.
6531
6532 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6533
6534 * CONTRIBUTE: Use unified diff instead of context diff when
6535 generating patches.
6536
6537 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6538
6539 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6540 code. Handle JR.HB correctly.
6541
6542 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6543
6544 * mips-tdep.c
6545 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6546 with the other MIPS16 helpers.
6547
6548 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6549
6550 * observer.sh: Conditionally declare `args', thus cleaning up
6551 unused instances of this variable.
6552
6553 2012-04-24 Yao Qi <yao@codesourcery.com>
6554
6555 Revert this patch to allow breakpoint always-inserted
6556 in record target.
6557 2011-12-05 Pedro Alves <pedro@codesourcery.com>
6558 * breakpoint.c: Include record.h.
6559 (breakpoints_always_inserted_mode): Return false when the record
6560 target is in use.
6561
6562 * breakpoint.c (iterate_over_bp_locations): New.
6563 * breakpoint.h: Declare.
6564 New typedef walk_bp_location_callback.
6565 * record.c (record_open): Call record_init_record_breakpoints.
6566 (record_sync_record_breakpoints): New.
6567 (record_init_record_breakpoints): New.
6568 * NEWS: Mention supporting breakpoint always-inserted mode in
6569 record target.
6570
6571 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6572
6573 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6574 any thread.
6575
6576 2012-04-24 Yao Qi <yao@codesourcery.com>
6577
6578 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6579 (is_catchpoint): ... it.
6580 (print_one_breakpoint_location): Caller update.
6581 * breakpoint.h: Update declaration.
6582
6583 2012-04-23 David S. Miller <davem@davemloft.net>
6584
6585 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6586
6587 2012-04-23 Tom Tromey <tromey@redhat.com>
6588
6589 * buildsym.c (add_free_pendings): Remove.
6590 * buildsym.h (add_free_pendings): Remove.
6591
6592 2012-04-23 Doug Evans <dje@google.com>
6593
6594 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6595 attr.u.unsnd instead of attr.u.addr.
6596 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6597 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6598 DW_FORM_ref_udata.
6599 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6600 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6601 DW_FORM_ref_udata.
6602 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6603
6604 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6605
6606 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6607 (mips_o32_return_value): Likewise.
6608 (mips_o64_return_value): Likewise.
6609
6610 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6611
6612 * ada-lang.c (ada_evaluate_subexp): Add cases for
6613 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6614 their treatment in eval.c.
6615
6616 2012-04-21 David S. Miller <davem@davemloft.net>
6617
6618 * sparc-tdep.c (X_DISP10): Define.
6619 (sparc_analyze_control_transfer): Handle compare-and-branch.
6620
6621 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6622
6623 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6624 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6625
6626 2012-04-20 Nigel Stephens <nigel@mips.com>
6627 Maciej W. Rozycki <macro@codesourcery.com>
6628
6629 * mips-tdep.c (mips_float_register_p): New function.
6630 (mips_convert_register_float_case_p): Use mips_float_register_p.
6631 (mips_register_type): Likewise.
6632 (mips_print_register): Likewise.
6633 (print_gp_register_row): Likewise.
6634 (mips_print_registers_info): Likewise.
6635
6636 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6637
6638 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6639 of mips16 symbols.
6640
6641 2012-04-20 Andrew Pinski <apinski@cavium.com>
6642
6643 * MAINTAINERS (Write After Approval): Add myself to the list.
6644
6645 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6646
6647 * MAINTAINERS: Update my e-mail address.
6648
6649 2012-04-20 Pedro Alves <palves@redhat.com>
6650
6651 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6652 $srcdir.
6653 * configure: Regenerate.
6654
6655 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6656
6657 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6658 declaration.
6659 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6660
6661 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6662
6663 Fix compilation compatibility with python-2.4
6664 * python/py-type.c (convert_field): Cast ADDRSTRING for
6665 PyObject_SetAttrString as non-const. New comment.
6666
6667 2012-04-19 Tom Tromey <tromey@redhat.com>
6668
6669 * top.c (quit_target): Use all_cleanups.
6670 * main.c (captured_command_loop): Use all_cleanups.
6671 * exceptions.c (throw_exception): Use all_cleanups.
6672
6673 2012-04-19 Pedro Alves <palves@redhat.com>
6674
6675 * Makefile.in (GNULIB_BUILDDIR): New.
6676 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6677 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6678 (CLEANDIRS). Remove gnulib/import.
6679 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6680 (all-lib): Ditto.
6681 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6682 (gnulib/import/Makefile): Replace gnulib/import with
6683 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6684 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6685 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6686 acx_configure_dir.m4.
6687 * acinclude.m4: Include acx_configure_dir.m4.
6688 * acx_configure_dir.m4: New file.
6689 * aclocal.m4: Regenerate.
6690 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6691 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6692 (GNULIB): New variable.
6693 (GNULIB_STDINT_H): Adjust.
6694 (AC_OUTPUT): Don't output gnulib/Makefile.
6695 * gdb/defs.h: Include build-gnulib/config.h.
6696 * aclocal.m4: Regenerate.
6697 * config.in: Regenerate.
6698 * configure: Regenerate.
6699
6700 * gnulib/Makefile.in: New file.
6701 * gnulib/configure.ac: New file.
6702 * gnulib/aclocal.m4: New file.
6703 * gnulib/config.in: New file.
6704 * gnulib/configure: New file.
6705 * gnulib/: Re-run gnulib-tool to adjust.
6706
6707 2012-04-19 Doug Evans <dje@google.com>
6708
6709 * cleanups.h (struct cleanup): Move to cleanups.c.
6710 (make_cleanup_dtor_ftype): New typedef.
6711 (make_cleanup_dtor): Use it.
6712 (ALL_CLEANUPS): Replace with ...
6713 (all_cleanups): ... this. Declare. All uses updated.
6714 * cleanups.c: #include "gdb_assert.h".
6715 (sentinel_cleanup): New static global.
6716 (SENTINEL_CLEANUP): Define.
6717 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6718 (make_my_cleanup2): Assert result is non-NULL.
6719 (all_cleanups): New function.
6720 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6721 of NULL.
6722
6723 2012-04-19 Pedro Alves <palves@redhat.com>
6724
6725 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6726 Adjust paths to gnulib imported files.
6727
6728 2012-04-19 Pedro Alves <palves@redhat.com>
6729
6730 * gnulib/: Move whole directory ...
6731 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6732 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6733 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6734 (aclocal_m4_deps): Adjust.
6735 * aclocal.m4: Regenerate.
6736 * configure: Regenerate.
6737 * configure.ac: Adjust AC_OUTPUT output.
6738
6739 2012-04-19 Yao Qi <yao@codesourcery.com>
6740
6741 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6742 (vec.o): New rule.
6743 * vec.c: Move it ...
6744 * common/vec.c: ... here.
6745 * vec.h: Move it ...
6746 * common/vec.h: ... here.
6747
6748 2012-04-19 Yao Qi <yao@codesourcery.com>
6749
6750 * gdb-code-style.el: New.
6751
6752 2012-04-18 Pedro Alves <palves@redhat.com>
6753
6754 Update gnulib from latest git.
6755 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6756
6757 * gnulib/Makefile.am: Update.
6758 * gnulib/dummy.c: Update.
6759 * gnulib/extra/arg-nonnull.h: Update.
6760 * gnulib/extra/c++defs.h: Update.
6761 * gnulib/extra/update-copyright: Update.
6762 * gnulib/extra/warn-on-use.h: Update.
6763 * gnulib/inttypes.in.h: Update.
6764 * gnulib/m4/00gnulib.m4: Update.
6765 * gnulib/m4/extensions.m4: Update.
6766 * gnulib/m4/gnulib-cache.m4: Update.
6767 * gnulib/m4/gnulib-common.m4: Update.
6768 * gnulib/m4/gnulib-comp.m4: Update.
6769 * gnulib/m4/gnulib-tool.m4: Update.
6770 * gnulib/m4/include_next.m4: Update.
6771 * gnulib/m4/inttypes-pri.m4: Update.
6772 * gnulib/m4/inttypes.m4: Update.
6773 * gnulib/m4/longlong.m4: Update.
6774 * gnulib/m4/memchr.m4: Update.
6775 * gnulib/m4/memmem.m4: Update.
6776 * gnulib/m4/mmap-anon.m4: Update.
6777 * gnulib/m4/multiarch.m4: Update.
6778 * gnulib/m4/onceonly.m4: Update.
6779 * gnulib/m4/stddef_h.m4: Update.
6780 * gnulib/m4/stdint.m4: Update.
6781 * gnulib/m4/string_h.m4: Update.
6782 * gnulib/m4/warn-on-use.m4: Update.
6783 * gnulib/m4/wchar_h.m4: Update.
6784 * gnulib/m4/wchar_t.m4: Update.
6785 * gnulib/m4/wint_t.m4: Update.
6786 * gnulib/memchr.c: Update.
6787 * gnulib/memmem.c: Update.
6788 * gnulib/stddef.in.h: Update.
6789 * gnulib/stdint.in.h: Update.
6790 * gnulib/str-two-way.h: Update.
6791 * gnulib/string.in.h: Update.
6792 * gnulib/wchar.in.h: Update.
6793
6794 * gnulib/extra/arg-nonnull.h: Delete.
6795 * gnulib/extra/c++defs.h: Delete.
6796 * gnulib/extra/warn-on-use.h: Delete.
6797 * gnulib/m4/wchar_h.m4: Delete.
6798 * gnulib/m4/wint_t.m4: Delete.
6799 * gnulib/wchar.in.h: Delete.
6800
6801 * gnulib/extra/snippets/arg-nonnull.h: New.
6802 * gnulib/extra/snippets/c++defs.h: New.
6803 * gnulib/extra/snippets/warn-on-use.h: New.
6804
6805 * aclocal.m4: Regenerate.
6806 * config.in: Regenerate.
6807 * configure: Regenerate.
6808 * gnulib/Makefile.in: Regenerate.
6809
6810 2012-04-18 Pedro Alves <palves@redhat.com>
6811
6812 Reimport the update-copyright module from gnulib
6813 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6814
6815 * configure: Regenerate.
6816 * gnulib/Makefile.am: Update.
6817 * gnulib/Makefile.in: Regenerate.
6818 * gnulib/extra/update-copyright: Update.
6819 * gnulib/m4/gnulib-cache.m4: Update.
6820 * gnulib/m4/gnulib-comp.m4: Update.
6821
6822 2012-04-18 Tristan Gingold <gingold@adacore.com>
6823
6824 * configure.ac (aix): Put -lpthread into libs.
6825 * configure: Regenerate.
6826
6827 2012-04-18 Tom Tromey <tromey@redhat.com>
6828
6829 * linespec.c (convert_linespec_to_sals): Don't use
6830 SYMBOL_OBJ_SECTION.
6831 (compare_msymbols): Arguments are minsym_and_objfile, not
6832 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6833
6834 2012-04-18 Pedro Alves <palves@redhat.com>
6835
6836 Revert gnulib/ part of:
6837 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6838 Copyright year update in most files (performed by copyright.sh).
6839
6840 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 Fix 64-bit constants on 32-bit hosts.
6843 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6844 from unsigned long to ULONGEST.
6845 (read_signed_leb128): Change declaration return type from long to
6846 LONGEST.
6847 (dwarf2_const_value_attr): Change declaration parameter value from long
6848 to LONGEST.
6849 (dwarf2_compute_name): Change variable value from long to LONGEST.
6850 (read_unsigned_leb128): Change return type, variable result and some
6851 casts from unsigned long to ULONGEST.
6852 (read_signed_leb128): Change return type, variable result and some
6853 casts from long to LONGEST.
6854 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6855 value from long to LONGEST.
6856 (dwarf2_const_value): Change variable value from long to LONGEST.
6857 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6858 plongest and hex_string.
6859 * symtab.h (struct general_symbol_info): Change ivalue from long to
6860 LONGEST, remove the comment.
6861 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6862 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6863
6864 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6865
6866 PR symtab/7259:
6867 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6868 * ada-lang.c (ada_discrete_type_high_bound)
6869 (ada_discrete_type_low_bound): Fix function comment. Use
6870 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6871 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6872 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6873 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6874 Use TYPE_FIELD_ENUMVAL.
6875 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6876 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6877 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6878 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6879 TYPE_CODE_ENUM.
6880 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6881 * dwarf2read.c (process_enumeration_scope): Likewise.
6882 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6883 field.bitpos.
6884 (class StructMainTypePrettyPrinter): Support also
6885 FIELD_LOC_KIND_ENUMVAL.
6886 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6887 TYPE_CODE_ENUM.
6888 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6889 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6890 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6891 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6892 field enumval.
6893 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6894 accommodate enumval.
6895 (struct call_site): Adjust loc_kind to accommodate enumval.
6896 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6897 (TYPE_FIELD_ENUMVAL): New macros.
6898 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6899 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6900 TYPE_CODE_ENUM.
6901 * p-typeprint.c (pascal_type_print_base): Likewise.
6902 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6903 enumval.
6904 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6905 * python/py-type.c (convert_field): New variable addrstring. Use
6906 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6907 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6908 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6909 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6910 TYPE_CODE_ENUM.
6911 * valprint.c (generic_val_print): Likewise.
6912
6913 2012-04-17 Doug Evans <dje@google.com>
6914
6915 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6916
6917 * dwarf2read.c: Whitespace fixes.
6918 (lookup_signatured_type): Tweak comment.
6919 (get_die_type_at_offset): Fix comment.
6920
6921 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6922
6923 * xcoffread.c (xcoff_secnum_to_sections): New function.
6924 (secnum_to_section, secnum_to_bfd_section): Reimplement
6925 using xcoff_secnum_to_sections. Rename "secnum" parameter
6926 into "n_scnum".
6927 (RECORD_MINIMAL_SYMBOL): Delete.
6928 (record_minimal_symbol): New function.
6929 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6930 by call to record_minimal_symbol and set misc_func_recorded
6931 to 1. Set last_csect_sec to the XCOFF section index instead
6932 of GDB's section_offset index. Update calls to
6933 prim_record_minimal_symbol_and_info to pass the BFD section
6934 as well.
6935
6936 2012-04-17 Joel Brobecker <brobecker@adacore.com>
6937
6938 * xcoffread.c (read_xcoff_symtab): Delete variables
6939 last_csect_val and last_csect_sec and associated code.
6940
6941 2012-04-17 Doug Evans <dje@google.com>
6942
6943 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6944 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6945 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6946 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6947
6948 * cleanups.h: New file.
6949 * cleanups.c: New file.
6950 * Makefile.in (SFILES): Add cleanups.c.
6951 (HFILES_NO_SRCDIR): Add cleanups.h.
6952 (COMMON_OBS): Add cleanups.o.
6953 * defs.h (struct cleanup): Moved to cleanups.h.
6954 (do_cleanups,do_final_cleanups): Ditto.
6955 (discard_cleanups,discard_final_cleanups): Ditto
6956 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6957 (save_cleanups,save_final_cleanups): Ditto.
6958 (restore_cleanups,restore_final_cleanups): Ditto.
6959 (null_cleanup): Ditto.
6960 (make_my_cleanup,make_my_cleanup2): Ditto.
6961 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6962 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6963 (do_cleanups,do_final_cleanups): Ditto.
6964 (discard_cleanups,discard_final_cleanups): Ditto
6965 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6966 (save_cleanups,save_final_cleanups): Ditto.
6967 (restore_cleanups,restore_final_cleanups): Ditto.
6968 (null_cleanup): Ditto.
6969 (make_my_cleanup,make_my_cleanup2): Ditto.
6970 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6971
6972 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6973 make_my_cleanup.
6974 (make_cleanup_dyn_string_delete): Ditto.
6975 (make_cleanup_ui_file_delete): Ditto.
6976 (make_cleanup_ui_out_redirect_pop): Ditto.
6977 (make_cleanup_free_section_addr_info): Ditto.
6978 (make_cleanup_restore_integer): Ditto.
6979 (make_cleanup_unpush_target): Ditto.
6980 (make_cleanup_value_free_to_mark): Ditto.
6981 (make_cleanup_value_free): Ditto.
6982 (make_cleanup_free_so): Ditto.
6983
6984 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6985
6986 New option "set debug auto-load".
6987 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6988 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6989 (auto_load_safe_path_vec_update)
6990 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6991 if DEBUG_AUTO_LOAD.
6992 (file_is_auto_load_safe): New parameters debug_fmt and ....
6993 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6994 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6995 caller by explanatory string.
6996 (_initialize_auto_load): Register "set debug auto-load".
6997 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6998 and ....
6999 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7000 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7001 by explanatory string.
7002 * main.c (captured_main): Likewise.
7003 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7004 (source_section_scripts): Likewise.
7005
7006 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7007
7008 New option "set auto-load safe-path".
7009 * NEWS: New commands "set auto-load safe-path"
7010 and "show auto-load safe-path".
7011 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7012 (auto_load_safe_path, auto_load_safe_path_vec)
7013 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7014 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7015 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7016 (source_gdb_script_for_objfile): New variable is_safe. Call
7017 file_is_auto_load_safe. Return if it is not.
7018 (struct loaded_script): New field loaded.
7019 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7020 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7021 output "Missing" to "No".
7022 (_initialize_auto_load): New variable cmd. Initialize
7023 auto_load_safe_path. Register "set auto-load safe-path",
7024 "show auto-load safe-path" and "add-auto-load-safe-path".
7025 * auto-load.h (maybe_add_script): Add parameter loaded.
7026 (file_is_auto_load_safe): New declaration.
7027 * config.in: Regenerate.
7028 * configure: Regenerate.
7029 * configure.ac: New parameters --with-auto-load-safe-path
7030 and --without-auto-load-safe-path.
7031 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7032 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7033 * main.c (captured_main): Check file_is_auto_load_safe for
7034 LOCAL_GDBINIT.
7035 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7036 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7037 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7038 not.
7039
7040 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7041
7042 auto-load: Implementation.
7043 * NEWS: New descriptions for "info auto-load",
7044 "info auto-load gdb-scripts", "info auto-load python-scripts",
7045 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7046 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7047 and "show auto-load-scripts". New description for "set auto-load",
7048 "show auto-load", "set auto-load gdb-scripts",
7049 "show auto-load gdb-scripts", "set auto-load python-scripts",
7050 "show auto-load python-scripts", "set auto-load local-gdbinit",
7051 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7052 "show auto-load libthread-db".
7053 * auto-load.c: Remove include python/python-internal.h. Add includes
7054 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7055 cli/cli-setshow.h.
7056 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7057 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7058 (gdbpy_global_auto_load): Rename to ...
7059 (global_auto_load): ... here.
7060 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7061 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7062 (script_language_gdb, source_gdb_script_for_objfile): New.
7063 (struct loaded_script): New field language.
7064 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7065 LANGUAGE.
7066 (maybe_add_script): Add parameter language. Drop redundant
7067 entry.full_path initialization. Initialize entry.language and
7068 (*slot)->language.
7069 (auto_load_objfile_script): Change parameter suffix to language.
7070 Remove the call of maybe_add_script.
7071 Call language->source_script_for_objfile.
7072 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7073 New.
7074 (collect_matching_scripts): Adjust it for
7075 struct collect_matching_scripts_data.
7076 (auto_load_info_scripts_pattern_nl): New variable.
7077 (info_auto_load_scripts): Rename to ...
7078 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7079 for struct collect_matching_scripts_data.
7080 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7081 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7082 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7083 (auto_load_info_cmdlist_get): New.
7084 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7085 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7086 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7087 "info auto-load local-gdbinit".
7088 * auto-load.h (struct script_language): New.
7089 (gdbpy_global_auto_load): Rename to ...
7090 (global_auto_load): ... here.
7091 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7092 (auto_load_local_gdbinit_loaded): New declarations.
7093 (maybe_add_script): New parameter language.
7094 (auto_load_objfile_script): Change parameter suffix to language.
7095 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7096 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7097 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7098 declarations.
7099 * linux-thread-db.c: Include auto-load.h and ctype.h.
7100 (auto_load_thread_db, show_auto_load_thread_db): New.
7101 (struct thread_db_info): New field filename.
7102 (delete_thread_db_info): Call xfree for FILENAME.
7103 (try_thread_db_load): Initialize FILENAME.
7104 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7105 if !AUTO_LOAD_THREAD_DB.
7106 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7107 (_initialize_thread_db): Install auto_load_thread_db
7108 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7109 as "info auto-load libthread-db".
7110 * main.c (captured_main): Rename gdbpy_global_auto_load to
7111 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7112 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7113 (print_gdb_help): Extend the help for 'local init file'.
7114 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7115 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7116 (auto_load_scripts): Rename to ...
7117 (auto_load_python_scripts): ... here, update the comment.
7118 (gdbpy_load_auto_script_for_objfile): New declaration.
7119 (show_auto_load_python_scripts, script_language_python)
7120 (gdbpy_load_auto_script_for_objfile): New.
7121 (source_section_scripts): Refactor the code.
7122 (load_auto_scripts_for_objfile): Rename to ...
7123 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7124 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7125 (info_auto_load_python_scripts): New.
7126 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7127 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7128 Register "set auto-load-scripts" as its deprecated alias. Register
7129 "info auto-load python-scripts". Register "info auto-load-scripts" as
7130 its deprecated alias.
7131 (load_auto_scripts_for_objfile): Rename to ...
7132 (gdbpy_load_auto_scripts_for_objfile): ... here.
7133 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7134 (gdbpy_load_auto_scripts_for_objfile): ... here.
7135
7136 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 auto-load: Move files.
7139 * Makefile.in (SFILES): Add auto-load.c.
7140 (HFILES_NO_SRCDIR): Add auto-load.h.
7141 (COMMON_OBS): Add auto-load.o.
7142 (distclean): Change .gdbinit for gdb-gdb.gdb.
7143 * auto-load.c: New file, with parts from python/py-auto-load.c.
7144 * auto-load.h: New file, with parts from python/python.h.
7145 * configure: Regenerate.
7146 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7147 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7148 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7149 * main.c: Include auto-load.h.
7150 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7151 command.h, observer.h and progspace.h to auto-load.c. Add include
7152 auto-load.h.
7153 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7154 (struct loaded_script, auto_load_pspace_data)
7155 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7156 (hash_loaded_script_entry, eq_loaded_script_entry)
7157 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7158 (maybe_add_script): Move to auto-load.c.
7159 (source_section_scripts): Change maybe_add_script parameters passing,
7160 use script_not_found_warning_print.
7161 (clear_section_scripts, auto_load_objfile_script)
7162 (auto_load_new_objfile, loaded_script_ptr)
7163 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7164 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7165 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7166 auto_load_new_objfile and info_auto_load_scripts initizations to
7167 auto-load.c.
7168 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7169
7170 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7171
7172 Code cleanup.
7173 * charset.c (find_charset_names): Remove variables ix and elt.
7174 Use free_char_ptr_vec.
7175 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7176 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7177 debugdir_end. New variable debugdir_len.
7178 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7179 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7180 declarations.
7181 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7182 and elt. Use free_char_ptr_vec.
7183 * source.c (add_path): Remove variables argv, arg and argv_index.
7184 New variables dir_vec, back_to, ix and name.
7185 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7186 make_cleanup_freeargv. Remove variable separator. Simplify the code
7187 no longer expecting DIRNAME_SEPARATOR.
7188 (openp): Remove variable p, p1 and len. New variables dir_vec,
7189 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7190 no longer expecting DIRNAME_SEPARATOR.
7191 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7192 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7193 debugdir_end.
7194 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7195 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7196 (dirnames_to_char_ptr_vec): New functions.
7197
7198 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7199
7200 Code cleanup.
7201 * source.c (add_path): Remove always true conditional 'p == 0' and
7202 unindent its code block.
7203
7204 2012-04-17 Pedro Alves <palves@redhat.com>
7205
7206 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7207 (FIELD_BITPOS_LVAL): ... this.
7208 (FIELD_BITPOS): New.
7209 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7210 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7211 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7212 SET_FIELD_BITPOS.
7213 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7214 SET_FIELD_BITPOS.
7215 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7216 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7217 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7218 SET_FIELD_BITPOS.
7219
7220 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7223 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7224 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7225 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7226 * jv-lang.c (java_link_class_type): Likewise, once.
7227 * stabsread.c (read_enum_type): Likewise.
7228
7229 2012-04-16 Yao Qi <yao@codesourcery.com>
7230
7231 * common/agent.c (agent_run_command): Add one more parameter `len'.
7232 Update callers.
7233 * common/agent.h: Update declaration.
7234 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7235 Update.
7236 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7237
7238 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7239
7240 PR mi/13393
7241 * value.c (value_actual_type): New function.
7242 * value.h (value_actual_type): New declaration.
7243 * varobj.c (update_type_if_necessary): New function.
7244 (varobj_create): Call value_actual_type instead of
7245 value_type.
7246 (install_dynamic_child): distinct changed and type changed MI variable
7247 objects.
7248 (update_dynamic_varobj_children): Updated for install_dynamic_child
7249 change. All callers updated.
7250 (varobj_update): Support for MI variable object type change if
7251 the value changed and RTTI is used to determine the type.
7252 (create_child_with_value): Call value_actual_type instead of
7253 value_type.
7254 (adjust_value_for_child_access): Extended with a new parameter which
7255 specify whether the given value should be casted to enclosing type.
7256 All callers updated.
7257
7258 2012-04-14 Yao Qi <yao@codesourcery.com>
7259
7260 Import gnulib module inttypes from git
7261 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7262 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7263 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7264 gnulib/m4/inttypes-pri.m4
7265 * aclocal.m4, config.in, configure: Regenerated.
7266 * gnulib/Makefile.am: Update.
7267 * gnulib/Makefile.in: Update.
7268 * gnulib/m4/gnulib-cache.m4: Update.
7269 * gnulib/m4/gnulib-comp.m4: Update.
7270 * gnulib/inttypes.in.h: New.
7271 * gnulib/m4/inttypes-pri.m4: New.
7272 * gnulib/m4/inttypes.m4: New.
7273
7274 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7275
7276 * infrun.c (resume): Update PC address to the real PC after
7277 preparing to do displaced stepping.
7278
7279 2012-04-12 Doug Evans <dje@google.com>
7280
7281 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7282 All callers updated.
7283
7284 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7285
7286 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7287
7288 2012-04-12 Doug Evans <dje@google.com>
7289
7290 * dwarf2read.c (create_all_type_units): Renamed from
7291 create_debug_types_hash_table. All callers updated.
7292
7293 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7294 local type_sig to sig_type, type_offset to type_offset_in_tu.
7295 (hash_signatured_type): Renamed from hash_type_signature,
7296 all callers updated.
7297 (eq_signatured_type): Renamed from eq_type_signature,
7298 all callers updated.
7299 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7300 (process_enumeration_scope): Ditto.
7301 (lookup_signatured_type_at_offset): Ditto.
7302 (load_full_type_unit, read_signatured_type): Ditto.
7303
7304 2012-04-12 Yao Qi <yao@codesourcery.com>
7305
7306 * remote.c (async_remote_interrupt): Correct function name in
7307 debug message.
7308 (async_remote_interrupt_twice): Ditto.
7309
7310 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7311
7312 * source.c (find_and_open_source): Consistently pass resulting
7313 full path through xfullpath.
7314
7315 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7316
7317 Provide more specific displaced-stepping memory error message.
7318 * infrun.c (displaced_step_prepare): New variable status. Call
7319 target_read_memory instead of read_memory, provide more specific
7320 error message.
7321
7322 2012-04-11 Tristan Gingold <gingold@adacore.com>
7323
7324 PR gdb/13901
7325 * darwin-nat.c (darwin_execvp): Revert previous patch.
7326
7327 2012-04-11 Tristan Gingold <gingold@adacore.com>
7328
7329 PR gdb/13901
7330 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7331 in case of change.
7332
7333 2012-04-11 Tristan Gingold <gingold@adacore.com>
7334
7335 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7336 warning.
7337
7338 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7339
7340 New command 'explore' which helps explore values and types in
7341 scope.
7342 * NEWS: Add an entry about the new 'explore' command.
7343 * data-directory/Makefile.in: Add gdb/command/explore.py
7344 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7345 command using the GDB Python API.
7346
7347 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7348
7349 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7350 extension in jump target calculation.
7351
7352 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7353
7354 * mips-tdep.c (mips32_next_pc): Handle JALX.
7355
7356 2012-04-10 Yao Qi <yao@codesourcery.com>
7357
7358 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7359
7360 2012-04-10 Yao Qi <yao@codesourcery.com>
7361
7362 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7363 and gnulib/m4/gnulib-tool.m4.
7364
7365 2012-04-10 Doug Evans <dje@google.com>
7366
7367 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7368 (load_partial_dies): Clarify comment.
7369 (find_partial_die): Support rereading type units.
7370 Clarify CU handling, if we know offset is in CU, don't search for the
7371 containing CU. Add comment regarding memory waste.
7372
7373 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7374
7375 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7376 i386/x32-avx and i386/x32-avx-linux.
7377 (i386/x32-expedite): New.
7378 (i386/x32-linux-expedite): Likewise.
7379 (i386/x32-avx-expedite): Likewise.
7380 (i386/x32-avx-linux-expedite): Likewise.
7381 ($(outdir)/i386/x32.dat): Likewise.
7382 ($(outdir)/i386/x32-linux.dat): Likewise.
7383 ($(outdir)/i386/x32-avx.dat): Likewise.
7384 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7385
7386 * features/i386/x32-avx-linux.xml: New file.
7387 * features/i386/x32-avx.xml: Likewise.
7388 * features/i386/x32-core.xml: Likewise.
7389 * features/i386/x32-linux.xml: Likewise.
7390 * features/i386/x32.xml: Likewise.
7391
7392 * features/i386/x32-avx-linux.c: New. Generated.
7393 * features/i386/x32-avx.c: Likewise.
7394 * features/i386/x32-linux.c: Likewise.
7395 * features/i386/x32.c: Likewise.
7396 * regformats/i386/x32-avx-linux.dat: Likewise.
7397 * regformats/i386/x32-avx.dat: Likewise.
7398 * regformats/i386/x32-linux.dat: Likewise.
7399 * regformats/i386/x32.dat: Likewise.
7400
7401 2012-04-10 Tristan Gingold <gingold@adacore.com>
7402
7403 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7404 code to kill the inferior.
7405
7406 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7407
7408 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7409 defines.
7410 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7411 defines.
7412 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7413 (yyvsp): New defines.
7414 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7415 defines.
7416 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7417 defines.
7418 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7419 defines.
7420 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7421 defines.
7422 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7423 defines.
7424
7425 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7426
7427 * sparc64-tdep.c (sparc64_store_arguments)
7428 (sparc64_store_arguments): Fix coding style.
7429
7430 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7431
7432 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7433 complex floats, adjust some related comments and tighten a related
7434 assertion.
7435 (sparc64_extract_return_value): Handle complex floats.
7436
7437 2012-04-07 Doug Evans <dje@google.com>
7438
7439 * dwarf2read.c (load_partial_dies): Change condition to assert.
7440
7441 2012-04-06 Doug Evans <dje@google.com>
7442
7443 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7444 "mov %rsp,%rbp".
7445
7446 2012-04-05 Kevin Buettner <kevinb@redhat.com>
7447
7448 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7449 fencepost error.
7450 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7451 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7452 architecture.
7453
7454 2012-04-05 Keith Seitz <keiths@redhat.com>
7455
7456 * linespec.c (decode_compound): Remove.
7457 (enum offset_relative_sign): New enum.
7458 (struct line_offset): New struct.
7459 (struct linespec): New struct.
7460 (struct linespec_state): Move file_symtabs,
7461 user_filename, and user_function into struct linespec.
7462 Make result an anonymous struct holding vectors of
7463 symbolp and minsym_and_objfile_d.
7464 Add language member.
7465 (enum ls_token_type): New enum.
7466 (linespec_keywords): New array.
7467 (struct ls_token): New struct.
7468 (struct ls_parser): New struct.
7469 (linespec_lexer_lex_number): New function.
7470 (linespec_lexer_lex_keyword): New function.
7471 (is_ada_operator): New function.
7472 (skip_quote_char): New function.
7473 (copy_token_string): New function.
7474 (is_closing_quote_enclosed): New function.
7475 (find_parameter_list_end): New function.
7476 (linespec_lexer_lex_string): New function.
7477 (linespec_lexer_lex_one): New function.
7478 (linespec_lexer_consume_token): New function.
7479 (linespec_lexer_peek_token): New function.
7480 (cplusplus_error): Remove unused function.
7481 (find_methods): Update comment.
7482 (find_toplevel_char): Return const.
7483 (is_objc_method_format): Remove unused function.
7484 (find_toplevel_string): New function.
7485 (is_linespec_boundary): Remove.
7486 (symbol_not_found_error): New function.
7487 (find_method_overload_end): Remove function.
7488 (unexpected_linespec_error): New function.
7489 (keep_name_info): Remove.
7490 (linespec_parse_line_offset): New function.
7491 (linespec_parse_basic): New function.
7492 (canonicalize_linespec): New function.
7493 (decode_line_internal): Remove.
7494 (create_sals_line_offset): New function adapted from
7495 decode_all_digits.
7496 (convert_linespec_to_sals): New function.
7497 (parse_linespec): New function.
7498 (linespec_parser_new): New function.
7499 (linespec_state_destructor): Change parameter type to
7500 struct linespec_state *.
7501 Add language parameter.
7502 Remove freeing of moved members.
7503 (linespec_parser_delete): New function.
7504 (decode_line_full): Use parse_linespec and linespec_parser_new.
7505 (decode_line_1): Likewise.
7506 (decode_indirect): Rename to ...
7507 (linespec_expression_to_pc): ... this and rewrite
7508 to simply find CORE_ADDR, storing this result for later
7509 conversion to SALs.
7510 (locate_first_half): Remove.
7511 (deocde_objc): Add parameter LS.
7512 Initialize new struct collect_info members.
7513 Handle minimal symbols, too.
7514 (decode_compound): Delete.
7515 (lookup_prefix_sym): Rewrite.
7516 (compare_msymbols): New function.
7517 (find_method): Rewrite.
7518 Do not call cplusplus_error.
7519 (symtabs_from_filename): Rewrite.
7520 (collect_function_symbols): Delete.
7521 (find_function_symbols): Rewrite without ARGPTR-style
7522 processing.
7523 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7524 (decode_dollar): Adapted and renamed to ...
7525 (linespec_parse_variable): ... this.
7526 (find_linespec_symbols): New function.
7527 (decode_label): Adapted and renamed to ...
7528 (find_label_symbols): ... this.
7529 (decode_digits_list_mode): Add and use LS argument.
7530 (decode_digits_ordinary): Likewise.
7531 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7532 If in list mode, allow any symbol class. Otherwise, only
7533 permit LOC_BLOCK symbols.
7534 (minsym_found): Update comments.
7535 (search_minsyms_for_name): Do not convert the matching symbol
7536 into a SAL. Simply push the symbol and objfile into the
7537 result vector.
7538 (decode_variable): Delete. Contents adapted into
7539 find_linespec_symbols.
7540
7541 * cp-support.c (SKIP_SPACE): Remove.
7542 (operator_tokens): Remove unused global.
7543 (cp_validate_operator): Remove.
7544 * cp-support.h (cp_validate_operator): Remove declaration.
7545
7546 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7549 for TYPE_VPTR_FIELDNO.
7550 * valprint.c (valprint_check_validity): Make it global, move the
7551 function comment ...
7552 * value.h (valprint_check_validity): ... to this new declaration.
7553
7554 2012-04-02 Tristan Gingold <gingold@adacore.com>
7555
7556 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7557 the STATE32 api for i386 state.
7558 (i386_darwin_store_inferior_registers): Likewise.
7559
7560 2012-04-02 Tristan Gingold <gingold@adacore.com>
7561
7562 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7563 SS offset.
7564 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7565 format_string.
7566
7567 2012-04-02 Tristan Gingold <gingold@adacore.com>
7568
7569 PR gdb/13901
7570 * darwin-nat.c (darwin_execvp): Set binary preference.
7571
7572 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7573
7574 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7575
7576 2012-03-30 Tom Tromey <tromey@redhat.com>
7577
7578 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7579 of TRY_CATCH. Fix error handling.
7580 * python/py-value.c (convert_value_from_python): Move 'old'
7581 declaration to innermost scope.
7582
7583 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7584 Andrey Smirnov <andrew.smirnov@gmail.com>
7585
7586 -Wshadow warning fix.
7587 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7588 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7589 Adjust code accordingly.
7590
7591 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7592
7593 * ada-lang.c (symbol_completion_add): Rename parameter
7594 "encoded" into "encoded_p". Ajust code and documentation
7595 accordingly.
7596
7597 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7598 Andrey Smirnov <andrew.smirnov@gmail.com>
7599
7600 -Wshadow warning fix.
7601 * ada-lang.c (symbol_completion_add): Rename parameter
7602 "wild_match" into wild_match_p. Update code and documentation
7603 accordingly.
7604
7605 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7606
7607 * ada-lang.c (symbol_completion_match): Rename parameter
7608 "encoded" into "encoded_p". Ajust code and documentation
7609 accordingly.
7610
7611 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7612 Andrey Smirnov <andrew.smirnov@gmail.com>
7613
7614 -Wshadow warning fix.
7615 * ada-lang.c (symbol_completion_match): Rename parameter
7616 "wild_match" into "wild_match_p". Adjust code and function
7617 documentation accordingly.
7618
7619 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7620 Andrey Smirnov <andrew.smirnov@gmail.com>
7621
7622 -Wshadow warning fix.
7623 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7624 "symbol_info" into "info". Adjust code accordingly.
7625 (ada_lookup_symbol): Likewise.
7626
7627 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7628
7629 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7630 of this function's documentation.
7631
7632 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7633 Andrey Smirnov <andrew.smirnov@gmail.com>
7634
7635 -Wshadow warning fix.
7636 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7637 variable into "wild_match_p". Adjust code accordingly.
7638
7639 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7640 Andrey Smirnov <andrew.smirnov@gmail.com>
7641
7642 -Wshadow warning fix.
7643 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7644 parameter into "wild_match_p". Adjust code accordingly.
7645 Document this parameter in the function description.
7646
7647 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7648 Andrey Smirnov <andrew.smirnov@gmail.com>
7649
7650 -Wshadow warning fix.
7651 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7652 "wild_match" parameter to "wild_match_p" (-Wshadow).
7653
7654 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7655
7656 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7657 in function documentation.
7658
7659 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7660 Andrey Smirnov <andrew.smirnov@gmail.com>
7661
7662 -Wshadow warning fix.
7663 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7664 variable into wild_match_p. Adjust code accordingly.
7665
7666 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7667 Andrey Smirnov <andrew.smirnov@gmail.com>
7668
7669 * ada-valprint.c (ada_val_print_1): Move the code handling
7670 TYPE_CODE_ENUM inside its own lexical block. Declare
7671 variables len and val there, instead of in the function's
7672 top level block. Avoid declaring deref_val again in a way
7673 that shadows another variable of the same name declared
7674 in one of the up-level blocks. Just re-use the up-level
7675 variable instead.
7676
7677 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7678
7679 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7680 Replace block_found argument by symbol_info. Adjust
7681 implementation accordingly. Add function documentation.
7682 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7683 Fix documentation.
7684 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7685 * ada-exp.y (write_object_renaming): Adjust to new
7686 ada_lookup_encoded_symbol API.
7687
7688 2012-03-29 Joel Brobecker <brobecker@adacore.com>
7689
7690 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7691 documentation.
7692
7693 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
7694
7695 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7696 (v850_register_name): Add the mpu and fpu register names.
7697 (v850e_register_name): Add the mpu and fpu register names.
7698 (v850e2_register_name): New function.
7699 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7700 bfd_mach_v850e2v3.
7701
7702 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7703
7704 * NEWS: Add entry for Ada varobj support.
7705
7706 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7707
7708 * varobj.c (default_value_is_changeable_p): New function,
7709 extracted from varobj_value_is_changeable_p. Add declaration.
7710 (ada_value_is_changeable_p): New function, extracted from
7711 varobj_value_is_changeable_p. Add declaration.
7712 (struct language_specific): New field "value_is_changeable_p".
7713 (languages): Add entries for new field.
7714 (varobj_create): Set language before calling install_new_value.
7715 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7716 "value_is_changeable_p" language callback.
7717
7718 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7719
7720 * ada-varobj.h, ada-varobj.c: New files.
7721 * Makefile.in (SFILES): Add ada-varobj.c.
7722 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7723 (COMMON_OBS): Add ada-varobj.o.
7724
7725 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7726
7727 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7728 (struct language_specific): New field "value_has_mutated".
7729 (languages): Set field "value_has_mutated" in each entry of array.
7730 (varobj_value_has_mutated): New function.
7731 (varobj_udpdate): Add handling of type mutation.
7732 (value_of_root): Add handling of type mutation.
7733 (ada_value_has_mutated): New function.
7734
7735 2012-03-28 Pedro Alves <palves@redhat.com>
7736
7737 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7738 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7739
7740 2012-03-28 Tom Tromey <tromey@redhat.com>
7741
7742 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7743 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7744 before returning.
7745
7746 2012-03-28 Tom Tromey <tromey@redhat.com>
7747
7748 * .dir-locals.el: New file.
7749
7750 2012-03-28 Pedro Alves <palves@redhat.com>
7751
7752 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7753
7754 2012-03-28 Joel Brobecker <brobecker@adacore.com>
7755
7756 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7757 handling for r0.
7758
7759 2012-03-27 Pedro Alves <palves@redhat.com>
7760
7761 Eliminate struct ui_stream.
7762
7763 * ui-out.h (struct ui_stream): Delete.
7764 (ui_out_field_stream): Adjust prototype.
7765 (ui_out_stream_new, ui_out_stream_delete)
7766 (make_cleanup_ui_out_stream_delete): Delete declarations.
7767 * ui-out.c (ui_out_field_stream): Change prototype to take a
7768 ui_file instead of a ui_stream. Adjust.
7769 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7770 (make_cleanup_ui_out_stream_delete): Delete.
7771 * breakpoint.c (print_breakpoint_location)
7772 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7773 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7774 * disasm.c (dump_insns): Ditto.
7775 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7776 prototype.
7777 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7778 ui_stream/ui_out_stream_new.
7779 * infcmd.c (print_return_value): Ditto.
7780 * osdata.c (info_osdata_command): Don't allocate a local
7781 ui_stream.
7782 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7783 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7784 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7785 allocate a local ui_stream.
7786 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7787 instead of ui_stream/ui_out_stream_new.
7788 (list_args_or_locals): Don't allocate a local ui_stream.
7789 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7790 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7791 ui_stream/ui_out_stream_new.
7792 * cli/cli-setshow.c (do_setshow_command): Ditto.
7793
7794 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
7795
7796 * arm-linux-tdep.c (arm_linux_init_abi): Call
7797 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7798 * arm-tdep.c (arm_process_record): New function.
7799 (deallocate_reg_mem): New function.
7800 (decode_insn): New function.
7801 (thumb_record_branch): New function.
7802 (thumb_record_ldm_stm_swi(): New function.
7803 (thumb_record_misc): New function.
7804 (thumb_record_ld_st_stack): New function.
7805 (thumb_record_ld_st_imm_offset): New function.
7806 (thumb_record_ld_st_reg_offset(): New function.
7807 (thumb_record_add_sub_cmp_mov): New function.
7808 (thumb_record_shift_add_sub): New function.
7809 (arm_record_coproc_data_proc): New function.
7810 (arm_record_coproc): New function.
7811 (arm_record_b_bl): New function.
7812 (arm_record_ld_st_multiple): New function.
7813 (arm_record_ld_st_reg_offset): New function.
7814 (arm_record_ld_st_imm_offset): New function.
7815 (arm_record_data_proc_imm): New function.
7816 (arm_record_data_proc_misc_ld_str): New function.
7817 (arm_record_extension_space): New function.
7818 (arm_record_strx): New function.
7819 (sbo_sbz): New function.
7820 (struct insn_decode_record): New structure for arm insn record.
7821 (REG_ALLOC): New macro for reg allocations.
7822 (MEM_ALLOC): New macro for memory allocations.
7823 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7824
7825 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7826
7827 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7828 (store_register): Likewise.
7829
7830 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
7831
7832 * MAINTAINERS (Write After Approval): Add myself to the list.
7833
7834 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7835
7836 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7837 Describe also the option "auto".
7838
7839 2012-03-22 Richard Henderson <rth@redhat.com>
7840
7841 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7842 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7843
7844 2012-03-22 Richard Henderson <rth@redhat.com>
7845
7846 * jit.c (jit_read_code_entry): Compute alignment and offset of
7847 int64_t member before computing entry_size.
7848
7849 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7850
7851 Python scripting: Add new method Value.referenced_value to
7852 gdb.Value which can dereference pointer as well as reference
7853 values.
7854 * NEWS: Add entry under 'Python scripting' about the new method
7855 Value.referenced_value on gdb.Value objects.
7856 * python/py-value.c (valpy_referenced_value): New function
7857 defining a new method on gdb.Value objects which can dereference
7858 pointer and reference values.
7859
7860 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7861
7862 * MAINTAINERS (Write After Approval): Add myself to the list.
7863
7864 2012-03-21 Kevin Buettner <kevinb@redhat.com>
7865
7866 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7867 in addition to "main".
7868
7869 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7870
7871 * expression.h (op_name): Add declaration.
7872 * expprint.c (op_name): Remove declaration. Make non-static.
7873 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7874
7875 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7876
7877 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7878 of struct siginfo.
7879 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7880 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7881 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7882 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7883 (linux_nat_get_siginfo): Likewise.
7884 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7885 (linux_nat_get_siginfo): Likewise.
7886 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7887 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7888 * procfs.c (gdb_siginfo_t): Likewise.
7889
7890 2012-03-21 Mike Frysinger <vapier@gentoo.org>
7891
7892 * .gitignore: Ignore more files.
7893
7894 2012-03-20 Pedro Alves <palves@redhat.com>
7895
7896 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7897 returns.
7898
7899 2012-03-20 Yao Qi <yao@codesourcery.com>
7900
7901 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7902 comment.
7903
7904 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7905
7906 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7907 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7908 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7909 sect_offset.
7910 * dwarf2expr.h (cu_offset, sect_offset): New types.
7911 (struct dwarf_expr_context_funcs) <dwarf_call>
7912 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7913 sect_offset.
7914 (struct dwarf_expr_context) <len>: Improve the comment.
7915 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7916 cu_offset and sect_offset.
7917 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7918 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7919 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7920 * dwarf2loc.h: Include dwarf2expr.h.
7921 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7922 and sect_offset.
7923 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7924 Improve the comment.
7925 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7926 (struct signatured_type, struct line_header, struct partial_die_info)
7927 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7928 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7929 (get_die_type_at_offset, create_cus_from_index)
7930 (create_signatured_type_table_from_index, dw2_get_file_names)
7931 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7932 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7933 (create_debug_types_hash_table, process_psymtab_comp_unit)
7934 (load_partial_comp_unit, create_all_comp_units)
7935 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7936 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7937 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7938 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7939 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7940 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7941 (find_partial_die, read_attribute_value, lookup_die_type)
7942 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7943 (is_ref_attr): New function comment.
7944 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7945 Use cu_offset and sect_offset.
7946 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7947 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7948 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7949 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7950 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7951 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7952 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7953 sect_offset.
7954
7955 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 Code cleanup.
7958 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7959 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7960 with xfree.
7961 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7962
7963 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 * NEWS: Describe new options --init-command=FILE, -ix and
7966 --init-eval-command=COMMAND, -iex.
7967 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7968 CMDARG_INIT_COMMAND.
7969 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7970 "init-command", "init-eval-command", "ix" and "iex" to the variable
7971 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7972 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7973 (print_gdb_help): Describe --init-command=FILE, -ix and
7974 --init-eval-command=COMMAND, -iex.
7975
7976 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7977
7978 Code cleanup.
7979 * main.c (struct cmdarg): Move it here from main. Add more comments.
7980 (cmdarg_s, VEC (cmdarg_s)): New.
7981 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7982 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7983 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7984 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7985 of CMDARG.
7986
7987 2012-03-19 Tom Tromey <tromey@redhat.com>
7988
7989 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7990
7991 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7992
7993 PR symtab/13777
7994 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7995 GCC >=4.5.
7996
7997 2012-03-16 Chris January <chris.january@allinea.com>
7998
7999 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8000 of clear.
8001
8002 2012-03-16 Chris January <chris.january@allinea.com>
8003
8004 * source.c (add_path): Use memmove instead of strcpy because the
8005 strings overlap.
8006
8007 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8008
8009 * value.h (set_value_parent): Add declaration.
8010 * value.c (set_value_parent): New function.
8011 (value_address): If VALUE->PARENT is not NULL, then use it as
8012 the base address instead of VALUE->LOCATION.address.
8013 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8014 the same as OBJ's address. Adjust V's offset accordingly.
8015 Set V's parent.
8016
8017 2012-03-16 Gary Benson <gbenson@redhat.com>
8018
8019 PR breakpoints/10738
8020 * dwarf2read.c (use_deprecated_index_sections): New global.
8021 (struct partial_die_info): New member may_be_inlined.
8022 (read_partial_die): Set may_be_inlined where appropriate.
8023 (add_partial_subprogram): Add partial symbols for partial
8024 DIEs that may be inlined.
8025 (new_symbol_full): Add inlined subroutines to the current
8026 scope.
8027 (write_psymtabs_to_index): Bump version number.
8028 (dwarf2_read_index): Read only version 6 indices unless
8029 use_deprecated_index_sections is set.
8030 * linespec.c (symbol_and_data_callback): New structure.
8031 (iterate_inline_only): New function.
8032 (iterate_over_all_matching_symtabs): New argument
8033 "include_inline". If nonzero, also call the callback for
8034 symbols representing inlined subroutines.
8035 (lookup_prefix_sym): Pass extra argument to the above.
8036 (find_function_symbols): Likewise.
8037 (add_matching_symbols_to_info): Likewise.
8038 * NEWS: Mention that GDB can now set breakpoints on inlined
8039 functions.
8040
8041 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8042
8043 * p-typeprint.c (pascal_type_print_method_args):
8044 Fix display of parameter of methods.
8045
8046 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8047
8048 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8049 Add missing prototype.
8050
8051 2012-03-16 Yao Qi <yao@codesourcery.com>
8052 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 Fix false compilation warning.
8055 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8056
8057 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8058 Pedro Alves <pedro@codesourcery.com>
8059
8060 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8061 (arm_register_g_packet_guesses): New function.
8062 (arm_gdbarch_init): Don't force a target description with
8063 registers when the executable is detected as M-profile. Instead
8064 set gdbarch->tdep->is_m. Register `g' packet guesses.
8065 (_initialize_arm_tdep): Initialize the new target description.
8066 * features/arm-with-m-fpa-layout.xml: New description.
8067 * features/arm-with-m-fpa-layout.c: New, generated.
8068
8069 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8070
8071 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8072 Update function description.
8073 (insert_bp_location): Do not wipe bl->target_info out.
8074 * mem-break.c: #include "gdb_string.h".
8075 (default_memory_insert_breakpoint): Do not call target_read_memory
8076 with a pointer to the breakpoint's shadow_contents buffer. Use
8077 a local buffer instead.
8078 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8079
8080 2012-03-15 Tom Tromey <tromey@redhat.com>
8081
8082 * NEWS: Mention "info vtbl", not "info vtable".
8083 * cp-support.c (info_vtbl_command): Fix comment.
8084 (_initialize_cp_support): Fix text.
8085
8086 2012-03-15 Tom Tromey <tromey@redhat.com>
8087
8088 * cp-valprint.c (cp_print_value_fields): Use
8089 print_function_pointer_address for vtable slot.
8090
8091 2012-03-15 Tom Tromey <tromey@redhat.com>
8092
8093 * gnu-v3-abi.c (struct value_and_voffset): New.
8094 (hash_value_and_voffset, eq_value_and_voffset)
8095 (compare_value_and_voffset, compute_vtable_size)
8096 (print_one_vtable, gnuv3_print_vtable): New functions.
8097 (init_gnuv3_ops): Initialize 'print_vtable' field.
8098 * cp-support.c (info_vtbl_command): New function.
8099 (_initialize_cp_support): Add "info vtbl".
8100 * cp-abi.h (cplus_print_vtable): Declare.
8101 (struct cp_abi_ops) <print_vtable>: New field.
8102 * cp-abi.c (cplus_print_vtable): New function.
8103 * NEWS: Update.
8104
8105 2012-03-15 Tom Tromey <tromey@redhat.com>
8106
8107 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8108 iterate_over_symbols.
8109
8110 2012-03-14 Doug Evans <dje@google.com>
8111
8112 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8113 DW_OP_GNU_parameter_ref.
8114
8115 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 Fix double prompt of 'interpreter-exec mi'.
8118 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8119 (mi_interpreter_resume): use it.
8120 (mi_execute_command_input_handler): New function.
8121 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8122 mi_execute_command_input_handler.
8123
8124 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8125
8126 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8127 prototype.
8128 (darwin_debug_port_info): Make static.
8129 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8130 * machoread.c (_initialize_machoread): Add prototype.
8131 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8132 (i386_darwin_set_control, i386_darwin_get_control)
8133 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8134 i386_darwin_get_status, i386_darwin_get_control):
8135 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8136
8137 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8138
8139 * ax-gdb.c (gen_usual_unary): Remove special handling of
8140 enum and bool types.
8141
8142 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8143
8144 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8145
8146 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8147
8148 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8149
8150 2012-03-13 Chris January <chris.january@allinea.com>
8151
8152 * aix-thread.c (fill_sprs): Store the floating point registers
8153 at the correct offsets into vals.
8154
8155 2012-03-13 Doug Evans <dje@google.com>
8156
8157 * NEWS: Mention symbol-reloading has been deleted.
8158 * symfile.c (symbol_reloading): Delete.
8159 (show_symbol_reloading): Delete.
8160 (_initialize_symfile): Delete set/show symbol-reloading.
8161
8162 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8163 read_in_chain until we have successfully read it in.
8164 (load_full_comp_unit): Ditto.
8165 (read_signatured_type): Add comment.
8166
8167 2012-03-13 Chris January <chris.january@allinea.com>
8168
8169 * stabsread.c (fix_common_block): Change type of valu argument
8170 to CORE_ADDR.
8171
8172 2012-03-13 Chris January <chris.january@allinea.com>
8173
8174 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8175 instruction.
8176
8177 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 * common/linux-procfs.c (linux_proc_get_int): New, from
8180 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8181 field.
8182 (linux_proc_get_tgid): Only call linux_proc_get_int.
8183 (linux_proc_get_tracerpid): New.
8184 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8185 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8186 linux_proc_pid_has_state.
8187 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8188 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8189 (linux_ptrace_attach_warnings): New.
8190 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8191 New declaration.
8192 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8193 (linux_nat_attach): New variables ex, buffer, message and message_s.
8194 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8195
8196 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8197
8198 * Makefile.in (linux-ptrace.o): New.
8199 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8200 from linux-nat.c.
8201 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8202 * common/linux-ptrace.c: New file.
8203 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8204 * config/arm/linux.mh: Likewise.
8205 * config/i386/linux.mh: Likewise.
8206 * config/i386/linux64.mh: Likewise.
8207 * config/ia64/linux.mh: Likewise.
8208 * config/m32r/linux.mh: Likewise.
8209 * config/m68k/linux.mh: Likewise.
8210 * config/mips/linux.mh: Likewise.
8211 * config/pa/linux.mh: Likewise.
8212 * config/powerpc/linux.mh: Likewise.
8213 * config/powerpc/ppc64-linux.mh: Likewise.
8214 * config/powerpc/spu-linux.mh: Likewise.
8215 * config/s390/s390.mh: Likewise.
8216 * config/sparc/linux.mh: Likewise.
8217 * config/sparc/linux64.mh: Likewise.
8218 * config/xtensa/linux.mh: Likewise.
8219 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8220 common/linux-procfs.c.
8221 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8222
8223 2012-03-13 Hui Zhu <teawater@gmail.com>
8224 Pedro Alves <palves@redhat.com>
8225
8226 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8227 CREATE_BREAKPOINT_FLAGS_INSERTED.
8228 (create_breakpoint_sal, create_breakpoints_sal)
8229 (base_breakpoint_create_breakpoints_sal)
8230 (tracepoint_create_breakpoints_sal)
8231 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8232 down.
8233 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8234 (ftrace_command, strace_command): Adjust.
8235 (create_tracepoint_from_upload): Pass
8236 CREATE_BREAKPOINT_FLAGS_INSERTED.
8237 * breakpoint.h (enum breakpoint_create_flags): New.
8238 (create_breakpoint): New flags parameter.
8239 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8240 * python/py-breakpoint.c (bppy_init): Adjust.
8241 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8242 * spu-tdep.c (spu_catch_start): Adjust.
8243
8244 2012-03-13 Pedro Alves <palves@redhat.com>
8245 Hui Zhu <teawater@gmail.com>
8246 Yao Qi <yao@codesourcery.com>
8247
8248 * remote.c (struct remote_state): New field `starting_up'.
8249 (remote_start_remote): Set and clear it.
8250 (remote_can_download_tracepoint): If starting up, return false.
8251
8252 2012-03-13 Yao Qi <yao@codesourcery.com>
8253
8254 * inferior.h (struct inferior): Remove fields any_syscall_count,
8255 syscalls_counts and total_syscalls_count. Move them to new
8256 struct catch_syscall_inferior_data in breakpoint.c.
8257 * breakpoint.c: Call DEF_VEC_I(int).
8258 (struct catch_syscall_inferior_data): New.
8259 (get_catch_syscall_inferior_data): New.
8260 (catch_syscall_inferior_data_cleanup): New.
8261 (insert_catch_syscall): Update to access data in
8262 struct catch_syscall_inferior_data.
8263 (insert_catch_syscall): Likewise.
8264 (remove_catch_syscall): Likewise.
8265 (remove_catch_syscall): Likewise.
8266 (is_syscall_catchpoint_enabled): Likewise.
8267 (add_catch_command): Likewise.
8268 (_initialize_breakpoint): Register cleanup.
8269 * breakpoint.h: Removed DEF_VEC_I(int).
8270 * dwarf2loc.c: Call DEF_VEC_I(int).
8271 * mi/mi-main.c: Likewise.
8272
8273 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8274
8275 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8276
8277 2012-03-12 Chris January <chris.january@allinea.com>
8278
8279 * aix-thread.c (_initialize_aix_thread): Add prototype.
8280 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8281 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8282
8283 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8284
8285 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8286 include of "amd64-nat.h".
8287
8288 2012-03-12 Tom Tromey <tromey@redhat.com>
8289
8290 * buildsym.c (record_pending_block): Now static.
8291 * buildsym.h: (record_pending_block): Remove.
8292
8293 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8294
8295 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8296
8297 2012-03-09 Tom Tromey <tromey@redhat.com>
8298
8299 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8300 producer_is_gxx_lt_4_6>: New fields.
8301 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8302
8303 2012-03-09 Tom Tromey <tromey@redhat.com>
8304
8305 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8306
8307 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8308
8309 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8310 prototype.
8311
8312 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8313
8314 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8315
8316 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8317
8318 Fix -Wmissing-prototypes build.
8319 * arm-linux-nat.c (get_thread_id): Make it static.
8320 * xtensa-linux-nat.c (get_thread_id): Likewise.
8321
8322 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8323
8324 * server.c (process_point_options): If a conditional expression
8325 is found, only print a message if remote_debug is nonzero.
8326
8327 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8328
8329 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8330 of internal error for unknown/unsupported types.
8331
8332 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8333
8334 Fix CU relative vs. absolute DIE offsets.
8335 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8336 offset to offset_in_cu.
8337 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8338 TYPE_OFFSET.
8339 (dwarf2_fetch_die_location_block): Rename parameter offset to
8340 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8341
8342 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8343
8344 * libunwind-frame.c: Rename to ...
8345 * ia64-libunwind-tdep.c: ... here.
8346 * libunwind-frame.h: Rename to ...
8347 * ia64-libunwind-tdep.h: ... here.
8348 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8349 ia64-libunwind-tdep.h.
8350 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8351 * README (--with-libunwind): Rename to ...
8352 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8353 * config.in: Regenerate.
8354 * configure: Regenerate.
8355 * configure.ac: New option --with-libunwind-ia64, make the
8356 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8357 Remove AC_DEFINE for HAVE_LIBUNWIND.
8358 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8359 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8360 Rename libunwind-frame in the general comment.
8361 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8362 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8363 Move forward declarations inside #ifndef. Rename libunwind-frame in
8364 the general comment.
8365 * ia64-tdep.c: Rename libunwind-frame.h #include to
8366 ia64-libunwind-tdep.h.
8367 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8368 (ia64_libunwind_descr): Rename libunwind-frame to
8369 ia64-libunwind-tdep in these function comments.
8370 * ia64-tdep.h: Rename libunwind-frame.h #include to
8371 ia64-libunwind-tdep.h.
8372 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8373 ia64-libunwind-tdep in that data comment.
8374
8375 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8376
8377 * libunwind-frame.h (struct frame_unwind): New declaration.
8378
8379 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8380
8381 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8382 "set breakpoint condition-evaluation" command.
8383
8384 2012-03-08 Tristan Gingold <gingold@adacore.com>
8385
8386 * sparc-stub.c: Move to stubs/
8387 * sh-stub.c: Likewise.
8388 * m68k-stub.c: Likewise.
8389 * m32r-stub.c: Likewise.
8390 * i386-stub.c: Likewise.
8391
8392 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8393
8394 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8395 linux_get_siginfo_type.
8396
8397 * m68klinux-nat.c: Include "gdb_proc_service.h".
8398 (PTRACE_GET_THREAD_AREA): Define.
8399 (ps_get_thread_area): New function.
8400
8401 2012-03-08 Yao Qi <yao@codesourcery.com>
8402
8403 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8404 `xsnprintf'.
8405 (remote_query_attached): Likewise.
8406 (remote_static_tracepoint_marker_at): Likewise.
8407 (remote_set_permissions): Likewise.
8408 (remote_detach_1, extended_remote_attach_1): Likewise.
8409 (send_g_packet, remote_vkill): Likewise.
8410 (extended_remote_disable_randomization): Likewise.
8411 (remote_add_target_side_condition): Likewise.
8412 (remote_insert_breakpoint): Likewise.
8413 (remote_remove_breakpoint): Likewise.
8414 (remote_insert_watchpoint): Likewise.
8415 (remote_remove_watchpoint): Likewise.
8416 (remote_insert_hw_breakpoint): Likewise.
8417 (remote_insert_hw_breakpoint): Likewise.
8418 (remote_remove_hw_breakpoint): Likewise.
8419 (remote_download_command_source): Likewise.
8420 (remote_download_tracepoint): Likewise.
8421 (remote_download_trace_state_variable): Likewise.
8422 (remote_disable_tracepoint): Likewise.
8423 (remote_trace_set_readonly_regions): Likewise.
8424 (remote_get_tracepoint_status): Likewise.
8425 (remote_trace_find): Likewise.
8426 (remote_get_trace_state_variable_value): Likewise.
8427 (remote_set_disconnected_tracing): Likewise.
8428 (remote_set_circular_trace_buffer): Likewise.
8429 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8430 (remote_use_agent): Likewise.
8431 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8432 Update callers.
8433
8434 2012-03-07 Pedro Alves <palves@redhat.com>
8435
8436 * NEWS: Mention QProgramSignals.
8437 * inferior.h (update_signals_program_target): Declare.
8438 * infrun.c: (update_signals_program_target): New.
8439 (handle_command): Update the target of the new program signals
8440 array changes.
8441 * remote.c (PACKET_QProgramSignals): New enum.
8442 (last_program_signals_packet): New global.
8443 (remote_program_signals): New.
8444 (remote_start_remote): Update the target with the program signals
8445 list.
8446 (remote_protocol_features): Add entry for QPassSignals.
8447 (remote_open_1): Free anc clear last_program_signals_packet.
8448 (init_remote_ops): Install remote_program_signals.
8449 * target.c (update_current_target): Adjust.
8450 (target_program_signals): New.
8451 * target.h (struct target_ops) <to_program_signals>: New field.
8452 (target_program_signals): Declare.
8453
8454 2012-03-07 Pedro Alves <palves@redhat.com>
8455
8456 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8457 extensions.
8458
8459 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8460
8461 * m68klinux-nat.c (getregs_supplies): Make static.
8462 (getfpregs_supplies): Likewise.
8463 (have_ptrace_getregs): Likewise.
8464
8465 2012-03-06 Joel Brobecker <brobecker@adacore.com>
8466
8467 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8468 in call to get_die_type_at_offset.
8469
8470 2012-03-06 Stan Shebs <stan@codesourcery.com>
8471
8472 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8473 * mi/mi-cmd-disas.c: Ditto.
8474 * mi/mi-cmd-env.c: Ditto.
8475 * mi/mi-cmd-file.c: Ditto.
8476 * mi/mi-cmd-stack.c: Ditto.
8477 * mi/mi-cmd-target.c: Ditto.
8478 * mi/mi-cmd-var.c: Ditto.
8479 * mi/mi-cmds.c: Ditto.
8480 * mi/mi-cmds.h: Ditto.
8481 * mi/mi-console.c: Ditto.
8482 * mi/mi-getopt.c: Ditto.
8483 * mi/mi-getopt.h: Ditto.
8484 * mi/mi-interp.c: Ditto.
8485 * mi/mi-main.c: Ditto.
8486 * mi/mi-out.c: Ditto.
8487 * mi/mi-parse.c: Ditto.
8488 * mi/mi-parse.h: Ditto.
8489 * mi/mi-symbol-cmds.c: Ditto.
8490
8491 * mi/mi-getopt.h: Move mi_opt struct up.
8492 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8493 return.
8494 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8495
8496 2012-03-06 Tom Tromey <tromey@redhat.com>
8497
8498 * proc-service.c (ps_pglobal_lookup): Set the current program
8499 space.
8500
8501 2012-03-06 Pedro Alves <palves@redhat.com>
8502
8503 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8504
8505 2012-03-05 Joel Brobecker <brobecker@adacore.com>
8506
8507 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8508
8509 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8510
8511 Code cleanup.
8512 * common/linux-osdata.c (linux_common_core_of_thread): New function
8513 comment.
8514 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8515 call by linux_common_core_of_thread.
8516 (linux_nat_core_of_thread_1): Remove.
8517 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8518 * linux-thread-db.c: Include linux-osdata.h.
8519 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8520 linux_common_core_of_thread.
8521
8522 2012-03-05 Tom Tromey <tromey@redhat.com>
8523
8524 * value.c (value_primitive_field): Don't fetch contents for
8525 non-virtual bases.
8526
8527 2012-03-05 Tom Tromey <tromey@redhat.com>
8528
8529 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8530
8531 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
8532
8533 * s390-nat.c: Include "gregset.h".
8534
8535 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8536
8537 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8538 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8539 (libunwind_load): New variable so_error, use it for dlerror. Try to
8540 load also LIBUNWIND_SO_7.
8541
8542 2012-03-05 Pedro Alves <palves@redhat.com>
8543
8544 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8545 is not NULL, and remove resulting dead code.
8546
8547 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8548
8549 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8550 prologue to sh_analyze_prologue.
8551 (sh_analyze_prologue): Make better use of such an upper limit, and
8552 generally be more cautious about accessing memory.
8553
8554 2012-03-05 Tom Tromey <tromey@redhat.com>
8555
8556 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8557 _initialize_ia64_hpux_tdep.
8558
8559 2012-03-05 Pedro Alves <palves@redhat.com>
8560
8561 PR gdb/13766
8562
8563 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8564 the register state is clear, supply explicit zero, instead of
8565 marking the register unavailable.
8566
8567 2012-03-05 Tristan Gingold <gingold@adacore.com>
8568
8569 * NEWS: Mention OpenVMS ia64 new target.
8570
8571 2012-03-05 Tristan Gingold <gingold@adacore.com>
8572
8573 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8574 (ia64_unw_accessors, ia64_unw_rse_accessors)
8575 (ia64_libunwind_descr): Declare.
8576 * ia64-vms-tdep.c: New file.
8577 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8578 (ia64_libunwind_descr): Make them public.
8579 * configure.tgt: Add ia64-*-*vms*.
8580 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8581 (ALLDEPFILES): Add ia64-vms-tdep.c
8582
8583 2012-03-05 Tristan Gingold <gingold@adacore.com>
8584
8585 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8586 * remote.c (PACKET_qXfer_uib): New enum value.
8587 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8588 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8589 (_initialize_remote): Call add_packet_config_cmd for
8590 xfer:uib packet.
8591
8592 2012-03-05 Tristan Gingold <gingold@adacore.com>
8593
8594 * osabi.c (gdb_osabi_names): Add OpenVMS.
8595 (generic_elf_osabi_sniffer): Likewise.
8596 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8597
8598 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8599
8600 Removed unused code.
8601 * libunwind-frame.c (libunwind_frame_unwind)
8602 (libunwind_frame_base_address): Remove.
8603 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8604
8605 2012-03-04 Yao Qi <yao@codesourcery.com>
8606
8607 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8608 remove trailing new line.
8609 (agent_run_command, agent_run_command): Add _ markup.
8610 (agent_capability_check): Likewise.
8611
8612 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8613
8614 * breakpoint.c (set_condition_evaluation_mode): Set
8615 CONDITION_EVALUATION_MODE unconditionally.
8616
8617 2012-03-03 Yao Qi <yao@codesourcery.com>
8618
8619 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8620 * common/agent.h: Update declaration.
8621 * inf-child.c (inf_child_use_agent): New.
8622 (inf_child_can_use_agent): New.
8623 (inf_child_target): Initialize fields `to_use_agent'
8624 and `to_can_use_agent'.
8625 * agent.c (agent_new_objfile): New.
8626 (_initialize_agent): Add agent_new_objfile to new_objfile
8627 observer.
8628
8629 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8630 New.
8631 (linux_target_install_ops): Initialize field
8632 `to_static_tracepoint_markers_by_strid'.
8633 * remote.c (free_current_marker): Move it to ...
8634 * tracepoint.c (free_current_marker): ... here. New.
8635 (cleanup_target_stop): New.
8636 * tracepoint.h: Declare free_current_marker.
8637 * NEWS: Add one entry about `info static-tracepoint-marker'.
8638
8639 2012-03-03 Yao Qi <yao@codesourcery.com>
8640
8641 * common/agent.c (agent_loaded_p): New.
8642 (agent_look_up_symbols): New global.
8643 * common/agent.h: Declare agent_loaded_p.
8644
8645 2012-03-03 Yao Qi <yao@codesourcery.com>
8646
8647 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8648 (agent_capability_check, agent_capability_invalidate): New.
8649 (symbol_list): New array element.
8650 * common/agent.h (enum agent_capa): New.
8651 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8652
8653 2012-03-03 Yao Qi <yao@codesourcery.com>
8654
8655 * target.h (struct target_ops) <to_use_agent>: New field.
8656 (struct target_ops) <to_can_use_agent>: New field.
8657 (target_use_agent, target_can_use_agent): New macro.
8658 * target.c (update_current_target): Update.
8659 * remote.c: New enum `PACKET_QAgent'.
8660 (remote_protocol_features): Add a new element.
8661 (remote_use_agent, remote_can_use_agent): New.
8662 (init_remote_ops): Initialize field `can_use_agent' with
8663 remote_can_use_agent. Intiailize field `use_agent' with
8664 remote_use_agent.
8665 * common/agent.c (use_agent): New global.
8666 * common/agent.h: Declare it.
8667 * tracepoint.c (info_static_tracepoint_markers_command): Add
8668 comment.
8669 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8670 (COMMON_OBS): Add common/agent.o and agent.o
8671 (common-agent.o): New rule.
8672 * agent.c: New.
8673
8674 2012-03-03 Yao Qi <yao@codesourcery.com>
8675
8676 * common/agent.c: New.
8677 * common/agent.h: New.
8678 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8679 AC_CHECK_HEADERS.
8680 * configure, configh.in: Regenerated.
8681
8682 2012-03-02 Kevin Buettner <kevinb@redhat.com>
8683
8684 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8685 unless it exists for this architecture.
8686
8687 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8688
8689 * language.h (struct language_defn): New "method" la_read_var_value.
8690 * findvar.c: #include "language.h".
8691 (default_read_var_value): Renames read_var_value. Rewrite
8692 function description.
8693 (read_var_value): New function.
8694 * value.h (default_read_var_value): Add prototype.
8695 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8696 New functions.
8697 (ada_language_defn): Add entry for la_read_var_value.
8698 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8699 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8700 language_defn structures to add entry for new la_read_var_value
8701 field.
8702
8703 2012-03-02 Tom Tromey <tromey@redhat.com>
8704 Pedro Alves <palves@redhat.com>
8705
8706 PR breakpoints/13776:
8707 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8708 breakpoints.
8709 (delete_longjmp_breakpoint_at_next_stop): New.
8710 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8711 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8712 before deleting the inferior. Add comments.
8713 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8714 breakpoints immediately, but only on next stop. Move that code
8715 next to where we mark other breakpoints for deletion.
8716
8717 2012-03-02 Joel Brobecker <brobecker@adacore.com>
8718
8719 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8720 marker.
8721 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8722 violation.
8723
8724 2012-03-02 Pedro Alves <palves@redhat.com>
8725
8726 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8727
8728 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8729
8730 Fix -Wmissing-prototypes build.
8731 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8732 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8733 (gdbsim_has_memory): Likewise.
8734
8735 2012-03-02 Yao Qi <yao@codesourcery.com>
8736
8737 Fix -Wmissing-prototypes build.
8738 * charset.c (phony_iconv_open): Make static.
8739 (phony_iconv_close, phony_iconv): Likewise.
8740 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8741 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8742 prototype.
8743 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8744 * ser-mingw.c (create_select_thread): Make static.
8745 * windows-termcap.c (tgetent): New prototype.
8746 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8747
8748 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8749
8750 Fix -Wmissing-prototypes build.
8751 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8752 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8753 (_initialize_loadable): New prototypes.
8754
8755 2012-03-02 Doug Evans <dje@google.com>
8756
8757 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8758 abbrev table, read_comp_unit will do it.
8759
8760 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8761
8762 Fix -Wmissing-prototypes build.
8763 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8764 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8765 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8766 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8767 (_initialize_arm_symbian_tdep): New prototype.
8768 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8769 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8771 static.
8772 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8773 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8774 prototype.
8775 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8776 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8777 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8778 static.
8779 * moxie-tdep.c (moxie_process_record): Likewise.
8780 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8781 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8782 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8783 (_initialize_rl78_tdep): New prototype.
8784 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8785 (_initialize_rx_tdep): New prototype.
8786 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8787 (_initialize_darwin_solib): New prototype.
8788 * solib-spu.c: Include solib-spu.h.
8789 (_initialize_spu_solib): New prototype.
8790 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8791 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8792 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8793 (tic6x_software_single_step): Make it static.
8794 (_initialize_tic6x_tdep): New prototype.
8795
8796 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8797
8798 Fix -Wmissing-prototypes build.
8799 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8800 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8801
8802 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8803
8804 Fix -Wmissing-prototypes build.
8805 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8806 (frv_have_stopped_data_address): Remove.
8807
8808 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8809
8810 Fix -Wmissing-prototypes build.
8811 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8812 * sh-tdep.c: Include sh64-tdep.h.
8813 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8814 * sh64-tdep.c: Include sh64-tdep.h.
8815 * sh64-tdep.h: New file.
8816
8817 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8818
8819 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8820
8821 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8822
8823 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8824 sp_regnum once the gdbarch_init_osabi hook has been called.
8825
8826 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8827
8828 * mips-tdep.c (mips32_bc1_pc): New function.
8829 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8830 BPOSGE32 and BPOSGE64 instructions.
8831 (deal_with_atomic_sequence): Likewise.
8832 (mips32_instruction_has_delay_slot): Likewise.
8833
8834 2012-03-01 Maciej W. Rozycki <macro@mips.com>
8835 Chris Dearman <chris@mips.com>
8836 Maciej W. Rozycki <macro@codesourcery.com>
8837 Joseph Myers <joseph@codesourcery.com>
8838
8839 * features/mips-dsp.xml: New file.
8840 * features/mips64-dsp.xml: New file.
8841 * features/mips-dsp-linux.xml: New file.
8842 * features/mips64-dsp-linux.xml: New file.
8843 * features/Makefile (WHICH): Add mips-dsp-linux and
8844 mips64-dsp-linux.
8845 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8846 * features/mips-dsp-linux.c: New file.
8847 * features/mips64-dsp-linux.c: New file.
8848 * regformats/mips-dsp-linux.dat: New file.
8849 * regformats/mips64-dsp-linux.dat: New file.
8850 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8851 registers.
8852 (mips64_linux_register_addr): Likewise.
8853 (mips64_linux_regsets_fetch_registers): Likewise.
8854 (mips64_linux_regsets_store_registers): Likewise.
8855 (mips64_linux_fetch_registers): Update call to
8856 mips64_linux_regsets_fetch_registers.
8857 (mips64_linux_store_registers): Update call to
8858 mips64_linux_regsets_store_registers.
8859 (mips_linux_read_description): Probe for DSP registers.
8860 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8861 and initialize_tdesc_mips64_dsp_linux.
8862 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8863 Remove padding of no longer used embedded register slots.
8864 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8865 (MIPS_RESTART_REGNUM): Redefine enum value.
8866 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8867 strings.
8868 (mips_tx39_reg_names): Likewise.
8869 (mips_linux_reg_names): New array of register names for Linux
8870 targets.
8871 (mips_register_name): Check for a null pointer in
8872 mips_processor_reg_names and return an empty string.
8873 (mips_register_type): Exclude embedded registers for the IRIX
8874 and Linux ABIs.
8875 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8876 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8877 DSP registers.
8878 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8879 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8880 (mips_gdbarch_init): Likewise. Initialize internal register
8881 indices for the Linux ABI. Use dynamic numbers to refer to
8882 registers, as applicable, while parsing the target description.
8883 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8884
8885 2012-03-01 Joel Brobecker <brobecker@adacore.com>
8886
8887 * frame.h (read_frame_register_unsigned): Fix typo in function
8888 description.
8889
8890 2012-03-01 Pedro Alves <palves@redhat.com>
8891
8892 * jit-reader.in [!__cplusplus]
8893 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8894
8895 2012-03-01 Pedro Alves <palves@redhat.com>
8896
8897 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8898 * configure: Regenerate.
8899
8900 2012-03-01 Pedro Alves <palves@redhat.com>
8901
8902 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8903 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8904 (ftrace_command, strace_command): Make static.
8905 * d-lang.c (_initialize_d_language): Declare.
8906 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8907 * dwarf2loc.c (_initialize_dwarf2loc):
8908 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8909 * exec.c (exec_get_section_table): Make static.
8910 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8911 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8912 * inferior.c (remove_inferior_command, add_inferior_command)
8913 (clone_inferior_command): Make static.
8914 * linux-nat.c (linux_nat_thread_address_space)
8915 (linux_nat_core_of_thread): Make static.
8916 * linux-tdep.c (_initialize_linux_tdep): Declare.
8917 * objc-lang.c (_initialize_objc_lang): Declare.
8918 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8919 Make static.
8920 (_initialize_opencl_language): Declare.
8921 * record.c (_initialize_record): Declare.
8922 * remote.c (demand_private_info, remote_get_tib_address)
8923 (remote_supports_cond_tracepoints)
8924 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8925 Make static.
8926 * skip.c (_initialize_step_skip): Declare.
8927 * symtab.c (skip_prologue_using_lineinfo): Make static.
8928 * tracepoint.c (delete_trace_state_variable)
8929 (trace_variable_command, delete_trace_variable_command)
8930 (get_uploaded_tsv, find_matching_tracepoint_location)
8931 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8932 Make static.
8933 * value.c (pack_unsigned_long): Make static.
8934 * varobj.c (varobj_ensure_python_env): Make static.
8935 * windows-tdep.c (_initialize_windows_tdep): Declare.
8936 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8937
8938 2012-03-01 Pedro Alves <palves@redhat.com>
8939
8940 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8941 gdbarch parameter.
8942 (linux_init_abi): Install it as has_shared_address_space gdbarch
8943 callback.
8944
8945 2012-03-01 Pedro Alves <palves@redhat.com>
8946
8947 * observer.c (observer_test_first_notification_function)
8948 (observer_test_second_notification_function)
8949 (observer_test_third_notification_function): Add declarations.
8950
8951 2012-03-01 Pedro Alves <palves@redhat.com>
8952
8953 * common/signals.c (default_target_signal_to_host)
8954 (default_target_signal_from_host): Move ...
8955 * arch-utils.c: ... here.
8956 * arch-utils.h (default_target_signal_to_host)
8957 (default_target_signal_from_host): Declare.
8958
8959 * common/signals.c (target_signal_from_command): Move ...
8960 * infrun.c: ... here.
8961 * inferior.h (target_signal_from_command): Declare.
8962 * target.h (target_signal_from_command)
8963 (default_target_signal_from_host, default_target_signal_to_host):
8964 Delete declarations.
8965
8966 * common/signals.c (_initialize_signals): Delete.
8967
8968 2012-03-01 Pedro Alves <palves@redhat.com>
8969
8970 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8971 both __cplusplus and !__cplusplus.
8972
8973 2012-03-01 Pedro Alves <palves@redhat.com>
8974
8975 * psymtab.c (find_and_open_source): Delete declaration.
8976 * source.c (find_and_open_source): Move comment ...
8977 * source.h (find_and_open_source): ... to this new declaration.
8978
8979 2012-03-01 Pedro Alves <palves@redhat.com>
8980
8981 * inline-frame.c: Include inline-frame.h.
8982
8983 2012-03-01 Pedro Alves <palves@redhat.com>
8984
8985 * tui/tui-data.c (set_gen_win_origin): Delete.
8986 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8987 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8988
8989 2012-03-01 Pedro Alves <palves@redhat.com>
8990
8991 * remote.c (encode_actions): Delete declaration.
8992 * tracepoint.c (encode_actions): Make extern.
8993 * tracepoint.h (encode_actions): Declare.
8994
8995 2012-03-01 Pedro Alves <palves@redhat.com>
8996
8997 * python/py-breakpoint.c: Include python.h.
8998 * python/py-continueevent.c (create_continue_event_object): Make
8999 static.
9000 * python/py-lazy-string.c (stpy_get_type): Make static.
9001 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9002 Make static.
9003 * python/py-utils.c (unicode_to_target_python_string): Make
9004 static.
9005 * python/py-value.c: Include python.h.
9006
9007 2012-03-01 Pedro Alves <palves@redhat.com>
9008
9009 * inferior.c (delete_threads_of_inferior): Delete.
9010
9011 2012-03-01 Pedro Alves <palves@redhat.com>
9012
9013 Import fallback definitions from glibc.
9014
9015 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9016 ps_prochandle): Forward declare.
9017 (ps_err_e): Use glibc's comments.
9018 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9019 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9020 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9021 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9022 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9023 (struct ps_prochandle): Adjust comment.
9024
9025 2012-03-01 Pedro Alves <palves@redhat.com>
9026
9027 * ada-lang.c (ada_modulus_from_name): Delete.
9028 * ada-lex.l (lexer_init): Make static.
9029
9030 2012-03-01 Pedro Alves <palves@redhat.com>
9031
9032 PR gdb/13767
9033
9034 * frame.c (read_frame_register_unsigned): New.
9035 * frame.h (read_frame_register_unsigned): Declare.
9036 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9037 Handle it.
9038 (print_i387_control_word): New parameter `control_p'. Handle it.
9039 (i387_print_float_info): Handle unavailable float registers.
9040
9041 2012-03-01 Keith Seitz <keiths@redhat.com>
9042
9043 * linespec.c (decode_line_2): Sort the list of methods
9044 alphabetically before presenting the user with a selection
9045 menu.
9046
9047 2012-03-01 Doug Evans <dje@google.com>
9048
9049 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9050 has_namespace_info.
9051 (dwarf2_read_abbrevs): Remove corresponding initialization.
9052
9053 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9054
9055 * NEWS: Mention new python command class gdb.COMMAND_USER.
9056 * cli/cli-cmds.c (show_user): Print error when used on a python
9057 command.
9058 (init_cli_cmds): Update documentation strings for "show user" and
9059 "set/show max-user-call-depth" to clarify that it does not apply to
9060 python commands.
9061 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9062 error check.
9063 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9064 gdb python api.
9065 * top.c (execute_command): Only execute a user-defined command as a
9066 legacy macro if c->user_commands is set.
9067
9068 2012-03-01 Tom Tromey <tromey@redhat.com>
9069
9070 * valprint.h (struct generic_val_print_decorations): New.
9071 (generic_val_print): Declare.
9072 * valprint.c (generic_val_print): New function.
9073 * p-valprint.c (p_decorations): New global.
9074 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9075 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9076 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9077 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9078 * m2-valprint.c (m2_decorations): New global.
9079 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9080 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9081 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9082 TYPE_CODE_ERROR>: Call generic_val_print.
9083 * f-valprint.c (f_decorations): New global.
9084 (f_val_print): Use print_function_pointer_address.
9085 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9086 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9087 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9088 generic_val_print.
9089 * c-valprint.c (c_decorations): New global.
9090 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9091 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9092 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9093 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9094 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9095 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9096 case.
9097
9098 2012-03-01 Tom Tromey <tromey@redhat.com>
9099
9100 * valprint.c (val_print): Update.
9101 * p-valprint (pascal_val_print): Return void.
9102 * p-lang.h (pascal_val_print): Return void.
9103 * m2-valprint.c (m2_val_print): Return void.
9104 * m2-lang.h (m2_val_print): Return void.
9105 * language.h (struct language_defn) <la_val_print>: Return void.
9106 * language.c (unk_lang_val_print): Return void.
9107 * jv-valprint.c (java_val_print): Return void.
9108 * jv-lang.h (java_val_print): Return void.
9109 * f-valprint.c (f_val_print): Return void.
9110 * f-lang.h (f_val_print): Return void.
9111 * d-valprint.c (d_val_print): Return void.
9112 (dynamic_array_type): Update.
9113 * d-lang.h (d_val_print): Return void.
9114 * c-valprint.c (c_val_print): Return void.
9115 * c-lang.h (c_val_print): Return void.
9116 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9117 void.
9118 * ada-lang.h (ada_val_print): Return void.
9119
9120 2012-03-01 Tom Tromey <tromey@redhat.com>
9121
9122 * value.h (val_print): Return void.
9123 * valprint.c (val_print): Return void.
9124
9125 2012-03-01 Tom Tromey <tromey@redhat.com>
9126
9127 * value.h (common_val_print): Return void.
9128 * valprint.c (common_val_print): Return void.
9129
9130 2012-03-01 Tom Tromey <tromey@redhat.com>
9131
9132 * value.h (value_print): Return void.
9133 * valprint.c (value_print): Return void.
9134 * p-valprint.c (pascal_value_print): Return void.
9135 * p-lang.h (pascal_value_print): Return void.
9136 * language.h (struct language_defn) <la_value_print>: Return
9137 void.
9138 * language.c (unk_lang_value_print): Return void.
9139 * jv-valprint.c (java_value_print): Return void.
9140 * jv-lang.h (java_value_print): Return void.
9141 * f-valprint.c (c_value_print): Don't declare.
9142 Include c-lang.h.
9143 * c-valprint.c (c_value_print): Return void.
9144 * c-lang.h (c_value_print): Return void.
9145 * ada-valprint.c (ada_value_print): Return void.
9146 * ada-lang.h (ada_value_print): Return void.
9147
9148 2012-03-01 Tom Tromey <tromey@redhat.com>
9149
9150 * value.c (value_primitive_field): Handle virtual base classes.
9151
9152 2012-03-01 Tom Tromey <tromey@redhat.com>
9153
9154 * gdbtypes.h (struct vbase): Remove.
9155
9156 2012-03-01 Tom Tromey <tromey@redhat.com>
9157
9158 * c-valprint.c (print_function_pointer_address): Move...
9159 * valprint.c: ... here. Make non-static.
9160 * m2-valprint.c (print_function_pointer_address): Remove.
9161 * valprint.h (print_function_pointer_address): Declare.
9162
9163 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9164
9165 * NEWS: Document the fact that one can provide a condition when
9166 creating an Ada exception catchpoint.
9167
9168 2012-03-01 Tom Tromey <tromey@redhat.com>
9169
9170 * valprint.c (val_print_type_code_flags): Fix placement of
9171 trailing brace.
9172
9173 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9174
9175 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9176 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9177 environment variable before calling update-copyright.
9178
9179 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9180
9181 * gnulib/extra/update-copyright: Update to the latest from
9182 gnulib's git repository.
9183 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9184 variable to 2 instead of 1.
9185
9186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9187
9188 * varobj.c (c_value_of_variable): Remove dead code.
9189
9190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9191
9192 * ada-lex.p (processId): Do not modify already encoded IDs.
9193 Update function documentation.
9194
9195 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9196
9197 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9198 "name" with "struct symbol *name_sym".
9199 * ada-exp.y (write_var_or_type): Update call to
9200 ada_find_renaming_symbol.
9201 "name" with "struct symbol *name_sym". Adjust Implementation
9202 accordingly. Adjust the function documentation.
9203
9204 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9205
9206 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9207 * ada-lang.c (ada_find_any_type): Add advance declaration.
9208 Make static. Replace ada_find_any_symbol by
9209 ada_find_any_type_symbol.
9210 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9211 Improve function description. Make static.
9212 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9213 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9214
9215 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9216
9217 * ada-lang.c (struct tag_args): Delete.
9218 (ada_get_tsd_type): Function body moved up in source file.
9219 (ada_tag_name_1, ada_tag_name_2): Delete.
9220 (ada_get_tsd_from_tag): New function.
9221 (ada_tag_name_from_tsd): New function.
9222 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9223 to determine the tag name.
9224
9225 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9226
9227 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9228 declaration.
9229 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9230 function.
9231
9232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9233
9234 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9235
9236 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9237
9238 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9239 full searches.
9240
9241 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9242
9243 * ada-lang.c (constrained_packed_array_type): If there is a
9244 parallel XA type, use it to determine the array index type.
9245
9246 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9247
9248 * ada-valprint.c (ada_val_print_1): If our value is a reference
9249 to an array descriptor, dereference it before converting it
9250 to a simple array.
9251
9252 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9253
9254 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9255 creating fixed value.
9256 (ada_value_ind, ada_coerce_ref, assign_component)
9257 (ada_evaluate_subexp): Remove call to unwrap_value before
9258 call to ada_to_fixed_value.
9259
9260 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9261
9262 * ada-lang.c (to_fixed_array_type): Set result's type name.
9263
9264 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9265
9266 * ada-lang.c (catch_ada_exception_command_split): Add new
9267 argument cond_string. Add support for condition at end of
9268 "catch exception" commands.
9269 (ada_decode_exception_location): Add new argument cond_string.
9270 Update call to catch_ada_exception_command_split.
9271 (create_ada_exception_catchpoint): Add new argument cond_string.
9272 Set the breakpoint condition if needed.
9273 (catch_ada_exception_command): Update call to
9274 ada_decode_exception_location.
9275 (ada_decode_assert_location): Add function documentation.
9276 Add support for condition at end of "catch assert" command.
9277 (catch_assert_command): Update calls to ada_decode_assert_location
9278 and create_ada_exception_catchpoint.
9279
9280 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9281
9282 Fix disp-step-syscall.exp: fork: single step over fork.
9283 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9284 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9285 comment, change parameters gdbarch and ptid to regcache. Remove
9286 parameter regcache, initialize gdbarch from regcache here.
9287 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9288 New functions.
9289 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9290 instead.
9291 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9292 'syscall'. Make the 'int' check more strict.
9293
9294 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9295
9296 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9297 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9298 (i386_linux_intx80_sysenter_syscall_record): ... here.
9299 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9300 Use the renamed function name.
9301
9302 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9303
9304 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9305 * breakpoint.c (until_break_command): Likewise.
9306 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9307 * infcall.c (call_function_by_hand): Likewise.
9308 * infcmd.c (finish_forward): Likewise.
9309 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9310
9311 2012-02-28 Tristan Gingold <gingold@adacore.com>
9312
9313 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9314 avoid variable assignments inside condition.
9315
9316 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 Fix static analysis issue found by cppcheck.
9319 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9320 uninitialized BUF for size 2.
9321
9322 2012-02-27 Chris Dearman <chris@mips.com>
9323 Nathan Froyd <froydnj@codesourcery.com>
9324 Maciej W. Rozycki <macro@codesourcery.com>
9325
9326 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9327 (mips16_instruction_has_delay_slot): Likewise.
9328 (mips_segment_boundary): Likewise.
9329 (mips_adjust_breakpoint_address): Likewise.
9330 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9331
9332 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9333 Maciej W. Rozycki <macro@codesourcery.com>
9334
9335 * infrun.c (handle_inferior_event): Don't proceed through
9336 shared library trampolines if stepping at the machine
9337 instruction level.
9338
9339 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9340
9341 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9342 too.
9343
9344 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9345
9346 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9347 (sh_stub_unwind_sniffer): New functions.
9348 (sh_stub_unwind): New variable.
9349 (sh_gdbarch_init): Wire everything.
9350
9351 2012-02-27 Pedro Alves <palves@redhat.com>
9352
9353 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9354 (linux_nat_post_attach_wait): Adjust to use
9355 linux_proc_pid_is_stopped.
9356 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9357 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9358 based on pid_is_stopped from both linux-nat.c and
9359 gdbserver/linux-low.c, and renamed.
9360
9361 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9362
9363 * remote.c (remote_watchpoint_addr_within_range): New function.
9364 (init_remote_ops): Use it.
9365
9366 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9367
9368 * target.h (target_watchpoint_addr_within_range): Document macro.
9369
9370 2012-02-24 Pedro Alves <palves@redhat.com>
9371
9372 * stack.c (set_last_displayed_sal): Issue internal_error instead
9373 of warning, and issue it after clearing the last displayed sal.
9374
9375 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9376 Pedro Alves <palves@redhat.com>
9377
9378 * breakpoint.c (until_break_command): Install breakpoints after
9379 all frame manipulations.
9380
9381 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9382
9383 * remote.c (remote_supports_cond_breakpoints): New forward
9384 declaration.
9385 (remote_add_target_side_condition): New function.
9386 (remote_insert_breakpoint): Add target-side breakpoint
9387 conditional if supported.
9388 (remote_insert_hw_breakpoint): Likewise.
9389 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9390 hook.
9391
9392 * target.c (update_current_target): Inherit
9393 to_supports_evaluation_of_breakpoint_conditions.
9394 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9395
9396 * target.h (struct target_ops)
9397 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9398 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9399
9400 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9401 (condition_evaluation_both, condition_evaluation_auto,
9402 condition_evaluation_host, condition_evaluation_target,
9403 condition_evaluation_enums, condition_evaluation_mode_1,
9404 condition_evaluation_mode): New static globals.
9405 (translate_condition_evaluation_mode): New function.
9406 (breakpoint_condition_evaluation_mode): New function.
9407 (gdb_evaluates_breakpoint_condition_p): New function.
9408 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9409 (mark_breakpoint_modified): New function.
9410 (mark_breakpoint_location_modified): New function.
9411 (set_condition_evaluation_mode): New function.
9412 (show_condition_evaluation_mode): New function.
9413 (bp_location_compare_addrs): New function.
9414 (get_first_location_gte_addr): New helper function.
9415 (set_breakpoint_condition): Free condition bytecode if locations
9416 has become unconditional. Call mark_breakpoint_modified (...).
9417 (condition_command): Call update_global_location_list (1) for
9418 breakpoints.
9419 (breakpoint_xfer_memory): Use is_breakpoint (...).
9420 (is_breakpoint): New function.
9421 (parse_cond_to_aexpr): New function.
9422 (build_target_condition_list): New function.
9423 (insert_bp_location): Handle target-side conditional
9424 breakpoints and call build_target_condition_list (...).
9425 (update_inserted_breakpoint_locations): New function.
9426 (insert_breakpoint_locations): Handle target-side conditional
9427 breakpoints.
9428 (bpstat_check_breakpoint_conditions): Add comment.
9429 (bp_condition_evaluator): New function.
9430 (bp_location_condition_evaluator): New function.
9431 (print_breakpoint_location): Print information on where the condition
9432 will be evaluated.
9433 (print_one_breakpoint_location): Likewise.
9434 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9435 breakpoint location.
9436 (force_breakpoint_reinsertion): New functions.
9437 (update_global_location_list): Handle target-side breakpoint
9438 conditions.
9439 Reinsert locations that are already inserted if conditions have
9440 changed.
9441 (bp_location_dtor): Free agent expression bytecode.
9442 (disable_breakpoint): Call mark_breakpoint_modified (...).
9443 Call update_global_location_list (...) with parameter 1 for breakpoints.
9444 (disable_command): Call mark_breakpoint_location_modified (...).
9445 Call update_global_location_list (...) with parameter 1 for breakpoints.
9446 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9447 (enable_command): mark_breakpoint_location_modified (...).
9448 (_initialize_breakpoint): Update documentation and add
9449 condition-evaluation breakpoint subcommand.
9450
9451 * breakpoint.h: Include ax.h.
9452 (condition_list): New data structure.
9453 (condition_status): New enum.
9454 (bp_target_info) <cond_list>: New field.
9455 (bp_location) <condition_changed, cond_bytecode>: New fields.
9456 (is_breakpoint): New prototype.
9457
9458 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9459
9460 * remote.c (remote_state) <cond_breakpoints>: New field.
9461 (PACKET_ConditionalBreakpoints): New enum.
9462 (remote_cond_breakpoint_feature): New function.
9463 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9464 (remote_supports_cond_breakpoints): New function.
9465 (_initialize_remote): Add new packet configuration for
9466 target-side conditional breakpoints.
9467
9468 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9469
9470 * NEWS: Mention target-side conditional breakpoint support,
9471 new condition-evaluation breakpoint subcommand and remote
9472 packet extensions.
9473
9474 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9475
9476 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9477 number.
9478
9479 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9480
9481 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9482 (after_prologue): Remove.
9483
9484 2012-02-23 Tom Tromey <tromey@redhat.com>
9485
9486 * jv-valprint.c (java_val_print): Remove dead code.
9487
9488 2012-02-23 Tristan Gingold <gingold@adacore.com>
9489
9490 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9491 known_tasks_element and known_tasks_length fields.
9492 (read_known_tasks_array): Change argument type. Use pointer type
9493 and number of elements from DATA. Adjust.
9494 (read_known_tasks_list): Likewise.
9495 (get_known_tasks_addr): Remove.
9496 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9497 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9498 type and array length. Merge former get_known_tasks_addr code.
9499
9500 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9501
9502 PR backtrace/13716
9503 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9504 it after set_momentary_breakpoint.
9505
9506 2012-02-22 Sterling Augustine <saugustine@google.com>
9507
9508 PR 13689:
9509 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9510
9511 2012-02-22 Gary Benson <gbenson@redhat.com>
9512
9513 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9514 (find_slot_in_mapped_hash): Likewise.
9515
9516 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9517
9518 PR build/13638
9519 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9520 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9521 * configure: Regenerate.
9522
9523 2012-02-21 Tristan Gingold <gingold@adacore.com>
9524 Pedro Alves <palves@redhat.com>
9525
9526 * ia64-tdep.c: Do not include libunwind-ia64.h.
9527 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9528 Include libunwind-ia64.h instead of libunwind.h.
9529 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9530 for libunwind.h existence.
9531 * configure, config.in: Regenerate.
9532
9533 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9534
9535 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9536 instead of value_rtti_target_type.
9537 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9538 instead of value_rtti_target_type.
9539 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9540 value_rtti_target_type.
9541 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9542 (value_rtti_target_type): Rename to ...
9543 (value_rtti_indirect_type): ... here and make it indirect. Update
9544 function comment.
9545 * value.c (readjust_indirect_value_type): New function.
9546 (coerce_ref): Support for enclosing type setting for references
9547 with readjust_indirect_value_type.
9548 * value.h (readjust_value_type): New declaration.
9549 (value_rtti_target_type): Rename to ...
9550 (value_rtti_indirect_type): ... here.
9551
9552 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9553
9554 * MAINTAINERS (Write After Approval): Add myself to the list.
9555
9556 2012-02-20 Doug Evans <dje@google.com>
9557
9558 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9559 Rename objfile_p_char parameter to objfilep.
9560 (build_objfile_section_table): Result is now void. All callers
9561 updated.
9562 * objfiles.h (struct objfile): Tweak comments, whitespace.
9563 (build_objfile_section_table): Update.
9564
9565 * elfread.c (elf_symfile_segments): Fix warning text.
9566
9567 2012-02-20 Tom Tromey <tromey@redhat.com>
9568
9569 PR gdb/13498:
9570 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9571 particular set of file names once.
9572 (dw2_map_symbol_filenames): Likewise.
9573
9574 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 Code cleanup.
9577 * main.c (write_files): Remove the declaration.
9578 (external_editor_command): Move the declaration ...
9579 [GDBTK] (external_editor_command): ... here. Fix the comment.
9580
9581 2012-02-20 Tom Tromey <tromey@redhat.com>
9582
9583 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9584 extraneous block.
9585
9586 2012-02-20 Tristan Gingold <gingold@adacore.com>
9587
9588 * darwin-nat.h (enum darwin_msg_state): Add comments.
9589
9590 2012-02-20 Tristan Gingold <gingold@adacore.com>
9591
9592 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9593 value.
9594
9595 2012-20-18 Joel Brobecker <brobecker@adacore.com>
9596
9597 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9598 between function description and implementation.
9599
9600 2012-02-17 Tom Tromey <tromey@redhat.com>
9601
9602 PR python/12070:
9603 * python/py-event.c (event_object_getset): New global.
9604 (event_object_type): Reference it.
9605 * python/py-type.c (field_object_getset): New global.
9606 (field_object_type): Reference it.
9607 * python/python-internal.h (gdb_py_generic_dict): Declare.
9608 * python/py-utils.c (gdb_py_generic_dict): New function.
9609
9610 2012-02-17 Tristan Gingold <gingold@adacore.com>
9611
9612 * solib-darwin.c (darwin_current_sos): Check magic and filetype
9613
9614 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9615
9616 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9617 TYPE_CALLING_CONVENTION annotation.
9618
9619 2012-02-16 Kevin Buettner <kevinb@redhat.com>
9620
9621 * MAINTAINERS: Add rx to target ISA section.
9622 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9623 (ALLDEPFILES): Add rx-tdep.c.
9624
9625 2012-02-16 Tom Tromey <tromey@redhat.com>
9626
9627 * symfile.c (symbol_file_add_main_1): Use inferior's
9628 symfile_flags.
9629 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9630 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9631 inferior.
9632 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9633 inferior.
9634 (follow_exec): Use inferior's symfile_flags.
9635 * inferior.h (struct inferior) <symfile_flags>: New field.
9636
9637 2012-02-16 Mike Frysinger <vapier@gentoo.org>
9638
9639 PR gdb/9734:
9640 * remote-sim.c (gdbsim_create_inferior): Call error() when
9641 sim_create_inferior() fails.
9642
9643 2012-02-16 Josh Matthews <josh@joshmatthews.net>
9644
9645 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9646
9647 2012-02-16 Tom Tromey <tromey@redhat.com>
9648
9649 PR c++/13653:
9650 * thread.c (struct current_thread_cleanup) <was_removable>: New
9651 field.
9652 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9653 (make_cleanup_restore_current_thread): Initialize new field.
9654
9655 2012-02-15 Kevin Buettner <kevinb@redhat.com>
9656
9657 * MAINTAINERS: Add rl78 to target ISA section.
9658 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9659 (ALLDEPFILES): Add rl78-tdep.c.
9660 * NEWS: Mention rl78 as a new target.
9661
9662 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9663
9664 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9665 data.
9666 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9667
9668 2012-02-15 Tom Tromey <tromey@redhat.com>
9669
9670 PR gdb/12659:
9671 * infcmd.c (registers_info): Print just the current register's
9672 name.
9673
9674 2012-02-15 Tom Tromey <tromey@redhat.com>
9675
9676 * python/py-symbol.c (sympy_value): Use _().
9677
9678 2012-02-15 Pedro Alves <palves@redhat.com>
9679
9680 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9681 output to be like native targets'.
9682 (remote_pid_to_str): Special case the null ptid.
9683
9684 2012-02-14 Stan Shebs <stan@codesourcery.com>
9685
9686 * NEWS: Mention enable count command.
9687 * breakpoint.h (struct breakpoint): New field enable_count.
9688 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9689 (enable_breakpoint): Add arg to call.
9690 (struct disp_data): New struct.
9691 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9692 (do_map_enable_once_breakpoint): Create a struct and pass it.
9693 (do_map_enable_delete_breakpoint): Ditto.
9694 (do_map_enable_count_breakpoint): New function.
9695 (enable_count_command): New function.
9696 (bpstat_stop_status): Decrement enable_count.
9697 (print_one_breakpoint_location): Report enable count.
9698 (_initialize_breakpoint): Add enable count command.
9699
9700 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9701
9702 * rl78-tdep.c (reggroups.h): Include.
9703 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9704 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9705 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9706 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9707 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9708 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9709 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9710 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9711 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9712 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9713 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9714 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9715 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9716 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9717 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9718 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9719 beginning of register list.
9720 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9721 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9722 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9723 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9724 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9725 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9726 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9727 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9728 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9729 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9730 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9731 the pseudo registers. Rearrange other pseudo registers too so
9732 that the bank registers appear at the end.
9733 (rl78_register_type): Account for the fact that the byte sized
9734 bank registers are now pseudo-registers.
9735 (rl78_register_name): Rearrange the register name array. Make
9736 initial set of raw banked registers inaccessible.
9737 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9738 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9739 case for copying bytes back and forth between raw and pseudo
9740 versions of the banked registers. Update other cases to reflect
9741 the changed names.
9742 (rl78_return_value): Update to account for changed names of
9743 raw registers.
9744 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9745 rl78_register_sim_regno().
9746
9747 2012-02-14 Kevin Buettner <kevinb@redhat.com>
9748
9749 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9750 the name parameter being passed to find_pc_partial_function().
9751
9752 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9753
9754 * MAINTAINERS: Step down from being ia64 target maintainer.
9755
9756 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9757
9758 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9759 compilation warning.
9760
9761 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 Fix crash on loaded shlibs without loaded exec_bfd.
9764 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9765 (set_section_command): Replace exec_bfd by p->bfd.
9766
9767 2012-02-10 Tom Tromey <tromey@redhat.com>
9768
9769 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9770 when we have a C++ qualified name.
9771
9772 2012-02-10 Pedro Alves <palves@redhat.com>
9773
9774 * inferior.c (inferior_pid_to_str): New.
9775 (print_inferior, inferior_command): Use it.
9776
9777 2012-02-10 Pedro Alves <palves@redhat.com>
9778
9779 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9780 the test CFLAGS.
9781 * configure: Regenerate.
9782
9783 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9784
9785 * linespec.c (decode_line_internal): Fix comment correctness.
9786
9787 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
9788
9789 PR gdb/12953
9790 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9791 * amd64bsd-nat.c: Add support for debug registers (adapted from
9792 i386bsd-nat.c).
9793 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9794 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9795 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9796 (amd64bsd_dr_get_control): New functions.
9797 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9798 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9799 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9800 watchpoints initialization.
9801 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9802
9803 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9804
9805 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9806 flds_bnds.fields.
9807 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9808
9809 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9810
9811 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9812
9813 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9814
9815 * language.h (symbol_name_cmp_ftype): Renames
9816 symbol_name_match_p_ftype.
9817 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9818 la_get_symbol_name_match_p.
9819 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9820 ada_get_symbol_name_match_p. Update comment.
9821 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9822 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9823 Renames symbol_name_match_p. Update field type.
9824 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9825 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9826 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9827 "la_get_symbol_name_cmp" in comments.
9828 * language.c: Likewise.
9829
9830 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9831
9832 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9833 %eflags offset.
9834 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9835 (amd64_sol2_gregset32_reg_offs): Likewise.
9836
9837 2012-02-08 Joel Brobecker <brobecker@adacore.com>
9838
9839 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9840 of the returned BFD is allocated by GDB.
9841
9842 2012-02-07 Tom Tromey <tromey@redhat.com>
9843
9844 PR python/12027:
9845 * python/python-internal.h (frame_object_type): Declare.
9846 * python/py-symbol.c (sympy_needs_frame): New function.
9847 (sympy_value): New function.
9848 (symbol_object_getset): Add "needs_frame".
9849 (symbol_object_methods): Add "value".
9850 * python/py-frame.c (frame_object_type): No longer static.
9851
9852 2012-02-07 Tom Tromey <tromey@redhat.com>
9853
9854 PR python/13599:
9855 * python/py-symbol.c (sympy_line): New function.
9856 (symbol_object_getset): Add "line".
9857
9858 2012-02-07 Tom Tromey <tromey@redhat.com>
9859
9860 * charset.c (find_charset_names): Check 'in' against NULL.
9861
9862 2012-02-06 Doug Evans <dje@google.com>
9863
9864 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9865 and fields.name members from char * to const char *. All uses updated.
9866 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9867 from char * to const char *. All uses updated.
9868 (type_name_no_tag): Update.
9869 (lookup_unsigned_typename, lookup_signed_typename): Update.
9870 * gdbtypes.c (type_name_no_tag): Change result type
9871 from char * to const char *. All callers updated.
9872 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9873 name parameter from char * to const char *.
9874 * symtab.h (struct cplus_specific): Change type of demangled_name
9875 member from char * to const char *. All uses updated.
9876 (struct general_symbol_info): Change type of name and
9877 mangled_lang.demangled_name members from char * to const char *.
9878 All uses updated.
9879 (symbol_get_demangled_name, symbol_natural_name): Update.
9880 (symbol_demangled_name, symbol_search_name): Update.
9881 * symtab.c (symbol_get_demangled_name): Change result type
9882 from char * to const char *. All callers updated.
9883 (symbol_natural_name, symbol_demangled_name): Ditto.
9884 (symbol_search_name): Ditto.
9885 (completion_list_add_name): Change type of symname,sym_text,
9886 text,word parameters from char * to const char *.
9887 (completion_list_objc_symbol): Change type of sym_text,
9888 text,word parameters from char * to const char *.
9889 * ada-lang.c (find_struct_field): Change type of name parameter
9890 from char * to const char *.
9891 (encoded_ordered_before): Similarly for N0,N1 parameters.
9892 (old_renaming_is_invisible): Similarly for function_name parameter.
9893 (ada_type_name): Change result type from char * to const char *.
9894 All callers updated.
9895 * ada-lang.h (ada_type_name): Update.
9896 * buildsym.c (hashname): Change type of name parameter
9897 from char * to const char *.
9898 * buildsym.h (hashname): Update.
9899 * dbxread.c (end_psymtab): Change type of include_list parameter
9900 from char ** to const char **.
9901 * dwarf2read.c (determine_prefix): Change result type
9902 from char * to const char *. All callers updated.
9903 * f-lang.c (find_common_for_function): Change type of name, funcname
9904 parameters from char * to const char *.
9905 * f-lang.c (find_common_for_function): Update.
9906 * f-valprint.c (list_all_visible_commons): Change type of funcname
9907 parameters from char * to const char *.
9908 * gdbarch.sh (static_transform_name): Change type of name parameter
9909 and result from char * to const char *.
9910 * gdbarch.c: Regenerate.
9911 * gdbarch.h: Regenerate.
9912 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9913 of name parameter from char * to const char *.
9914 * jv-lang.c (java_primitive_type_from_name): Ditto.
9915 (java_demangled_signature_length): Similarly for signature parameter.
9916 (java_demangled_signature_copy): Ditto.
9917 (java_demangle_type_signature): Ditto.
9918 * jv-lang.h (java_primitive_type_from_name): Update.
9919 (java_demangle_type_signature): Update.
9920 * objc-lang.c (specialcmp): Change type of a,b parameters
9921 from char * to const char *.
9922 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9923 from char * to const char *. All callers updated.
9924 * p-lang.h (is_pascal_string_type): Update.
9925 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9926 of name parameter from char * to const char *.
9927 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9928 * utils.c (fprintf_symbol_filtered): Ditto.
9929 * defs.h (fprintf_symbol_filtered): Update.
9930 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9931 * stabsread.h (end_psymtab): Update.
9932 * stack.c (find_frame_funname): Change type of funname parameter
9933 from char ** to const char **.
9934 * stack.h (find_frame_funname): Update.
9935 * typeprint.c (type_print): Change type of varstring parameter
9936 from char * to const char *.
9937 * value.h (type_print): Update.
9938 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9939 from char * to const char *. All callers updated.
9940 (xcoff_end_psymtab): Change type of include_list parameter
9941 from char ** to const char **. All callers updated.
9942 (swap_sym): Similarly for name parameter. All callers updated.
9943 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9944 Use xstrdup.
9945 (process_coff_symbol): Use xstrdup.
9946 * stabsread.c (stabs_method_name_from_physname): Renamed from
9947 update_method_name_from_physname. Change result type from void
9948 to char *. All callers updated.
9949 (read_member_functions): In has_destructor case, store name in objfile
9950 obstack instead of malloc space. In !has_stub case, fix mem leak.
9951
9952 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9953
9954 * configure: Rebuild.
9955 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9956 LDFLAGS.
9957
9958 2012-02-03 Kevin Buettner <kevinb@redhat.com>
9959
9960 * configure.tgt (rl78-*-elf): New target.
9961 * rl78-tdep.c: New file.
9962
9963 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9964
9965 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9966 and continue the loop. Add QUIT statement.
9967
9968 2012-02-03 Tom Tromey <tromey@redhat.com>
9969
9970 PR gdb/13596:
9971 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9972 bfd_lookup_symbol_from_symtab.
9973 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9974 gdb_bfd_lookup_symbol_from_symtab.
9975
9976 2012-02-03 Joel Brobecker <brobecker@adacore.com>
9977
9978 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9979 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9980 symbol. Add assertion that sym2 is never NULL.
9981
9982 2012-02-02 Doug Evans <dje@google.com>
9983
9984 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9985 "name" parameter to const char ** from char **. All callers updated.
9986 (find_pc_partial_function): Ditto.
9987 (cache_pc_function_name): Change type to const char * from char *.
9988 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9989 (find_pc_partial_function): Update.
9990 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9991 type of "name" parameter to const char * from char *.
9992 All uses updated.
9993 * arch-utils.c (generic_in_solib_return_trampoline): Change
9994 type of "name" parameter to const char * from char *.
9995 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9996 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9997 type of "name" parameter to const char * from char *.
9998 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9999 * gdbarch.c: Regenerate.
10000 * gdbarch.h: Regenerate.
10001 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10002 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10003 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10004 type of "name" parameter to const char * from char *.
10005 * skip.c (skip_function_pc): Ditto.
10006 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10007 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10008 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10009 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10010 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10011 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10012 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10013 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10014 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10015
10016 2012-02-02 Pedro Alves <palves@redhat.com>
10017
10018 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10019 the current inferior has no execution. Make sure the current
10020 remote process matches gdb's current inferior.
10021
10022 2012-02-02 Tom Tromey <tromey@redhat.com>
10023
10024 PR gdb/13405:
10025 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10026 read-only memory.
10027
10028 2012-02-02 Tom Tromey <tromey@redhat.com>
10029
10030 PR gdb/9307:
10031 * symtab.c (lookup_language_this): Set block_found.
10032
10033 2012-02-01 Tom Tromey <tromey@redhat.com>
10034
10035 PR gdb/13431:
10036 * jit.c (struct jit_inferior_data): Rewrite.
10037 (struct jit_objfile_data): New.
10038 (get_jit_objfile_data): New function.
10039 (add_objfile_entry): Update.
10040 (jit_read_descriptor): Return int. Replace descriptor_addr
10041 argument with inf_data. Update. Don't call error.
10042 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10043 descriptor here.
10044 (jit_inferior_init): Don't look up descriptor. Don't call error.
10045 (jit_reset_inferior_data_and_breakpoints)
10046 (jit_inferior_created_observer): Remove.
10047 (jit_inferior_exit_hook): Update.
10048 (jit_executable_changed_observer): Remove.
10049 (jit_event_handler): Update.
10050 (free_objfile_data): Reset inferior data if needed.
10051 (_initialize_jit): Update.
10052
10053 2012-02-01 Tom Tromey <tromey@redhat.com>
10054
10055 * jit.c (bfd_open_from_target_memory): Move higher in file.
10056
10057 2012-02-01 Tristan Gingold <gingold@adacore.com>
10058
10059 * libunwind-frame.c (libunwind_load): Display message if dlopen
10060 failed.
10061
10062 2012-02-01 Gary Benson <gbenson@redhat.com>
10063
10064 * symtab.h (symbol_found_callback_ftype): New typedef.
10065 (iterate_over_symbols): Use the above.
10066 * symtab.c (iterate_over_symbols): Likewise.
10067 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10068 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10069 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10070 (iterate_name_matcher): Document return values.
10071 (collect_one_symbol): Likewise.
10072 (collect_function_symbols): Likewise.
10073 (collect_symbols): Likewise.
10074
10075 2012-02-01 Tom Tromey <tromey@redhat.com>
10076
10077 * ada-lang.c (resolve_subexp): Update.
10078 (ada_lookup_symbol_list): Add 'full_search' argument.
10079 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10080 ada_lookup_symbol_list.
10081 (ada_lookup_encoded_symbol): Update.
10082 (get_var_value): Update.
10083 * ada-exp.y (block_lookup): Update.
10084 (write_var_or_type): Update.
10085 (write_name_assoc): Update.
10086 * ada-lang.h (ada_lookup_symbol_list): Update.
10087
10088 2012-01-31 Tom Tromey <tromey@redhat.com>
10089
10090 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10091 comment.
10092
10093 2012-01-31 Doug Evans <dje@google.com>
10094
10095 * symtab.h: Remove outdated comment.
10096 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10097
10098 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10099
10100 Fix build error in Darwin port.
10101 * i386-darwin-nat.c: Include i386-nat.h.
10102
10103 2012-01-30 Tom Tromey <tromey@redhat.com>
10104
10105 PR breakpoints/13568:
10106 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10107 argument. Check for recursive includes.
10108 (dwarf_decode_macros): Create an include hash.
10109
10110 2012-01-30 Michael Eager <eager@eagercon.com>
10111
10112 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10113 * ppc-linux-tdep.c: Include glibc-tdep.h.
10114 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10115 (powerpc_linux_in_plt_stub): New function.
10116 (powerpc_linux_in_dynsym_resolve_code): New function.
10117 (ppc_skip_trampoline_code): New function.
10118 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10119 Use glibc_skip_solib_resolver.
10120
10121 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10122
10123 Code cleanup: Make 1440 bytes of data segment read-only.
10124 * arch-utils.c (endian_enum): Make it const char *const [].
10125 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10126 Likewise.
10127 * breakpoint.c (always_inserted_enums): Likewise.
10128 * cli/cli-cmds.c (script_ext_enums): Likewise.
10129 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10130 enumlist parameter const char *const *.
10131 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10132 const char *const *.
10133 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10134 parameter const char *const *.
10135 * cris-tdep.c (cris_modes): Make it const char *const [].
10136 * filesystem.c (target_file_system_kinds): Likewise.
10137 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10138 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10139 (can_use_displaced_stepping_enum, scheduler_enums)
10140 (exec_direction_names): Likewise.
10141 * language.c (_initialize_language): Make the type_or_range_names and
10142 case_sensitive_names variables const char *const [].
10143 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10144 * python/python.c (python_excp_enums): Likewise.
10145 * remote.c (interrupt_sequence_modes): Likewise.
10146 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10147 * serial.c (logbase_enums): Likewise.
10148 * sh-tdep.c (sh_cc_enum): Likewise.
10149 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10150 Likewise.
10151 * symtab.c (multiple_symbols_modes): Likewise.
10152 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10153 Likewise.
10154 * utils.c (internal_problem_modes): Likewise.
10155
10156 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10159 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10160 result.
10161
10162 2012-01-27 Doug Evans <dje@google.com>
10163
10164 * configure.ac (with_python): Fix absolute path handling for win32.
10165 * configure: Regenerate.
10166
10167 2012-01-26 Doug Evans <dje@google.com>
10168
10169 * symtab.c: Whitespace cleanup, no code changes.
10170
10171 * symtab.c (lookup_symbol_in_language): Improve comment.
10172 (lookup_symbol_aux): Fix comment.
10173
10174 * psymtab.c (add_psymbol_to_list): Result is now "void".
10175 * psympriv.h (add_psymbol_to_list): Update.
10176
10177 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10178
10179 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 Do not open script filenames twice.
10182 * cli/cli-cmds.c (source_script_from_stream): Pass to
10183 source_python_script also STREAM.
10184 * python/py-auto-load.c (source_section_scripts): Pass to
10185 source_python_script_for_objfile also STREAM.
10186 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10187 also INPUT.
10188 * python/python-internal.h (source_python_script_for_objfile): New
10189 parameter file, rename parameter file to filename.
10190 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10191 instead if !_WIN32. Update the function comment.
10192 (source_python_script, source_python_script_for_objfile)
10193 (source_python_script): New parameter file, rename parameter file to
10194 filename. Pass FILENAME to python_run_simple_file.
10195 * python/python.h (source_python_script): New parameter file, rename
10196 parameter file to filename.
10197
10198 2012-01-26 Pedro Alves <palves@redhat.com>
10199
10200 * corelow.c (core_has_fake_pid): Delete.
10201 (core_close): Delete references to `core_has_fake_pid'.
10202 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10203 (core_open): Delete references to `core_has_fake_pid'.
10204 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10205 the removed global.
10206
10207 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10208
10209 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10210 Remove language parameter from name_matcher. Adjust the comment.
10211 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10212 Remove language parameter.
10213 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10214 * linespec.c (iterate_name_matcher): Likewise.
10215 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10216 name_matcher. Adjust call accordingly.
10217 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10218 (maintenance_check_symtabs): Adjust type of parameter "fun".
10219 * psymtab.h (maintenance_check_symtabs): Likewise.
10220
10221 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10222
10223 * language.h (symbol_name_match_p_ftype): New typedef.
10224 (struct language_defn): Replace field la_symbol_name_compare
10225 by la_get_symbol_name_match_p.
10226 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10227 (ada_language_defn): Use it.
10228 * linespec.c (struct symbol_matcher_data): New type.
10229 (iterate_name_matcher): Rewrite.
10230 (iterate_over_all_matching_symtabs): Pass a pointer to
10231 a symbol_matcher_data struct to expand_symtabs_matching
10232 instead of just the lookup name.
10233 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10234 opencl-lang.c, p-lang.c, language.c: Delete field
10235 la_symbol_name_compare, and replace by NULL for new field
10236 la_get_symbol_name_match_p.
10237 * symfile.h (struct quick_symbol_functions): Update comment.
10238
10239 2012-01-25 Tom Tromey <tromey@redhat.com>
10240
10241 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10242 dereferencing.
10243
10244 2012-01-24 Tom Tromey <tromey@redhat.com>
10245
10246 PR symtab/12406:
10247 * solib.c (update_solib_list): Update the program space's
10248 added_solibs and deleted_solibs fields.
10249 * progspace.h (struct program_space) <added_solibs,
10250 deleted_solibs>: New fields.
10251 (clear_program_space_solib_cache): Declare.
10252 * progspace.c (release_program_space): Call
10253 clear_program_space_solib_cache.
10254 (clear_program_space_solib_cache): New function.
10255 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10256 bpstat_stop_status. Use handle_solib_event.
10257 * breakpoint.c: Include gdb_regex.h.
10258 (print_solib_event): New function.
10259 (bpstat_print): Use print_solib_event.
10260 (bpstat_stop_status): Add special case for bp_shlib_event.
10261 (handle_solib_event): New function.
10262 (bpstat_what): Use handle_solib_event.
10263 (struct solib_catchpoint): New.
10264 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10265 (breakpoint_hit_catch_solib, check_status_catch_solib)
10266 (print_it_catch_solib, print_one_catch_solib)
10267 (print_mention_catch_solib, print_recreate_catch_solib): New
10268 functions.
10269 (catch_solib_breakpoint_ops): New global.
10270 (catch_load_or_unload, catch_load_command_1)
10271 (catch_unload_command_1): New functions.
10272 (internal_bkpt_check_status): Add special case for
10273 bp_shlib_event.
10274 (internal_bkpt_print_it): Use print_solib_event.
10275 (initialize_breakpoint_ops): Initialize
10276 catch_solib_breakpoint_ops.
10277 (_initialize_breakpoint): Register "catch load" and "catch
10278 unload".
10279 * breakpoint.h (handle_solib_event): Declare.
10280 * NEWS: Add entry for "catch load" and "catch unload".
10281
10282 2012-01-24 Tom Tromey <tromey@redhat.com>
10283
10284 * ada-lang.c: Include gdb_vecs.h.
10285 * charset.c: Include gdb_vecs.h.
10286 * tracepoint.h: Include gdb_vecs.h.
10287 * gdb_vecs.h: New file.
10288
10289 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10290
10291 * breakpoint.c (breakpoint_hit_catch_fork)
10292 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10293 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10294 * infrun.c (inferior_has_forked, inferior_has_vforked)
10295 (inferior_has_execd, inferior_has_called_syscall): Delete.
10296 (handle_syscall_event): Get syscall_number from the execution
10297 control state's wait status.
10298 (wait_for_inferior): Don't clear syscall_number.
10299
10300 2012-01-24 Pedro Alves <palves@redhat.com>
10301
10302 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10303 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10304 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10305 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10306 `ws' parameter.
10307 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10308 false for events other than TARGET_SIGNAL_TRAP.
10309 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10310 Add `ws' parameter.
10311 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10312 events other than TARGET_SIGNAL_TRAP.
10313 (tracepoint_breakpoint_hit): Add `ws' parameter.
10314 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10315 parameter.
10316 (bpstat_stop_status): Same.
10317 (pc_at_non_inline_function): Same.
10318 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10319 to pass the current event's waitstatus to bpstat_stop_status
10320 and pc_at_non_inline_function.
10321
10322 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10323
10324 Code cleanup.
10325 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10326 Update the function comment for it.
10327 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10328 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10329 for STREAM.
10330
10331 2012-01-24 Pedro Alves <palves@redhat.com>
10332
10333 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10334 outside `bs->stop' block.
10335 (bpstat_what): Rework bp_shlib_event handling.
10336 (internal_bkpt_check_status): If the breakpoint is a
10337 bp_shlib_event, then set bs->stop and bs->print if
10338 stop_on_solib_events is set.
10339
10340 2012-01-24 Gary Benson <gbenson@redhat.com>
10341
10342 Delete #if 0'd out code.
10343 * stack.c (print_frame_label_vars): Remove.
10344 (catch_info): Likewise.
10345 (_initialize_stack): Remove "info catch" command.
10346 * NEWS: Mention the above.
10347
10348 2012-01-24 Pedro Alves <palves@redhat.com>
10349
10350 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10351 it.
10352 (remote_notice_new_inferior): If the remote end doesn't support
10353 the multiprocess extensions, then the PID is fake.
10354 (add_current_inferior_and_thread): New.
10355 (remote_start_remote): Use it.
10356 (extended_remote_attach_1): Adjust.
10357 (extended_remote_create_inferior_1): Use
10358 add_current_inferior_and_thread.
10359
10360 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10361
10362 Fix watchpoints to be specific for each inferior.
10363 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10364 current_program_space.
10365 * i386-nat.c (i386_inferior_data_cleanup): New.
10366 (i386_inferior_data_get): Replace variable inf_data_local by an
10367 inferior_data call.
10368 (i386_use_watchpoints): Initialize i386_inferior_data.
10369 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10370 specific iterate_over_lwps.
10371
10372 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10373
10374 Fix watchpoints across inferior fork.
10375 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10376 comment for linux_nat_iterate_watchpoint_lwps.
10377 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10378 linux_nat_iterate_watchpoint_lwps.
10379 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10380 * i386-linux-nat.c (update_debug_registers_callback): Update the
10381 comment for linux_nat_iterate_watchpoint_lwps.
10382 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10383 linux_nat_iterate_watchpoint_lwps.
10384 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10385 * i386-nat.c: Include inferior.h.
10386 (dr_mirror): Remove.
10387 (i386_inferior_data, struct i386_inferior_data)
10388 (i386_inferior_data_get): New.
10389 (i386_debug_reg_state): Use i386_inferior_data_get.
10390 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10391 (i386_insert_watchpoint, i386_remove_watchpoint)
10392 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10393 (i386_remove_hw_breakpoint): New variable state, use
10394 i386_debug_reg_state instead of DR_MIRROR.
10395 * linux-nat.c (delete_lwp): New declaration.
10396 (num_lwps): Move here from downwards.
10397 (delete_lwp_cleanup): New.
10398 (linux_child_follow_fork): Create new child_lp, call
10399 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10400 PTRACE_DETACH.
10401 (num_lwps): Move upwards.
10402 (linux_nat_iterate_watchpoint_lwps): New.
10403 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10404 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10405
10406 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10407
10408 GDB 7.4 released.
10409
10410 2012-01-23 Pedro Alves <palves@redhat.com>
10411
10412 * top.c (caution): Rename to ...
10413 (confirm): ... this.
10414 (show_caution): Rename to ...
10415 (show_confirm): ... this.
10416 (quit_cover): Adjust.
10417 (init_main): Adjust.
10418 * top.h (caution): Rename to ...
10419 (confirm): ... this.
10420 * utils.c (internal_vproblem, defaulted_query): Adjust.
10421
10422 2012-01-23 Pedro Alves <palves@redhat.com>
10423
10424 * top.c (caution): Update comment.
10425 (execute_command): Don't consider the current value of `caution'.
10426
10427 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10428
10429 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10430
10431 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10432
10433 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10434 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10435 * target.c (target_fileio_pwrite): Remove buffer address from
10436 debug output.
10437 (target_fileio_pread): Likewise.
10438
10439 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10440
10441 * NEWS: Document remote "info proc" and "generate-core-file".
10442
10443 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10444
10445 * gdbarch.sh (find_memory_regions): New callback.
10446 * gdbarch.c, gdbarch.h: Regenerate.
10447
10448 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10449 callback before falling back to target method.
10450
10451 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10452 (linux_target_install_ops): No longer install it.
10453
10454 * linux-tdep.c (linux_find_memory_regions): New function.
10455 (linux_init_abi): Install it.
10456
10457 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10458
10459 * gdbarch.sh (make_corefile_notes): New architecture callback.
10460 * gdbarch.c: Regenerate.
10461 * gdbarch.h: Likewise.
10462
10463 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10464 before target_make_corefile_notes. If NULL is returned, the
10465 target does not support core file generation.
10466
10467 * linux-nat.c: Include "linux-tdep.h".
10468 (find_signalled_thread, find_stop_signal): Remove.
10469 (linux_nat_do_thread_registers): Likewise.
10470 (struct linux_nat_corefile_thread_data): Likewise.
10471 (linux_nat_corefile_thread_callback): Likewise.
10472 (iterate_over_spus): Likewise.
10473 (struct linux_spu_corefile_data): Likewise.
10474 (linux_spu_corefile_callback): Likewise.
10475 (linux_spu_make_corefile_notes): Likewise.
10476 (linux_nat_collect_thread_registers): New function.
10477 (linux_nat_make_corefile_notes): Replace contents by call to
10478 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10479 as native-only callback.
10480
10481 * linux-tdep.h: Include "bfd.h".
10482 (struct regcache): Add forward declaration.
10483 (linux_collect_thread_registers_ftype): New typedef.
10484 (linux_make_corefile_notes): Add prototype.
10485 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10486 "regset.h", and "elf-bfd.h".
10487 (find_signalled_thread, find_stop_signal): New functions.
10488 (linux_spu_make_corefile_notes): Likewise.
10489 (linux_collect_thread_registers): Likewise.
10490 (struct linux_corefile_thread_data): New data structure.
10491 (linux_corefile_thread_callback): New funcion.
10492 (linux_make_corefile_notes): Likewise.
10493 (linux_make_corefile_notes_1): Likewise.
10494 (linux_init_abi): Install it.
10495
10496 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10497
10498 * gdbarch.sh (info_proc): New callback.
10499 * gdbarch.c, gdbarch.h: Regenerate.
10500
10501 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10502 before falling back to the target info_proc callback.
10503
10504 * linux-nat.c: Do not include "cli/cli-utils.h".
10505 (linux_nat_info_proc): Remove.
10506 (linux_target_install_ops): No longer install it.
10507
10508 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10509 (read_mapping): New function.
10510 (linux_info_proc): Likewise.
10511 (linux_init_abi): Install it.
10512
10513 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10514
10515 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10516 * infcmd.c: (info_proc_cmd_1): New function.
10517 (info_proc_cmd): New function, moved here from equivalent routine
10518 orignally in linux-nat.c.
10519 (info_proc_cmd_mappings): Likewise.
10520 (info_proc_cmd_stat): Likewise.
10521 (info_proc_cmd_status): Likewise.
10522 (info_proc_cmd_cwd): Likewise.
10523 (info_proc_cmd_cmdline): Likewise.
10524 (info_proc_cmd_exe): Likewise.
10525 (info_proc_cmd_all): Likewise.
10526 (_initialize_infcmd): Install "info proc" command and subcommands.
10527
10528 * target.h (struct target_ops): Add to_info_proc.
10529 (target_info_proc): Add prototype.
10530 * target.c (target_info_proc): New function.
10531
10532 * procfs.c (procfs_info_proc): Add prototype.
10533 (info_proc_cmd): Rename into ...
10534 (procfs_info_proc): ... this. Update argument types as appropriate
10535 for a to_info_proc implementation. Handle "what" argument.
10536 (procfs_target): Install procfs_info_proc.
10537 (_initialize_procfs): No longer install "info proc" command.
10538
10539 * linux-nat.c: (enum info_proc_what): Remove.
10540 (linux_nat_info_proc_cmd_1): Rename into ...
10541 (linux_nat_info_proc): ... this. Update argument types as appropriate
10542 for a to_info_proc implementation.
10543 (linux_nat_info_proc_cmd): Remove.
10544 (linux_nat_info_proc_cmd_mappings): Likewise.
10545 (linux_nat_info_proc_cmd_stat): Likewise.
10546 (linux_nat_info_proc_cmd_status): Likewise.
10547 (linux_nat_info_proc_cmd_cwd): Likewise.
10548 (linux_nat_info_proc_cmd_cmdline): Likewise.
10549 (linux_nat_info_proc_cmd_exe): Likewise.
10550 (linux_nat_info_proc_cmd_all): Likewise.
10551 (linux_target_install_ops): Install linux_nat_info_proc.
10552 (_initialize_linux_nat): No longer install "info proc" command
10553 and subcommands.
10554
10555 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10556
10557 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10558 * config.in, configure: Regenerate.
10559
10560 * target.h (struct target_ops): Add to_fileio_readlink.
10561 (target_fileio_readlink): Add prototype.
10562 * target.c (target_fileio_readlink): New function.
10563
10564 * inf-child.c: Conditionally include <sys/param.h>.
10565 (inf_child_fileio_readlink): New function.
10566 (inf_child_target): Install it.
10567
10568 * remote.c (PACKET_vFile_readlink): New enum value.
10569 (remote_hostio_readlink): New function.
10570 (init_remote_ops): Install it.
10571 (_initialize_remote): Handle vFile:readlink packet type.
10572
10573 2012-01-20 Pedro Alves <palves@redhat.com>
10574 Ulrich Weigand <ulrich.weigand@linaro.org>
10575
10576 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10577 * config.in, configure: Regenerate.
10578
10579 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10580 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10581 (target_fileio_open): Add prototype.
10582 (target_fileio_pwrite): Likewise.
10583 (target_fileio_pread): Likewise.
10584 (target_fileio_close): Likewise.
10585 (target_fileio_unlink): Likewise.
10586 (target_fileio_read_alloc): Likewise.
10587 (target_fileio_read_stralloc): Likewise.
10588
10589 * target.c: Include "gdb/fileio.h".
10590 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10591 (default_fileio_target): New function.
10592 (target_fileio_open): Likewise.
10593 (target_fileio_pwrite): Likewise.
10594 (target_fileio_pread): Likewise.
10595 (target_fileio_close): Likewise.
10596 (target_fileio_unlink): Likewise.
10597 (target_fileio_close_cleanup): Likewise.
10598 (target_fileio_read_alloc_1): Likewise.
10599 (target_fileio_read_alloc): Likewise.
10600 (target_fileio_read_stralloc): Likewise.
10601
10602 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10603 <fcntl.h>, and <unistd.h>.
10604 (inf_child_fileio_open_flags_to_host): New function.
10605 (inf_child_errno_to_fileio_error): Likewise.
10606 (inf_child_fileio_open): Likewise.
10607 (inf_child_fileio_pwrite): Likewise.
10608 (inf_child_fileio_pread): Likewise.
10609 (inf_child_fileio_close): Likewise.
10610 (inf_child_fileio_unlink): Likewise.
10611 (inf_child_target): Install to_fileio routines.
10612
10613 * remote.c (init_remote_ops): Install to_fileio routines.
10614
10615 2012-01-20 Pedro Alves <palves@redhat.com>
10616 Ulrich Weigand <ulrich.weigand@linaro.org>
10617
10618 * remote.c (remote_multi_process_p): Only check for multi-process
10619 protocol feature, do not check for extended protocol.
10620 (remote_supports_multi_process): Check for extended protocol here.
10621 (set_general_process): Likewise.
10622 (extended_remote_kill): Likewise.
10623 (remote_pid_to_str): Likewise.
10624 (remote_query_supported): Always query multiprocess mode.
10625
10626 2012-01-20 Pedro Alves <palves@redhat.com>
10627 Ulrich Weigand <ulrich.weigand@linaro.org>
10628
10629 * inferior.h (struct inferior): Add fake_pid_p.
10630 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10631 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10632 magic_null_ptid since the remote side doesn't provide a real PID.
10633
10634 2012-01-19 Tom Tromey <tromey@redhat.com>
10635
10636 * NEWS: Combine the two Python sections.
10637
10638 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10639
10640 * target.h (target_close): Update comment on the target's unpush state.
10641
10642 2012-01-19 Pedro Alves <palves@redhat.com>
10643
10644 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10645 linux_nat_async directly instead of going through the target
10646 vector.
10647 * target.c (unpush_target): Close target after unpushing it, not
10648 before.
10649
10650 2012-01-19 Gary Benson <gbenson@redhat.com>
10651
10652 * mdebugread.c (sort_blocks): Replace integer constants with ones
10653 derived from FIRST_LOCAL_BLOCK.
10654
10655 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10656 Jan Kratochvil <jan.kratochvil@redhat.com>
10657
10658 PR gdb/9538
10659 * symfile.c (find_separate_debug_file): New function.
10660 (terminate_after_last_dir_separator): Likewise.
10661 (find_separate_debug_file_by_debuglink): Also try realpath.
10662 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10663 * configure: Regenerate.
10664 * config.in: Regenerate.
10665
10666 2012-01-18 Doug Evans <dje@google.com>
10667
10668 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10669 (main.o): Remove rule.
10670 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10671 (--with-sysroot): Rewrite.
10672 * configure: Regenerate.
10673 * config.in: Regenerate.
10674
10675 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10676
10677 * parse.c (initialize_expout): New function.
10678 (reallocate_expout): Likewise.
10679 (parse_exp_in_context): Use `initialize_expout' and
10680 `reallocate_expout' when appropriate.
10681
10682 2012-01-18 Pedro Alves <palves@redhat.com>
10683
10684 * record.c (struct record_breakpoint, record_breakpoint_p)
10685 (record_breakpoints): New.
10686 (record_insert_breakpoint, record_remove_breakpoint): Manage
10687 record breakpoints list. Only remove breakpoints from the
10688 inferior if they had been inserted there in the first place.
10689
10690 2012-01-17 Doug Evans <dje@google.com>
10691
10692 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10693 if we know we don't have a file name to look for.
10694
10695 2012-01-17 Pedro Alves <palves@redhat.com>
10696
10697 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10698 the frame's stop reason is UNWIND_UNAVAILABLE.
10699
10700 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10701
10702 Fix compilation error.
10703 * m2-exp.y (yyerror): Use ANSI C prototype.
10704
10705 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10706
10707 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10708 (growbuf_by_size): Likewise.
10709 (yyerror): Likewise.
10710 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10711 (modblock): Remove variable (was #if 0'ed).
10712 (parse_number): Convert prototype from K&R to ANSI C.
10713 (yyerror): Likewise.
10714 * objc-exp.y (parse_number): Likewise.
10715 (yyerror): Likewise.
10716 (yylex): Remove #if 0'ed code.
10717 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10718 (yyerror): Likewise.
10719
10720 2012-01-16 Tom Tromey <tromey@redhat.com>
10721
10722 * NEWS: Add item.
10723 * symtab.h (compare_filenames_for_search): Declare.
10724 * symtab.c (compare_filenames_for_search): New function.
10725 (iterate_over_some_symtabs): Use it.
10726 * symfile.h (struct quick_symbol_functions)
10727 <map_symtabs_matching_filename>: Change spec.
10728 * psymtab.c (partial_map_symtabs_matching_filename): Use
10729 compare_filenames_for_search. Update for new spec.
10730 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10731 compare_filenames_for_search. Update for new spec.
10732 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10733
10734 2012-01-16 Tom Tromey <tromey@redhat.com>
10735
10736 PR python/13281:
10737 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10738 (struct main_type) <flag_flag_enum>: New field.
10739 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10740 * NEWS: Add entries.
10741 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10742 enums.
10743 * python/lib/gdb/printing.py (_EnumInstance): New class.
10744 (FlagEnumerationPrinter): Likewise.
10745
10746 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10747
10748 * breakpoint.c (create_sals_from_address_default): New function.
10749 (create_breakpoints_sal_default): Likewise.
10750 (decode_linespec_default): Likewise.
10751 (is_marker_spec): Removed.
10752 (strace_marker_p): New function.
10753 (init_breakpoint_sal): Using `strace_marker_p' instead of
10754 `is_marker_spec'.
10755 (create_breakpoint): Call method `create_sals_from_address' from
10756 breakpoint_ops, replacing code that created SALs conditionally
10757 on the type of the breakpoint. Call method `create_breakpoints_sal',
10758 replacing code that created breakpoints conditionally on the type
10759 wanted.
10760 (base_breakpoint_create_sals_from_address): New function.
10761 (base_breakpoint_create_breakpoints_sal): Likewise.
10762 (base_breakpoint_decode_linespec): Likewise.
10763 (base_breakpoint_ops): Add methods
10764 `base_breakpoint_create_sals_from_address',
10765 `base_breakpoint_create_breakpoints_sal' and
10766 `base_breakpoint_decode_linespec'.
10767 (bkpt_create_sals_from_address): New function.
10768 (bkpt_create_breakpoints_sal): Likewise.
10769 (bkpt_decode_linespec): Likewise.
10770 (tracepoint_create_sals_from_address): Likewise.
10771 (tracepoint_create_breakpoints_sal): Likewise.
10772 (tracepoint_decode_linespec): Likewise.
10773 (strace_marker_create_sals_from_address): Likewise.
10774 (strace_marker_create_breakpoints_sal): Likewise.
10775 (strace_marker_decode_linespec): Likewise.
10776 (strace_marker_breakpoint_ops): New variable.
10777 (addr_string_to_sals): Remove `marker_spec'. Call method
10778 `decode_linespec' from breakpoint_ops, replacing code that decoded
10779 an address string into a SAL. Use `strace_marker_p' instead of
10780 `marker_spec'.
10781 (strace_command): Decide whether we are dealing with a static
10782 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10783 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10784 * breakpoint.h (linespec_result, linespec_sals): New forward
10785 declarations.
10786 (breakpoint_ops) <create_sals_from_address>,
10787 <create_breakpoints_sal>, <decode_linespec>: New methods.
10788
10789 2012-01-14 Doug Evans <dje@google.com>
10790
10791 * NEWS: Update text for "maint set python print-stack".
10792 It is deprecated in gdb 7.4 and deleted in 7.5.
10793
10794 2012-01-13 Eli Zaretskii <eliz@gnu.org>
10795
10796 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10797 including curses.h.
10798
10799 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10800
10801 * configure: Regenerate.
10802 * config.in: Regenerate.
10803
10804 2012-01-12 Keith Seitz <keiths@redhat.com>
10805
10806 PR mi/10586
10807 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10808 (ANONYMOUS_UNION_NAME): Define.
10809 (is_path_expr_parent): New function.
10810 (get_path_expr_parent): New function.
10811 (is_anonymous_child): New function.
10812 (create_child_with_value): If the child is anonymous and without
10813 a name, assign an object name to it.
10814 (c_describe_child): Use get_path_expr_parent to determine
10815 the parent expression.
10816 If there field represents an anonymous struct or union and
10817 has no name, set an appropriate display name and expression.
10818 (cplus_describe_child): Likewise.
10819
10820 2012-01-12 Pedro Alves <palves@redhat.com>
10821
10822 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10823 available when %ebp is found to be zero (outermost).
10824
10825 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
10826
10827 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10828 an internal gdb_static_assert.
10829 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10830
10831 2012-01-11 Tom Tromey <tromey@redhat.com>
10832
10833 PR gdb/9598:
10834 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10835 catch" and "catch throw".
10836
10837 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10838
10839 * blockframe.c (block_innermost_frame): Start search from selected
10840 frame, if present, or otherwise the current frame.
10841
10842 * c-exp.y (variable): Update innermost_block for
10843 'block COLONCOLON NAME' clause.
10844 * m2-exp.y (variable): Ditto.
10845 * objc-exp.y (variable): Ditto.
10846
10847 2012-01-10 Tom Tromey <tromey@redhat.com>
10848
10849 PR python/13199:
10850 * python/python.c (finish_python_initialization): Set sys.argv.
10851
10852 2012-01-10 Doug Evans <dje@google.com>
10853
10854 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10855 "want_line_info". All callers updated.
10856 (dwarf_decode_lines_1): New function.
10857 (handle_DW_AT_stmt_list): Add function comment.
10858 New arg "want_line_info". All callers updated.
10859 (read_file_scope,read_type_unit_scope): Move comment from
10860 handle_DW_AT_stmt_list to here.
10861
10862 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10863
10864 Fix regression after libiberty/ update for GCC PR 6057 and others.
10865 * c-exp.y (operator) <OPERATOR DELETE>
10866 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10867 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10868 (make_builtin_type, make_name): New variable i, add gdb_assert.
10869 (operator) <OPERATOR NEW>: Update ARGS to 3.
10870 (operator) <OPERATOR DELETE>: Add trailing space.
10871 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10872 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10873 * cp-support.c (cp_canonicalize_string): Check NULL from
10874 cp_comp_to_string, call warning and return.
10875
10876 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 Fix duplicate .o files after omitting libbfd.a.
10879 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10880 (SFILES): Add corelow.c.
10881 (COMMON_OBS): Add corelow.o.
10882 (ALLDEPFILES): Remove corelow.c.
10883 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10884 * config/alpha/alpha-osf3.mh: Likewise.
10885 * config/alpha/fbsd.mh: Likewise.
10886 * config/arm/nbsdaout.mh: Likewise.
10887 * config/arm/nbsdelf.mh: Likewise.
10888 * config/i386/i386gnu.mh: Likewise.
10889 * config/ia64/hpux.mh: Likewise.
10890 * config/ia64/linux.mh: Likewise.
10891 * config/m32r/linux.mh: Likewise.
10892 * config/m68k/linux.mh: Likewise.
10893 * config/mips/irix5.mh: Likewise.
10894 * config/mips/irix6.mh: Likewise.
10895 * config/pa/hpux.mh: Likewise.
10896 * config/pa/linux.mh: Likewise.
10897 * config/powerpc/aix.mh: Likewise.
10898 * config/sparc/linux.mh: Likewise.
10899 * config/sparc/linux64.mh: Likewise.
10900 * config/sparc/sol2.mh: Likewise.
10901 * config/vax/vax.mh: Likewise.
10902 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10903 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10904 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10905 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10906 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10907 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10908 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10909 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10910 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10911 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10912 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10913 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10914 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10915 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10916 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10917 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10918 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10919 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10920 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10921 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10922 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10923 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10924 corelow.o from gdb_target_obs.
10925 * corefile.c (core_target): Update the comment on NULL value.
10926 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10927 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10928 MATCHES. Drop YUMMY set on NULL.
10929 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10930 reclaim CORE_DATA if it is already NULL.
10931
10932 2012-01-09 Doug Evans <dje@google.com>
10933
10934 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10935 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10936
10937 2012-01-09 Keith Seitz <keiths@redhat.com>
10938
10939 * breakpoint.c (wrapper.h): Don't include.
10940
10941 2012-01-09 Keith Seitz <keiths@redhat.com>
10942
10943 * Makefile.in (SFILES): Remove wrapper.c.
10944 (HFILES_NO_SRCDIR): Remove wrapper.h.
10945 (COMMON_OBS): Remove wrapper.o.
10946 * cli/cli-interp.c: Don't inlude wrapper.h.
10947 * corelow.c: Likewise.
10948 (core_open): Replace gdb_target_find_new_threads with
10949 TRY_CATCH around target_find_new_threads.
10950 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10951 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10952 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10953 evaluate_expression.
10954 (varobj_set_value): Likewise for evaluate_expression and
10955 value_assign.
10956 (install_new_variable): Likewise for value_fetch_lazy.
10957 (adjust_value_for_child_access): Likewise for value_ind.
10958 (c_describe_child): Likewise for value_subscript and
10959 value_ind.
10960 (c_value_of_root): Likewise for evaluate_expression.
10961 * wrapper.c: Remove.
10962 * wrapper.h: Remove.
10963
10964 2012-01-09 Doug Evans <dje@google.com>
10965
10966 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10967 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10968 "abfd" args with "section". All callers updated.
10969 Error checking code moved ...
10970 (error_check_comp_unit_head): ... here. New function.
10971 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10972 Delete arg "abfd". New arg "type_offset". All callers updated.
10973 (create_debug_types_hash_table): Simplify by using
10974 read_and_check_type_unit_head.
10975
10976 * parser-defs.h (namecopy): Delete.
10977 * parse.c (namecopy, namecopy_size): Move into copy_name.
10978
10979 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10980
10981 Partially fix duplicate .o files after omitting libbfd.a.
10982 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10983 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10984 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10985 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10986 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10987 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10988 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10989
10990 2012-01-09 Pedro Alves <palves@redhat.com>
10991
10992 * MAINTAINERS: Update my email address.
10993
10994 2012-01-08 Doug Evans <dje@google.com>
10995
10996 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10997 n_type_units. Rename type_comp_units to all_type_units.
10998 All uses updated.
10999 (add_signatured_type_cu_to_table): Renamed from
11000 add_signatured_type_cu_to_list. All callers updated.
11001
11002 * gdbtypes.h (struct cplus_struct_type): Delete member
11003 nfn_fields_total. All uses removed.
11004
11005 2012-01-06 Doug Evans <dje@google.com>
11006
11007 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11008 to top of file.
11009 (dwarf2_find_comp_unit): Delete.
11010 (process_psymtab_comp_unit): Make result "void".
11011 Delete args buffer, info_ptr, buffer_size, and replace with
11012 "section". All callers updated.
11013 (dwarf2_build_psymtabs_hard): Simplify.
11014
11015 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11016 Thiago Jung Bauermann <bauerman@br.ibm.com>
11017
11018 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11019 before `struct gdb_exception'.
11020 * breakpoint.c (update_global_location_list_nothrow)
11021 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11022 * cp-abi.c (value_rtti_type): Likewise.
11023 * cp-support.c (cp_validate_operator): Likewise.
11024 * infrun.c (insert_exception_resume_breakpoint)
11025 (check_exception_resume, keep_going): Likewise.
11026 * mi-interp.c (mi_breakpoint_created)
11027 (mi_breakpoint_modified): Likewise.
11028 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11029 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11030 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11031
11032 2012-01-05 Doug Evans <dje@google.com>
11033
11034 * dwarf2read.c (statement_prologue): Delete, unused.
11035
11036 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11037 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11038
11039 * dwarf2read.c (comp_unit_header): Delete, unused.
11040
11041 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11042
11043 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11044 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11045
11046 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11047
11048 * infrun.c (normal_stop): Don't skip calling the normal_stop
11049 observers if the thread was doing a multi-step, but stopped for
11050 some reason other than stepping.
11051
11052 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11053
11054 * cli/cli-decode.h: Add comments.
11055 (CMD_LIST_AMBIGUOUS): Moved to command.h
11056 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11057 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11058 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11059 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11060 (add_com, add_com_alias, add_info, add_info_alias)
11061 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11062 declarations.
11063 * command.h: Add and adjust comments.
11064 (CMD_LIST_AMBIGUOUS): Moved here.
11065 (help_cmd, help_cmd_list): Delete declarations.
11066
11067 2012-01-04 Doug Evans <dje@google.com>
11068
11069 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11070 All callers updated.
11071 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11072 Replace all arguments with "per_cu". All callers updated.
11073
11074 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11075
11076 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11077 New arg "per_cu". All callers updated.
11078
11079 Delete #if 0'd out code.
11080 * language.c (binop_result_type): Delete.
11081 (simple_type, ordered_type, same_type, integral_type): Delete.
11082 (numeric_type, character_type, string_type, boolean_type): Delete.
11083 (float_type, structured_type): Delete.
11084 * language.h: Update.
11085
11086 2012-01-04 Tom Tromey <tromey@redhat.com>
11087
11088 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11089
11090 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11091
11092 * corefile.c (close_exec_file): Delete.
11093 (reopen_exec_file): Remove commented out code that seems related
11094 to close_exec_file, which is being deleted here.
11095 * inferior.h (close_exec_file): Delete.
11096 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11097
11098 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11099
11100 * ada-lang.c: #include "cli/cli-utils.h".
11101 (get_selections): Use skip_spaces.
11102 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11103 (catch_ada_exception_command_split): Use skip_spaces.
11104 (ada_decode_assert_location): Likewise.
11105
11106 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11107
11108 * linespec.c (decode_line_internal): Check for C++ or Java
11109 compound constructs only if the current language is C, C++
11110 or Java.
11111
11112 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 Revert:
11115 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11116 Joel Brobecker <brobecker@adacore.com>
11117 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11118 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11119 3 times.
11120 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11121 fall through into AT_ENTRY_POINT.
11122 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11123 DUMMY_ADDR with it.
11124 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11125 PPC_INSN_SIZE skip to 3 times.
11126
11127 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11128
11129 * linespec.c (add_minsym): Preserve function descriptors.
11130
11131 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11132
11133 * breakpoint.c (all_locations_are_pending): Consider locations
11134 in program spaces executing during startup pending as well.
11135
11136 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11137
11138 Copyright year update in most files of the GDB Project.
11139
11140 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11141
11142 * copyright.sh: Delete.
11143 * copyright.py: Rewrite.
11144
11145 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11146
11147 * gnulib/extra/update-copyright: New file, imported from gnulib.
11148
11149 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11150
11151 * README (Copyright and License Notices): New section.
11152
11153 2012-01-03 Tom Tromey <tromey@redhat.com>
11154
11155 PR python/12533:
11156 * python/py-value.c (valpy_dereference, valpy_get_address
11157 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11158 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11159 (valpy_absolute, valpy_richcompare): Free intermediate values.
11160
11161 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11162
11163 * ada-lang.c: Reformat the copyright notice.
11164
11165 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11166
11167 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11168 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11169 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11170 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11171 Revert this part of:
11172 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 Build gdb directly from *.o files not using libgdb.a.
11174 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11175
11176 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11177
11178 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11179 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11180 Reformat the copyright header.
11181
11182 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11183
11184 Revert this part of:
11185 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11186 Remove the gdbtui binary.
11187 * gdb.c (main): Remove args.interpreter_p initialization.
11188 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11189 * main.h (struct captured_main_args): Remove interpreter_p.
11190
11191 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11192
11193 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11194
11195 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11196
11197 * top.c (print_gdb_version): Update copyright year.
11198
11199 2012-01-02 Yao Qi <yao@codesourcery.com>
11200
11201 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11202
11203 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11204 Joel Brobecker <brobecker@adacore.com>
11205
11206 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11207 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11208 3 times.
11209 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11210 fall through into AT_ENTRY_POINT.
11211 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11212 DUMMY_ADDR with it.
11213 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11214 PPC_INSN_SIZE skip to 3 times.
11215
11216 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11217
11218 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11219 the return value.
11220 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11221
11222 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11223
11224 Build gdb directly from *.o files not using libgdb.a.
11225 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11226 (COMMON_OBS): Remove solib-target.o.
11227 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11228 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11229 (LIBGDB_OBS, libgdb.a): Move it above.
11230 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11231 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11232 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11233 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11234 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11235 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11236 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11237 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11238 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11239 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11240 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11241 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11242 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11243 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11244 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11245 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11246 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11247 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11248 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11249 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11250 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11251 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11252 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11253 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11254 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11255 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11256 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11257
11258 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11259
11260 Remove the gdbtui binary.
11261 * .gitignore (/gdbtui): Remove.
11262 * Makefile.in (TUI): Remove.
11263 (SUBDIR_TUI_OBS): Remove tui-main.o.
11264 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11265 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11266 (tui-main.o): Remove.
11267 (all_object_files): Remove tui-main.o.
11268 * NEWS: New note for the gdbtui removal.
11269 * configure: Rebuilt.
11270 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11271 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11272 CONFIG_UNINSTALL respectively.
11273 * gdb.c (main): Remove args.interpreter_p initialization.
11274 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11275 * main.h (struct captured_main_args): Remove interpreter_p.
11276 * tui/tui-main.c: Remove.
11277
11278 2012-01-01 Doug Evans <dje@google.com>
11279
11280 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11281 (dwarf2_physname, read_import_statement): Ditto.
11282 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11283 (process_structure_scope read_subroutine_type): Ditto.
11284 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11285 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11286 (dwarf2_fetch_die_location_block): Ditto.
11287 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11288
11289 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11290 All callers updated.
11291 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11292 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11293 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11294
11295 * dwarf2read.c (load_cu): Move assert to more useful location.
11296
11297 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11298 All callers updated.
11299
11300 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11301 (dwarf2_elf_names): Minor reformat.
11302 (dwarf2_per_cu_data): Tweak comment.
11303 (dwarf2_read_section): Fix comment.
11304 (create_all_comp_units): Fix comment.
11305 (load_full_comp_unit): Fix comment.
11306 (process_full_comp_unit): Fix comment.
11307 (read_signatured_type): Fix comment.
11308
11309 For older changes see ChangeLog-2011.
11310 \f
11311 Local Variables:
11312 mode: change-log
11313 left-margin: 8
11314 fill-column: 74
11315 version-control: never
11316 coding: utf-8
11317 End: