Andrew Cagney
3c37485b16
malloc() -> xmalloc.
Move malloc() decl to utils.c
26 years ago
Andrew Cagney
0e52036f1f
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
26 years ago
Andrew Cagney
81b8eb809e
Move free() decl to utils.c.
26 years ago
Kevin Buettner
d7fa9de08d
Committed.
26 years ago
Mark Kettenis
39424bef91
* defs.h: Provide prototypes for floatformat_is_negative,
floatformat_is_nan and floatformat_mantissa.
* utils.c: Include "gdb_assert.h".
(floatformat_is_negative): New function.
(floatformat_is_nan): New function.
(floatformat_mantissa): New function.
* valprint.c: Include "floatformat.h".
(print_floating): Get rid of the Linux-specific
TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
help these new functions. Print NaN's in a format conforming to
ISO C99.
26 years ago
J.T. Conklin
5565b5569b
2001-03-06 J.T. Conklin <jtc@redback.com>
* symtab.h (decode_line_1): Removed declaration.
* symfile.c (#include <assert.h>): Removed.
* arch-utils.c (#include <ctype.h>): Removed.
* c-typeprint.c: Likewise.
* dbxread.c: Likewise.
* gdbtypes.c: Likewise.
* target.c: Likewise.
* os9kread.c: Likewise.
* c-valprint.c (#include "demangle.h"): Removed.
* ch-typeprint.c: Likewise.
* eval.c: Likewise.
* f-typeprint.c: Likewise.
* f-valprint.c: Likewise.
* m2-typeprint.c: Likewise.
* typeprint.c: Likewise.
* p-typeprint.c: Likewise.
* valarith.c: Likewise.
* valprint.c: Likewise.
* m2-typeprint.c (#include "gdb_string.h"): Removed.
* nlmread.c: Likewise.
* mdebugread.c (#include "gdb-stabs.h"): Removed.
* minsyms.c: Likewise.
* mipsread.c: Likewise.
* nlmread.c: Likewise.
* m2-typeprint.c (#include "obstack.h"): Removed.
* m2-valprint.c: Likewise.
* event-loop.c (#include <setjmp.h>): Removed.
26 years ago
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
26 years ago
Kevin Buettner
e1e9e218c1
Replace calls to abort() with calls to internal_error().
26 years ago
Andrew Cagney
8e65ff28b0
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
26 years ago
Andrew Cagney
f042532cc4
* sol-thread.c (restore_inferior_pid): Save the PID in a freshly
allocated buffer.
(save_inferior_pid): Restore the PID from that tempoary
buffer. Delete the buffer.
* utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
26 years ago
J.T. Conklin
042be3a9b3
* signals.h: Removed.
* event-top.c (#include <signal.h>): Changed from signals.h.
* inflow.c: Likewise.
* mac-xdep.c: Likewise.
* ser-pipe.c: Likewise.
* ser-tcp.c: Likewise.
* standalone.c: Likewise.
* top.c: Likewise.
* utils.c: Likewise.
* Makefile.in: Removed signals.h from dependencies.
26 years ago
Andrew Cagney
d1f4cff847
Move putchar_filtered() to utils.c.
26 years ago
Andrew Cagney
4fcf66da88
Replace strsave() with xstrdup().
26 years ago
Kevin Buettner
b8c9b27d1e
Replace free() with xfree().
26 years ago
Michael Snyder
62fd9fad96
2000-12-04 Michael Snyder <msnyder@cleaver.cygnus.com>
* utils.c (internal_verror): Fix typo in error msg.
26 years ago
Andrew Cagney
76995688e8
Replace asprintf() / vasprintf() with xasprintf() xvasprintf().
26 years ago
David Taylor
79496e2fad
* utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,
not TARGET_PTR_BIT, since we are dealing with addresses, not
pointers.
26 years ago
Kevin Buettner
74f832daf0
Protoization.
26 years ago
David Anderson
e26cc3490a
Corrected spelling errors in comments
26 years ago
Kevin Buettner
fba45db2fa
Protoization.
26 years ago
Michael Snyder
cbfbd72afe
2000-06-15 Michael Snyder <msnyder@cygnus.com>
* utils.c: Fix comment typo.
27 years ago
Andrew Cagney
ac2e2ef7e2
Add host_pointer_to_address() and address_to_host_pointer(). Add
signed_pointer_to_address() etc. Rename generic_pointer_to_address()
to unsigned_pointer_to_address() etc.
27 years ago
Andrew Cagney
8e6a3c35b9
Eliminate safe_strsignal().
27 years ago
Kevin Buettner
507f3c78fb
Eliminate PARAMS from function pointer declarations.
27 years ago
Kevin Buettner
a14ed312fd
PARAMS removal.
27 years ago
Andrew Cagney
f5ff8c83c8
Add make_cleanup_close() function.
27 years ago
Andrew Cagney
5683e87aa5
Replace preg() with phex(). Cleanup monitor.c.
27 years ago
Andrew Cagney
e2f9c47491
Make free_current_contents more robust. Use in MI.
27 years ago
Andrew Cagney
5c65bbb629
Cleanup bfd_close() cleanups.
27 years ago
Andrew Cagney
3339cf8b68
Move core_addr_lessthan and core_addr_greaterthan to arch-utils.
27 years ago
Michael Snyder
4261bedc92
2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* utils.c (internal_verror): Call target_terminal_ours.
27 years ago
Andrew Cagney
2f9429aea3
* defs.h, utils.c (free_current_contents): Change parameter to
void*.
From Philippe De Muyter <phdm@macqel.be>:
* printcmd.c (print_address_symbolic): Call `make_cleanup' with
`(free_current_contents, &x)', not `(free, x)'.
* utils.c (free_current_contents): Do not `free (NULL)'.
* printcmd.c (print_address_symbolic): Cleanup after a failed
call to build_address_symbolic.
27 years ago
Michael Snyder
57e687d9ad
2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* defs.h (struct continuation_arg): make 'data' a union, to avoid
casting problems when int and pointer are not the same size.
* event-top.c (command_handler): use data as a union.
(command_line_handler_continuation): ditto.
* infcmd.c (step_1_continuation): use data as a union. Re-indent.
(step_once): ditto. (finish_command_continuation): ditto.
(finish_command): ditto.
* breakpoint.c (until_break_command): use data as a union.
(until_break_command_continuation): ditto.
* utils.c (add_intermediate_continuation): fix typo in comment.
27 years ago
Kevin Buettner
ba8966d6c3
Fixes for floatformat_from_doublest().
27 years ago
Andrew Cagney
082faf240e
Make mmalloc functions consistent. Some need ISO-C others need PTR :-(.
27 years ago
Andrew Cagney
e400552667
Convert make_cleanup functions to ISO-C.
27 years ago
Andrew Cagney
9d271fd8b3
From Eli. Warning fixes.
27 years ago
Jason Molenda
d9fcf2fb1c
import gdb-2000-02-01 snapshot
27 years ago
Jason Molenda
da59e08184
import gdb-2000-01-31 snapshot
27 years ago
Jason Molenda
0fda6bd286
import gdb-2000-01-24 snapshot
27 years ago
Jason Molenda
ed9a39ebf9
import gdb-1999-12-21 snapshot
27 years ago
Jason Molenda
c2d11a7da0
import gdb-1999-12-06 snapshot
27 years ago
Jason Molenda
4ce44c668d
import gdb-1999-11-16 snapshot
27 years ago
Jason Molenda
11cf874164
import gdb-1999-11-08 snapshot
27 years ago
Jason Molenda
e514a9d642
import gdb-1999-10-25 snapshot
27 years ago
Jason Molenda
917317f4c6
import gdb-1999-10-18 snapshot
27 years ago
Jason Molenda
2acceee218
import gdb-1999-10-04 snapshot
27 years ago
Jason Molenda
6426a772a2
import gdb-1999-09-28 snapshot
27 years ago
Jason Molenda
c2c6d25f0d
import gdb-1999-09-21
27 years ago
Stan Shebs
d4f3574e77
import gdb-1999-09-08 snapshot
27 years ago