2013-02-19 Lei Liu <lei.liu2@windriver.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-19 Lei Liu <lei.liu2@windriver.com>
2
3 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
4 Don't check DSP register number if HAVE_DSP is not set.
5
6 2013-02-19 Alan Modra <amodra@gmail.com>
7
8 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9 throughout file instead.
10 (build_id_bfd_get): Update to use new elf_tdata build_id field.
11 Don't xmalloc return value.
12 (build_id_verify): Similarly. Don't xfree.
13 (build_id_to_debug_filename): Update.
14 (find_separate_debug_file_by_buildid): Update, don't xfree.
15
16 2013-02-18 Tom Tromey <tromey@redhat.com>
17
18 PR gdb/15102:
19 * dwarf2read.c (read_subrange_type): Use result of
20 'check_typedef'.
21
22 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
23
24 * frame.c: Remove one extra white space after #include
25 directive.
26
27 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
30
31 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
32
33 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
34 and dir commands into an if block.
35
36 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
37
38 * python/py-breakpoint (struct pybp_code): Use int instead of
39 enum type_code.
40
41 2013-02-15 Pedro Alves <pedro@codesourcery.com>
42 Hafiz Abid Qadeer <abidh@codesourcery.com>
43
44 * NEWS: Mention new field "trace-file".
45 * tracepoint.c (trace_status_mi): Output "trace-file" field.
46 (tfile_open): Record the trace file's filename in the trace
47 status.
48 (tfile_files_info): Mention the name of the trace file.
49 Check the "filename" field explicitely.
50 (trace_status_command): Explicitely check "filename" field.
51 (trace_find_command): Ditto.
52 (trace_find_pc_command): Ditto.
53 (trace_find_tracepoint_command): Ditto.
54 (trace_find_line_command): Ditto.
55 (trace_find_range_command): Ditto.
56 (trace_find_outside_command): Ditto.
57 * tracepoint.h (struct trace_status) <from_file>: Rename it
58 to "filename" and make it hold the trace file's filename
59 instead of a boolean.
60 * remote.c (remote_get_trace_status): Initialize "filename"
61 field with NULL instead of 0.
62
63 2013-02-15 Yao Qi <yao@codesourcery.com>
64
65 * remote.c: Fix a typo.
66
67 2013-02-14 Pierre Muller <muller@sourceware.org>
68
69 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
70
71 2013-02-14 Pedro Alves <palves@redhat.com>
72
73 * utils.c (savestring): Don't #undef it. Move function to
74 common/common-utils.c.
75 * common/common-utils.c: Include gdb_string.h.
76 (savestring): Move here from utils.c.
77 * common/common-utils.h (savestring): Declare.
78
79 2013-02-14 Pedro Alves <palves@redhat.com>
80
81 * utils.c (savestring): Rename parameter 'size' to 'len'.
82
83 2013-02-14 Pedro Alves <palves@redhat.com>
84 Yufeng Zhang <yufeng.zhang@arm.com>
85
86 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
87 (aarch64_inferior_data, struct aarch64_inferior_data):
88 Delete.
89 (struct aarch64_process_info): New.
90 (aarch64_process_list): New global.
91 (aarch64_find_process_pid, aarch64_add_process)
92 (aarch64_process_info_get): New functions.
93 (aarch64_inferior_data_get): Delete.
94 (aarch64_process_info_get): New function.
95 (aarch64_forget_process): New function.
96 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
97 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
98 aarch64_get_debug_reg_state.
99 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
100 instead of linux_nat_iterate_watchpoint_lwps.
101 (aarch64_linux_new_fork): New function.
102 (aarch64_linux_child_post_startup_inferior): Use
103 aarch64_forget_process instead of aarch64_init_debug_reg_state.
104 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
105 (aarch64_linux_remove_hw_breakpoint)
106 (aarch64_handle_aligned_watchpoint)
107 (aarch64_handle_unaligned_watchpoint)
108 (aarch64_linux_insert_watchpoint)
109 (aarch64_linux_remove_watchpoint)
110 (aarch64_linux_stopped_data_address): Adjust to pass the current
111 process id to aarch64_debug_reg_state.
112 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
113 linux_nat_new_fork hook, and aarch64_forget_process as
114 linux_nat_forget_process hook; remove the call to
115 register_inferior_data_with_cleanup.
116
117 2013-02-14 Pedro Alves <palves@redhat.com>
118
119 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
120 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
121 lval_memory.
122
123 2013-02-14 Pedro Alves <pedro@codesourcery.com>
124 Hafiz Abid Qadeer <abidh@codesourcery.com>
125
126 * tracepoint.h (validate_trace_state_variable_name): Declare.
127 * tracepoint.c (validate_trace_state_variable_name): New.
128 (trace_variable_command): Parse the trace state variable's name
129 without using parse_expression. Do several validations.
130 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
131 trace state variable's name with parse_expression. Validate it.
132
133 2013-02-14 Yao Qi <yao@codesourcery.com>
134
135 * infcmd.c (breakpoint_proceeded): Remove it.
136
137 2013-02-14 Yao Qi <yao@codesourcery.com>
138
139 * tracepoint.c (end_actions_pseudocommand): Make it static.
140 (while_stepping_pseudocommand): Likewise.
141 * tracepoint.h (end_actions_pseudocommand): Remove the
142 declaration.
143 (while_stepping_pseudocommand): Likewise.
144
145 2013-02-14 Yao Qi <yao@codesourcery.com>
146
147 * cli/cli-decode.c (help_cmd): Remove the declaration of
148 "cmdlist".
149 (help_all): Likewise.
150
151 2013-02-13 Pedro Alves <palves@redhat.com>
152
153 * amd64-linux-nat.c (update_debug_registers_callback):
154 Update comment.
155 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
156 iterate_over_lwps.
157 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
158 i386_debug_reg_state.
159 (amd64_linux_new_fork): New function.
160 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
161 linux_nat_new_fork hook, and i386_forget_process as
162 linux_nat_forget_process hook.
163 * i386-linux-nat.c (update_debug_registers_callback):
164 Update comment.
165 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
166 iterate_over_lwps.
167 (i386_linux_prepare_to_resume): Pass the lwp's pid to
168 i386_debug_reg_state.
169 (i386_linux_new_fork): New function.
170 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
171 linux_nat_new_fork hook, and i386_forget_process as
172 linux_nat_forget_process hook.
173 * i386-nat.c (i386_init_dregs): Delete.
174 (i386_inferior_data, struct i386_inferior_data):
175 Delete.
176 (struct i386_process_info): New.
177 (i386_process_list): New global.
178 (i386_find_process_pid, i386_add_process, i386_process_info_get):
179 New functions.
180 (i386_inferior_data_get): Delete.
181 (i386_process_info_get): New function.
182 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
183 (i386_forget_process): New function.
184 (i386_cleanup_dregs): Rewrite.
185 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
186 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
187 (i386_stopped_data_address, i386_insert_hw_breakpoint)
188 (i386_remove_hw_breakpoint): Adjust to pass the current process id
189 to i386_debug_reg_state.
190 (i386_use_watchpoints): Don't register inferior data.
191 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
192 adjust comment.
193 (i386_forget_process): Declare.
194 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
195 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
196 New static globals.
197 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
198 (add_initial_lwp): New, factored out from ...
199 (add_lwp): ... this. Don't check the number of lwps before
200 calling linux_nat_new_thread.
201 (linux_nat_iterate_watchpoint_lwps): Delete.
202 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
203 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
204 forks and vforks.
205 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
206 initial lwp.
207 (linux_nat_kill, linux_nat_mourn_inferior): Call
208 linux_nat_forget_process.
209 (linux_nat_set_new_fork, linux_nat_set_forget_process)
210 (linux_nat_forget_process): New functions.
211 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
212 type.
213 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
214 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
215 types.
216 (linux_nat_set_new_fork, linux_nat_set_forget_process)
217 (linux_nat_forget_process): New declarations.
218
219 * amd64fbsd-nat.c (super_mourn_inferior): New global.
220 (amd64fbsd_mourn_inferior): New function.
221 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
222 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
223
224 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
225
226 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
227 Adding _().
228
229 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
230
231 * aarch64-linux-nat.c (debug_reg_change_callback)
232 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
233 %s and phex().
234
235 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
236
237 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
238 with LONGEST.
239
240 2013-02-13 Pedro Alves <palves@redhat.com>
241 Hafiz Abid Qadeer <abidh@codesourcery.com>
242
243 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
244
245 2013-02-12 Tom Tromey <tromey@redhat.com>
246
247 PR symtab/11464:
248 * c-exp.y (lex_one_token): Initialize other fields of yylval on
249 NAME return.
250 (classify_inner_name): Remove 'first_name' argument, add
251 'context'. Remove unused variable.
252 (yylex): Explicitly maintain the context type. Exit loop earlier
253 if NAME result is seen.
254
255 2013-02-12 Pedro Alves <palves@redhat.com>
256
257 * amd64-darwin-tdep.c: Add (C) after Copyright.
258 * cli/cli-cmds.h: Ditto.
259 * cli/cli-decode.c: Ditto.
260 * cli/cli-decode.h: Ditto.
261 * cli/cli-dump.c: Ditto.
262 * cli/cli-dump.h: Ditto.
263 * cli/cli-interp.c: Ditto.
264 * cli/cli-logging.c: Ditto.
265 * cli/cli-script.c: Ditto.
266 * cli/cli-script.h: Ditto.
267 * cli/cli-setshow.c: Ditto.
268 * cli/cli-setshow.h: Ditto.
269 * cli/cli-utils.c: Ditto.
270 * cli/cli-utils.h: Ditto.
271 * config/alpha/nm-osf3.h: Ditto.
272 * config/djgpp/djconfig.sh: Ditto.
273 * config/i386/nm-fbsd.h: Ditto.
274 * config/i386/nm-i386gnu.h: Ditto.
275 * config/nm-linux.h: Ditto.
276 * config/nm-nto.h: Ditto.
277 * config/rs6000/nm-rs6000.h: Ditto.
278 * config/sparc/nm-sol2.h: Ditto.
279 * darwin-nat-info.c: Ditto.
280 * dfp.c: Ditto.
281 * dfp.h: Ditto.
282 * gdb-demangle.h: Ditto.
283 * i386-darwin-nat.c: Ditto.
284 * i386-darwin-tdep.c: Ditto.
285 * linux-fork.h: Ditto.
286 * m32c-tdep.c: Ditto.
287 * microblaze-linux-tdep.c: Ditto.
288 * microblaze-rom.c: Ditto.
289 * microblaze-tdep.c: Ditto.
290 * microblaze-tdep.h: Ditto.
291 * mips-linux-tdep.h: Ditto.
292 * ppc-ravenscar-thread.c: Ditto.
293 * ppc-ravenscar-thread.h: Ditto.
294 * prologue-value.c: Ditto.
295 * prologue-value.h: Ditto.
296 * ravenscar-thread.c: Ditto.
297 * ravenscar-thread.h: Ditto.
298 * sparc-ravenscar-thread.c: Ditto.
299 * sparc-ravenscar-thread.h: Ditto.
300 * tilegx-linux-tdep.c: Ditto.
301 * unwind_stop_reasons.def: Ditto.
302 * windows-nat.h: Ditto.
303 * xtensa-linux-tdep.c: Ditto.
304 * xtensa-xtregs.c: Ditto.
305 * regformats/regdat.sh: Ditto.
306 * regformats/regdef.h: Ditto.
307
308 2013-02-12 Pedro Alves <palves@redhat.com>
309
310 * break-catch-sig.c: Update copyright years.
311
312 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
313
314 Add support for a destructor for ui_out data and use it to
315 provide a ui_out destructor.
316 * ui-out.h: Declare the new ui_out destructor.
317 (ui_out_impl): Add a field for data destructor in ui_out_impl.
318 * ui-out.c (default_data_destroy): Add a default data destructor
319 which does nothing.
320 (default_ui_out_impl): Set the new data_destroy field to
321 default_data_destroy
322 (uo_data_destroy): Local function which invokes the data
323 destructor if present.
324 (clear_table): Local function which clears the table data of a
325 ui_out object.
326 (ui_out_destroy): Public function which frees a ui_out object.
327 (ui_out_table_end): Use the new clear_table function.
328 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
329 NULL.
330 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
331 to NULL.
332
333 2013-02-11 Doug Evans <dje@google.com>
334
335 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
336 (printf_decfloat): New function. Broken out from ui_printf.
337 Remove unnecessary code to shift the entire format string down.
338 (printf_pointer): New function.
339 (ui_printf): Code to print C strings, wide C strings, decfloats,
340 and pointers moved to separate functions.
341
342 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
343
344 * valops.c (value_assign): Handling bitfield offset in
345 `lval_internalvar_component' case.
346
347 2013-02-08 Doug Evans <dje@google.com>
348
349 * common/format.c (parse_format_string): Fix whitespace.
350
351 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
352
353 * stack.c (return_command): Work around uninitialized variable
354 warning.
355
356 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
357
358 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
359 number of the registers from 36 to 34.
360
361 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
362
363 * NEWS: Mention new AArch64 native and target support.
364
365 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
366
367 * MAINTAINERS (Write After Approval): Add myself.
368
369 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
370 Marcus Shawcroft <marcus.shawcroft@arm.com>
371 Nigel Stephens <nigel.stephens@arm.com>
372 Yufeng Zhang <yufeng.zhang@arm.com>
373
374 * aarch64-linux-nat.c: New file.
375 * config/aarch64/linux.mh: New file.
376 * configure.host: Add AArch64.
377 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
378
379 2013-02-07 Doug Evans <dje@google.com>
380
381 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
382 disassemble command.
383
384 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
385
386 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
387 set_gdbarch_fetch_tls_load_module_address.
388
389 2013-02-06 David S. Miller <davem@davemloft.net>
390
391 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
392 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
393 * value.c (struct_return_convention): New function.
394 (using_struct_return): Implement in terms of struct_return_convention.
395 * value.h (struct_return_convention): Declare.
396 * stack.c (return_command): Allow successful overriding of the return
397 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
398
399 2013-02-06 Tom Tromey <tromey@redhat.com>
400
401 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
402 outside of TRY_CATCH.
403
404 2013-02-06 Yao Qi <yao@codesourcery.com>
405
406 * mi/mi-interp.c: Include "tracepoint.h".
407 (mi_tsv_modified): Declare.
408 (mi_tsv_created, mi_tsv_deleted): Update declaration.
409 (mi_interpreter_init): Call observer_attach_tsv_modified.
410 (mi_tsv_modified): New.
411 (mi_tsv_created, mi_tsv_deleted): Update.
412 * tracepoint.c (trace_variable_command): Call
413 observer_notify_tsv_modified if the initial value of tsv is
414 changed.
415 (delete_trace_state_variable): Call
416 observer_notify_tsv_deleted earlier.
417 (trace_variable_command): Caller update.
418 (create_tsv_from_upload): Likewise.
419 * observer.sh: Declare "struct trace_state_variable".
420
421 * NEWS: Mention the new MI notification "=tsv-modified".
422
423 2013-02-05 Doug Evans <dje@google.com>
424
425 * completer.c (location_completer): Fix typo in comment.
426
427 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 * breakpoint.c (add_location_to_breakpoint): Insert the location with
430 ADDRESS sorted.
431
432 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
433
434 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
435 Refactor if statement to avoid trailing || operator.
436
437 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
438
439 * NEWS: Add PowerPC FreeBSD as a new native configuration.
440
441 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
442
443 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
444 * configure.host: Add powerpc*-*-freebsd* target.
445 * configure.tgt: Add target info for powerpc*-*-freebsd*.
446 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
447 * config/powerpc/fbsd.mh: New file.
448
449 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
450 Denys Vlasenko <dvlasenk@redhat.com>
451 Pedro Alves <palves@redhat.com>
452
453 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
454 (struct elf_internal_linux_prpsinfo): Forward declare.
455 * gdbarch.h, gdbarch.c: Regenerate.
456 * linux-tdep.c: Include `cli/cli-utils.h'.
457 (linux_fill_prpsinfo): New function.
458 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
459 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
460 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
461 depending on gdbarch pointer bitness.
462 * ppc-linux-tdep.c: Include elf-bfd.h.
463 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
464 on 32-bit.
465
466 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
467 Marcus Shawcroft <marcus.shawcroft@arm.com>
468 Nigel Stephens <nigel.stephens@arm.com>
469 Yufeng Zhang <yufeng.zhang@arm.com>
470
471 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
472
473 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
474 Marcus Shawcroft <marcus.shawcroft@arm.com>
475 Nigel Stephens <nigel.stephens@arm.com>
476 Yufeng Zhang <yufeng.zhang@arm.com>
477
478 * aarch64-newlib-tdep.c: New file.
479 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
480 aarch64*-*-elf.
481 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
482 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
483 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
484 * osabi.c (gdb_osabi_names): Add "Newlib".
485
486 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
487 Marcus Shawcroft <marcus.shawcroft@arm.com>
488 Nigel Stephens <nigel.stephens@arm.com>
489 Yufeng Zhang <yufeng.zhang@arm.com>
490
491 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
492 (ALLDEPFILES): Add aarch64-linux-tdep.c.
493 * aarch64-linux-tdep.c: New file.
494 * aarch64-linux-tdep.h: New file.
495 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
496 * configure.tgt: Add aarch64-none-linux-gnu.
497
498 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
499 Marcus Shawcroft <marcus.shawcroft@arm.com>
500 Nigel Stephens <nigel.stephens@arm.com>
501 Yufeng Zhang <yufeng.zhang@arm.com>
502
503 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
504 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
505 (ALLDEPFILES): Add aarch64-tdep.c.
506 * aarch64-tdep.c: New file.
507 * aarch64-tdep.h: New file.
508 * configure.tgt: Add AArch64.
509 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
510 (aarch64-expedite): New definition.
511 * features/aarch64-core.xml: New file.
512 * features/aarch64-fpu.xml: New file.
513 * features/aarch64-without-fpu.c: New file (generated).
514 * features/aarch64-without-fpu.xml: New file.
515 * features/aarch64.c: New file (generated).
516 * features/aarch64.xml: New file.
517 * regformats/aarch64-without-fpu.dat: New file (generated).
518 * regformats/aarch64.dat: New file (generated).
519
520 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
521
522 * contrib/expect-read1.c: New file.
523 * contrib/expect-read1.sh: New file.
524
525 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
526
527 * dwarf2read.c (file_file_name): New function with code from
528 file_full_name.
529 (file_full_name): Move most of the code to file_file_name.
530 (macro_start_file): Rename variable full_name to file_name and use
531 file_file_name for it. Add comp_dir parameter to new_macro_table.
532 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
533 macro_source_file->filename access by macro_source_fullname call.
534 * macroscope.c (_initialize_macroscope): Update the new_macro_table
535 caller.
536 * macrotab.c (struct macro_table): New field comp_dir.
537 (macro_include): New variables link_fullname and source_fullname.
538 Replace any macro_source_file->filename access by macro_source_fullname
539 call.
540 (macro_lookup_inclusion): Remove the partial filenames checking code.
541 (check_for_redefinition): New variables source_fullname and
542 found_key_fullname. Replace any macro_source_file->filename access by
543 macro_source_fullname call.
544 (macro_undef): New variables source_fullname and key_fullname. Replace
545 any macro_source_file->filename access by macro_source_fullname call.
546 (macro_lookup_definition): New variables retval and source_fullname.
547 Replace any macro_source_file->filename access by macro_source_fullname
548 call.
549 (foreach_macro): New variable key_fullname. Replace any
550 macro_source_file->filename access by macro_source_fullname call.
551 (foreach_macro_in_scope): New variable datum_fullname. Replace any
552 macro_source_file->filename access by macro_source_fullname call.
553 (new_macro_table): Add parameter comp_dir. Initialize T with it.
554 (macro_source_fullname): New function.
555 * macrotab.h (struct macro_source_file): Extent the filename field
556 comment.
557 (new_macro_table): New parameter comp_dir, add a comment for it.
558 (macro_source_fullname): new declaration.
559
560 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
563 this_real_name to outer block. Use it also for
564 compare_filenames_for_search.
565 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
566 with dw2_get_real_path for file_matcher, considering also
567 BASENAMES_MAY_DIFFER.
568 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
569
570 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
571
572 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
573 to the file_matcher parameter. Pass 0 to it.
574 (dwarf2_create_include_psymtab): Copy also DIRNAME.
575 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
576 NULL psymtab_to_fullname result.
577 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
578 an expected filename instead.
579 (expand_symtabs_matching_via_partial): Add basenames parameter to the
580 file_matcher parameter. Call also psymtab_to_fullname, after newly
581 considering BASENAMES_MAY_DIFFER.
582 * source.c (rewrite_source_path): Remove static.
583 * source.h (rewrite_source_path): New declaration.
584 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
585 the expand_symtabs_matching field. Comment it.
586 * symtab.c (file_matches): New function comment. Add parameter
587 basenames, implement it.
588 (search_symbols_file_matches): Add basenames parameter. Update the
589 file_matches caller.
590 (search_symbols): Match FILES also against symtab_to_fullname.
591 Optimize it for BASENAMES_MAY_DIFFER.
592
593 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
594
595 * source.c (print_source_lines_base): Print for TUI also "fullname".
596 * tui/tui-data.c (init_content_element): Change tui_locator_element
597 field to full_name.
598 * tui/tui-data.h (struct tui_locator_element): Likewise.
599 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
600 tui_update_locator_filename calls to tui_update_locator_fullname.
601 Replace symtab->filename refererence by symtab_to_fullname call.
602 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
603 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
604 field to full_name. Replace symtab->filename refererence by
605 symtab_to_fullname call.
606 (tui_show_symtab_source): Rename parameter to fullname. Change
607 tui_locator_element field to full_name.
608 * tui/tui-stack.c: Include source.h.
609 (tui_set_locator_filename): Rename the declaration to ...
610 (tui_set_locator_fullname): ... here. Rename its parameter to
611 fullname, updates its comment.
612 (tui_set_locator_info): Rename its parameter to fullname.
613 (tui_set_locator_filename): Rename the definition to ...
614 (tui_set_locator_fullname): ... here. Rename its parameter to
615 fullname, updates its comment. Change tui_locator_element field to
616 full_name.
617 (tui_set_locator_info): Rename its parameter to fullname.
618 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
619 (tui_update_locator_filename): Rename to ...
620 (tui_update_locator_fullname): ... here. Rename callee to
621 tui_set_locator_fullname.
622 (tui_show_frame_info): Replace symtab->filename refererence by
623 symtab_to_fullname call.
624 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
625 (tui_update_locator_fullname): ... here.
626 * tui/tui-winsource.c (tui_display_main): Rename the callee to
627 tui_update_locator_fullname. Replace symtab->filename refererence by
628 symtab_to_fullname call.
629 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
630 Rename the callee to tui_update_locator_fullname.
631 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
632
633 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
634
635 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
636 by symtab_to_filename_for_display calls.
637 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
638 (clear_command): New variable sal_fullname, initialize it. Replace
639 compare_filenames_for_search by filename_cmp with sal_fullname.
640 (say_where, update_static_tracepoint): Replace symtab->filename
641 refererences by symtab_to_filename_for_display calls.
642 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
643 Likewise.
644 * dwarf2read.c: Include source.h.
645 (fixup_go_packaging): Replace symtab->filename refererences by
646 symtab_to_filename_for_display calls.
647 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
648 Replace symtab->filename refererences by symtab_to_filename_for_display
649 calls.
650 (create_sals_line_offset, convert_linespec_to_sals): New variable
651 fullname, initialize it, replace symtab->filename reference by the
652 variable.
653 * linux-fork.c: Include source.h.
654 (info_checkpoints_command): Replace symtab->filename refererences by
655 symtab_to_filename_for_display calls.
656 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
657 by symtab_to_filename_for_display calls.
658 * mdebugread.c: Include source.h.
659 (psymtab_to_symtab_1): Replace symtab->filename refererences by
660 symtab_to_filename_for_display calls.
661 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
662 (mi_cmd_file_list_exec_source_files): Likewise.
663 * printcmd.c: Include source.h.
664 (build_address_symbolic): Replace symtab->filename refererences by
665 symtab_to_filename_for_display calls.
666 * psymtab.c (partial_map_symtabs_matching_filename)
667 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
668 with psymtab_to_fullname.
669 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
670 by symtab_to_filename_for_display calls.
671 (stpy_get_filename): New variable filename, initialize it, use instead
672 of symtab->filename refererences.
673 (salpy_str): Make variable filename const char *. Replace
674 symtab->filename refererences by symtab_to_filename_for_display calls.
675 * skip.c: Include source.h and filenames.h.
676 (skip_file_command): Remove const from the symtab variable. Replace
677 symtab->filename refererences by symtab_to_fullname call.
678 (function_name_is_marked_for_skip): New variables searched_for_fullname
679 and fullname. Use them to search also with symtab's fullname.
680 * source.c (find_source_lines): Replace symtab->filename refererences
681 by symtab_to_filename_for_display calls.
682 (print_source_lines_base): New variable filename, use it instead of
683 symtab->filename. Replace symtab->filename refererences by
684 symtab_to_filename_for_display calls.
685 (line_info, forward_search_command): Replace symtab->filename
686 refererences by symtab_to_filename_for_display calls.
687 (reverse_search_command): Replace symtab->filename refererences by
688 symtab_to_filename_for_display calls. New variable filename for it.
689 * stack.c (frame_info): Likewise.
690 * symmisc.c: Include source.h.
691 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
692 (maintenance_info_symtabs): Replace symtab->filename refererences by
693 symtab_to_filename_for_display calls.
694 * symtab.c (iterate_over_some_symtabs): Call
695 compare_filenames_for_search also with symtab_to_fullname.
696 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
697 symtab->filename refererences by symtab_to_filename_for_display calls.
698 (find_line_symtab): Replace symtab->filename refererences by
699 symtab_to_filename_for_display calls.
700 (file_matches): Replace filename_cmp by compare_filenames_for_search.
701 (print_symbol_info): Make the last parameter const char *. New
702 variable s_filename. Use it in the function.
703 (symtab_symbol_info): Make the last_filename variable const char *.
704 Replace symtab->filename refererences by symtab_to_filename_for_display
705 calls.
706 (rbreak_command): New variable fullname. Use it. Replace
707 symtab->filename refererence by symtab_to_filename_for_display call.
708 * tracepoint.c (set_traceframe_context, trace_find_line_command)
709 (print_one_static_tracepoint_marker): Replace symtab->filename
710 refererences by symtab_to_filename_for_display calls.
711 * tui/tui-source.c (tui_set_source_content): New variables filename and
712 s_filename. Replace symtab->filename refererences by this variable.
713 Replace other symtab->filename refererences by
714 symtab_to_filename_for_display calls.
715
716 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
717 Jan Kratochvil <jan.kratochvil@redhat.com>
718
719 Add a new variable that controls a way in which filenames are
720 displayed.
721 * NEWS (set filename-display): New entry.
722 * source.c (filename_display_basename, filename_display_relative)
723 (filename_display_absolute, filename_display_kind_names)
724 (filename_display_string, show_filename_display_string)
725 (symtab_to_filename_for_display): New.
726 (_initialize_source): Added initialization of 'filename-display'
727 variable.
728 * source.h (symtab_to_filename_for_display): Added declaration.
729 * stack.c (print_frame): Added new variable and calling of a new
730 function and condition with this variable. Changed third argument of
731 calling of a function.
732
733 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
734
735 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
736 Rename field reference filename to fullname.
737 * tui/tui-data.h (struct tui_source_info): Rename field filename to
738 fullname. New comment for it.
739 * tui/tui-source.c (tui_set_source_content): Rename field reference
740 filename to fullname. Initialize field by symtab_to_fullname now.
741 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
742 reference filename to fullname. Use symtab_to_fullname during
743 comparison.
744
745 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
746
747 Code cleanup.
748 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
749 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
750 filename to fullname. Rename variable this_name to this_fullname.
751 Lowercase FILENAME_CMP call.
752 (dw2_find_symbol_file): New comment for the returned string.
753 (dwarf2_gdb_index_functions): Rename the function to
754 dw2_expand_symtabs_with_fullname.
755 * psymtab.c (read_psymtabs_with_filename): Rename to ...
756 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
757 fullname.
758 (psym_functions): Rename the function to read_psymtabs_with_fullname.
759 * symfile.h (struct quick_symbol_functions): Rename field
760 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
761 parameter filename to fullname. Document returned string meaning for
762 find_symbol_file.
763 * symtab.c (find_line_symtab): Rename the called function to
764 expand_symtabs_with_fullname.
765
766 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
767
768 Code cleanup.
769 * breakpoint.c (clear_command): Remove variable is_abs, unify the
770 call of filename_cmp with compare_filenames_for_search.
771 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
772 is_abs, unify the call of FILENAME_CMP with
773 compare_filenames_for_search. New gdb_asserts for real_path and name.
774 Unify the call of compare_filenames_for_search with FILENAME_CMP.
775 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
776 * symfile.h (struct quick_symbol_functions): Extend the comment for
777 map_symtabs_matching_filename.
778 * symtab.c (compare_filenames_for_search): Remove the function comment
779 relative path requirement. Handle absolute filenames, with a comment.
780 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
781 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
782 real_path and name. Unify the call of compare_filenames_for_search
783 with FILENAME_CMP.
784 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
785
786 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
787
788 Code cleanup.
789 * breakpoint.c (print_breakpoint_location): Replace bp_location field
790 source_file references by symtab field references. Remove variables
791 sal and fullname.
792 (momentary_breakpoint_from_master, add_location_to_breakpoint):
793 (clear_command, say_where): Replace bp_location field source_file
794 references by symtab field references.
795 (bp_location_dtor): Remove the source_file reference.
796 (update_static_tracepoint): Replace bp_location field source_file
797 references by symtab field references.
798 (breakpoint_free_objfile): New function.
799 * breakpoint.h (struct bp_location): Extend the comment for line_number.
800 Replace the field source_file by field symtab, extend its comment.
801 (breakpoint_free_objfile): New declaration.
802 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
803 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
804 field source_file references by symtab field references.
805
806 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
807
808 Replace xfullpath calls by gdb_realpath calls.
809 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
810 function comment.
811 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
812 Remove it from the iterate_over_some_symtabs call.
813 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
814 Remove it from the dw2_map_expand_apply calls, remove a block handling
815 it.
816 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
817 Remove it from the iterate_over_some_symtabs call.
818 (partial_map_symtabs_matching_filename): Remove parameter full_path.
819 Remove it from the partial_map_expand_apply calls, remove a block
820 handling it. Drop gdb_realpath call and cleanups from the real_path
821 handling.
822 * source.c (openp): Drop the comment part about xfullpath. Replace
823 xfullpath calls by gdb_realpath calls.
824 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
825 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
826 from method map_symtabs_matching_filename and its comment.
827 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
828 gdb_realpath call.
829 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
830 remove it also from the function comment, remove a block handling it.
831 Drop gdb_realpath call and cleanups from the real_path handling.
832 (iterate_over_symtabs): Drop variable full_path and its use.
833 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
834 * utils.c (xfullpath): Remove.
835 * utils.h (xfullpath): Remove.
836
837 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
838
839 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
840 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
841 (ALLDEPFILES): Add ppc64-tdep.c.
842 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
843 ppc64-tdep.o to gdb_target_obs.
844 * ppc64-tdep.h: New file.
845 * ppc64-tdep.c: New file.
846 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
847 ppc-linux-tdep.c to here.
848 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
849 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
850 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
851 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
852 from ppc-linux-tdep.c to here.
853 (ppc64_convert_from_func_ptr_addr): Rename from
854 ppc64_linux_convert_from_func_ptr_addr to
855 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
856 here.
857 * rs6000-tdep.c:
858 (read_insn): Move from ppc-linux-tdep.c to here.
859 (insns_match_pattern, insn_d_field, insn_ds_field): Move
860 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
861 * ppc-linux-tdep.c: Include ppc64-tdep.h.
862 Removed above functions.
863 (ppc_linux_init_abi): Adjust.
864
865 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
866
867 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
868
869 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
870
871 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
872
873 2013-02-01 Pedro Alves <palves@redhat.com>
874
875 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
876 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
877
878 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
879
880 * elfread.c (elf_symfile_read): Limit separate debug info additions to
881 files with no separate debug info.
882 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
883 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
884 only for files with no separate debug info.
885
886 2013-01-31 Tom Tromey <tromey@redhat.com>
887
888 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
889 change type.
890 (struct jit_program_space_data): Rename from jit_inferior_data.
891 Update comments.
892 (get_jit_program_space_data): Rename from get_jit_inferior_data.
893 Change return type. Attach data to program space.
894 (jit_program_space_data_cleanup): Rename from
895 jit_inferior_data_cleanup; change argument type.
896 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
897 change type.
898 (jit_register_code): Update.
899 (jit_update_inferior_cache): Remove.
900 (jit_breakpoint_deleted): Get jit data from the location's program
901 space.
902 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
903 'ps_data', change type.
904 (jit_inferior_init, jit_breakpoint_re_set_internal)
905 (jit_event_handler): Update.
906 (free_objfile_data): Get data from objfile's program space.
907 (_initialize_jit): Update.
908
909 2013-01-31 Tom Tromey <tromey@redhat.com>
910
911 PR gdb/13987:
912 * jit.c (struct jit_inferior_data) <cached_code_address,
913 jit_breakpoint>: New fields.
914 (jit_breakpoint_re_set_internal): Fix logging. Only create
915 breakpoint if cached address has changed.
916 (jit_update_inferior_cache, jit_breakpoint_deleted): New
917 functions.
918 (_initialize_jit): Register breakpoint deleted observer.
919
920 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
921
922 * infrun.c (handle_syscall_event): Remove unused gdbarch.
923 (save_infcall_suspend_state): Ifdef out unused inf.
924 (restore_infcall_suspend_state): Ifdef out unused inf.
925 * jit.c (jit_register_code): Remove unused i, b, inf_data.
926 (jit_frame_sniffer): Remove unused inf_data.
927
928 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
929
930 * c-exp.y (classify_inner_name): Remove unused type.
931 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
932 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
933 need_escape.
934 (c_get_string): Remove unused kind.
935 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
936
937 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
938
939 * charset.c (intermediate_encoding): Remove unused i.
940 * completer.c (signal_completer): Remove unused i.
941 * continuations.c (discard_my_continuations_1): Remove unused
942 continuation_ptr.
943 * corelow.c (core_close): Remove unuseD name.
944 (get_core_siginfo): Remove unused pid.
945 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
946 i, cps.
947 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
948 (loclist_describe_location): Remove unused first.
949 * event-top.c (command_line_handler): Remove unused got_eof.
950 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
951 (resize_section_table): Remove unused old_value.
952 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
953 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
954 * i386-tdep.c (i386_process_record): Remove unused rex.
955 * infcmd.c (get_return_value): Remove unused uiout.
956 * jv-lang.c (type_from_class): Remove unused is_array.
957 * jv-valprint.c (java_val_print): Remove unused i.
958 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
959 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
960 * m2-typeprint.c (m2_print_type): Remove unused code.
961 * macroexp.c (get_character_constant): Remove unused body_start.
962 (macro_stringify): Remove unused result.
963 * objc-lang.c (find_methods): Remove unused gdbarch.
964 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
965 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
966 * stack.c (print_frame_args): Remove unused summary.
967 * thread.c (thread_apply_command): Remove unused p.
968 * valarith.c (value_x_unop): Remove unused mangle_ptr.
969 * valops.c (search_struct_method): Remove unused skip.
970 * valprint.c (generic_val_print): Remove unused byte_order.
971 * varobj.c (varobj_update): Remove unused changed.
972 * cli/cli-cmds.c (complete_command): Remove unused next_item.
973 (alias_command): Remove unused c.
974 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
975 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
976 format.
977 (mi_cmd_data_write_memory): Remove unused word_format.
978 (mi_cmd_data_write_memory_bytes): Remove unused r.
979 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
980 p_start, p_end.
981 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
982 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
983 line_width.
984
985 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
986
987 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
988 * symtab.c (iterate_over_symtabs): Remove unused s.
989 (find_pc_sect_symtab): Remove unused pspAce.
990 (find_pc_sect_line): Remove unused alt_symtab.
991 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
992 (completion_list_add_name): Remove unused newsize.
993
994 2013-01-31 Tom Tromey <tromey@redhat.com>
995
996 PR c++/14998:
997 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
998 TYPE_CODE_FUNC.
999
1000 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1001
1002 * target.c (target_read_string): Remove unused origlen.
1003
1004 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1005
1006 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1007 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1008 * ax-general.c (ax_print): Remove unused is_float.
1009 * blockframe.c (block_innermost_frame): Remove unused start, end.
1010 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1011
1012 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1013
1014 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1015 (svr4_read_so_list): Remove unused lmo.
1016 * solib-target.c (solib_target_relocate_section_addresses): Remove
1017 unused flags.
1018
1019 2013-01-30 Tom Tromey <tromey@redhat.com>
1020
1021 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1022
1023 2013-01-30 Tom Tromey <tromey@redhat.com>
1024
1025 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1026 * utils.c (gnu_debuglink_crc32): Remove.
1027 * utils.h (gnu_debuglink_crc32): Don't declare.
1028
1029 2013-01-30 Tom Tromey <tromey@redhat.com>
1030
1031 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1032 (read_structure_type, read_enumeration_type): Remove cast.
1033
1034 2013-01-30 Tom Tromey <tromey@redhat.com>
1035
1036 * dwarf2read.c (read_namespace_type): Remove cast.
1037 (read_typedef): Likewise.
1038
1039 2013-01-29 Tom Tromey <tromey@redhat.com>
1040
1041 * dwarf2read.c (free_dwo_file): Remove assert.
1042
1043 2013-01-29 Tom Tromey <tromey@redhat.com>
1044
1045 * value.c (deprecated_set_value_modifiable): Remove.
1046 * value.h (deprecated_set_value_modifiable): Remove.
1047
1048 2013-01-28 Doug Evans <dje@google.com>
1049
1050 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1051 to addresses from dwo files.
1052
1053 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1054
1055 * valops.c (find_overload_match): Remove unused argument 'lax'.
1056 * value.h: Remove unused argument 'lax' from the declaration of
1057 find_overload_match.
1058 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1059 to find_overload_match.
1060 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1061 argument to find_overload_match.
1062
1063 2013-01-25 Tom Tromey <tromey@redhat.com>
1064
1065 * dwarf2read.c (processing_has_namespace_info): Remove.
1066 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1067 (process_die, read_func_scope, dwarf2_start_symtab)
1068 (new_symbol_full): Update.
1069
1070 2013-01-25 Tom Tromey <tromey@redhat.com>
1071
1072 * cp-namespace.c (cp_set_block_scope): Remove.
1073 * cp-support.h (cp_set_block_scope): Remove.
1074 * dbxread.c: Include block.h.
1075 (cp_set_block_scope): New function.
1076 (process_one_symbol): Update.
1077 * dwarf2read.c (read_func_scope): Use block_set_scope.
1078
1079 2013-01-25 Pedro Alves <palves@redhat.com>
1080
1081 * remote.c (add_current_inferior_and_thread): Tweak comment.
1082
1083 2013-01-25 Tom Tromey <tromey@redhat.com>
1084
1085 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1086 (cp_add_using_directive): Add 'copy_names' argument.
1087 * cp-support.h (cp_add_using_directive): Update.
1088 (struct using_direct) <import_src, import_dest, alias,
1089 declaration>: Now const.
1090 * dwarf2read.c (read_import_statement): Use obconcat.
1091 Don't copy names passed to cp_add_using_directive.
1092
1093 2013-01-25 Tom Tromey <tromey@redhat.com>
1094
1095 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1096
1097 2013-01-25 Pedro Alves <palves@redhat.com>
1098
1099 * remote.c (stop_reply_extract_thread): New.
1100 (add_current_inferior_and_thread): New parameter 'wait_status'.
1101 Handle it.
1102 (remote_start_remote): Pass wait status to
1103 add_current_inferior_and_thread.
1104 (extended_remote_run): Update comment.
1105 (extended_remote_create_inferior_1): Pass wait status to
1106 add_current_inferior_and_thread.
1107
1108 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1109 Ulrich Weigand <uweigand@de.ibm.com>
1110
1111 * valarith.c (value_vector_widen): New function for replicating a
1112 scalar into a vector.
1113 (value_binop): Use value_vector_widen to widen scalar to vector
1114 rather than casting, this better matches gcc C behaviour.
1115 * valops.c (value_casst): Update logic for casting between vector
1116 types, and for casting from scalar to vector, try to match gcc C
1117 behaviour.
1118 * value.h (value_vector_widen): Declare.
1119 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1120 function, handle special case for casting scalar to vector.
1121 (opencl_relop): Use opencl_value_cast.
1122 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1123 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1124 in order to use opencl_value_cast.
1125
1126 2013-01-25 Yao Qi <yao@codesourcery.com>
1127
1128 * event-loop.c: Include "queue.h".
1129 (gdb_event_p): New typedef.
1130 (DECLARE_QUEUE_P): Use.
1131 (DEFINE_QUEUE_P): Use.
1132 (async_queue_event): Remove.
1133 (gdb_event_xfree): New.
1134 (initialize_event_loop): New.
1135 (process_event): Use QUEUE macros.
1136 (event_queue): Remove.
1137 (gdb_wait_for_event): Caller update.
1138 (check_async_event_handlers): Likewise.
1139 (poll_timers): Likewise.
1140 * event-loop.h (initialize_event_loop): Declare.
1141 * event-loop.c (gdb_event_xfree): New.
1142 * top.c (gdb_init): Call initialize_event_loop.
1143
1144 2013-01-25 Yao Qi <yao@codesourcery.com>
1145
1146 * event-loop.c (async_queue_event): Remove one parameter
1147 'position'. Remove code handling 'position' == TAIL.
1148 (gdb_wait_for_event): Caller update.
1149 (check_async_event_handlers): Caller update.
1150 (poll_timers): Caller update.
1151 * event-loop.h (enum queue_position): Remove.
1152
1153 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1154
1155 * MAINTAINERS: Update my email.
1156
1157 2013-01-25 Yao Qi <yao@codesourcery.com>
1158
1159 * main.c (print_gdb_help): Remove "--epoch" from the help
1160 message.
1161
1162 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1163
1164 * symtab.c (skip_prologue_using_sal): Consider a file
1165 change the same as an increased line number
1166
1167 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1168
1169 * MAINTAINERS (Write After Approval): Add myself to the list.
1170
1171 2013-01-24 Tom Tromey <tromey@redhat.com>
1172
1173 * ada-lang.h (ada_decode_symbol): Make return type const.
1174 * ada-lang.c (ada_decode_symbol): Likewise.
1175
1176 2013-01-23 Doug Evans <dje@google.com>
1177
1178 * linespec.c (find_linespec_symbols): Make static.
1179
1180 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1181
1182 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1183 type on float conversion for complex type.
1184
1185 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1186
1187 Add a new class gdb.Architecture which exposes GDB's
1188 internal representation of architecture via GDB Python API.
1189 * Makefile.in: Add entries corresponding to the new file
1190 python/py-arch.c.
1191 * NEWS (Python Scripting): Add entries for the new class
1192 gdb.Architecture and the new method gdb.Frame.architecture.
1193 * python/py-arch.c: Implement gdb.Architecture class.
1194 * python/py-frame.c (frapy_arch): Implement the method
1195 gdb.Frame.architecture().
1196 (frame_object_methods): Add 'architecture' to the method table.
1197 * python/python-internal.h: Add declarations of new utility
1198 functions.
1199 * python/python.c (_initialize_python): Initialize
1200 gdb.Architecture class.
1201
1202 2013-01-23 Doug Evans <dje@google.com>
1203
1204 Work around binutils/15021.
1205 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1206 type_unit_group out of union s. All uses updated.
1207 (read_index_from_section): Watch for index version 8.
1208 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1209 an imported symtab.
1210 (write_psymtabs_to_index): Increment version number to 8.
1211
1212 2013-01-22 Pedro Alves <palves@redhat.com>
1213
1214 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1215 user-visible.
1216
1217 2013-01-22 Pedro Alves <palves@redhat.com>
1218
1219 * annotate.c (annotate_breakpoints_changed): Rename to ...
1220 (annotate_breakpoints_invalid): ... this. Make static.
1221 (breakpoint_changed): Adjust.
1222 (_initialize_annotate): Always install the observers. Install a
1223 "breakpoint_created" observer.
1224 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1225 * breakpoint.c (set_breakpoint_condition)
1226 (breakpoint_set_commands, do_map_commands_command)
1227 (init_raw_breakpoint, clear_command, set_ignore_count)
1228 (enable_breakpoint_disp): No longer call
1229 annotate_breakpoints_changed.
1230
1231 2013-01-22 Pedro Alves <palves@redhat.com>
1232
1233 * annotate.c: Include "inferior.h".
1234 (frames_invalid_emitted)
1235 (breakpoints_invalid_emitted): New globals.
1236 (async_background_execution_p): New function.
1237 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1238 emitting the annotation if it has already been emitted.
1239 (annotate_display_prompt): New function.
1240 * annotate.h (annotate_display_prompt): New declaration.
1241 * event-top.c: Include annotate.h.
1242 (display_gdb_prompt): Call annotate_display_prompt.
1243
1244 2013-01-22 Pedro Alves <palves@redhat.com>
1245
1246 * annotate.c (ignore_count_changed): Delete.
1247 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1248 (annotate_ignore_count_change): Delete.
1249 (annotate_stopped): Don't emit a delayed breakpoints-changed
1250 annotation.
1251 * annotate.h (annotate_ignore_count_change): Delete.
1252 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1253 annotate_ignore_count_change.
1254
1255 2013-01-22 Tom Tromey <tromey@redhat.com>
1256
1257 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1258 require_rvalue for a register location.
1259
1260 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1261
1262 * breakpoint.c (print_one_breakpoint_location): Add MI
1263 field 'thread-groups' when printing a breakpoint.
1264 (output_thread_groups): New function.
1265
1266 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1267
1268 * python/lib/gdb/commands/explore.py
1269 (CompoundExplorer.explore_expr): Correct the name of a method
1270 being invoked.
1271 (ExploreTypeCommand.invoke): Add a missing 'return'.
1272
1273 2013-01-21 Tom Tromey <tromey@redhat.com>
1274
1275 * gdb_obstack.h (obconcat): Move declaration here, from...
1276 * symfile.h (obconcat): ... here.
1277 * gdb_obstack.c: New file.
1278 (obconcat): Move from...
1279 * symfile.c (obconcat): ... here.
1280 * Makefile.in (SFILES): Add gdb_obstack.c.
1281 (COMMON_OBS): Add gdb_obstack.o.
1282
1283 2013-01-21 Tom Tromey <tromey@redhat.com>
1284
1285 * symfile.h (obsavestring): Don't declare.
1286 * symfile.c (obsavestring): Remove.
1287 * ada-exp.y: Use obstack_copy0, not obsavestring.
1288 * ada-lang.c: Use obstack_copy0, not obsavestring.
1289 * coffread.c: Use obstack_copy0, not obsavestring.
1290 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1291 * dbxread.c: Use obstack_copy0, not obsavestring.
1292 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1293 * jit.c: Use obstack_copy0, not obsavestring.
1294 * mdebugread.c: Use obstack_copy0, not obsavestring.
1295 * psymtab.c: Use obstack_copy0, not obsavestring.
1296 * stabsread.c: Use obstack_copy0, not obsavestring.
1297 * xcoffread.c: Use obstack_copy0, not obsavestring.
1298
1299 2013-01-21 Tom Tromey <tromey@redhat.com>
1300
1301 * dwarf2read.c (fixup_go_packaging): Save package name
1302 on objfile obstack.
1303 * gdbtypes.c (init_type): Don't copy name.
1304
1305 2013-01-21 Tom Tromey <tromey@redhat.com>
1306
1307 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1308 const.
1309 (struct attribute) <u.str>: Now const.
1310 (struct fnfieldlist) <name>: Now const.
1311 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1312 (partial_die_parent_scope): Make return type const.
1313 (partial_die_full_name, add_partial_symbol): Update.
1314 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1315 'name' const.
1316 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1317 (read_file_scope, read_func_scope, dwarf2_add_field)
1318 (dwarf2_add_member_fn, read_structure_type)
1319 (process_enumeration_scope, read_array_type, read_module_type)
1320 (read_base_type, read_subrange_type): Update.
1321 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1322 (new_symbol_full, guess_full_die_structure_name): Update.
1323 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1324 (dwarf2_name): Return const type.
1325 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1326 const.
1327
1328 2013-01-21 Tom Tromey <tromey@redhat.com>
1329
1330 * gdbtypes.c (init_type): Make 'name' const.
1331 * gdbtypes.h (init_type): Update.
1332
1333 2013-01-21 Tom Tromey <tromey@redhat.com>
1334
1335 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1336 (start_symtab): Make 'name' and 'dirname' const. Use
1337 set_last_source_file.
1338 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1339 (last_source_file): Define. Now static.
1340 (set_last_source_file, get_last_source_file): New functions.
1341 * buildsym.h (last_source_file): Don't declare.
1342 (start_symtab): Update.
1343 (set_last_source_file, get_last_source_file): Declare.
1344 * coffread.c (complete_symtab): Use set_last_source_file.
1345 (coff_end_symtab): Likewise.
1346 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1347 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1348 set_last_source_file.
1349 (process_one_symbol): Use get_last_source_file.
1350 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1351 (psymtab_to_symtab_1): Use get_last_source_file.
1352 * xcoffread.c (process_linenos): Use get_last_source_file.
1353 (complete_symtab): Use set_last_source_file.
1354 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1355 (scan_xcoff_symtab): Use set_last_source_file.
1356
1357 2013-01-21 Tom Tromey <tromey@redhat.com>
1358
1359 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1360 (symbol_set_names): Remove casts. Handle field const-ness.
1361
1362 2013-01-21 Tom Tromey <tromey@redhat.com>
1363
1364 * dwarf2read.c (new_symbol_full): Remove cast.
1365 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1366 * symtab.h (symbol_set_demangled_name): Update.
1367
1368 2013-01-21 Tom Tromey <tromey@redhat.com>
1369
1370 * main.c (captured_main): Call bfd_init.
1371
1372 2013-01-21 Tom Tromey <tromey@redhat.com>
1373
1374 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1375 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1376 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1377 * NEWS: Update.
1378
1379 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1382
1383 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1384
1385 Fix gdb.fortran/common-block.exp crash in PIE mode.
1386 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1387 LOC_COMMON_BLOCK.
1388 * f-valprint.c (info_common_command_for_block): Expect
1389 LOC_COMMON_BLOCK in gdb_assert.
1390 * symtab.h (struct general_symbol_info): Update comment for the
1391 common_block member.
1392 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1393 (enum address_class): New member LOC_COMMON_BLOCK.
1394
1395 2013-01-18 David Blaikie <dblaikie@gmail.com>
1396
1397 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1398
1399 2013-01-18 Tom Tromey <tromey@redhat.com>
1400
1401 PR c++/14999:
1402 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1403 Call require_rvalue.
1404
1405 2013-01-18 Yao Qi <yao@codesourcery.com>
1406
1407 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1408 (dbx_read_symtab): New declaration.
1409 (dbx_psymtab_to_symtab): Delete.
1410 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1411 Rename parameter PST to SELF. Exchanged two parameters.
1412 (start_psymtab): Caller update.
1413 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1414 (dwarf2_read_symtab): New declaration.
1415 (dwarf2_psymtab_to_symtab): Delete.
1416 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1417 Rename parameter PST to SELF. Exchanged two parameters.
1418 (create_partial_symtab): Caller update.
1419 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1420 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1421 Rename parameter PST to SELF. Exchanged two parameters.
1422 (parse_partial_symbols, new_psymtab): Caller update.
1423 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1424 two parameters.
1425 * psymtab.c (psymtab_to_symtab): Caller update.
1426 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1427 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1428 Rename parameter PST to SELF. Exchanged two parameters.
1429 (xcoff_start_psymtab): Caller update.
1430
1431 2013-01-18 Yao Qi <yao@codesourcery.com>
1432
1433 * infrun.c (proceed): Rename local variable 'oneproc' to
1434 'force_step'.
1435
1436 2013-01-17 Doug Evans <dje@google.com>
1437
1438 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1439 (dw2_build_type_unit_groups): Delete. All uses updated.
1440
1441 * symtab.h (struct symbol_search): Add comment.
1442
1443 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1444
1445 * symtab.c (compare_filenames_for_search): New comment for
1446 HAS_DRIVE_SPEC.
1447
1448 2013-01-17 Tom Tromey <tromey@redhat.com>
1449
1450 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1451
1452 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1453
1454 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1455 initialize it by existing make_cleanup. Call new do_cleanups.
1456
1457 2013-01-17 Tom Tromey <tromey@redhat.com>
1458
1459 * cp-abi.c (cp_abi_completer): New function.
1460 (_initialize_cp_abi): Set completer for "set cp-abi".
1461
1462 2013-01-17 Tom Tromey <tromey@redhat.com>
1463
1464 * mem-break.c: Remove obsolete comment.
1465 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1466
1467 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1468
1469 * jit.c (jit_reader_load_command): Interpret the jit reader name
1470 as an absolute path if it begins with a forward slash.
1471
1472 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1473
1474 PR gdb/14550
1475
1476 * jit.c (finalize_symtab): Ensure that only the global block has a
1477 NULL superblock.
1478
1479 2013-01-17 Pedro Alves <palves@redhat.com>
1480
1481 * acinclude.m4: Include ../config/plugins.m4,
1482 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1483 * Makefile.in (aclocal_m4_deps): Update.
1484 * aclocal.m4: Renegerate.
1485
1486 2013-01-16 Doug Evans <dje@google.com>
1487
1488 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1489
1490 2013-01-16 Pedro Alves <palves@redhat.com>
1491 Tom Tromey <tromey@redhat.com>
1492
1493 PR cli/7221:
1494 * NEWS: Add "catch signal".
1495 * breakpoint.c (base_breakpoint_ops): No longer static.
1496 (bpstat_explains_signal): New function.
1497 (init_catchpoint): No longer static.
1498 (base_breakpoint_explains_signal): New function.
1499 (base_breakpoint_ops): Initialize new field.
1500 * breakpoint.h (enum bpstat_signal_value): New.
1501 (struct breakpoint_ops) <explains_signal>: New field.
1502 (bpstat_explains_signal): Remove macro, declare as function.
1503 (base_breakpoint_ops, init_catchpoint): Declare.
1504 * break-catch-sig.c: New file.
1505 * inferior.h (signal_catch_update): Declare.
1506 * infrun.c (signal_catch): New global.
1507 (handle_syscall_event): Update for change to
1508 bpstat_explains_signal.
1509 (handle_inferior_event): Likewise. Always handle random signals
1510 via bpstats.
1511 (signal_cache_update): Check signal_catch.
1512 (signal_catch_update): New function.
1513 (_initialize_infrun): Initialize signal_catch.
1514 * Makefile.in (SFILES): Add break-catch-sig.c.
1515 (COMMON_OBS): Add break-catch-sig.o.
1516
1517 2013-01-16 Tom Tromey <tromey@redhat.com>
1518
1519 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1520 (print_one_catch_solib, print_one_catch_syscall)
1521 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1522 "catch-type".
1523
1524 2013-01-16 Yao Qi <yao@codesourcery.com>
1525
1526 * printcmd.c (current_display_number): Make it static.
1527
1528 2013-01-16 Yao Qi <yao@codesourcery.com>
1529
1530 * infcmd.c (step_once): Don't check '!single_inst' as it was
1531 checked before.
1532
1533 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1536
1537 2013-01-14 Tom Tromey <tromey@redhat.com>
1538
1539 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1540 set command.
1541 * command.h (add_setshow_string_noescape_cmd): Update.
1542 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1543 (complete_set_gnutarget): New function.
1544 (_initialize_core): Set the "set gnutarget" completer.
1545
1546 2013-01-14 Tom Tromey <tromey@redhat.com>
1547
1548 PR symtab/14442:
1549 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1550 (c_type_print_modifier): Likewise.
1551 * dwarf2read.c (read_tag_restrict_type): New function.
1552 (read_type_die_1): Handle DW_TAG_restrict_type.
1553 * gdbtypes.c (make_restrict_type): New function.
1554 (recursive_dump_type): Handle TYPE_RESTRICT.
1555 * gdbtypes.h (enum type_flag_values): Renumber.
1556 (enum type_instance_flag_value): Add
1557 TYPE_INSTANCE_FLAG_RESTRICT.
1558 (TYPE_RESTRICT): New macro.
1559 (make_restrict_type): Declare.
1560
1561 2013-01-14 Tom Tromey <tromey@redhat.com>
1562
1563 PR symtab/14931:
1564 * psymtab.c (struct psymtab_state): New.
1565 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1566 functions.
1567 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1568 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1569
1570 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1571 Pedro Alves <palves@redhat.com>
1572
1573 PR remote/14786
1574
1575 * remote.c (remote_threads_info): Make a copy of the reply from
1576 qfThreadInfo and use that instead of rs->buf.
1577
1578 2013-01-14 Yao Qi <yao@codesourcery.com>
1579
1580 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1581 (dbx_psymtab_to_symtab): Likewise.
1582 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1583 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1584 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1585
1586 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1589 make_cleanup_restore_current_language. Call set_language. Move
1590 OLD_CHAIN and INNER_CHAIN cleanups.
1591 * utils.c (do_restore_current_language)
1592 (make_cleanup_restore_current_language): New functions.
1593 * utils.h (make_cleanup_restore_current_language): New declaration.
1594
1595 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1598 non-existing files.
1599
1600 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1601 non-existing files if FILENAME is already absolute.
1602
1603 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1604
1605 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1606 fputs_filtered. Append trailing newline.
1607
1608 2013-01-11 Yao Qi <yao@codesourcery.com>
1609 Stan Shebs <stan@codesourcery.com>
1610
1611 * psymtab.c (init_psymbol_list): Clarify the comment.
1612
1613 2013-01-11 Yao Qi <yao@codesourcery.com>
1614
1615 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1616 (update_dprintf_command_list): Assert that 'printf_line' is
1617 non-null. Remove condition check.
1618
1619 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1620
1621 Code cleanup.
1622 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1623 type const char *.
1624 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1625 const char *.
1626 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1627
1628 2013-01-09 Anthony Green <green@moxielogic.com>
1629
1630 * cp-abi.c (cplus_print_vtable): Don't return value from void
1631 function.
1632 * ada-lang.c (re_set_catch_assert): Ditto.
1633
1634 2013-01-09 Doug Evans <dje@google.com>
1635
1636 * symfile.h (quick_symbol_functions): Delete member
1637 pre_expand_symtabs_matching. All uses removed.
1638 * dwarf2read.c (dw2_lookup_symbol): Implement.
1639 (dw2_do_expand_symtabs_matching): Delete.
1640 (dw2_pre_expand_symtabs_matching): Delete.
1641 (struct dw2_symtab_iterator): New type.
1642 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1643 (dw2_expand_symtabs_for_function): Rewrite.
1644 (dwarf2_gdb_index_functions): Update.
1645 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1646 (psym_functions): Update.
1647
1648 2013-01-09 Tom Tromey <tromey@redhat.com>
1649
1650 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1651 * configure: Rebuild.
1652 * configure.ac: Add somread.o to the build if BFD has SOM
1653 support.
1654 * somread.c: Include som/aout.h, not syms.h.
1655 (som_symtab_read): Use som_external_symbol_dictionary_record.
1656 Unpack records manually.
1657 (_initialize_somread): Declare.
1658
1659 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1660
1661 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1662 Cast return_address to 64bits.
1663
1664 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1665
1666 * printcmd.c: Remove define of function output_command.
1667 * tracepoint.c: Remove extern of function output_command.
1668 * valprint.h: (output_command): New extern.
1669
1670 2013-01-07 Tom Tromey <tromey@redhat.com>
1671
1672 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1673 Remove.
1674 (objc_language_defn): Use c_printchar, c_printstr,
1675 c_emit_char.
1676
1677 2013-01-07 Tom Tromey <tromey@redhat.com>
1678
1679 PR cli/7719:
1680 * NEWS: Update.
1681 * ada-valprint.c (printstr, print_field_values): Remove
1682 "inspect_it" code.
1683 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1684 code.
1685 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1686 code.
1687 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1688 * main.c (captured_main): Remove "epoch" argument.
1689 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1690 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1691 * p-valprint.c (pascal_object_print_value_fields): Remove
1692 "inspect_it" code.
1693 * printcmd.c (print_command_1): Remove 'inspect' argument.
1694 (print_command, call_command): Update.
1695 (inspect_command): Remove.
1696 (_initialize_printcmd): Make "inspect" an alias for "print".
1697 * top.c (epoch_interface): Remove.
1698 * top.h (epoch_interface): Remove.
1699 * valprint.c (user_print_options): Update.
1700 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1701 * valprint.h (struct value_print_options) <inspect_it>: Remove
1702 field.
1703
1704 2013-01-04 Tom Tromey <tromey@redhat.com>
1705
1706 * valprint.h (read_string): Add 'extern'.
1707
1708 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1709
1710 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1711 used to decide whether to define darwin_read_dyld_info or not.
1712
1713 2013-01-03 Pierre Muller <muller@sourceware.org>
1714
1715 * main.c (relocate_gdb_directory): Avoid calling stat function
1716 if DIR is empty.
1717
1718 2013-01-03 Yao Qi <yao@codesourcery.com>
1719
1720 * psymtab.c (fixup_psymbol_section): Update declaration.
1721 (fixup_psymbol_section): Remove code returning value.
1722
1723 2013-01-03 Yao Qi <yao@codesourcery.com>
1724
1725 * symtab.h: Remove some out of date comments.
1726 (enum exception_event_kind): Move it ...
1727 * breakpoint.c: ... here.
1728
1729 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1730
1731 PR gdb/14405
1732 * darwin-nat.c (darwin_read_dyld_info): Only build if
1733 TASK_DYLD_INFO_COUNT is defined.
1734 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1735 TASK_DYLD_INFO_COUNT is defined.
1736
1737 2013-01-02 Tom Tromey <tromey@redhat.com>
1738
1739 * symfile.h (struct ecoff_debug_hack): Remove.
1740 * objfiles.c: Don't include mdebugread.h.
1741
1742 2013-01-02 Tom Tromey <tromey@redhat.com>
1743
1744 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1745 * configure.ac: Check for Mach-O support in BFD. Update
1746 CONFIG_OBS.
1747 * configure: Rebuild.
1748
1749 2013-01-02 Tom Tromey <tromey@redhat.com>
1750
1751 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1752 * configure.ac: Use GDB_AC_CHECK_BFD.
1753 * configure: Rebuild.
1754
1755 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1756
1757 * MAINTAINERS: Update my email.
1758
1759 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1760
1761 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1762
1763 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1764
1765 * rs6000-nat.c (bss_data_overlap): New function.
1766 (vmap_symtab): Use it to adjust the .bss section's offset.
1767
1768 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1769
1770 Update year range in copyright notice of all files.
1771
1772 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1773
1774 * top.c (print_gdb_version): Update copyright year.
1775
1776 For older changes see ChangeLog-2012.
1777 \f
1778 Local Variables:
1779 mode: change-log
1780 left-margin: 8
1781 fill-column: 74
1782 version-control: never
1783 coding: utf-8
1784 End:
This page took 0.065698 seconds and 5 git commands to generate.